Skip to main content
summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorSergey Prigogin2011-06-29 23:51:31 -0400
committerSergey Prigogin2011-06-29 23:51:31 -0400
commit1e2e41d3029d8f5f8901ff123694d320c893f720 (patch)
treea87fcceb9b8d3e5644ebf389ee898a032c72fe39 /core
parent5854ece2d45bb9698b75071c78f0a1fe55c628ca (diff)
downloadorg.eclipse.cdt-1e2e41d3029d8f5f8901ff123694d320c893f720.tar.gz
org.eclipse.cdt-1e2e41d3029d8f5f8901ff123694d320c893f720.tar.xz
org.eclipse.cdt-1e2e41d3029d8f5f8901ff123694d320c893f720.zip
Cosmetics.
Diffstat (limited to 'core')
-rw-r--r--core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/callhierarchy/CallHierarchyUI.java36
1 files changed, 18 insertions, 18 deletions
diff --git a/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/callhierarchy/CallHierarchyUI.java b/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/callhierarchy/CallHierarchyUI.java
index 643cbe5125..e7d3543456 100644
--- a/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/callhierarchy/CallHierarchyUI.java
+++ b/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/callhierarchy/CallHierarchyUI.java
@@ -7,7 +7,7 @@
*
* Contributors:
* Markus Schorn - initial API and implementation
- *******************************************************************************/
+ *******************************************************************************/
package org.eclipse.cdt.internal.ui.callhierarchy;
import org.eclipse.core.runtime.CoreException;
@@ -54,7 +54,7 @@ public class CallHierarchyUI {
public static void setIsJUnitTest(boolean val) {
sIsJUnitTest= val;
}
-
+
public static void open(final IWorkbenchWindow window, final ICElement input) {
if (input != null) {
final Display display= Display.getCurrent();
@@ -68,7 +68,7 @@ public class CallHierarchyUI {
public void run() {
internalOpen(window, elems);
}});
- }
+ }
return Status.OK_STATUS;
}
};
@@ -84,9 +84,9 @@ public class CallHierarchyUI {
result.setInput(input);
return result;
} catch (CoreException e) {
- ExceptionHandler.handle(e, window.getShell(), CHMessages.OpenCallHierarchyAction_label, null);
+ ExceptionHandler.handle(e, window.getShell(), CHMessages.OpenCallHierarchyAction_label, null);
}
- return null;
+ return null;
}
private static CHViewPart internalOpen(IWorkbenchWindow window, ICElement[] input) {
@@ -108,7 +108,7 @@ public class CallHierarchyUI {
}
if (elem != null) {
return internalOpen(window, elem);
- }
+ }
return null;
}
@@ -132,7 +132,7 @@ public class CallHierarchyUI {
internalOpen(editor.getSite().getWorkbenchWindow(), elems);
}});
} else {
- StatusLineHandler.showStatusLineMessage(editor.getSite(),
+ StatusLineHandler.showStatusLineMessage(editor.getSite(),
CHMessages.CallHierarchyUI_openFailureMessage);
}
return Status.OK_STATUS;
@@ -146,8 +146,8 @@ public class CallHierarchyUI {
}
}
}
-
- private static ICElement[] findDefinitions(ICProject project, IEditorInput editorInput, ITextSelection sel)
+
+ private static ICElement[] findDefinitions(ICProject project, IEditorInput editorInput, ITextSelection sel)
throws CoreException {
try {
IIndex index= CCorePlugin.getIndexManager().getIndex(project,
@@ -162,28 +162,28 @@ public class CallHierarchyUI {
if (name.isDefinition()) {
ICElement elem= IndexUI.getCElementForName(project, index, name);
if (elem != null) {
- return new ICElement[]{elem};
+ return new ICElement[] { elem };
}
return NO_ELEMENTS;
- }
-
+ }
+
ICElement[] elems= IndexUI.findAllDefinitions(index, binding);
- if (elems.length != 0)
+ if (elems.length != 0)
return elems;
-
+
if (name.isDeclaration()) {
ICElementHandle elem= IndexUI.getCElementForName(project, index, name);
if (elem != null) {
- return new ICElement[] {elem};
+ return new ICElement[] { elem };
}
return NO_ELEMENTS;
}
ICElementHandle elem= IndexUI.findAnyDeclaration(index, project, binding);
if (elem != null) {
- return new ICElement[]{elem};
+ return new ICElement[] { elem };
}
-
+
if (binding instanceof ICPPSpecialization) {
return findSpecializationDeclaration(binding, project, index);
}
@@ -209,7 +209,7 @@ public class CallHierarchyUI {
if (elems.length == 0) {
ICElementHandle elem= IndexUI.findAnyDeclaration(index, project, original);
if (elem != null) {
- elems= new ICElementHandle[]{elem};
+ elems= new ICElementHandle[] { elem };
}
}
if (elems.length > 0) {

Back to the top