[jbosstools-commits] JBoss Tools SVN: r23897 - trunk/as/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/ide/eclipse/as/ui/actions.
jbosstools-commits at lists.jboss.org
jbosstools-commits at lists.jboss.org
Tue Aug 3 17:57:53 EDT 2010
Author: snjeza
Date: 2010-08-03 17:57:53 -0400 (Tue, 03 Aug 2010)
New Revision: 23897
Modified:
trunk/as/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/ide/eclipse/as/ui/actions/ExploreUtils.java
Log:
https://jira.jboss.org/browse/JBIDE-6330 The Explore command in the Servers view doesn't work on Mac
Modified: trunk/as/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/ide/eclipse/as/ui/actions/ExploreUtils.java
===================================================================
--- trunk/as/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/ide/eclipse/as/ui/actions/ExploreUtils.java 2010-08-03 21:33:17 UTC (rev 23896)
+++ trunk/as/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/ide/eclipse/as/ui/actions/ExploreUtils.java 2010-08-03 21:57:53 UTC (rev 23897)
@@ -55,12 +55,9 @@
return exploreFileCommand;
}
- @SuppressWarnings("nls")
private static void setExploreCommands() {
if (Platform.OS_MACOSX.equals(Platform.getOS())) {
- exploreFolderCommand = "/usr/bin/open -a /System/Library/CoreServices/Finder.app \"" //$NON-NLS-1$
- + PATH + "\""; //$NON-NLS-1$
- exploreFileCommand = exploreFolderCommand;
+ exploreFolderCommandArray = new String[] {"/usr/bin/open", "-a", "/System/Library/CoreServices/Finder.app", ""}; //$NON-NLS-1$ //$NON-NLS-2$//$NON-NLS-3$//$NON-NLS-4$
} else if (Platform.OS_WIN32.equals(Platform.getOS())) {
exploreFolderCommand = "cmd /C start explorer /root,/e,\"" //$NON-NLS-1$
+ PATH + "\""; //$NON-NLS-1$
@@ -120,7 +117,7 @@
}
try {
- if (Platform.OS_LINUX.equals(Platform.getOS())) {
+ if (Platform.OS_LINUX.equals(Platform.getOS()) || Platform.OS_MACOSX.equals(Platform.getOS())) {
int len = exploreFolderCommandArray.length;
exploreFolderCommandArray[len-1] = name;
Runtime.getRuntime().exec(exploreFolderCommandArray);
@@ -141,7 +138,6 @@
}
}
- @SuppressWarnings("nls")
public static IPath getDeployPath(IDeployableServer server,IModule[] moduleTree) {
IPath root = new Path( server.getDeployFolder() );
String type, name;
More information about the jbosstools-commits
mailing list