Download
Getting Started
Members
Projects
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
More
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
Toggle navigation
Bugzilla – Attachment 36710 Details for
Bug 127016
Add an Axis emitter preference page
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
[patch]
patch fix to org.eclipse.jst.ws.axis.consumption.core
127016.org.eclipse.jst.ws.axis.consumption.core.patch (text/plain), 12.21 KB, created by
andy zhai
on 2006-03-21 20:49:36 EST
(
hide
)
Description:
patch fix to org.eclipse.jst.ws.axis.consumption.core
Filename:
MIME Type:
Creator:
andy zhai
Created:
2006-03-21 20:49:36 EST
Size:
12.21 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P org.eclipse.jst.ws.axis.consumption.core >Index: src/org/eclipse/jst/ws/internal/axis/consumption/core/plugin/WebServiceAxisConsumptionCorePlugin.java >=================================================================== >RCS file: /cvsroot/webtools/jst/components/ws/plugins/org.eclipse.jst.ws.axis.consumption.core/src/org/eclipse/jst/ws/internal/axis/consumption/core/plugin/WebServiceAxisConsumptionCorePlugin.java,v >retrieving revision 1.2 >diff -u -r1.2 WebServiceAxisConsumptionCorePlugin.java >--- src/org/eclipse/jst/ws/internal/axis/consumption/core/plugin/WebServiceAxisConsumptionCorePlugin.java 2 Dec 2005 12:35:29 -0000 1.2 >+++ src/org/eclipse/jst/ws/internal/axis/consumption/core/plugin/WebServiceAxisConsumptionCorePlugin.java 22 Mar 2006 01:45:39 -0000 >@@ -13,6 +13,10 @@ > > import org.eclipse.core.runtime.CoreException; > import org.eclipse.core.runtime.Plugin; >+import org.eclipse.jst.ws.internal.axis.consumption.core.context.AxisEmitterContext; >+import org.eclipse.jst.ws.internal.axis.consumption.core.context.PersistentAxisEmitterContext; >+import org.eclipse.wst.command.internal.env.context.PersistentResourceContext; >+import org.eclipse.wst.command.internal.env.core.context.ResourceContext; > import org.eclipse.wst.common.environment.EnvironmentService; > import org.eclipse.wst.common.environment.ILog; > import org.osgi.framework.BundleContext; >@@ -39,6 +43,7 @@ > private static WebServiceAxisConsumptionCorePlugin instance_; > private ILog log_; > >+ private PersistentAxisEmitterContext axisEmitterContext_; > /** > * Constructs a runtime plugin object for this plugin. > * The "plugin" element in plugin.xml should include the attribute >@@ -68,6 +73,13 @@ > static public WebServiceAxisConsumptionCorePlugin getInstance() { > return instance_; > } >+ >+ public AxisEmitterContext getAxisEmitterContext() >+ { >+ if (axisEmitterContext_ == null) >+ axisEmitterContext_ = PersistentAxisEmitterContext.getInstance(); >+ return axisEmitterContext_; >+ } > > /** > * Called once by the platform when this plugin is first loaded. >Index: META-INF/MANIFEST.MF >=================================================================== >RCS file: /cvsroot/webtools/jst/components/ws/plugins/org.eclipse.jst.ws.axis.consumption.core/META-INF/MANIFEST.MF,v >retrieving revision 1.15 >diff -u -r1.15 MANIFEST.MF >--- META-INF/MANIFEST.MF 20 Mar 2006 20:17:40 -0000 1.15 >+++ META-INF/MANIFEST.MF 22 Mar 2006 01:45:39 -0000 >@@ -9,6 +9,7 @@ > Export-Package: org.eclipse.jst.ws.internal.axis.consumption.core;x-internal:=true, > org.eclipse.jst.ws.internal.axis.consumption.core.command;x-internal:=true, > org.eclipse.jst.ws.internal.axis.consumption.core.common;x-internal:=true, >+ org.eclipse.jst.ws.internal.axis.consumption.core.context, > org.eclipse.jst.ws.internal.axis.consumption.core.plugin;x-internal:=true > Require-Bundle: org.apache.ant, > org.eclipse.core.resources, >Index: src/org/eclipse/jst/ws/internal/axis/consumption/core/context/TransientAxisEmitterContext.java >=================================================================== >RCS file: src/org/eclipse/jst/ws/internal/axis/consumption/core/context/TransientAxisEmitterContext.java >diff -N src/org/eclipse/jst/ws/internal/axis/consumption/core/context/TransientAxisEmitterContext.java >--- /dev/null 1 Jan 1970 00:00:00 -0000 >+++ src/org/eclipse/jst/ws/internal/axis/consumption/core/context/TransientAxisEmitterContext.java 1 Jan 1970 00:00:00 -0000 >@@ -0,0 +1,76 @@ >+package org.eclipse.jst.ws.internal.axis.consumption.core.context; >+ >+import org.eclipse.wst.command.internal.env.core.context.ResourceContext; >+import org.eclipse.wst.command.internal.env.core.context.ResourceDefaults; >+import org.eclipse.wst.command.internal.env.core.context.TransientResourceContext; >+ >+/** >+ * This class implements a ResourceContext interface where the state >+ * of the context data is transient. >+ * >+ */ >+public class TransientAxisEmitterContext implements AxisEmitterContext >+{ >+ private boolean allElements; >+ private boolean helperGenerate; >+ private boolean wrapArrays; >+ >+ public TransientAxisEmitterContext() { >+ setAllElementsEnabled(AxisEmitterDefaults.getAllElementsDefault()); >+ setHelperGenerateEnabled(AxisEmitterDefaults.getHelperGenerateDefault()); >+ setWrapArraysEnabled(AxisEmitterDefaults.getWrapArraysDefault()); >+ } >+ >+ /** >+ * @see org.eclipse.wst.command.internal.env.core.context.AxisEmitterContext#setAllElementsEnabled(boolean) >+ */ >+ public void setAllElementsEnabled(boolean enable) { >+ allElements = enable; >+ } >+ >+ /** >+ * @see org.eclipse.wst.command.internal.env.core.context.AxisEmitterContext#isAllElementsEnabled() >+ */ >+ public boolean isAllElementsEnabled() { >+ return allElements; >+ } >+ >+ /** >+ * @see org.eclipse.wst.command.internal.env.core.context.AxisEmitterContext#setHelperGenerateEnabled(boolean) >+ */ >+ public void setHelperGenerateEnabled(boolean enable) { >+ helperGenerate = enable; >+ } >+ >+ /** >+ * @see org.eclipse.wst.command.internal.env.core.context.AxisEmitterContext#isHelperGenerateEnabled() >+ */ >+ public boolean isHelperGenerateEnabled() { >+ return helperGenerate; >+ } >+ >+ /** >+ * @see org.eclipse.wst.command.internal.env.core.context.AxisEmitterContext#setWrapArraysEnabled(boolean) >+ */ >+ public void setWrapArraysEnabled(boolean enable) { >+ wrapArrays = enable; >+ } >+ >+ /** >+ * @see org.eclipse.wst.command.internal.env.core.context.AxisEmitterContext#isWrapArraysEnabled() >+ */ >+ public boolean isWrapArraysEnabled() { >+ return wrapArrays; >+ } >+ >+ /** >+ * @see org.eclipse.wst.command.internal.env.core.context.AxisEmitterContext#copy() >+ */ >+ public AxisEmitterContext copy() { >+ AxisEmitterContext aec = new TransientAxisEmitterContext(); >+ aec.setAllElementsEnabled(isAllElementsEnabled()); >+ aec.setHelperGenerateEnabled(isHelperGenerateEnabled()); >+ aec.setWrapArraysEnabled(isWrapArraysEnabled()); >+ return aec; >+ } >+} >Index: src/org/eclipse/jst/ws/internal/axis/consumption/core/context/AxisEmitterDefaults.java >=================================================================== >RCS file: src/org/eclipse/jst/ws/internal/axis/consumption/core/context/AxisEmitterDefaults.java >diff -N src/org/eclipse/jst/ws/internal/axis/consumption/core/context/AxisEmitterDefaults.java >--- /dev/null 1 Jan 1970 00:00:00 -0000 >+++ src/org/eclipse/jst/ws/internal/axis/consumption/core/context/AxisEmitterDefaults.java 1 Jan 1970 00:00:00 -0000 >@@ -0,0 +1,35 @@ >+package org.eclipse.jst.ws.internal.axis.consumption.core.context; >+ >+public class AxisEmitterDefaults >+{ >+ private static final boolean PREFERENCE_ALL_ELEMENTS_DEFAULT = false; >+ private static final boolean PREFERENCE_HELPER_GENERATE_DEFAULT = true; >+ private static final boolean PREFERENCE_WRAP_ARRAYS_DEFAULT = false; >+ >+ /** >+ * >+ * @return returns the default setting for overwriting files. >+ */ >+ public static boolean getAllElementsDefault () >+ { >+ return PREFERENCE_ALL_ELEMENTS_DEFAULT; >+ } >+ >+ /** >+ * >+ * @return returns the default setting ofr creating folders. >+ */ >+ public static boolean getHelperGenerateDefault () >+ { >+ return PREFERENCE_HELPER_GENERATE_DEFAULT; >+ } >+ >+ /** >+ * >+ * @return returns the default setting for checking out files. >+ */ >+ public static boolean getWrapArraysDefault() >+ { >+ return PREFERENCE_WRAP_ARRAYS_DEFAULT; >+ } >+} >Index: src/org/eclipse/jst/ws/internal/axis/consumption/core/context/PersistentAxisEmitterContext.java >=================================================================== >RCS file: src/org/eclipse/jst/ws/internal/axis/consumption/core/context/PersistentAxisEmitterContext.java >diff -N src/org/eclipse/jst/ws/internal/axis/consumption/core/context/PersistentAxisEmitterContext.java >--- /dev/null 1 Jan 1970 00:00:00 -0000 >+++ src/org/eclipse/jst/ws/internal/axis/consumption/core/context/PersistentAxisEmitterContext.java 1 Jan 1970 00:00:00 -0000 >@@ -0,0 +1,73 @@ >+package org.eclipse.jst.ws.internal.axis.consumption.core.context; >+ >+import org.eclipse.jst.ws.internal.axis.consumption.core.plugin.WebServiceAxisConsumptionCorePlugin; >+import org.eclipse.wst.command.internal.env.context.PersistentContext; >+ >+public class PersistentAxisEmitterContext extends PersistentContext implements AxisEmitterContext >+{ >+ private static PersistentAxisEmitterContext context_ = null; >+ >+ public static PersistentAxisEmitterContext getInstance() >+ { >+ if (context_ == null) { >+ context_ = new PersistentAxisEmitterContext(); >+ context_.load(); >+ } >+ >+ return context_; >+ } >+ >+ private PersistentAxisEmitterContext() >+ { >+ super(WebServiceAxisConsumptionCorePlugin.getInstance()); >+ } >+ >+ public void load() >+ { >+ setDefault(PREFERENCE_ALL_ELEMENTS, AxisEmitterDefaults >+ .getAllElementsDefault()); >+ setDefault(PREFERENCE_HELPER_GENERATE, AxisEmitterDefaults >+ .getHelperGenerateDefault()); >+ setDefault(PREFERENCE_WRAP_ARRAYS, AxisEmitterDefaults >+ .getWrapArraysDefault()); >+ } >+ >+ public void setAllElementsEnabled(boolean enable) >+ { >+ setValue(PREFERENCE_ALL_ELEMENTS, enable); >+ } >+ >+ public boolean isAllElementsEnabled() >+ { >+ return getValueAsBoolean(PREFERENCE_ALL_ELEMENTS); >+ } >+ >+ public void setHelperGenerateEnabled(boolean enable) >+ { >+ setValue(PREFERENCE_HELPER_GENERATE, enable); >+ } >+ >+ public boolean isHelperGenerateEnabled() >+ { >+ return getValueAsBoolean(PREFERENCE_HELPER_GENERATE); >+ } >+ >+ public void setWrapArraysEnabled(boolean enable) >+ { >+ setValue(PREFERENCE_WRAP_ARRAYS, enable); >+ } >+ >+ public boolean isWrapArraysEnabled() >+ { >+ return getValueAsBoolean(PREFERENCE_WRAP_ARRAYS); >+ } >+ >+ public AxisEmitterContext copy() >+ { >+ AxisEmitterContext aec = new TransientAxisEmitterContext(); >+ aec.setAllElementsEnabled(isAllElementsEnabled()); >+ aec.setHelperGenerateEnabled(isHelperGenerateEnabled()); >+ aec.setWrapArraysEnabled(isWrapArraysEnabled()); >+ return aec; >+ } >+} >Index: src/org/eclipse/jst/ws/internal/axis/consumption/core/context/AxisEmitterContext.java >=================================================================== >RCS file: src/org/eclipse/jst/ws/internal/axis/consumption/core/context/AxisEmitterContext.java >diff -N src/org/eclipse/jst/ws/internal/axis/consumption/core/context/AxisEmitterContext.java >--- /dev/null 1 Jan 1970 00:00:00 -0000 >+++ src/org/eclipse/jst/ws/internal/axis/consumption/core/context/AxisEmitterContext.java 1 Jan 1970 00:00:00 -0000 >@@ -0,0 +1,65 @@ >+package org.eclipse.jst.ws.internal.axis.consumption.core.context; >+ >+ >+public interface AxisEmitterContext >+{ >+ /** >+ * This constant string is used to lookup the overwrite files general preference from >+ * the plugins local preferences store. >+ **/ >+ public static final String PREFERENCE_ALL_ELEMENTS = "allElements"; >+ >+ /** >+ * This constant string is used to lookup the create folders general preference from >+ * the plugins local preferences store. >+ **/ >+ public static final String PREFERENCE_HELPER_GENERATE = "helperGenerate"; >+ >+ /** >+ * This constant string is used to lookup the checkout files general preference from >+ * the plugins local preferences store. >+ **/ >+ public static final String PREFERENCE_WRAP_ARRAYS = "wrapArrays"; >+ >+ /** >+ * >+ * @param enable set whether overwriting of files is enabled. >+ */ >+ public void setAllElementsEnabled ( boolean enable); >+ >+ /** >+ * >+ * @return returns whether overwriting of files is enabled. >+ */ >+ public boolean isAllElementsEnabled(); >+ >+ /** >+ * >+ * @param enable set whether creation of folders is enabled. >+ */ >+ public void setHelperGenerateEnabled( boolean enable); >+ >+ /** >+ * >+ * @return returns whether creation of folders is enabled. >+ */ >+ public boolean isHelperGenerateEnabled(); >+ >+ /** >+ * >+ * @param enable sets whether automatic checkout of files is enabled. >+ */ >+ public void setWrapArraysEnabled( boolean enable); >+ >+ /** >+ * >+ * @return returns whether automatic checkout of files is enabled. >+ */ >+ public boolean isWrapArraysEnabled(); >+ >+ /** >+ * >+ * @return returns a copy of this ResourceContext. >+ */ >+ public AxisEmitterContext copy(); >+}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 127016
:
36710
|
36711
|
36824
|
36825
|
36985
|
36986
|
37001
|
37003
|
37097
|
37262
|
37263