/** * @see IJavaElement */ public boolean exists() { try { getElementInfo(); return true; } catch (JavaModelException e) { // element doesn't exist: return false } return false; }
/** * Returns the info for this handle. * If this element is not already open, it and all of its parents are opened. * Does not return null. * NOTE: BinaryType infos are NOT rooted under JavaElementInfo. * @exception JavaModelException if the element is not present or not accessible */ public Object getElementInfo() throws JavaModelException { return getElementInfo(null); } /**
/** * Returns the info for this handle. * If this element is not already open, it and all of its parents are opened. * Does not return null. * NOTE: BinaryType infos are NOT rooted under JavaElementInfo. * @exception JavaModelException if the element is not present or not accessible */ public Object getElementInfo() throws JavaModelException { return getElementInfo(null); } /**
/** * @see IJavaElement */ public boolean exists() { try { getElementInfo(); return true; } catch (JavaModelException e) { // element doesn't exist: return false } return false; }
/** * @see IJavaElement */ public boolean exists() { try { getElementInfo(); return true; } catch (JavaModelException e) { // element doesn't exist: return false } return false; }
/** * Returns the info for this handle. * If this element is not already open, it and all of its parents are opened. * Does not return null. * NOTE: BinaryType infos are NOT rooted under JavaElementInfo. * @exception JavaModelException if the element is not present or not accessible */ public Object getElementInfo() throws JavaModelException { return getElementInfo(null); } /**
/** * @see IJavaElement */ public boolean exists() { try { getElementInfo(); return true; } catch (JavaModelException e) { // element doesn't exist: return false } return false; }
/** * Returns the info for this handle. * If this element is not already open, it and all of its parents are opened. * Does not return null. * NOTE: BinaryType infos are NOT rooted under JavaElementInfo. * @exception JavaModelException if the element is not present or not accessible */ public Object getElementInfo() throws JavaModelException { return getElementInfo(null); } /**
/** * Returns the info for this handle. * If this element is not already open, it and all of its parents are opened. * Does not return null. * NOTE: BinaryType infos are NOT rooted under JavaElementInfo. * @exception JavaModelException if the element is not present or not accessible */ public Object getElementInfo() throws JavaModelException { return getElementInfo(null); } /**
/** * @see IJavaElement */ public boolean exists() { try { getElementInfo(); return true; } catch (JavaModelException e) { // element doesn't exist: return false } return false; }
/** * @see IParent */ public IJavaElement[] getChildren() throws JavaModelException { Object elementInfo = getElementInfo(); if (elementInfo instanceof JavaElementInfo) { return ((JavaElementInfo)elementInfo).getChildren(); } else { return NO_ELEMENTS; } } /**
@Override public IModule getModule() { try { IModuleDescription module = this.project.getModuleDescription(); if (module != null) { return (IModule) ((JavaElement) module) .getElementInfo(); } } catch (JavaModelException e) { // Proceed with null; } return null; }
/** * @see IParent */ public IJavaElement[] getChildren() throws JavaModelException { Object elementInfo = getElementInfo(); if (elementInfo instanceof JavaElementInfo) { return ((JavaElementInfo)elementInfo).getChildren(); } else { return NO_ELEMENTS; } } /**
/** * @see IParent */ public IJavaElement[] getChildren() throws JavaModelException { Object elementInfo = getElementInfo(); if (elementInfo instanceof JavaElementInfo) { return ((JavaElementInfo)elementInfo).getChildren(); } else { return NO_ELEMENTS; } } /**
/** * @see IParent */ public IJavaElement[] getChildren() throws JavaModelException { Object elementInfo = getElementInfo(); if (elementInfo instanceof JavaElementInfo) { return ((JavaElementInfo)elementInfo).getChildren(); } else { return NO_ELEMENTS; } } /**
@Override public IModule getModule() { try { IModuleDescription module = this.project.getModuleDescription(); if (module != null) { return (ModuleDescriptionInfo) ((JavaElement) module) .getElementInfo(); } } catch (JavaModelException e) { // Proceed with null; } return null; }
/** * @see IParent */ public IJavaElement[] getChildren() throws JavaModelException { Object elementInfo = getElementInfo(); if (elementInfo instanceof JavaElementInfo) { return ((JavaElementInfo)elementInfo).getChildren(); } else { return NO_ELEMENTS; } } /**
/** * @see IParent */ public IJavaElement[] getChildren() throws JavaModelException { Object elementInfo = getElementInfo(); if (elementInfo instanceof JavaElementInfo) { return ((JavaElementInfo)elementInfo).getChildren(); } else { return NO_ELEMENTS; } } /**
@Override public IModule getModule() { IModuleDescription desc = getModuleDescription(); if (desc != null) { try { return (IModule)((JavaElement) desc).getElementInfo(); } catch (JavaModelException e) { Util.log(e); } } return null; }
@Override public IModule getModule() { IModuleDescription desc = getModuleDescription(); if (desc != null) { try { return (ModuleDescriptionInfo)((JavaElement) desc).getElementInfo(); } catch (JavaModelException e) { Util.log(e); } } return null; }