mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
Added method isExclusive to SurroundDescriptor
This commit is contained in:
+5
@@ -65,4 +65,9 @@ public class JavaExpressionSurroundDescriptor implements SurroundDescriptor {
|
||||
}
|
||||
return mySurrounders;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isExclusive() {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
+5
@@ -48,6 +48,11 @@ public class JavaStatementsSurroundDescriptor implements SurroundDescriptor {
|
||||
return SURROUNDERS;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isExclusive() {
|
||||
return false;
|
||||
}
|
||||
|
||||
@NotNull
|
||||
public PsiElement[] getElementsToSurround(PsiFile file, int startOffset, int endOffset) {
|
||||
final PsiElement[] statements = CodeInsightUtil.findStatementsInRange(file, startOffset, endOffset);
|
||||
|
||||
Reference in New Issue
Block a user