Changes for page Click to Open
Last modified by Kieran Kelleher on 2012/07/21 20:41
Summary
-
Page properties (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -35,8 +35,8 @@ 35 35 package net.com.foo.bar; 36 36 37 37 import com.webobjects.appserver.*; 38 +import er.extensions.*; 38 38 39 - 40 40 /** 41 41 * Support for "Click to Open" navigation from the browser to the template in Eclipse. To enable this, 42 42 * launch with: ... ... @@ -46,7 +46,7 @@ 46 46 */ 47 47 public class ClickToOpenComponent extends com.webobjects.appserver.WOComponent { 48 48 49 - public static final boolean isClickToOpenEnabled = Boolean.getBoolean(System.getProperty("er.component.clickToOpen","false"));49 + public static final boolean isClickToOpenEnabled = ERXProperties.booleanForKeyWithDefault("er.component.clickToOpen", false); 50 50 51 51 public ClickToOpenComponent(WOContext context) { 52 52 super(context); ... ... @@ -85,7 +85,7 @@ 85 85 private Boolean isDevelopmentMode; 86 86 public boolean developmentMode() { 87 87 if (isDevelopmentMode == null) { 88 - isDevelopmentMode = new Boolean( System.getProperty("er.extensions.ERXApplication.developmentMode","false"));88 + isDevelopmentMode = new Boolean(ERXProperties.booleanForKey("er.extensions.ERXApplication.developmentMode", false)); 89 89 } 90 90 return isDevelopmentMode.booleanValue(); 91 91 } ... ... @@ -197,4 +197,3 @@ 197 197 * hold down the Cmd key while you move the mouse around and it will highlight the component 198 198 * Cmd-click it will popup the stack of components and you can pick from the stack: 199 199 [[image:ComponentStack.png]] 200 -* you can the binding ##expanded=true;## on WOLToolBar so it's open by default, instead of closed