} else if (granularity == StructureViewProperties.Granularity.TYPE
&& (kind == IProgramElement.Kind.PROJECT
|| kind == IProgramElement.Kind.PACKAGE
- || kind.isSourceFileKind()
- || kind.isTypeKind())) {
+ || kind.isSourceFile()
+ || kind.isType())) {
return true;
} else if (granularity == StructureViewProperties.Granularity.FILE
&& (kind == IProgramElement.Kind.PROJECT
|| kind == IProgramElement.Kind.PACKAGE
- || kind.isSourceFileKind())) {
+ || kind.isSourceFile())) {
return true;
} else if (granularity == StructureViewProperties.Granularity.PACKAGE
&& (kind == IProgramElement.Kind.PROJECT
IProgramElement pNode = (IProgramElement)node;
if (!acceptGranularity(pNode.getKind(), properties.getGranularity())) {
return false;
- } else if (pNode.getKind().isMemberKind()) {
+ } else if (pNode.getKind().isMember()) {
if (properties.getFilteredMemberAccessibility().contains(pNode.getAccessibility())) {
return false;
}
IProgramElement.Kind[] kinds = IProgramElement.Kind.ALL;
for (int i = 0; i < kinds.length; i++) {
- if (kinds[i].isMemberKind()) {
+ if (kinds[i].isMember()) {
CheckBoxSelectionMenuButton menuItem = new CheckBoxSelectionMenuButton(kinds[i]);
menuItem.setIcon((Icon)AjdeUIManager.getDefault().getIconRegistry().getIcon(kinds[i]).getIconResource());
filterMenu.add(menuItem);
return list;
}
- public boolean isMemberKind() {
+ public boolean isMember() {
return this == FIELD
|| this == METHOD
|| this == CONSTRUCTOR
|| this == ADVICE;
}
- public boolean isInterTypeMemberKind() {
+ public boolean isInterTypeMember() {
return this == INTER_TYPE_CONSTRUCTOR
|| this == INTER_TYPE_FIELD
|| this == INTER_TYPE_METHOD;
}
- public boolean isTypeKind() {
+ public boolean isType() {
return this == CLASS
|| this == INTERFACE
|| this == ASPECT;
}
- public boolean isSourceFileKind() {
+ public boolean isSourceFile() {
return this == FILE_ASPECTJ
|| this == FILE_JAVA;
}
- public boolean isDeclareKind() {
+ public boolean isDeclare() {
return name.startsWith("declare");
}
&& node.getSourceLocation().getEndLine() >= lineNumber)
||
(lineNumber <= 1
- && node.getKind().isSourceFileKind())
+ && node.getKind().isSourceFile())
);
// } catch (IOException ioe) {
// return false;
}
public boolean isMemberKind() {
- return kind.isMemberKind();
+ return kind.isMember();
}
public void setRunnable(boolean value) {
String label;
if (kind == Kind.CODE || kind == Kind.INITIALIZER) {
label = parent.getParent().getName() + ": ";
- } else if (kind.isInterTypeMemberKind()) {
+ } else if (kind.isInterTypeMember()) {
int dotIndex = name.indexOf('.');
if (dotIndex != -1) {
return parent.getName() + ": " + toLabelString().substring(dotIndex+1);