/* (non-Javadoc)
  * @see org.eclipse.core.runtime.IAdapterFactory#getAdapter(java.lang.Object, java.lang.Class)
  */
 public Object getAdapter(Object adaptableObject, Class adapterType) {
   if (adaptableObject instanceof AntElementNode) {
     AntElementNode node = (AntElementNode) adaptableObject;
     if (IResource.class.equals(adapterType)) {
       return node.getIFile();
     }
   }
   return null;
 }
Пример #2
0
 /* (non-Javadoc)
  * @see org.eclipse.ant.internal.ui.editor.model.AntElementNode#reset()
  */
 public void reset() {
   super.reset();
   fProject.reset();
   setProblemSeverity(AntModelProblem.NO_PROBLEM);
   setProblemMessage(null);
   fOffset = -1;
   fLength = -1;
 }