List of usage examples for org.eclipse.jdt.internal.core SourceTypeElementInfo getCategories
public HashMap<IJavaElement, String[]> getCategories()
From source file:com.codenvy.ide.ext.java.server.internal.core.Member.java
License:Open Source License
public String[] getCategories() throws JavaModelException { IType type = (IType) getAncestor(IJavaElement.TYPE); if (type == null) return CharOperation.NO_STRINGS; if (type.isBinary()) { return CharOperation.NO_STRINGS; } else {//www . ja v a 2 s . co m SourceTypeElementInfo info = (SourceTypeElementInfo) ((SourceType) type).getElementInfo(); HashMap map = info.getCategories(); if (map == null) return CharOperation.NO_STRINGS; String[] categories = (String[]) map.get(this); if (categories == null) return CharOperation.NO_STRINGS; return categories; } }
From source file:org.eclipse.objectteams.otdt.internal.core.MethodMapping.java
License:Open Source License
@SuppressWarnings("rawtypes") public String[] getCategories() throws JavaModelException { IType type = (IType) getAncestor(IJavaElement.TYPE); if (type == null) return CharOperation.NO_STRINGS; if (type.isBinary()) { return CharOperation.NO_STRINGS; } else {/* w ww . j av a 2 s .com*/ SourceTypeElementInfo info = (SourceTypeElementInfo) ((SourceType) type).getElementInfo(); HashMap map = info.getCategories(); if (map == null) return CharOperation.NO_STRINGS; String[] categories = (String[]) map.get(this); if (categories == null) return CharOperation.NO_STRINGS; return categories; } }