Java Doc for MarkerAnnotation.java in  » IDE-Eclipse » ui » org » eclipse » ui » texteditor » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » IDE Eclipse » ui » org.eclipse.ui.texteditor 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.eclipse.ui.texteditor.SimpleMarkerAnnotation
   org.eclipse.ui.texteditor.MarkerAnnotation

MarkerAnnotation
public class MarkerAnnotation extends SimpleMarkerAnnotation implements IQuickFixableAnnotation(Code)
Annotation representing a marker on a resource in the workspace. This class may be instantiated or be subclassed.
See Also:   org.eclipse.core.resources.IMarker


Field Summary
final public static  intPROBLEM_LAYER
     The layer in which markers representing problem are located.

Constructor Summary
public  MarkerAnnotation(IMarker marker)
     Creates a new annotation for the given marker.
public  MarkerAnnotation(String annotationType, IMarker marker)
     Creates a new annotation of the given type for the given marker.

Method Summary
protected static  ImagegetImage(Display display, ImageDescriptor descriptor)
     Returns an image for the given display as specified by the given image descriptor.
protected  ImagegetImage(String name)
     Returns the image of the given name.
protected  ImagegetImage(Display display)
     Returns an image for this annotation.
protected static  MapgetImageRegistry(Display display)
     Returns an image registry for the given display.
public  intgetLayer()
     Returns the annotations drawing layer.
protected  StringgetUnknownImageName(IMarker marker)
     Returns the name of an image used to visually represent markers of unknown type.
protected  voidinitialize()
     Initializes the annotation's icon representation and its drawing layer based upon the properties of the underlying marker.
public  booleanisQuickFixable()
    
public  booleanisQuickFixableStateSet()
    
public  voidpaint(GC gc, Canvas canvas, Rectangle r)
     Implement this method to draw a graphical representation of this annotation within the given bounds.
protected  voidsetImage(Image image)
     Sets the marker image to the given image.
protected  voidsetLayer(int layer)
     Sets the layer of this annotation.
public  voidsetQuickFixable(boolean state)
    
public  voidupdate()
     Informs this annotation about changes applied to its underlying marker and adapts to those changes.

Field Detail
PROBLEM_LAYER
final public static int PROBLEM_LAYER(Code)
The layer in which markers representing problem are located.
since:
   2.0IAnnotationAccessExtension




Constructor Detail
MarkerAnnotation
public MarkerAnnotation(IMarker marker)(Code)
Creates a new annotation for the given marker.
Parameters:
  marker - the marker



MarkerAnnotation
public MarkerAnnotation(String annotationType, IMarker marker)(Code)
Creates a new annotation of the given type for the given marker.
Parameters:
  annotationType - the annotation type
Parameters:
  marker - the marker
since:
   3.0




Method Detail
getImage
protected static Image getImage(Display display, ImageDescriptor descriptor)(Code)
Returns an image for the given display as specified by the given image descriptor.
Parameters:
  display - the display
Parameters:
  descriptor - the image descriptor an image for the display as specified by the descriptororg.eclipse.jface.text.source.IAnnotationPresentation



getImage
protected Image getImage(String name)(Code)
Returns the image of the given name. Subclasses may extend this method. If so, subclasses must assume responsibility for disposing the images they create.
Parameters:
  name - the name of the requested image the image or null if there is no such imageorg.eclipse.jface.text.source.IAnnotationPresentation



getImage
protected Image getImage(Display display)(Code)
Returns an image for this annotation. It first consults the workbench adapter for this annotation's marker. If none is defined, it tries to find an image for the image name of this annotation.
Parameters:
  display - the display for which the image is requested the image for this annotationorg.eclipse.jface.text.source.IAnnotationPresentation



getImageRegistry
protected static Map getImageRegistry(Display display)(Code)
Returns an image registry for the given display. If no such registry exists the registry is created.
Parameters:
  display - the display the image registry for the given displayorg.eclipse.jface.text.source.IAnnotationPresentation



getLayer
public int getLayer()(Code)
Returns the annotations drawing layer.

Note: This is only for backward compatibility.

the annotations drawing layerorg.eclipse.jface.text.source.IAnnotationAccessExtension.getLayer(org.eclipse.jface.text.source.Annotation)
since:
   3.0



getUnknownImageName
protected String getUnknownImageName(IMarker marker)(Code)
Returns the name of an image used to visually represent markers of unknown type. This implementation returns null. Subclasses may replace this method.
Parameters:
  marker - the marker of unknown type the name of an image for markers of unknown type.org.eclipse.jface.text.source.IAnnotationPresentation



initialize
protected void initialize()(Code)
Initializes the annotation's icon representation and its drawing layer based upon the properties of the underlying marker. org.eclipse.jface.text.source.IAnnotationPresentation



isQuickFixable
public boolean isQuickFixable()(Code)



isQuickFixableStateSet
public boolean isQuickFixableStateSet()(Code)



paint
public void paint(GC gc, Canvas canvas, Rectangle r)(Code)
Implement this method to draw a graphical representation of this annotation within the given bounds. This default implementation does nothing.

Note: This is only for backward compatibility.


Parameters:
  gc - the drawing GC
Parameters:
  canvas - the canvas to draw on
Parameters:
  r - the bounds inside the canvas to draw onorg.eclipse.jface.text.source.IAnnotationAccessExtension.paint(org.eclipse.jface.text.source.AnnotationGCCanvasRectangle)
since:
   3.0



setImage
protected void setImage(Image image)(Code)
Sets the marker image to the given image.
Parameters:
  image - the new marker imageorg.eclipse.jface.text.source.IAnnotationPresentation



setLayer
protected void setLayer(int layer)(Code)
Sets the layer of this annotation.

Note: This is only for backward compatibility.


Parameters:
  layer - the layer of this annotationorg.eclipse.jface.text.source.IAnnotationPresentation
since:
   3.0



setQuickFixable
public void setQuickFixable(boolean state)(Code)



update
public void update()(Code)
Informs this annotation about changes applied to its underlying marker and adapts to those changes.



Methods inherited from org.eclipse.ui.texteditor.SimpleMarkerAnnotation
public boolean equals(Object o)(Code)(Java Doc)
public IMarker getMarker()(Code)(Java Doc)
public String getText()(Code)(Java Doc)
public int hashCode()(Code)(Java Doc)
public void update()(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.