diff options
author | kchong | 2015-10-28 21:51:02 +0000 |
---|---|---|
committer | kchong | 2015-10-28 21:51:02 +0000 |
commit | 20e4ae7be8f06802f0d0c125f8b893b95ea5d1ad (patch) | |
tree | 39df732ba105bf2c010581c3e438465048017611 | |
parent | ed750d3a8656a29514b77a60ee30c7fbcc51301e (diff) | |
download | webtools.webservices-20e4ae7be8f06802f0d0c125f8b893b95ea5d1ad.tar.gz webtools.webservices-20e4ae7be8f06802f0d0c125f8b893b95ea5d1ad.tar.xz webtools.webservices-20e4ae7be8f06802f0d0c125f8b893b95ea5d1ad.zip |
[480166] WTP 3.8: Default preferences are not initialized (dependent on
runtime compatibility. layer)
Change-Id: I38d020c534d926828cd26a7bb4cac14ec6549ab3
-rw-r--r-- | bundles/org.eclipse.wst.wsdl.ui/plugin.xml | 7 | ||||
-rw-r--r-- | bundles/org.eclipse.wst.wsdl.ui/src-asd-wsdl11/org/eclipse/wst/wsdl/ui/internal/WSDLPreferenceInitializer.java | 36 |
2 files changed, 43 insertions, 0 deletions
diff --git a/bundles/org.eclipse.wst.wsdl.ui/plugin.xml b/bundles/org.eclipse.wst.wsdl.ui/plugin.xml index c47ec5f40..5bfb96df8 100644 --- a/bundles/org.eclipse.wst.wsdl.ui/plugin.xml +++ b/bundles/org.eclipse.wst.wsdl.ui/plugin.xml @@ -38,6 +38,13 @@ id="org.eclipse.wst.wsdl.ui.internal.WSDLPreferencePage" /> </extension> + <extension + point="org.eclipse.core.runtime.preferences"> + <initializer + class="org.eclipse.wst.wsdl.ui.internal.WSDLPreferenceInitializer"> + </initializer> + </extension> + <!-- This extension point is used to suplement WSDL 1.1 schemas in order to --> <!-- constrain the extensiblity elements that are allowed at the 'wsdl' level --> <extension-point diff --git a/bundles/org.eclipse.wst.wsdl.ui/src-asd-wsdl11/org/eclipse/wst/wsdl/ui/internal/WSDLPreferenceInitializer.java b/bundles/org.eclipse.wst.wsdl.ui/src-asd-wsdl11/org/eclipse/wst/wsdl/ui/internal/WSDLPreferenceInitializer.java new file mode 100644 index 000000000..f3c7a880e --- /dev/null +++ b/bundles/org.eclipse.wst.wsdl.ui/src-asd-wsdl11/org/eclipse/wst/wsdl/ui/internal/WSDLPreferenceInitializer.java @@ -0,0 +1,36 @@ +/*******************************************************************************
+ * Copyright (c) 2015 IBM Corporation and others.
+ * All rights reserved. This program and the accompanying materials
+ * 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
+ *******************************************************************************/
+package org.eclipse.wst.wsdl.ui.internal;
+
+import org.eclipse.core.runtime.preferences.AbstractPreferenceInitializer;
+import org.eclipse.core.runtime.preferences.DefaultScope;
+import org.eclipse.core.runtime.preferences.IEclipsePreferences;
+
+public class WSDLPreferenceInitializer extends AbstractPreferenceInitializer {
+
+ public WSDLPreferenceInitializer() {
+ }
+
+ public void initializeDefaultPreferences() {
+ IEclipsePreferences node = DefaultScope.INSTANCE.getNode(WSDLEditorPlugin.getInstance().getBundle().getSymbolicName());
+ // formatting preferences
+ node.put(WSDLEditorPlugin.DEFAULT_TARGET_NAMESPACE_ID, WSDLEditorPlugin.DEFAULT_TARGET_NAMESPACE);
+ node.put(WSDLEditorPlugin.DEFAULT_TARGET_NAMESPACE_PREFIX_PREFERENCE_ID, WSDLEditorPlugin.DEFAULT_TARGET_NAMESPACE_PREFIX);
+ node.putBoolean(WSDLEditorPlugin.GENERATE_SEPARATE_INTERFACE_PREFERENCE_ID, false);
+ node.put(WSDLEditorPlugin.INTERFACE_PREFIX_PREFERENCE_ID, WSDLEditorPlugin.INTERFACE_PREFIX_DEFAULT);
+ node.put(WSDLEditorPlugin.INTERFACE_DEFAULT_TARGET_NAMESPACE_PREFERENCE_ID, WSDLEditorPlugin.DEFAULT_TARGET_NAMESPACE);
+ node.put(WSDLEditorPlugin.INTERFACE_FILE_SUFFIX_PREFERENCE_ID, WSDLEditorPlugin.INTERFACE_FILE_SUFFIX_DEFAULT);
+ node.putBoolean(WSDLEditorPlugin.AUTO_REGENERATE_BINDING_ON_SAVE_ID, false);
+ node.putBoolean(WSDLEditorPlugin.PROMPT_REGEN_BINDING_ON_SAVE_ID, false);
+ node.putBoolean(WSDLEditorPlugin.AUTO_IMPORT_CLEANUP_ID, false);
+ node.putBoolean(WSDLEditorPlugin.AUTO_OPEN_IMPORT_DIALOG_ID, false);
+ }
+}
|