Changes for page Click to Open

Last modified by Kieran Kelleher on 2012/07/21 20:41

From version 40.1
edited by David Avendasora
on 2008/03/21 08:38
Change comment: There is no comment for this version
To version 32.1
edited by chuckhill
on 2008/03/12 15:17
Change comment: Done.

Summary

Details

Page properties
Author
... ... @@ -1,1 +1,1 @@
1 -XWiki.avendasora
1 +XWiki.chuckhill
Content
... ... @@ -10,15 +10,15 @@
10 10  
11 11  == What You Need ==
12 12  
13 -You need the **WOLips** framework that is part of Project Wonder. You also need the **ERExtensions** framework that is part of Project Wonder on the class path at runtime. If you already use Project Wonder, are you almost done.
13 +You need the **WOLips** framework that is part of Project Wonder. Nothing else from Project Wonder is needed. If you already use Project Wonder, are you almost done.
14 14  
15 -If you are not using Project Wonder, you can download it from [[mDimension's site>>http://webobjects.mdimension.com/wonder/]], untar the frameworks, and copy just the WOLips.framework and ERExtensions.framework to where you have the rest of your frameworks (usually /Library/Frameworks or ,,/Library/Frameworks).,,
15 +If you are not using Project Wonder, you can download it from [[mDimension's site>>http://webobjects.mdimension.com/wonder/]], untar the frameworks, and copy just the WOLips.framework to where you have the rest of your frameworks (usually /Library or ,,/Library).,,
16 16  
17 17  == Getting Set Up ==
18 18  
19 19  === Add the WOLips.framework ===
20 20  
21 -Follow the [[tutorial>>Add a Framework Dependency]] on adding a framework to add WOLips.framework and ERXExtentions.framework to your application.
21 +Follow the [[tutorial>>Add a Framework Dependency]] on adding a framework to add WOLips.framework to your application.
22 22  
23 23  === Add Support to Component Base Class ===
24 24  
... ... @@ -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