diff --git a/.idea/misc.xml b/.idea/misc.xml
index a4a510d..9f1b112 100755
--- a/.idea/misc.xml
+++ b/.idea/misc.xml
@@ -29,11 +29,10 @@
http://www.w3.org/1999/xhtml
-
+
-
-
+
\ No newline at end of file
diff --git a/.idea/vcs.xml b/.idea/vcs.xml
index def6a6a..94a25f7 100644
--- a/.idea/vcs.xml
+++ b/.idea/vcs.xml
@@ -1,7 +1,6 @@
-
+
-
-
+
\ No newline at end of file
diff --git a/.idea/workspace.xml b/.idea/workspace.xml
index 48ebaa3..fbb82e1 100755
--- a/.idea/workspace.xml
+++ b/.idea/workspace.xml
@@ -6,22 +6,23 @@
-
+
+
+
+
+
+
-
-
-
-
@@ -191,93 +192,22 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
-
-
+
+
-
-
+
+
-
-
+
+
@@ -290,38 +220,27 @@
+
+
+
+
+
+
-
+
+
+
+ true
+ DEFINITION_ORDER
+
@@ -337,17 +256,34 @@
-
-
-
-
+
+
+
+
-
+
+
+
+
+
+
+ Java
+
+
+ Probable bugsJava
+
+
+
+
+ MagicConstant
+
+
+
-
+
@@ -371,9 +307,13 @@
+
+
+
+
@@ -389,7 +329,7 @@
-
+
@@ -399,15 +339,15 @@
-
+
-
+
-
+
@@ -417,26 +357,77 @@
-
+
+
+
+
+
-
+
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
+
@@ -452,10 +443,14 @@
-
-
+
+
+
+
+
+
@@ -472,6 +467,7 @@
+
@@ -500,6 +496,7 @@
+
@@ -527,10 +524,327 @@
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+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+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -809,9 +1106,6 @@
-
-
-
@@ -821,7 +1115,7 @@
jar://$APPLICATION_HOME_DIR$/lib/openapi.jar!/com/intellij/lang/PsiBuilder.class
36
-
+
@@ -869,373 +1163,381 @@
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
-
-
-
-
-
-
-
+
-
+
-
+
-
-
+
+
-
+
-
-
+
+
-
+
-
-
+
+
-
+
-
-
+
+
-
+
-
-
+
+
-
+
-
-
+
+
-
+
-
-
+
+
+
-
+
-
-
+
+
-
+
-
-
+
+
-
+
+
-
-
+
+
-
+
-
-
+
+
-
+
-
-
+
+
-
+
-
-
+
+
-
+
-
-
+
+
+
+
+
-
+
-
-
-
+
+
-
+
-
-
+
+
+
+
+
+
+
+
+
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
+
+
-
+
-
-
-
+
+
-
+
-
-
+
+
-
+
-
-
+
+
-
+
-
-
-
+
+
-
+
-
-
+
+
-
+
-
-
+
+
-
+
-
-
+
+
-
+
-
-
+
+
-
+
-
-
+
+
-
+
-
-
-
+
+
-
-
-
+
+
+
+
+
-
-
-
+
+
+
+
+
+
-
-
-
+
+
+
+
+
+
+
+
+
+
-
+
-
-
+
+
-
+
-
-
+
+
-
+
-
-
+
+
@@ -1286,7 +1588,7 @@
- 1.7
+ IDEA jdk
@@ -1303,7 +1605,18 @@
-
+
+
+
+
+
+
+
+ IntelliJ IDEA IU-162.2032.8
+
+
+
+
@@ -1327,5 +1640,4 @@
-
-
+
\ No newline at end of file
diff --git a/javacc.iml b/javacc.iml
index 90921b2..2e7cc06 100755
--- a/javacc.iml
+++ b/javacc.iml
@@ -11,5 +11,4 @@
-
-
+
\ No newline at end of file
diff --git a/src/org/gark87/idea/javacc/JavaCCStructureViewBuilderFactory.java b/src/org/gark87/idea/javacc/JavaCCStructureViewBuilderFactory.java
index df3eb9b..ad7f75d 100644
--- a/src/org/gark87/idea/javacc/JavaCCStructureViewBuilderFactory.java
+++ b/src/org/gark87/idea/javacc/JavaCCStructureViewBuilderFactory.java
@@ -3,18 +3,17 @@
import com.intellij.ide.structureView.*;
import com.intellij.ide.structureView.impl.common.PsiTreeElementBase;
import com.intellij.lang.PsiStructureViewFactory;
-import com.intellij.openapi.util.IconLoader;
+import com.intellij.openapi.editor.Editor;
import com.intellij.openapi.util.Key;
import com.intellij.psi.PsiElement;
import com.intellij.psi.PsiFile;
import com.intellij.psi.ResolveState;
import com.intellij.psi.scope.PsiScopeProcessor;
-import com.intellij.psi.util.PsiTreeUtil;
import org.gark87.idea.javacc.psi.DeclarationForStructureView;
import org.gark87.idea.javacc.psi.Identifier;
import org.gark87.idea.javacc.psi.JavaCCFileImpl;
-import org.gark87.idea.javacc.psi.reference.JavaCCScopeProcessor;
import org.jetbrains.annotations.NotNull;
+import org.jetbrains.annotations.Nullable;
import javax.swing.*;
import java.util.ArrayList;
@@ -39,8 +38,8 @@ public boolean isRootNodeShown() {
@NotNull
@Override
- public StructureViewModel createStructureViewModel() {
- return new StructureViewModelBase(file, new JavaCCFileTreeElement(file));
+ public StructureViewModel createStructureViewModel(@Nullable Editor editor) {
+ return new StructureViewModelBase(file, editor, new JavaCCFileTreeElement(file));
}
};
}