/** * Returns the associated resource. * * @return the associated resource, or <code>null</code> if the descriptor * contains no timestamp or project information */ public final IResource getResource() { try { final ResourceTraversal[] traversals= getTraversals(null, null); if (traversals.length > 0) { final IResource[] resources= traversals[0].getResources(); if (resources.length > 0) return resources[0]; } } catch (CoreException exception) { RefactoringCorePlugin.log(exception); } return null; }
/** * Returns the associated resource. * * @return the associated resource, or <code>null</code> if the descriptor * contains no timestamp or project information */ public final IResource getResource() { try { final ResourceTraversal[] traversals= getTraversals(null, null); if (traversals.length > 0) { final IResource[] resources= traversals[0].getResources(); if (resources.length > 0) return resources[0]; } } catch (CoreException exception) { RefactoringCorePlugin.log(exception); } return null; }
/** * Returns the associated resource. * * @return the associated resource, or <code>null</code> if the descriptor * contains no timestamp or project information */ public final IResource getResource() { try { final ResourceTraversal[] traversals= getTraversals(null, null); if (traversals.length > 0) { final IResource[] resources= traversals[0].getResources(); if (resources.length > 0) return resources[0]; } } catch (CoreException exception) { RefactoringCorePlugin.log(exception); } return null; }