aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWojciech Sudol2014-03-11 07:43:40 (EDT)
committerPaul Webster2014-03-11 09:03:43 (EDT)
commitc4609cbec148b71c563e365779a65dc0aa3b1dd9 (patch)
treed344f2efb7c16c3b18ec9ff929b175c8d85dd024
parent892347a2827a2cc62d5f3c30121575eeee35657b (diff)
downloadeclipse.platform.ui-c4609cbec148b71c563e365779a65dc0aa3b1dd9.zip
eclipse.platform.ui-c4609cbec148b71c563e365779a65dc0aa3b1dd9.tar.gz
eclipse.platform.ui-c4609cbec148b71c563e365779a65dc0aa3b1dd9.tar.bz2
Bug 429843 - 'Open As Project' needs a better nameI20140311-1200refs/changes/88/23188/3
Change-Id: I8fc5fe67f95729f9aeea0df0a68a67a693c49aca Signed-off-by: Wojciech Sudol <wojciech.sudol@pl.ibm.com>
-rw-r--r--bundles/org.eclipse.ui.navigator.resources/src/org/eclipse/ui/internal/navigator/resources/actions/FoldersAsProjectsActionProvider.java8
-rw-r--r--bundles/org.eclipse.ui.navigator.resources/src/org/eclipse/ui/internal/navigator/resources/plugin/messages.properties6
2 files changed, 7 insertions, 7 deletions
diff --git a/bundles/org.eclipse.ui.navigator.resources/src/org/eclipse/ui/internal/navigator/resources/actions/FoldersAsProjectsActionProvider.java b/bundles/org.eclipse.ui.navigator.resources/src/org/eclipse/ui/internal/navigator/resources/actions/FoldersAsProjectsActionProvider.java
index 36f8ea9..6f74035 100644
--- a/bundles/org.eclipse.ui.navigator.resources/src/org/eclipse/ui/internal/navigator/resources/actions/FoldersAsProjectsActionProvider.java
+++ b/bundles/org.eclipse.ui.navigator.resources/src/org/eclipse/ui/internal/navigator/resources/actions/FoldersAsProjectsActionProvider.java
@@ -29,7 +29,7 @@ public class FoldersAsProjectsActionProvider extends CommonActionProvider {
public void init(ICommonActionExtensionSite aSite) {
viewer = (CommonViewer) aSite.getStructuredViewer();
}
-
+
@Override
public void fillContextMenu(IMenuManager aMenu) {
IStructuredSelection selection = (IStructuredSelection) getContext().getSelection();
@@ -45,13 +45,13 @@ public class FoldersAsProjectsActionProvider extends CommonActionProvider {
for (IProject project : folder.getWorkspace().getRoot().getProjects()) {
if (project.getLocation().equals(folder.getLocation())) {
// project already in workspace
- SelectProjectForFolderAction action = new SelectProjectForFolderAction(project, this.viewer);
+ SelectProjectForFolderAction action = new SelectProjectForFolderAction(project, this.viewer);
aMenu.appendToGroup(ICommonMenuConstants.GROUP_OPEN, action);
return;
}
}
- OpenFolderAsProjectAction action = new OpenFolderAsProjectAction(folder, this.viewer);
- aMenu.appendToGroup(ICommonMenuConstants.GROUP_BUILD, action);
+ OpenFolderAsProjectAction action = new OpenFolderAsProjectAction(folder, this.viewer);
+ aMenu.prependToGroup(ICommonMenuConstants.GROUP_PORT, action);
}
}
diff --git a/bundles/org.eclipse.ui.navigator.resources/src/org/eclipse/ui/internal/navigator/resources/plugin/messages.properties b/bundles/org.eclipse.ui.navigator.resources/src/org/eclipse/ui/internal/navigator/resources/plugin/messages.properties
index 375ac21..b4abe49 100644
--- a/bundles/org.eclipse.ui.navigator.resources/src/org/eclipse/ui/internal/navigator/resources/plugin/messages.properties
+++ b/bundles/org.eclipse.ui.navigator.resources/src/org/eclipse/ui/internal/navigator/resources/plugin/messages.properties
@@ -40,6 +40,6 @@ ProjectExplorer_toolTip3= {0}/{1}
ProjectExplorerPart_workspace=Workspace
ProjectExplorerPart_workingSetModel=Working Sets
ResourceMgmtActionProvider_logTitle=Exception in {0}. run: {1}
-OpenProjectAction_OpenExistingProject=Open As Project
-OpenProjectAction_OpenExistingProject_desc=Open this existing Project into Workspace
-SelectProjectForFolderAction_SelectProject=Go to project ''{0}'' \ No newline at end of file
+OpenProjectAction_OpenExistingProject=Impor&t as Project
+OpenProjectAction_OpenExistingProject_desc=Imports this existing Project into Workspace
+SelectProjectForFolderAction_SelectProject=&Go to project ''{0}'' \ No newline at end of file