Skip to content

Commit 6ab021d

Browse files
author
Chris
committed
LinkAnnotation update
1 parent 1eef95c commit 6ab021d

4 files changed

Lines changed: 9 additions & 26 deletions

File tree

dataTool/.classpath

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -8,23 +8,5 @@
88
</attributes>
99
</classpathentry>
1010
<classpathentry kind="src" path="src_tests"/>
11-
<classpathentry kind="var" path="ECLIPSE_HOME/plugins/org.eclipse.jdt_3.11.1.v20150904-0015.jar"/>
12-
<classpathentry kind="var" path="ECLIPSE_HOME/plugins/org.eclipse.jdt.annotation_1.1.100.v20140704-0625.jar"/>
13-
<classpathentry kind="var" path="ECLIPSE_HOME/plugins/org.eclipse.jdt.annotation_2.0.100.v20150311-1658.jar"/>
14-
<classpathentry kind="var" path="ECLIPSE_HOME/plugins/org.eclipse.jdt.apt.core_3.4.0.v20150518-1201.jar"/>
15-
<classpathentry kind="var" path="ECLIPSE_HOME/plugins/org.eclipse.jdt.apt.pluggable.core_1.1.0.v20150423-0947.jar"/>
16-
<classpathentry kind="var" path="ECLIPSE_HOME/plugins/org.eclipse.jdt.apt.ui_3.4.0.v20150423-0947.jar"/>
17-
<classpathentry kind="var" path="ECLIPSE_HOME/plugins/org.eclipse.jdt.compiler.apt_1.2.0.v20150514-0146.jar"/>
18-
<classpathentry kind="var" path="ECLIPSE_HOME/plugins/org.eclipse.jdt.compiler.tool_1.1.0.v20150513-2007.jar"/>
19-
<classpathentry kind="var" path="ECLIPSE_HOME/plugins/org.eclipse.jdt.core_3.11.1.v20150902-1521.jar"/>
20-
<classpathentry kind="var" path="ECLIPSE_HOME/plugins/org.eclipse.jdt.core.manipulation_1.5.100.v20141002-1241.jar"/>
21-
<classpathentry kind="var" path="ECLIPSE_HOME/plugins/org.eclipse.jdt.debug.ui_3.7.0.v20150505-1916.jar"/>
22-
<classpathentry kind="var" path="ECLIPSE_HOME/plugins/org.eclipse.jdt.doc.user_3.11.1.v20150819-1130.jar"/>
23-
<classpathentry kind="var" path="ECLIPSE_HOME/plugins/org.eclipse.jdt.junit_3.8.0.v20150428-1340.jar"/>
24-
<classpathentry kind="var" path="ECLIPSE_HOME/plugins/org.eclipse.jdt.junit.core_3.7.400.v20150423-0747.jar"/>
25-
<classpathentry kind="var" path="ECLIPSE_HOME/plugins/org.eclipse.jdt.junit.runtime_3.4.500.v20140527-1138.jar"/>
26-
<classpathentry kind="var" path="ECLIPSE_HOME/plugins/org.eclipse.jdt.junit4.runtime_1.1.500.v20150423-0747.jar"/>
27-
<classpathentry kind="var" path="ECLIPSE_HOME/plugins/org.eclipse.jdt.launching_3.8.0.v20150527-0946.jar"/>
28-
<classpathentry kind="var" path="ECLIPSE_HOME/plugins/org.eclipse.jdt.ui_3.11.1.v20150827-1306.jar"/>
2911
<classpathentry kind="output" path="bin"/>
3012
</classpath>

dataTool/META-INF/MANIFEST.MF

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,5 @@ Require-Bundle: org.eclipse.ui,
2626
Eclipse-LazyStart: true
2727
Import-Package: org.eclipse.jdt.internal.ui.search
2828
Export-Package: dataTool,
29+
dataTool.annotations,
2930
dataTool.ui

dataTool/src/dataTool/annotations/LinkAnnotation.java

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -123,22 +123,22 @@ public void mouseUp(MouseEvent arg0) {
123123
* Opens invocation of new method in the editor and clears navigation box links
124124
* @param i: IMethod to open
125125
*/
126-
public void openLink(IMethod i) {
126+
public static void openLink(IMethod i) {
127127
IEditorPart editor = null;
128128
try {
129129
editor = JavaUI.openInEditor(i, true, true);
130130
} catch (JavaModelException | PartInitException e) {
131131
// Auto-generated catch block
132132
e.printStackTrace();
133133
}
134-
//if(editor != null) {
135-
//String code = JDTUtils.getCUSource((AbstractTextEditor) editor);
136-
//lineSearch(code.toCharArray(), i);
137-
//goToLine(editor);
138-
//}
134+
if(editor != null) {
135+
String code = JDTUtils.getCUSource((AbstractTextEditor) editor);
136+
lineSearch(code.toCharArray(), i);
137+
goToLine(editor);
138+
}
139139
}
140140

141-
private void lineSearch(char[] source, IMethod method) {
141+
private static void lineSearch(char[] source, IMethod method) {
142142
ASTParser parser = ASTParser.newParser(AST.JLS3);
143143
parser.setSource(source);
144144
parser.setKind(ASTParser.K_COMPILATION_UNIT);

org.eclipse.jdt.ui

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
Subproject commit f3ee25a17f3ae4579ad66d54df1d88bf0e7ada96
1+
Subproject commit 9e7430d02c6f5eb51c986bd85f19126c29bb5e91

0 commit comments

Comments
 (0)