1 11 package org.eclipse.ant.internal.ui.model; 12 13 import java.io.File ; 14 import java.net.URLClassLoader ; 15 import java.util.Map ; 16 17 import org.apache.tools.ant.BuildException; 18 import org.apache.tools.ant.Project; 19 import org.apache.tools.ant.Target; 20 import org.apache.tools.ant.Task; 21 import org.eclipse.core.resources.IFile; 22 import org.eclipse.jface.text.BadLocationException; 23 import org.xml.sax.Attributes ; 24 25 public interface IAntModel { 26 27 31 AntProjectNode getProjectNode(); 32 33 38 String getEntityName(String path); 39 40 44 LocationProvider getLocationProvider(); 45 46 49 void dispose(); 50 51 54 void reconcile(); 55 56 60 void setClassLoader(URLClassLoader newClassLoader); 61 62 67 void setProperties(Map properties); 68 69 74 void setPropertyFiles(String [] propertyFiles); 75 76 80 IFile getFile(); 81 82 88 void handleBuildException(BuildException be, AntElementNode node, int severity); 89 90 95 AntProjectNode getProjectNode(boolean reconcile); 96 97 103 void addTarget(Target newTarget, int lineNumber, int columnNumber); 104 105 111 void addProject(Project project, int lineNumber, int columnNumber); 112 113 117 File getEditedFile(); 119 120 124 boolean canGetTaskInfo(); 125 126 130 boolean canGetLexicalInfo(); 131 132 136 boolean canGetPositionInfo(); 137 138 145 void addComment(int lineNumber, int columnNumber, int length); 146 147 154 void addDTD(String name, int lineNumber, int columnNumber); 155 156 161 void addEntity(String name, String currentEntityPath); 162 163 172 void addTask(Task newTask, Task parentTask, Attributes attributes, int lineNumber, int columnNumber); 173 174 179 void setCurrentElementLength(int lineNumber, int columnNumber); 180 181 189 int getOffset(int lineNumber, int column) throws BadLocationException; 190 191 195 void error(Exception e); 196 197 201 void fatalError(Exception e); 202 203 207 void warning(Exception e); 208 209 void errorFromElement(Exception e, AntElementNode element, int lineNumber, int columnNumber); 210 211 void errorFromElementText(Exception e, int offset, int columnNumber); 212 213 220 String getText(int offset, int length); 221 222 227 void setDefiningTaskNodeText(AntDefiningTaskNode node); 228 229 234 void addPrefixMapping(String prefix, String uri); 235 } 236 | Popular Tags |