changeset 7907:f3731ef0c7f4

[SCENEBUILDER] Going on fixing DTL-6783: Rationalize job implementation between Hierarchy and Content Panels => Adapt Span jobs
author slions
date Fri, 29 Aug 2014 08:57:15 +0200
parents f166fe3c0547
children 2def7cb07a48
files apps/scenebuilder/SceneBuilderKit/src/com/oracle/javafx/scenebuilder/kit/editor/job/gridpane/v2/SpanJob.java
diffstat 1 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/apps/scenebuilder/SceneBuilderKit/src/com/oracle/javafx/scenebuilder/kit/editor/job/gridpane/v2/SpanJob.java	Fri Aug 29 14:07:10 2014 +1200
+++ b/apps/scenebuilder/SceneBuilderKit/src/com/oracle/javafx/scenebuilder/kit/editor/job/gridpane/v2/SpanJob.java	Fri Aug 29 08:57:15 2014 +0200
@@ -34,9 +34,9 @@
 import com.oracle.javafx.scenebuilder.kit.editor.EditorController;
 import com.oracle.javafx.scenebuilder.kit.editor.EditorController.EditAction;
 import com.oracle.javafx.scenebuilder.kit.editor.i18n.I18N;
+import com.oracle.javafx.scenebuilder.kit.editor.job.BatchDocumentJob;
 import com.oracle.javafx.scenebuilder.kit.editor.job.Job;
 import com.oracle.javafx.scenebuilder.kit.editor.job.ModifyObjectJob;
-import com.oracle.javafx.scenebuilder.kit.editor.job.v2.CompositeJob;
 import com.oracle.javafx.scenebuilder.kit.editor.selection.AbstractSelectionGroup;
 import com.oracle.javafx.scenebuilder.kit.editor.selection.ObjectSelectionGroup;
 import com.oracle.javafx.scenebuilder.kit.fxom.FXOMInstance;
@@ -54,11 +54,11 @@
  * This job is multi-selection proof: it will do something on all items of the
  * selection if and only if required conditions are met by all of them.
  */
-public class SpanJob extends CompositeJob {
+public class SpanJob extends BatchDocumentJob {
     private final EditAction editAction;
 
     public SpanJob(EditorController editorController, EditAction editAction) {
-        super(editorController, true, true);
+        super(editorController);
         this.editAction = editAction;
     }
 
@@ -180,7 +180,7 @@
         
         return newSpan;
     }
-    
+
     private enum TREND {DECREASE, INCREASE};
     private enum PROPERTY {COLUMN_INDEX, COLUMN_SPAN, ROW_INDEX, ROW_SPAN};