Lines 87-92
Link Here
|
87 |
import com.sun.tools.javac.util.Context; |
87 |
import com.sun.tools.javac.util.Context; |
88 |
|
88 |
|
89 |
import javax.swing.SwingUtilities; |
89 |
import javax.swing.SwingUtilities; |
|
|
90 |
import javax.tools.Diagnostic; |
90 |
|
91 |
|
91 |
import org.netbeans.api.annotations.common.CheckForNull; |
92 |
import org.netbeans.api.annotations.common.CheckForNull; |
92 |
import org.netbeans.api.annotations.common.NonNull; |
93 |
import org.netbeans.api.annotations.common.NonNull; |
Lines 103-109
Link Here
|
103 |
import org.netbeans.api.java.source.matching.Pattern; |
104 |
import org.netbeans.api.java.source.matching.Pattern; |
104 |
import org.netbeans.api.lexer.TokenHierarchy; |
105 |
import org.netbeans.api.lexer.TokenHierarchy; |
105 |
import org.netbeans.api.lexer.TokenSequence; |
106 |
import org.netbeans.api.lexer.TokenSequence; |
106 |
import org.netbeans.api.project.FileOwnerQuery; |
|
|
107 |
import org.netbeans.modules.java.preprocessorbridge.spi.ImportProcessor; |
107 |
import org.netbeans.modules.java.preprocessorbridge.spi.ImportProcessor; |
108 |
import org.netbeans.modules.java.source.ElementHandleAccessor; |
108 |
import org.netbeans.modules.java.source.ElementHandleAccessor; |
109 |
import org.netbeans.modules.java.source.JavadocHelper; |
109 |
import org.netbeans.modules.java.source.JavadocHelper; |
Lines 111-116
Link Here
|
111 |
import org.netbeans.modules.java.source.indexing.JavaCustomIndexer; |
111 |
import org.netbeans.modules.java.source.indexing.JavaCustomIndexer; |
112 |
import org.netbeans.modules.java.source.parsing.ClasspathInfoProvider; |
112 |
import org.netbeans.modules.java.source.parsing.ClasspathInfoProvider; |
113 |
import org.netbeans.modules.java.source.parsing.FileObjects; |
113 |
import org.netbeans.modules.java.source.parsing.FileObjects; |
|
|
114 |
import org.netbeans.modules.java.source.parsing.Hacks; |
114 |
import org.netbeans.modules.java.source.parsing.JavacParser; |
115 |
import org.netbeans.modules.java.source.parsing.JavacParser; |
115 |
import org.netbeans.modules.java.source.save.DiffContext; |
116 |
import org.netbeans.modules.java.source.save.DiffContext; |
116 |
import org.netbeans.modules.java.source.usages.ClassIndexImpl; |
117 |
import org.netbeans.modules.java.source.usages.ClassIndexImpl; |
Lines 1149-1154
Link Here
|
1149 |
return null; |
1150 |
return null; |
1150 |
} |
1151 |
} |
1151 |
} |
1152 |
} |
|
|
1153 |
|
1154 |
/** |
1155 |
* Extracts diagnostic params from a diagnostic. Gets under hood of Javac |
1156 |
* Diagnostic objects and extracts parameters which are otherwise just used |
1157 |
* to produce a message. <b>Keep in mind that the positions and types of parameters |
1158 |
* may change in each nbjavac update!</b> |
1159 |
* @param d diagnostic |
1160 |
* @param index parameter index to extract |
1161 |
* @return parameter value, null if index is out of range |
1162 |
* @since 2.16 |
1163 |
*/ |
1164 |
public static Object getDiagnosticParam(Diagnostic<?> d, int index) { |
1165 |
return Hacks.getDiagnosticParam(d, index); |
1166 |
} |
1152 |
|
1167 |
|
1153 |
/** |
1168 |
/** |
1154 |
* Returns all elements of the given scope that are declared after given position in a source. |
1169 |
* Returns all elements of the given scope that are declared after given position in a source. |