本文整理匯總了Java中com.intellij.diagram.DiagramCategory類的典型用法代碼示例。如果您正苦於以下問題:Java DiagramCategory類的具體用法?Java DiagramCategory怎麽用?Java DiagramCategory使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。
DiagramCategory類屬於com.intellij.diagram包,在下文中一共展示了DiagramCategory類的8個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: getDependencyInfo
import com.intellij.diagram.DiagramCategory; //導入依賴的package包/類
@Nullable
@Override
public DiagramRelationshipInfo getDependencyInfo(PsiNamedElement e1,
PsiNamedElement e2,
DiagramCategory diagramCategory) {
if (e1 instanceof SchemaTypeDef && e2 instanceof SchemaTypeDef) {
SchemaTypeDef td1 = (SchemaTypeDef) e1;
SchemaTypeDef td2 = (SchemaTypeDef) e2;
if (td2.extendsParents().contains(e1)) return EXTENDS;
SchemaMetaDecl metaDecl = td1.getMetaDecl();
if (metaDecl != null) {
SchemaQnTypeRef typeRef = metaDecl.getQnTypeRef();
if (typeRef != null) {
SchemaTypeDef typeDef = typeRef.resolve();
if (e2.equals(typeDef)) return META;
}
}
}
return null;
}
示例2: isInCategory
import com.intellij.diagram.DiagramCategory; //導入依賴的package包/類
@Override
public boolean isInCategory(
final Object o,
final DiagramCategory diagramCategory,
final DiagramState diagramState
) {
return false;
}
開發者ID:AlexanderBartash,項目名稱:hybris-integration-intellij-idea-plugin,代碼行數:9,代碼來源:ModuleDepDiagramNodeContentManager.java
示例3: isInCategory
import com.intellij.diagram.DiagramCategory; //導入依賴的package包/類
@SuppressWarnings("RedundantIfStatement")
@Override
public boolean isInCategory(Object o, DiagramCategory category, DiagramState diagramState) {
if (o instanceof SchemaEntityTagDecl && category == TAGS) return true;
if (o instanceof SchemaFieldDecl && category == FIELDS) return true;
if (o instanceof SchemaAnnotation && category == ANNOTATIONS) return true;
if (o instanceof SchemaEnumMemberDecl && category == ENUM_MEMBERS) return true;
return false;
}
示例4: isAllowedToShow
import com.intellij.diagram.DiagramCategory; //導入依賴的package包/類
private boolean isAllowedToShow(PsiElement psiElement) {
if (psiElement != null && psiElement.isValid()) {
for (DiagramCategory enabledCategory : getBuilder().getPresentation().getEnabledCategories()) {
if (getBuilder().getProvider().getNodeContentManager().isInCategory(psiElement, enabledCategory, getBuilder()
.getPresentation())) {
return true;
}
}
}
return false;
}
示例5: getContentCategories
import com.intellij.diagram.DiagramCategory; //導入依賴的package包/類
@Override
public DiagramCategory[] getContentCategories() {
return DiagramCategory.EMPTY_ARRAY;
}
開發者ID:AlexanderBartash,項目名稱:hybris-integration-intellij-idea-plugin,代碼行數:5,代碼來源:ModuleDepDiagramNodeContentManager.java
示例6: getContentCategories
import com.intellij.diagram.DiagramCategory; //導入依賴的package包/類
@Override
public DiagramCategory[] getContentCategories() { return CATEGORIES; }
示例7: getContentCategories
import com.intellij.diagram.DiagramCategory; //導入依賴的package包/類
@Override
public DiagramCategory[] getContentCategories() {
return SchemaDiagramNodeContentManager.CATEGORIES;
}
示例8: getContentCategories
import com.intellij.diagram.DiagramCategory; //導入依賴的package包/類
public DiagramCategory[] getContentCategories() {
return CATEGORIES;
}