Child pages
  • Click to Open

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Removed use of ERXProperties

...

Code Block
java
java
package net.com.foo.bar;

import com.webobjects.appserver.*;
import
er.extensions.*;

/**
 * Support for "Click to Open" navigation from the browser to the template in Eclipse.  To enable this,
 * launch with:
 * <pre>
 * -Der.component.clickToOpen=true
 * </pre>
 */
public class ClickToOpenComponent extends com.webobjects.appserver.WOComponent {

    public static final boolean isClickToOpenEnabled = ERXProperties.booleanForKeyWithDefaultBoolean.getBoolean(System.getProperty("er.component.clickToOpen", "false"));

    public ClickToOpenComponent(WOContext context) {
        super(context);
    }

    public void appendToResponse(WOResponse response, WOContext context) {
        ERXClickToOpenSupport.preProcessResponse(response, context, isClickToOpenEnabled);
        super.appendToResponse(response, context);
        ERXClickToOpenSupport.postProcessResponse(getClass(), response, context, isClickToOpenEnabled);
    }
}

...

Code Block
java
java
private Boolean isDevelopmentMode;
public boolean developmentMode() {
    if (isDevelopmentMode == null) {
    	isDevelopmentMode = new Boolean(ERXPropertiesSystem.booleanForKeygetProperty("er.extensions.ERXApplication.developmentMode", "false"));
    }
    return isDevelopmentMode.booleanValue();
}

...