geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hanhongf...@apache.org
Subject svn commit: r1102598 - /geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.v30.ui/src/main/java/org/apache/geronimo/st/v30/ui/internal/GeronimoRuntimeWizardFragment.java
Date Fri, 13 May 2011 08:18:22 GMT
Author: hanhongfang
Date: Fri May 13 08:18:22 2011
New Revision: 1102598

URL: http://svn.apache.org/viewvc?rev=1102598&view=rev
Log:
Add one missing file for GERONIMODEVTOOLS-742 NL supports, Thanks Yi Xiao for the patch.

Modified:
    geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.v30.ui/src/main/java/org/apache/geronimo/st/v30/ui/internal/GeronimoRuntimeWizardFragment.java

Modified: geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.v30.ui/src/main/java/org/apache/geronimo/st/v30/ui/internal/GeronimoRuntimeWizardFragment.java
URL: http://svn.apache.org/viewvc/geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.v30.ui/src/main/java/org/apache/geronimo/st/v30/ui/internal/GeronimoRuntimeWizardFragment.java?rev=1102598&r1=1102597&r2=1102598&view=diff
==============================================================================
--- geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.v30.ui/src/main/java/org/apache/geronimo/st/v30/ui/internal/GeronimoRuntimeWizardFragment.java
(original)
+++ geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.v30.ui/src/main/java/org/apache/geronimo/st/v30/ui/internal/GeronimoRuntimeWizardFragment.java
Fri May 13 08:18:22 2011
@@ -31,6 +31,7 @@ import java.util.regex.Pattern;
 
 import org.apache.geronimo.st.v30.core.GeronimoRuntimeDelegate;
 import org.apache.geronimo.st.v30.ui.Activator;
+import org.apache.geronimo.st.v30.ui.CommonMessages;
 import org.eclipse.core.resources.IWorkspaceRoot;
 import org.eclipse.core.resources.ResourcesPlugin;
 import org.eclipse.core.runtime.CoreException;
@@ -198,8 +199,8 @@ public class GeronimoRuntimeWizardFragme
                     int style = IWorkbenchBrowserSupport.AS_EXTERNAL
                             | IWorkbenchBrowserSupport.STATUS;
                     IWebBrowser browser = WorkbenchBrowserSupport.getInstance()
-                            .createBrowser(style, "download server",
-                                    "get server", "tool tip");
+                            .createBrowser(style, Messages.downloadServer,
+                                    Messages.getServer, Messages.tooltip);
                     browser.openURL(new URL(url));
                 } catch (MalformedURLException e) {
                     e.printStackTrace();
@@ -480,7 +481,7 @@ public class GeronimoRuntimeWizardFragme
     private ITargetHandle findGeronimoTargetDefinition(ITargetPlatformService service) throws
CoreException {
         ITargetHandle[] targetHandles = service.getTargets(null);
         for (ITargetHandle cur : targetHandles) {
-            if (cur.getTargetDefinition().getName().equals("Apache Geronimo 3.0")) {
+            if (cur.getTargetDefinition().getName().equals(Messages.serverVersion)) {
                 return cur;
             }
         }
@@ -520,7 +521,7 @@ public class GeronimoRuntimeWizardFragme
                 }
             }
         } catch (IOException ex) {
-            throw new CoreException(new Status(IStatus.WARNING, Activator.PLUGIN_ID, "Copy
target file failed.", ex));
+            throw new CoreException(new Status(IStatus.WARNING, Activator.PLUGIN_ID, Messages.copyTargetFileFailed,
ex));
         }
     }
     



Mime
View raw message