From a4a1d318362b4097879a2ea2062cb3b72f55767f Mon Sep 17 00:00:00 2001 From: Emiya Date: Mon, 19 Dec 2016 17:53:53 +0300 Subject: [PATCH] Build for IntelliJ IDEA IU-162.2032.8 --- .idea/misc.xml | 5 +- .idea/vcs.xml | 5 +- .idea/workspace.xml | 1082 +++++++++++------ javacc.iml | 3 +- .../JavaCCStructureViewBuilderFactory.java | 9 +- 5 files changed, 706 insertions(+), 398 deletions(-) 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 + - - + + + + + + + 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 @@ + + - - - - + + + + - - + + - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -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 + + + + + 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)); } }; }