diff options
author | kchan | 2006-04-04 00:55:40 +0000 |
---|---|---|
committer | kchan | 2006-04-04 00:55:40 +0000 |
commit | 83cf407dfcd75eb366fd37bfc7ed154c81a8325d (patch) | |
tree | 5f8be0944894802010ac6ce0a64e740ecf36ad51 /bundles/org.eclipse.jst.ws.consumption/src/org/eclipse/jst/ws/internal | |
parent | fde1b16feb70eed17e8aab39da1734d240e8aa8c (diff) | |
download | webtools.webservices-83cf407dfcd75eb366fd37bfc7ed154c81a8325d.tar.gz webtools.webservices-83cf407dfcd75eb366fd37bfc7ed154c81a8325d.tar.xz webtools.webservices-83cf407dfcd75eb366fd37bfc7ed154c81a8325d.zip |
[128827] Skeleton Merge - Create PersistentMergeContext and remove skeleton merge from Resource Context.
Diffstat (limited to 'bundles/org.eclipse.jst.ws.consumption/src/org/eclipse/jst/ws/internal')
-rw-r--r-- | bundles/org.eclipse.jst.ws.consumption/src/org/eclipse/jst/ws/internal/consumption/command/common/SkeletonMergeCommand.java | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/bundles/org.eclipse.jst.ws.consumption/src/org/eclipse/jst/ws/internal/consumption/command/common/SkeletonMergeCommand.java b/bundles/org.eclipse.jst.ws.consumption/src/org/eclipse/jst/ws/internal/consumption/command/common/SkeletonMergeCommand.java index c4c282961..8223e0dfc 100644 --- a/bundles/org.eclipse.jst.ws.consumption/src/org/eclipse/jst/ws/internal/consumption/command/common/SkeletonMergeCommand.java +++ b/bundles/org.eclipse.jst.ws.consumption/src/org/eclipse/jst/ws/internal/consumption/command/common/SkeletonMergeCommand.java @@ -4,12 +4,13 @@ * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html - * + * * Contributors: * IBM Corporation - initial API and implementation * yyyymmdd bug Email and other contact information * -------- -------- ----------------------------------------------------------- * 20060330 128827 kathy@ca.ibm.com - Kathy Chan + * 20060403 128827 kathy@ca.ibm.com - Kathy Chan *******************************************************************************/ package org.eclipse.jst.ws.internal.consumption.command.common; @@ -32,6 +33,8 @@ import org.eclipse.wst.command.internal.env.core.context.ResourceContext; import org.eclipse.wst.common.environment.IEnvironment; import org.eclipse.wst.common.frameworks.datamodel.AbstractDataModelOperation; import org.eclipse.wst.ws.internal.common.MergeUtils; +import org.eclipse.wst.ws.internal.plugin.WSPlugin; +import org.eclipse.wst.ws.internal.preferences.PersistentMergeContext; public class SkeletonMergeCommand extends AbstractDataModelOperation { @@ -57,7 +60,8 @@ public class SkeletonMergeCommand extends AbstractDataModelOperation IStatus status = Status.OK_STATUS; IEnvironment environment = getEnvironment(); ResourceContext context = WebServicePlugin.getInstance().getResourceContext(); - if (context.isSkeletonMergeEnabled()) { + PersistentMergeContext mergeContext = WSPlugin.getInstance().getMergeContext(); + if (mergeContext.isSkeletonMergeEnabled()) { // merge the skeleton implementation file with the model stored earlier String mergedContent; @@ -90,4 +94,4 @@ public class SkeletonMergeCommand extends AbstractDataModelOperation return status; } -}
\ No newline at end of file +} |