1 11 package org.eclipse.core.resources; 12 13 import java.util.Map ; 14 import org.eclipse.core.runtime.CoreException; 15 import org.eclipse.core.runtime.IAdaptable; 16 17 78 public interface IMarker extends IAdaptable { 79 80 83 84 89 public static final String MARKER = ResourcesPlugin.PI_RESOURCES + ".marker"; 91 96 public static final String TASK = ResourcesPlugin.PI_RESOURCES + ".taskmarker"; 98 103 public static final String PROBLEM = ResourcesPlugin.PI_RESOURCES + ".problemmarker"; 105 110 public static final String TEXT = ResourcesPlugin.PI_RESOURCES + ".textmarker"; 112 117 public static final String BOOKMARK = ResourcesPlugin.PI_RESOURCES + ".bookmark"; 119 122 123 132 public static final String SEVERITY = "severity"; 134 141 public static final String MESSAGE = "message"; 143 151 public static final String LOCATION = "location"; 153 162 public static final String PRIORITY = "priority"; 164 170 public static final String DONE = "done"; 172 178 public static final String CHAR_START = "charStart"; 180 186 public static final String CHAR_END = "charEnd"; 188 194 public static final String LINE_NUMBER = "lineNumber"; 196 204 public static final String TRANSIENT = "transient"; 206 217 public static final String USER_EDITABLE = "userEditable"; 219 230 public static final String SOURCE_ID = "sourceId"; 232 235 236 241 public static final int PRIORITY_HIGH = 2; 242 243 248 public static final int PRIORITY_NORMAL = 1; 249 250 255 public static final int PRIORITY_LOW = 0; 256 257 262 public static final int SEVERITY_ERROR = 2; 263 264 269 public static final int SEVERITY_WARNING = 1; 270 271 276 public static final int SEVERITY_INFO = 0; 277 278 289 public void delete() throws CoreException; 290 291 298 public boolean equals(Object object); 299 300 307 public boolean exists(); 308 309 322 public Object getAttribute(String attributeName) throws CoreException; 323 324 333 public int getAttribute(String attributeName, int defaultValue); 334 335 344 public String getAttribute(String attributeName, String defaultValue); 345 346 355 public boolean getAttribute(String attributeName, boolean defaultValue); 356 357 369 public Map getAttributes() throws CoreException; 370 371 385 public Object [] getAttributes(String [] attributeNames) throws CoreException; 386 387 399 public long getCreationTime() throws CoreException; 400 401 409 public long getId(); 410 411 416 public IResource getResource(); 417 418 428 public String getType() throws CoreException; 429 430 441 public boolean isSubtypeOf(String superType) throws CoreException; 442 443 461 public void setAttribute(String attributeName, int value) throws CoreException; 462 463 484 public void setAttribute(String attributeName, Object value) throws CoreException; 485 486 504 public void setAttribute(String attributeName, boolean value) throws CoreException; 505 506 529 public void setAttributes(String [] attributeNames, Object [] values) throws CoreException; 530 531 555 public void setAttributes(Map attributes) throws CoreException; 556 } 557 | Popular Tags |