Added method isExclusive to SurroundDescriptor

This commit is contained in:
andrey.vokin
2011-12-29 16:25:30 +04:00
parent 391ca55907
commit b22f436063
7 changed files with 41 additions and 1 deletions
@@ -65,4 +65,9 @@ public class JavaExpressionSurroundDescriptor implements SurroundDescriptor {
}
return mySurrounders;
}
@Override
public boolean isExclusive() {
return false;
}
}
@@ -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);