protected IJavaElement findLocalElement(int pos) { IJavaElement res = null; if(this.openable instanceof ICompilationUnit) { ICompilationUnit cu = (ICompilationUnit) this.openable; try { res = cu.getElementAt(pos); } catch (JavaModelException e) { // do nothing } } else if (this.openable instanceof ClassFile) { ClassFile cf = (ClassFile) this.openable; try { res = cf.getElementAtConsideringSibling(pos); } catch (JavaModelException e) { // do nothing } } return res; } /*
protected IJavaElement findLocalElement(int pos) { IJavaElement res = null; if(this.openable instanceof ICompilationUnit) { ICompilationUnit cu = (ICompilationUnit) this.openable; try { res = cu.getElementAt(pos); } catch (JavaModelException e) { // do nothing } } else if (this.openable instanceof ClassFile) { ClassFile cf = (ClassFile) this.openable; try { res = cf.getElementAtConsideringSibling(pos); } catch (JavaModelException e) { // do nothing } } return res; } /*
protected IJavaElement findLocalElement(int pos) { IJavaElement res = null; if(this.openable instanceof ICompilationUnit) { ICompilationUnit cu = (ICompilationUnit) this.openable; try { res = cu.getElementAt(pos); } catch (JavaModelException e) { // do nothing } } else if (this.openable instanceof ClassFile) { ClassFile cf = (ClassFile) this.openable; try { res = cf.getElementAtConsideringSibling(pos); } catch (JavaModelException e) { // do nothing } } return res; }
protected IJavaElement findLocalElement(int pos) { IJavaElement res = null; if(this.openable instanceof ICompilationUnit) { ICompilationUnit cu = (ICompilationUnit) this.openable; try { res = cu.getElementAt(pos); } catch (JavaModelException e) { // do nothing } } else if (this.openable instanceof ClassFile) { ClassFile cf = (ClassFile) this.openable; try { res = cf.getElementAtConsideringSibling(pos); } catch (JavaModelException e) { // do nothing } } return res; } /*
protected IJavaElement findLocalElement(int pos) { IJavaElement res = null; if(this.openable instanceof ICompilationUnit) { ICompilationUnit cu = (ICompilationUnit) this.openable; try { res = cu.getElementAt(pos); } catch (JavaModelException e) { // do nothing } } else if (this.openable instanceof ClassFile) { ClassFile cf = (ClassFile) this.openable; try { res = cf.getElementAtConsideringSibling(pos); } catch (JavaModelException e) { // do nothing } } return res; } /*
protected IJavaElement findLocalElement(int pos) { IJavaElement res = null; if(this.openable instanceof ICompilationUnit) { ICompilationUnit cu = (ICompilationUnit) this.openable; try { res = cu.getElementAt(pos); } catch (JavaModelException e) { // do nothing } } else if (this.openable instanceof ClassFile) { ClassFile cf = (ClassFile) this.openable; try { res = cf.getElementAtConsideringSibling(pos); } catch (JavaModelException e) { // do nothing } } return res; } /*