Author: Grid.Qian
Date: 2008-05-11 05:20:35 -0400 (Sun, 11 May 2008)
New Revision: 8038
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/UIUtils.java
trunk/ws/plugins/org.jboss.tools.ws.ui/src/org/jboss/tools/ws/ui/preferences/JbossWSRuntimePreferencePage.java
Log:
JBIDE2047: modify for validating ws location
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-05-11
09:20:09 UTC (rev 8037)
+++
trunk/ws/plugins/org.jboss.tools.ws.ui/src/org/jboss/tools/ws/ui/JbossWSUIMessages.java 2008-05-11
09:20:35 UTC (rev 8038)
@@ -13,6 +13,9 @@
import org.eclipse.osgi.util.NLS;
+/**
+ * @author Grid Qian
+ */
public final class JbossWSUIMessages extends NLS {
private static final String BUNDLE_NAME =
Modified: trunk/ws/plugins/org.jboss.tools.ws.ui/src/org/jboss/tools/ws/ui/UIUtils.java
===================================================================
---
trunk/ws/plugins/org.jboss.tools.ws.ui/src/org/jboss/tools/ws/ui/UIUtils.java 2008-05-11
09:20:09 UTC (rev 8037)
+++
trunk/ws/plugins/org.jboss.tools.ws.ui/src/org/jboss/tools/ws/ui/UIUtils.java 2008-05-11
09:20:35 UTC (rev 8038)
@@ -23,7 +23,6 @@
import java.util.ArrayList;
import java.util.List;
-import org.eclipse.core.resources.ResourcesPlugin;
import org.eclipse.swt.SWT;
import org.eclipse.swt.graphics.Point;
import org.eclipse.swt.layout.GridData;
@@ -39,6 +38,9 @@
import org.eclipse.swt.widgets.Tree;
import org.eclipse.ui.PlatformUI;
+/**
+ * @author Grid Qian
+ */
public class UIUtils {
/**
* A default padding value for horizontalResize().
@@ -46,10 +48,6 @@
public final static int DEFAULT_PADDING = 35;
String infoPopid_;
-
- // verify the jbossws jar directory
- private static boolean alreadyComputedTempAxis2Directory = false;
- private static String tempJbosswsDir = null;
public UIUtils(String infoPopid) {
infoPopid_ = infoPopid;
@@ -275,40 +273,6 @@
target.setSize(referenceSize.x + padding, originalSize.y);
}
- //
- // jboss ws lib copy
-
- public static String tempAxis2Directory() {
- if (!alreadyComputedTempAxis2Directory){
- String[] nodes = {JbossWSUIMessages.DIR_DOT_METADATA,
- JbossWSUIMessages.DIR_DOT_PLUGINS,
- JbossWSUIMessages.TEMP_JBOSSWS_FACET_DIR};
- tempJbosswsDir =addNodesToPath(
- ResourcesPlugin.getWorkspace().getRoot().getLocation().toOSString(), nodes);
- alreadyComputedTempAxis2Directory= true;
- }
- return tempJbosswsDir;
- }
-
- public static String tempAxis2WebappFileLocation() {
- return
- addAnotherNodeToPath(tempAxis2Directory(),
- JbossWSUIMessages.WEBAPP_EXPLODED_SERVER_LOCATION_FILE);
- }
-
-
- public static String tempRuntimeStatusFileLocation() {
- return
- addAnotherNodeToPath(tempAxis2Directory(),
- JbossWSUIMessages.SERVER_STATUS_LOCATION_FILE);
- }
-
- public static String tempWarStatusFileLocation() {
- return
- addAnotherNodeToPath(tempAxis2Directory(),
- JbossWSUIMessages.WAR_STATUS_LOCATION_FILE);
- }
-
public static void writePropertyToFile(File file,String key, String value) throws
IOException {
Writer out = new BufferedWriter(new OutputStreamWriter(
new FileOutputStream(file), "8859_1"));
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-05-11
09:20:09 UTC (rev 8037)
+++
trunk/ws/plugins/org.jboss.tools.ws.ui/src/org/jboss/tools/ws/ui/preferences/JbossWSRuntimePreferencePage.java 2008-05-11
09:20:35 UTC (rev 8038)
@@ -38,6 +38,9 @@
import org.jboss.tools.ws.ui.JbossWSUIPlugin;
import org.jboss.tools.ws.ui.UIUtils;
+/**
+ * @author Grid Qian
+ */
public class JbossWSRuntimePreferencePage extends PreferencePage implements
IWorkbenchPreferencePage {
Show replies by date