Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'bundles/org.eclipse.team.ui/src/org/eclipse/team/internal/ui/synchronize/actions/OpenWithActionGroup.java')
-rw-r--r--bundles/org.eclipse.team.ui/src/org/eclipse/team/internal/ui/synchronize/actions/OpenWithActionGroup.java22
1 files changed, 11 insertions, 11 deletions
diff --git a/bundles/org.eclipse.team.ui/src/org/eclipse/team/internal/ui/synchronize/actions/OpenWithActionGroup.java b/bundles/org.eclipse.team.ui/src/org/eclipse/team/internal/ui/synchronize/actions/OpenWithActionGroup.java
index 9708c6d71..fba0cd937 100644
--- a/bundles/org.eclipse.team.ui/src/org/eclipse/team/internal/ui/synchronize/actions/OpenWithActionGroup.java
+++ b/bundles/org.eclipse.team.ui/src/org/eclipse/team/internal/ui/synchronize/actions/OpenWithActionGroup.java
@@ -89,11 +89,11 @@ public class OpenWithActionGroup extends ActionGroup {
*/
private void fillOpenWithMenu(IMenuManager menu, String groupId, IStructuredSelection selection) {
- // Only supported if at least one file is selected.
- if (selection == null || selection.size() < 1)
- return;
- Object[] elements = selection.toArray();
- IResource resources[] = Utils.getResources(elements);
+ // Only supported if at least one file is selected.
+ if (selection == null || selection.size() < 1)
+ return;
+ Object[] elements = selection.toArray();
+ IResource resources[] = Utils.getResources(elements);
if (resources.length == 0) {
if (openInCompareAction != null) {
// We can still show the compare editor open if the element has
@@ -118,12 +118,12 @@ public class OpenWithActionGroup extends ActionGroup {
return;
}
- if (elements.length != resources.length){
- // Only supported if all the items are resources.
- return;
- }
+ if (elements.length != resources.length){
+ // Only supported if all the items are resources.
+ return;
+ }
- boolean allFiles = true;
+ boolean allFiles = true;
for (int i = 0; i < resources.length; i++) {
if (resources[i].getType() != IResource.FILE) {
// Open actions are only supported if all the items are files.
@@ -173,7 +173,7 @@ public class OpenWithActionGroup extends ActionGroup {
showInSubmenu.add(showInMenu);
menu.appendToGroup(groupId, showInSubmenu);
}
- }
+ }
/**
* {@link SaveablesCompareEditorInput#getShowInMenuLabel}

Back to the top