new types and modifiers ( for ActionScript rearranger)

This commit is contained in:
Alexander Doroshko
2012-10-09 14:18:17 +04:00
parent f7fa79e9e2
commit b450cc58f9
3 changed files with 7 additions and 3 deletions
@@ -130,7 +130,7 @@ public class ArrangementUtil {
* @param document target document against which the ranges are built
* @return expanded range if possible; <code>null</code> otherwise
*/
@Nullable
@NotNull
public static TextRange expandToLine(@NotNull TextRange initialRange, @NotNull Document document) {
int startLine = document.getLineNumber(initialRange.getStartOffset());
int startOffsetToUse = document.getLineStartOffset(startLine);
@@ -27,5 +27,7 @@ import com.intellij.psi.codeStyle.arrangement.ArrangementEntry;
*/
public enum ArrangementEntryType {
CLASS, FIELD, CONSTRUCTOR, METHOD, ENUM, INTERFACE
CLASS, FIELD, CONSTRUCTOR, METHOD, ENUM, INTERFACE,
CONST, VAR, PROPERTY, EVENT_HANDLER, STATIC_INIT
}
@@ -25,5 +25,7 @@ public enum ArrangementModifier {
PUBLIC, PROTECTED, PRIVATE, PACKAGE_PRIVATE,
//endregion
STATIC, FINAL, TRANSIENT, VOLATILE, SYNCHRONIZED, ABSTRACT
STATIC, FINAL, TRANSIENT, VOLATILE, SYNCHRONIZED, ABSTRACT,
OVERRIDE // e.g. ActionScript keyword
}