Exemplo n.º 1
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;
 }
Exemplo n.º 2
0
 /* (non-Javadoc)
  * @see org.eclipse.ant.internal.ui.model.AntElementNode#getLabel()
  */
 public String getLabel() {
   if (fLabel == null) {
     if (fProject != null) {
       fLabel = fProject.getName();
     } else {
       fLabel = AntModelMessages.AntProjectNode_0;
     }
     if (fLabel == null || fLabel.length() == 0) {
       fLabel = "project"; // $NON-NLS-1$
     }
   }
   return fLabel;
 }
Exemplo n.º 3
0
 public String getDefaultTargetName() {
   return fProject.getDefaultTarget();
 }
Exemplo n.º 4
0
 public String getDescription() {
   return fProject.getDescription();
 }
Exemplo n.º 5
0
 /** @param node the property node that is currently being configured */
 public void setCurrentConfiguringProperty(AntPropertyNode node) {
   AntModelProject project = (AntModelProject) getProject();
   project.setCurrentConfiguringProperty(node);
 }