changeset 7930:60e8da40fca3

[SCENEBUILDER] Going on fixing DTL-6783: Rationalize job implementation between Hierarchy and Content Panels => Adapt DebugMenu controller jobs
author slions
date Mon, 01 Sep 2014 09:19:43 +0200
parents 4ecd15e8a082
children 8fa9c7b3b5c8
files apps/scenebuilder/SceneBuilderApp/src/com/oracle/javafx/scenebuilder/app/menubar/DebugMenuController.java
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/apps/scenebuilder/SceneBuilderApp/src/com/oracle/javafx/scenebuilder/app/menubar/DebugMenuController.java	Mon Sep 01 09:18:39 2014 +0200
+++ b/apps/scenebuilder/SceneBuilderApp/src/com/oracle/javafx/scenebuilder/app/menubar/DebugMenuController.java	Mon Sep 01 09:19:43 2014 +0200
@@ -37,8 +37,8 @@
 import com.oracle.javafx.scenebuilder.kit.editor.EditorPlatform;
 import com.oracle.javafx.scenebuilder.kit.editor.JobManager;
 import com.oracle.javafx.scenebuilder.kit.editor.job.BatchJob;
+import com.oracle.javafx.scenebuilder.kit.editor.job.CompositeJob2;
 import com.oracle.javafx.scenebuilder.kit.editor.job.Job;
-import com.oracle.javafx.scenebuilder.kit.editor.job.v2.CompositeJob;
 import com.oracle.javafx.scenebuilder.kit.editor.panel.content.ContentPanelController;
 import com.oracle.javafx.scenebuilder.kit.editor.panel.util.dialog.ErrorDialog;
 import com.oracle.javafx.scenebuilder.kit.util.MathUtils;
@@ -211,8 +211,8 @@
     private MenuItem makeJobMenuItem(Job job) {
         final MenuItem result;
         
-        if (job instanceof CompositeJob) {
-            final CompositeJob compositeJob = (CompositeJob)job;
+        if (job instanceof CompositeJob2) {
+            final CompositeJob2 compositeJob = (CompositeJob2)job;
             final Menu newMenu = new Menu(compositeJob.getClass().getSimpleName());
             addJobMenuItems(compositeJob.getSubJobs(), newMenu);
             result = newMenu;