diff options
author | kchong | 2005-10-06 17:02:00 +0000 |
---|---|---|
committer | kchong | 2005-10-06 17:02:00 +0000 |
commit | 6ad9ab51e1de05dc04a695e0edbc5dde30ab4984 (patch) | |
tree | 11a31c74a1d70b183b50534092e0a0f07c39008b /bundles | |
parent | a75d18e0cca6d5abf196042e11288d91c090d97c (diff) | |
download | webtools.webservices-6ad9ab51e1de05dc04a695e0edbc5dde30ab4984.tar.gz webtools.webservices-6ad9ab51e1de05dc04a695e0edbc5dde30ab4984.tar.xz webtools.webservices-6ad9ab51e1de05dc04a695e0edbc5dde30ab4984.zip |
[108829] WSDL Editor is silently re-writing bindings on save, likely breaking compatability with existing client/server implementations.
Diffstat (limited to 'bundles')
2 files changed, 8 insertions, 6 deletions
diff --git a/bundles/org.eclipse.wst.wsdl.ui/src/org/eclipse/wst/wsdl/ui/internal/WSDLEditorPlugin.java b/bundles/org.eclipse.wst.wsdl.ui/src/org/eclipse/wst/wsdl/ui/internal/WSDLEditorPlugin.java index 2613f72e3..f9e5dfb6c 100644 --- a/bundles/org.eclipse.wst.wsdl.ui/src/org/eclipse/wst/wsdl/ui/internal/WSDLEditorPlugin.java +++ b/bundles/org.eclipse.wst.wsdl.ui/src/org/eclipse/wst/wsdl/ui/internal/WSDLEditorPlugin.java @@ -306,13 +306,12 @@ public class WSDLEditorPlugin extends AbstractUIPlugin //, IPluginHelper */ protected void initializeDefaultPreferences(IPreferenceStore store) { - super.initializeDefaultPreferences(store); store.setDefault(DEFAULT_PAGE, GRAPH_PAGE); // WSDLPreferencePage prefs store.setDefault(WSDLEditorPlugin.getWSDLString("_UI_PREF_PAGE_DEFAULT_TARGET_NAMESPACE"), DEFAULT_TARGET_NAMESPACE); - store.setDefault(WSDLEditorPlugin.getWSDLString("_UI_PREF_PAGE_AUTO_REGENERATE_BINDING"), true); - store.setDefault("Prompt Regenerate Binding on save", true); // TODO: Externalize + store.setDefault(WSDLEditorPlugin.getWSDLString("_UI_PREF_PAGE_AUTO_REGENERATE_BINDING"), false); + store.setDefault("Prompt Regenerate Binding on save", false); // TODO: Externalize // Do we need this preference below? Look at WSDLPreferencePage.java // store.setDefault("Defualt Location:", "http://www.example.com"); } diff --git a/bundles/org.eclipse.wst.wsdl.ui/src/org/eclipse/wst/wsdl/ui/internal/WSDLTextEditor.java b/bundles/org.eclipse.wst.wsdl.ui/src/org/eclipse/wst/wsdl/ui/internal/WSDLTextEditor.java index 6e35f3d71..726b74e24 100644 --- a/bundles/org.eclipse.wst.wsdl.ui/src/org/eclipse/wst/wsdl/ui/internal/WSDLTextEditor.java +++ b/bundles/org.eclipse.wst.wsdl.ui/src/org/eclipse/wst/wsdl/ui/internal/WSDLTextEditor.java @@ -270,7 +270,7 @@ public class WSDLTextEditor extends StructuredTextEditor implements INodeSelecti public void doSave(IProgressMonitor monitor) { try{ // Display prompt message - boolean continueRegeneration = true; + boolean continueRegeneration = false; if (WSDLEditorPlugin.getInstance().getPluginPreferences().getBoolean("Prompt Regenerate Binding on save")) { Shell shell = Display.getCurrent().getActiveShell(); GenerateBindingOnSaveDialog dialog = new GenerateBindingOnSaveDialog(shell); @@ -288,9 +288,12 @@ public class WSDLTextEditor extends StructuredTextEditor implements INodeSelecti else { System.out.println("\nNothing: " + rValue); } - } + } + else { + continueRegeneration = WSDLEditorPlugin.getInstance().getPluginPreferences().getBoolean(WSDLEditorPlugin.getWSDLString("_UI_PREF_PAGE_AUTO_REGENERATE_BINDING")); + } - if (continueRegeneration || WSDLEditorPlugin.getInstance().getPluginPreferences().getBoolean(WSDLEditorPlugin.getWSDLString("_UI_PREF_PAGE_AUTO_REGENERATE_BINDING"))) { + if (continueRegeneration) { Iterator bindingsIt = wsdlEditor.getDefinition().getEBindings().iterator(); while (bindingsIt.hasNext()) { Binding binding = (Binding) bindingsIt.next(); |