Skip to content

Commit 13f0294

Browse files
#30: Improve compatibility with WebStorm 2017.1
Remove usage of classes that are not available in WebStorm 2017.1
1 parent 2fe0bd0 commit 13f0294

File tree

3 files changed

+3
-277
lines changed

3 files changed

+3
-277
lines changed

build.gradle

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,9 @@ intellij {
4848
type = 'IC'
4949
updateSinceUntilBuild = false
5050
downloadSources = true
51+
plugins = ['PsiViewer:3.28.93']
52+
// localPath = '/home/kshchepanovskyi/.local/opt/WebStorm-171.3780.79/'
53+
// instrumentCode = false
5154
publish {
5255
username = project.hasProperty('jetbrainsUser') \
5356
? project.property('jetbrainsUser') \

src/main/java/io/protostuff/jetbrains/plugin/reference/file/FilePathReferenceProvider.java

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@
2828
import com.intellij.psi.PsiDirectory;
2929
import com.intellij.psi.PsiElement;
3030
import com.intellij.psi.PsiFileSystemItem;
31-
import com.intellij.psi.PsiLiteralExpression;
3231
import com.intellij.psi.PsiManager;
3332
import com.intellij.psi.PsiReference;
3433
import com.intellij.psi.PsiReferenceProvider;
@@ -171,15 +170,6 @@ public boolean value(final PsiFileSystemItem element) {
171170
@NotNull
172171
public PsiReference[] getReferencesByElement(@NotNull PsiElement element, @NotNull final ProcessingContext context) {
173172
String text = null;
174-
if (element instanceof PsiLiteralExpression) {
175-
Object value = ((PsiLiteralExpression) element).getValue();
176-
if (value instanceof String) {
177-
text = (String) value;
178-
}
179-
}
180-
//else if (element instanceof XmlAttributeValue) {
181-
// text = ((XmlAttributeValue)element).getValue();
182-
//}
183173
if (text == null) {
184174
return PsiReference.EMPTY_ARRAY;
185175
}

src/main/java/io/protostuff/jetbrains/plugin/reference/file/PackagePrefixFileSystemItemImpl.java

Lines changed: 0 additions & 267 deletions
This file was deleted.

0 commit comments

Comments
 (0)