Author: Grid.Qian
Date: 2008-04-23 03:28:50 -0400 (Wed, 23 Apr 2008)
New Revision: 7697
Modified:
trunk/ws/plugins/org.jboss.tools.ws.ui/plugin.properties
trunk/ws/plugins/org.jboss.tools.ws.ui/src/org/jboss/tools/ws/ui/JbossWSUI.properties
trunk/ws/plugins/org.jboss.tools.ws.ui/src/org/jboss/tools/ws/ui/JbossWSUIMessages.java
trunk/ws/plugins/org.jboss.tools.ws.ui/src/org/jboss/tools/ws/ui/JbossWSUIPlugin.java
trunk/ws/plugins/org.jboss.tools.ws.ui/src/org/jboss/tools/ws/ui/preferences/JbossWSRuntimePreferencePage.java
Log:
Modified: trunk/ws/plugins/org.jboss.tools.ws.ui/plugin.properties
===================================================================
--- trunk/ws/plugins/org.jboss.tools.ws.ui/plugin.properties 2008-04-23 07:28:39 UTC (rev
7696)
+++ trunk/ws/plugins/org.jboss.tools.ws.ui/plugin.properties 2008-04-23 07:28:50 UTC (rev
7697)
@@ -1,3 +1,3 @@
-JBOSSWS_PREFERENCE_PAGE=JbossWS Preferences
+JBOSSWS_PREFERENCE_PAGE=JBossWS Preferences
PLUGIN_NAME=JBossWS UI
PLUGIN_PROVIDER=Red Hat, Inc.
\ No newline at end of file
Modified:
trunk/ws/plugins/org.jboss.tools.ws.ui/src/org/jboss/tools/ws/ui/JbossWSUI.properties
===================================================================
---
trunk/ws/plugins/org.jboss.tools.ws.ui/src/org/jboss/tools/ws/ui/JbossWSUI.properties 2008-04-23
07:28:39 UTC (rev 7696)
+++
trunk/ws/plugins/org.jboss.tools.ws.ui/src/org/jboss/tools/ws/ui/JbossWSUI.properties 2008-04-23
07:28:50 UTC (rev 7697)
@@ -17,7 +17,7 @@
JBOSSWS_LOCATION=JBossWS Runtime
JBOSSWS_RUNTIME=JBossWS Runtime
JBOSSWS_PREFERENCES=JBossWS Preferences
-JBOSSWS_RUNTIME_TOOLTIP=Select the JBossWS binary distribution folder or the folder which
contains the JBossWS war distribution
+JBOSSWS_RUNTIME_TOOLTIP=Select the JBossWS binary distribution folder
JBOSSWS_PREFERENCES_TOOLTIP=Select the default preferences for JBossWS runtime
JBOSSWS_RUNTIME_LOCATION=JBossWS runtime location:
JBOSSWS_RUNTIME_PREFERENCES=JBossWS Runtime Preferences
@@ -35,4 +35,7 @@
TEMP_JBOSSWS_FACET_DIR=org.jboss.tools.ws.facet
WEBAPP_EXPLODED_SERVER_LOCATION_FILE=server.properties
SERVER_STATUS_LOCATION_FILE=status.properties
-WAR_STATUS_LOCATION_FILE=war.properties
\ No newline at end of file
+WAR_STATUS_LOCATION_FILE=war.properties
+
+COMMOND=wsconsume.sh
+BIN=bin
\ No newline at end of file
Modified:
trunk/ws/plugins/org.jboss.tools.ws.ui/src/org/jboss/tools/ws/ui/JbossWSUIMessages.java
===================================================================
---
trunk/ws/plugins/org.jboss.tools.ws.ui/src/org/jboss/tools/ws/ui/JbossWSUIMessages.java 2008-04-23
07:28:39 UTC (rev 7696)
+++
trunk/ws/plugins/org.jboss.tools.ws.ui/src/org/jboss/tools/ws/ui/JbossWSUIMessages.java 2008-04-23
07:28:50 UTC (rev 7697)
@@ -61,6 +61,9 @@
public static String SERVER_STATUS_LOCATION_FILE;
public static String WAR_STATUS_LOCATION_FILE;
+ public static String BIN;
+ public static String COMMOND;
+
static {
NLS.initializeMessages(BUNDLE_NAME, JbossWSUIMessages.class);
}
Modified:
trunk/ws/plugins/org.jboss.tools.ws.ui/src/org/jboss/tools/ws/ui/JbossWSUIPlugin.java
===================================================================
---
trunk/ws/plugins/org.jboss.tools.ws.ui/src/org/jboss/tools/ws/ui/JbossWSUIPlugin.java 2008-04-23
07:28:39 UTC (rev 7696)
+++
trunk/ws/plugins/org.jboss.tools.ws.ui/src/org/jboss/tools/ws/ui/JbossWSUIPlugin.java 2008-04-23
07:28:50 UTC (rev 7697)
@@ -1,3 +1,14 @@
+/*******************************************************************************
+ * Copyright (c) 2008 Red Hat, Inc.
+ * Distributed under license by Red Hat, Inc. All rights reserved.
+ * This program is 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:
+ * Red Hat, Inc. - initial API and implementation
+ ******************************************************************************/
+
package org.jboss.tools.ws.ui;
import org.eclipse.ui.plugin.AbstractUIPlugin;
Modified:
trunk/ws/plugins/org.jboss.tools.ws.ui/src/org/jboss/tools/ws/ui/preferences/JbossWSRuntimePreferencePage.java
===================================================================
---
trunk/ws/plugins/org.jboss.tools.ws.ui/src/org/jboss/tools/ws/ui/preferences/JbossWSRuntimePreferencePage.java 2008-04-23
07:28:39 UTC (rev 7696)
+++
trunk/ws/plugins/org.jboss.tools.ws.ui/src/org/jboss/tools/ws/ui/preferences/JbossWSRuntimePreferencePage.java 2008-04-23
07:28:50 UTC (rev 7697)
@@ -7,7 +7,7 @@
*
* Contributors:
* Red Hat, Inc. - initial API and implementation
- ******************************************************************************/
+ ******************************************************************************/
package org.jboss.tools.ws.ui.preferences;
@@ -22,11 +22,10 @@
import org.eclipse.swt.events.SelectionEvent;
import org.eclipse.swt.layout.GridData;
import org.eclipse.swt.widgets.Button;
-import org.eclipse.swt.widgets.Combo;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.Control;
import org.eclipse.swt.widgets.DirectoryDialog;
-import org.eclipse.swt.widgets.Group;
+import org.eclipse.swt.widgets.Label;
import org.eclipse.swt.widgets.Shell;
import org.eclipse.swt.widgets.TabFolder;
import org.eclipse.swt.widgets.TabItem;
@@ -38,290 +37,162 @@
import org.jboss.tools.ws.ui.JbossWSUIPlugin;
import org.jboss.tools.ws.ui.UIUtils;
-public class JbossWSRuntimePreferencePage extends PreferencePage implements
IWorkbenchPreferencePage {
+public class JbossWSRuntimePreferencePage extends PreferencePage implements
+ IWorkbenchPreferencePage {
- private Text jbosswsPath;
- private Text statusLabel;
- private Combo aarExtensionCombo;
- private Combo serviceDatabindingCombo;
- private Combo clientDatabindingCombo;
- private Button generateServerSideInterfaceCheckBoxButton;
- private Button generateAllCheckBoxButton;
- private Button syncAndAsyncRadioButton;
- private Button syncOnlyRadioButton;
- private Button asyncOnlyRadioButton;
- private Button clientTestCaseCheckBoxButton;
- private Button clientGenerateAllCheckBoxButton;
+ private Text jbosswsPath;
+ private Label statusLabel;
- protected Control createContents(Composite superparent) {
-
- IPreferenceStore ps = JbossWSCorePlugin.getDefault().getPreferenceStore();
- this.setPreferenceStore(ps);
-
- UIUtils uiUtils = new UIUtils(JbossWSUIPlugin.PLUGIN_ID);
- final Composite mainComp = uiUtils.createComposite(superparent, 1);
-
- TabFolder jbosswsPreferenceTab = new TabFolder(mainComp, SWT.WRAP);
- jbosswsPreferenceTab.setLayoutData( new GridData(GridData.GRAB_HORIZONTAL |
GridData.GRAB_VERTICAL | GridData.FILL_BOTH) );
+ protected Control createContents(Composite superparent) {
-
- //-----------------------------Axis2 Runtime Location
Group------------------------------//
- TabItem runtimeInstalLocationItem = new TabItem(jbosswsPreferenceTab, SWT.WRAP);
- runtimeInstalLocationItem.setText(JbossWSUIMessages.JBOSSWS_RUNTIME);
- runtimeInstalLocationItem.setToolTipText(JbossWSUIMessages.JBOSSWS_RUNTIME_TOOLTIP);
-
- Composite runtimeTab = uiUtils.createComposite(jbosswsPreferenceTab, 1);
- runtimeTab.setLayoutData( new GridData(GridData.GRAB_HORIZONTAL |
GridData.GRAB_VERTICAL | GridData.FILL_BOTH ) );
- Composite runtimeGroup = uiUtils.createComposite(runtimeTab, 3);
+ IPreferenceStore ps = JbossWSCorePlugin.getDefault()
+ .getPreferenceStore();
+ this.setPreferenceStore(ps);
- runtimeInstalLocationItem.setControl(runtimeTab);
- runtimeTab.setToolTipText(JbossWSUIMessages.JBOSSWS_RUNTIME_TOOLTIP);
+ UIUtils uiUtils = new UIUtils(JbossWSUIPlugin.PLUGIN_ID);
+ final Composite mainComp = uiUtils.createComposite(superparent, 1);
- jbosswsPath = uiUtils.createText(runtimeGroup,
JbossWSUIMessages.JBOSSWS_RUNTIME_LOCATION , null, null , SWT.BORDER);
-
- Button browseButton = uiUtils.createPushButton(runtimeGroup,
JbossWSUIMessages.LABEL_BROUSE, null, null);
- browseButton.addSelectionListener( new SelectionAdapter() {
- public void widgetSelected(SelectionEvent e) {
- handleBrowse(mainComp.getShell());
- }
- });
+ TabFolder jbosswsPreferenceTab = new TabFolder(mainComp, SWT.WRAP);
+ jbosswsPreferenceTab.setLayoutData(new GridData(
+ GridData.GRAB_HORIZONTAL | GridData.GRAB_VERTICAL
+ | GridData.FILL_BOTH));
- jbosswsPath.addModifyListener( new ModifyListener(){
- public void modifyText(ModifyEvent e){
- statusUpdate(runtimeExist(jbosswsPath.getText()));
- // runtimeTab.layout();
- }
- });
- new org.eclipse.swt.widgets.Label(runtimeTab, SWT.HORIZONTAL); // Leave some vertical
space.
- statusLabel = new Text(runtimeTab, SWT.BACKGROUND | SWT.READ_ONLY | SWT.CENTER |
SWT.WRAP | SWT.H_SCROLL);
- statusLabel.setLayoutData( new GridData(GridData.GRAB_HORIZONTAL |
GridData.GRAB_VERTICAL | GridData.FILL_BOTH) );
+ TabItem runtimeInstalLocationItem = new TabItem(jbosswsPreferenceTab,
+ SWT.WRAP);
+ runtimeInstalLocationItem.setText(JbossWSUIMessages.JBOSSWS_RUNTIME);
+ runtimeInstalLocationItem
+ .setToolTipText(JbossWSUIMessages.JBOSSWS_RUNTIME_TOOLTIP);
- //--------------------------------jbossws Runtime
Preferences------------------------------//
+ Composite runtimeTab = uiUtils.createComposite(jbosswsPreferenceTab, 1);
+ runtimeTab.setLayoutData(new GridData(GridData.GRAB_HORIZONTAL
+ | GridData.GRAB_VERTICAL | GridData.FILL_BOTH));
+ Composite runtimeGroup = uiUtils.createComposite(runtimeTab, 3);
- TabItem codegenPreferencesItem = new TabItem(jbosswsPreferenceTab, SWT.WRAP);
- codegenPreferencesItem.setText(JbossWSUIMessages.JBOSSWS_PREFERENCES);
- codegenPreferencesItem.setToolTipText(JbossWSUIMessages.JBOSSWS_PREFERENCES_TOOLTIP);
+ runtimeInstalLocationItem.setControl(runtimeTab);
+ runtimeTab.setToolTipText(JbossWSUIMessages.JBOSSWS_RUNTIME_TOOLTIP);
- Composite codegenGroup = uiUtils.createComposite(jbosswsPreferenceTab, 1);
- codegenPreferencesItem.setControl(codegenGroup);
- codegenGroup.setToolTipText(JbossWSUIMessages.JBOSSWS_PREFERENCES_TOOLTIP);
+ jbosswsPath = uiUtils.createText(runtimeGroup,
+ JbossWSUIMessages.JBOSSWS_RUNTIME_LOCATION, null, null,
+ SWT.BORDER);
- ///////////////////////////////////////////////////////////////////////////////////////////
+ Button browseButton = uiUtils.createPushButton(runtimeGroup,
+ JbossWSUIMessages.LABEL_BROUSE, null, null);
+ browseButton.addSelectionListener(new SelectionAdapter() {
+ public void widgetSelected(SelectionEvent e) {
+ handleBrowse(mainComp.getShell());
+ }
+ });
- //Service Codegen Options
- Composite serviceCodegenGroup = uiUtils.createComposite(codegenGroup, 1);
+ jbosswsPath.addModifyListener(new ModifyListener() {
+ public void modifyText(ModifyEvent e) {
+ statusUpdate(runtimeExist(jbosswsPath.getText()));
- Text serviceCodegenGroupLabel= new Text(serviceCodegenGroup, SWT.READ_ONLY
|SWT.WRAP);
- serviceCodegenGroupLabel.setText(JbossWSUIMessages.LABEL_WEB_SERVICE_CODEGEN);
+ }
+ });
+ new Label(runtimeTab, SWT.HORIZONTAL);
+ statusLabel = new Label(runtimeTab, SWT.BACKGROUND | SWT.READ_ONLY | SWT.CENTER |
SWT.WRAP | SWT.H_SCROLL);
+ statusLabel.setLayoutData(new GridData(GridData.GRAB_HORIZONTAL
+ | GridData.GRAB_VERTICAL | GridData.FILL_BOTH));
+
+ initializeValues();
+ jbosswsPreferenceTab.setEnabled(true);
+ jbosswsPreferenceTab.setVisible(true);
+ return mainComp;
+ }
- Composite dataBindComp = uiUtils.createComposite(serviceCodegenGroup, 2);
- //Data binding
- serviceDatabindingCombo = uiUtils.createCombo(dataBindComp,
JbossWSUIMessages.LABEL_DATABINDING, null, null, SWT.READ_ONLY);
+ public void init(IWorkbench workbench) {
+ }
- //the server side interface option
- generateServerSideInterfaceCheckBoxButton =
uiUtils.createCheckbox(serviceCodegenGroup,
JbossWSUIMessages.LABEL_GENERATE_SERVERSIDE_INTERFACE, null, null);
-
- // generate all
- generateAllCheckBoxButton = uiUtils.createCheckbox(serviceCodegenGroup,
JbossWSUIMessages.LABEL_GENERATE_ALL, null,null);
-
- uiUtils.createHorizontalSeparator(codegenGroup,2);
- ///////////////////////////////////////////////////////////////////////////////////////////
-
- ///Client Codegen Options
- Composite clientCodegenGroup = uiUtils.createComposite(codegenGroup, 1);
- Text clientCodegenGroupLabel= new Text(clientCodegenGroup, SWT.READ_ONLY);
- clientCodegenGroupLabel.setText(JbossWSUIMessages.LABEL_WEB_SERVICE_CLIENT_CODEGEN);
-
- Group clientModeRadioComp = uiUtils.createGroup(clientCodegenGroup,
JbossWSUIMessages.LABEL_CLIENT_SIDE, null, null);
-
- //client side buttons
- syncAndAsyncRadioButton = uiUtils.createRadioButton(clientModeRadioComp,
JbossWSUIMessages.LABEL_SYNC_AND_ASYNC, null, null);
- syncOnlyRadioButton =
uiUtils.createRadioButton(clientModeRadioComp,JbossWSUIMessages.LABEL_SYNC, null, null);
- asyncOnlyRadioButton = uiUtils.createRadioButton(clientModeRadioComp,
JbossWSUIMessages.LABEL_ASYNC, null, null);
-
- Composite dataBind = uiUtils.createComposite(clientCodegenGroup, 2);
- clientDatabindingCombo = uiUtils.createCombo(dataBind,
JbossWSUIMessages.LABEL_DATABINDING, null, null, SWT.READ_ONLY);
-
- // generate test case option
- clientTestCaseCheckBoxButton = uiUtils.createCheckbox(clientCodegenGroup,
JbossWSUIMessages.LABEL_GENERATE_TESTCASE_CAPTION, null, null);
-
- // generate all
- clientGenerateAllCheckBoxButton = uiUtils.createCheckbox(clientCodegenGroup,
JbossWSUIMessages.LABEL_GENERATE_ALL, null, null);
-
-
- uiUtils.createHorizontalSeparator(codegenGroup,2);
-
- ///////////////////////////////////////////////////////////////////////////////////////////
-
- ///AAR Options
- Composite aarGroup = uiUtils.createComposite(codegenGroup,1);
-
- Text arrGroupLabel= new Text(aarGroup, SWT.READ_ONLY);
- arrGroupLabel.setText(JbossWSUIMessages.LABEL_WEB_SERVICE_AAR);
-
- Composite aarExtGroup = uiUtils.createComposite(aarGroup,2);
-
- //aar extention
- aarExtensionCombo = uiUtils.createCombo(aarExtGroup,
JbossWSUIMessages.LABEL_AAR_EXTENTION, null, null, SWT.READ_ONLY );
-
- initializeValues();
- jbosswsPreferenceTab.setEnabled(true);
- jbosswsPreferenceTab.setVisible(true);
- return mainComp;
+ /**
+ * Pops up the file browse dialog box
+ */
+ private void handleBrowse(Shell parent) {
+ DirectoryDialog fileDialog = new DirectoryDialog(parent);
+ String fileName = fileDialog.open();
+ if (fileName != null) {
+ jbosswsPath.setText(fileName);
}
+ }
- public void init(IWorkbench workbench) {
- }
-
-
- /**
- * Pops up the file browse dialog box
- */
- private void handleBrowse(Shell parent) {
- DirectoryDialog fileDialog = new DirectoryDialog(parent);
- String fileName = fileDialog.open();
- if (fileName != null) {
- jbosswsPath.setText(fileName);
- }
- }
-
- private void statusUpdate(boolean status){
- if(statusLabel != null){
- if(!jbosswsPath.getText().equals("")){
- if (status) {
- statusLabel.setText(JbossWSUIMessages.LABEL_JBOSSWS_RUNTIME_LOAD);
- } else {
- statusLabel.setText(JbossWSUIMessages.LABEL_JBOSSWS_RUNTIME_LOAD_ERROR);
- }
- }else{
- statusLabel.setText(JbossWSUIMessages.LABEL_JBOSSWS_RUNTIME_NOT_EXIT);
+ private void statusUpdate(boolean status) {
+ if (statusLabel != null) {
+ if (!jbosswsPath.getText().equals("")) {
+ if (status) {
+ statusLabel
+ .setText(JbossWSUIMessages.LABEL_JBOSSWS_RUNTIME_LOAD);
+ } else {
+ statusLabel
+ .setText(JbossWSUIMessages.LABEL_JBOSSWS_RUNTIME_LOAD_ERROR);
}
+ } else {
+ statusLabel
+ .setText(JbossWSUIMessages.LABEL_JBOSSWS_RUNTIME_NOT_EXIT);
}
}
+ }
- private boolean runtimeExist(String path){
+ private boolean runtimeExist(String path) {
- File jbosswsHomeDir = new File(path);
- if (!jbosswsHomeDir.isDirectory())
- return false;
-
-// String axis2LibPath =
Axis2CoreUtils.addAnotherNodeToPath(axis2HomeDir.getAbsolutePath(), "lib");
-// String axis2WebappPath =
Axis2CoreUtils.addAnotherNodeToPath(axis2HomeDir.getAbsolutePath(), "webapp");
-// if (new File(axis2LibPath).isDirectory() && new
File(axis2WebappPath).isDirectory())
-// return true;
-// else {
-// String axis2WarPath = Axis2CoreUtils.addAnotherNodeToPath( path,
"axis2.war");
-// if (new File(axis2WarPath).isFile()) {
-// RuntimePropertyUtils.writeWarStausToPropertiesFile(true);
-// return true;
-// } else
-// return false;
-// }
+ File jbosswsHomeDir = new File(path);
+ if (!jbosswsHomeDir.isDirectory())
+ return false;
+ String[] newNode = {JbossWSUIMessages.BIN, JbossWSUIMessages.COMMOND};
+ String jbosswsBinPath = UIUtils.addNodesToPath(jbosswsHomeDir.getAbsolutePath(),
newNode);
+ if(new File(jbosswsBinPath).isFile()){
return true;
}
+ return false;
+ }
- private void storeValues(){
- IPreferenceStore store = this.getPreferenceStore();
- System.out.println(jbosswsPath.getText());
- store.setValue("jbosswsruntimelocation", jbosswsPath.getText());
-
-
-// // set values in the persistent context
-// Axis2EmitterContext context =
WebServiceAxis2CorePlugin.getDefault().getAxisEmitterContext();
-// context.setAxis2RuntimeLocation( axis2Path.getText());
-// RuntimePropertyUtils.writeServerPathToPropertiesFile(axis2Path.getText());
-// context.setServiceDatabinding(serviceDatabindingCombo.getItem(serviceDatabindingCombo.getSelectionIndex()));
-// context.setServiceInterfaceSkeleton(
generateServerSideInterfaceCheckBoxButton.getSelection());
-// context.setServiceGenerateAll(generateAllCheckBoxButton.getSelection());
-// context.setAsync(asyncOnlyRadioButton.getSelection());
-// context.setSync(syncOnlyRadioButton.getSelection());
-// context.setClientDatabinding(clientDatabindingCombo.getItem(clientDatabindingCombo.getSelectionIndex()));
-// context.setClientTestCase(clientTestCaseCheckBoxButton.getSelection());
-// context.setClientGenerateAll(clientGenerateAllCheckBoxButton.getSelection());
-// context.setAarExtention(aarExtensionCombo.getText());
- }
+ /**
+ * store the location to the preference
+ */
+ private void storeValues() {
+ IPreferenceStore store = this.getPreferenceStore();
+ System.out.println(jbosswsPath.getText());
+ store.setValue("jbosswsruntimelocation", jbosswsPath.getText());
+ }
- /**
- * Initializes states of the controls using default values
- * in the preference store.
- */
- private void initializeDefaults() {
- IPreferenceStore preferenceStore = getPreferenceStore();
- jbosswsPath.setText(preferenceStore.getDefaultString("jbosswsruntimelocation"));
-// aarExtensionCombo.select(0);
-// serviceDatabindingCombo.select(0);
-// clientDatabindingCombo.select(0);
-// generateServerSideInterfaceCheckBoxButton.setSelection(Axis2EmitterDefaults.isServiceInterfaceSkeleton());
-// generateAllCheckBoxButton.setSelection(Axis2EmitterDefaults.isServiceGenerateAll());
-// syncAndAsyncRadioButton.setSelection(((Axis2EmitterDefaults.isClientSync() ||
Axis2EmitterDefaults.isClientAsync())==false)?true:
-// (Axis2EmitterDefaults.isClientSync()) &&
Axis2EmitterDefaults.isClientAsync());
-// syncOnlyRadioButton.setSelection( Axis2EmitterDefaults.isClientSync() &&
!Axis2EmitterDefaults.isClientAsync());
-// asyncOnlyRadioButton.setSelection(
-// Axis2EmitterDefaults.isClientAsync() &&
!Axis2EmitterDefaults.isClientSync());
-//
-// clientTestCaseCheckBoxButton.setSelection(Axis2EmitterDefaults.isClientTestCase());
-// clientGenerateAllCheckBoxButton.setSelection(Axis2EmitterDefaults.isClientGenerateAll());
-// axis2Path.setText(Axis2EmitterDefaults.getAxis2RuntimeLocation());
- }
+ /**
+ * Initializes location using default values in the preference store.
+ */
+ private void initializeDefaults() {
+ IPreferenceStore preferenceStore = this.getPreferenceStore();
+ jbosswsPath.setText(preferenceStore
+ .getDefaultString("jbosswsruntimelocation"));
+ }
- private void initializeValues()
- {
- IPreferenceStore preferenceStore = getPreferenceStore();
- jbosswsPath.setText(preferenceStore.getString("jbosswsruntimelocation"));
-// Axis2EmitterContext context =
WebServiceAxis2CorePlugin.getDefault().getAxisEmitterContext();
-//
-// String[] databindingItems = {context.getServiceDatabinding().toUpperCase()};
-// serviceDatabindingCombo.setItems(databindingItems);
-// serviceDatabindingCombo.select(0);
-// clientDatabindingCombo.setItems(databindingItems);
-// clientDatabindingCombo.select(0);
-//
-// generateServerSideInterfaceCheckBoxButton.setSelection(
context.isServiceInterfaceSkeleton());
-// generateAllCheckBoxButton.setSelection(context.isServiceGenerateAll());
-//
-// syncAndAsyncRadioButton.setSelection(((context.isSync() ||
context.isAsync())==false) ?true
-// :(context.isSync()) && context.isAsync());
-// syncOnlyRadioButton.setSelection(context.isSync() && !context.isAsync() );
-// asyncOnlyRadioButton.setSelection(context.isAsync() && !context.isSync());
-//
-// clientTestCaseCheckBoxButton.setSelection(context.isClientTestCase());
-// clientGenerateAllCheckBoxButton.setSelection(context.isClientGenerateAll());
-//
-// String[] aarExtentionItems = { Axis2Constants.AAR };
-// aarExtensionCombo.setItems(aarExtentionItems);
-// aarExtensionCombo.select(0);
-//
-// String serverPath = context.getAxis2RuntimeLocation();
-// if ( serverPath != null){
-// axis2Path.setText(serverPath);
-// statusUpdate(runtimeExist(serverPath));
-// RuntimePropertyUtils.writeWarStausToPropertiesFile(false);
-// }
-// else
-// statusUpdate(false);
- }
+ /**
+ * Initializes the location using default values in the preference
+ */
+ private void initializeValues() {
+ IPreferenceStore preferenceStore = this.getPreferenceStore();
+ jbosswsPath
+ .setText(preferenceStore.getString("jbosswsruntimelocation"));
- /**
- * Default button has been pressed.
- */
- protected void performDefaults() {
- super.performDefaults();
- initializeDefaults();
- }
+ }
- /**
- * Apply button has been pressed.
- */
- protected void performApply() {
- performOk();
- }
+ /**
+ * Default button has been pressed.
+ */
+ protected void performDefaults() {
+ super.performDefaults();
+ initializeDefaults();
+ }
- /**
- * OK button has been pressed.
- */
- public boolean performOk() {
- storeValues();
- return true;
- }
+ /**
+ * Apply button has been pressed.
+ */
+ protected void performApply() {
+ performOk();
+ }
+ /**
+ * OK button has been pressed.
+ */
+ public boolean performOk() {
+ storeValues();
+ return true;
}
+
+}