Revision: 4716
          http://sourceforge.net/p/jump-pilot/code/4716
Author:   michaudm
Date:     2015-12-28 22:19:23 +0000 (Mon, 28 Dec 2015)
Log Message:
-----------
ViewSchemaPlugIn was broken because of macro recorder deactivation

Modified Paths:
--------------
    
core/trunk/src/com/vividsolutions/jump/workbench/ui/plugin/ViewSchemaPlugIn.java

Modified: 
core/trunk/src/com/vividsolutions/jump/workbench/ui/plugin/ViewSchemaPlugIn.java
===================================================================
--- 
core/trunk/src/com/vividsolutions/jump/workbench/ui/plugin/ViewSchemaPlugIn.java
    2015-12-28 21:59:36 UTC (rev 4715)
+++ 
core/trunk/src/com/vividsolutions/jump/workbench/ui/plugin/ViewSchemaPlugIn.java
    2015-12-28 22:19:23 UTC (rev 4716)
@@ -636,7 +636,7 @@
         // [mmichaud 2014-10-05] had to test if we are in macro mode or in 
interactive mode
         // maybe a better way vould be that all plugins implement a non 
interactive method
         // called either by execute method (interactive mode) or directly by 
the RunMacro
-        if 
(!context.getWorkbenchContext().getBlackboard().getBoolean(MacroManager.MACRO_RUNNING))
 {
+        if 
(!context.getWorkbenchContext().getBlackboard().get(MacroManager.MACRO_RUNNING, 
false)) {
             //Can't simply use Blackboard#get(key, default) because default 
requires that
             //we create a new EditSchemaFrame, and we don't want to do this 
unless we
             //have to because the EditSchemaFrame constructor modifies the 
blackboard.
@@ -651,7 +651,7 @@
 
             frame(context).surface();
 
-            if 
(context.getWorkbenchContext().getBlackboard().getBoolean(MacroManager.MACRO_STARTED))
 {
+            if 
(context.getWorkbenchContext().getBlackboard().get(MacroManager.MACRO_STARTED, 
false)) {
                 ((Macro) 
context.getWorkbenchContext().getBlackboard().get(MacroManager.MACRO)).addProcess(this);
             }
         }


------------------------------------------------------------------------------
_______________________________________________
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel

Reply via email to