Java Doc for DialogMarkerProperties.java in  » IDE-Eclipse » ui-ide » org » eclipse » ui » views » markers » internal » 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 ide » org.eclipse.ui.views.markers.internal 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.eclipse.ui.views.markers.internal.DialogMarkerProperties

All known Subclasses:   org.eclipse.ui.views.bookmarkexplorer.BookmarkPropertiesDialog,  org.eclipse.ui.views.markers.internal.DialogTaskProperties,  org.eclipse.ui.views.markers.internal.DialogProblemProperties,
DialogMarkerProperties
public class DialogMarkerProperties extends TrayDialog (Code)
Shows the properties of a new or existing marker In 3.3, this class was refactored to allow pre-existing public dialog classes to share the implementation. Note that certain methods are exposed as API in public subclasses, so changes to the methods in this class should be treated carefully as they may affect API methods in subclasses. The specific methods affected are documented in the method comment.



Constructor Summary
public  DialogMarkerProperties(Shell parentShell)
     Creates the dialog.
public  DialogMarkerProperties(Shell parentShell, String title)
     Creates the dialog.
public  DialogMarkerProperties(Shell parentShell, String title, String markerName)
     Creates the dialog.

Method Summary
protected  voidconfigureShell(Shell newShell)
     Method declared on Window.
protected  voidcreateAttributesArea(Composite parent)
     This method is intended to be overridden by subclasses.
protected  voidcreateButtonsForButtonBar(Composite parent)
     Creates the OK and Cancel buttons.
protected  ControlcreateDialogArea(Composite parent)
     Method declared on Dialog.
protected  voidcreateSeperator(Composite parent)
     Creates a seperator.
protected  StringgetCreateOperationTitle()
     Return the string that describes a create marker operation.
protected  IDialogSettingsgetDialogBoundsSettings()
    
protected  MapgetInitialAttributes()
     Returns the initial attributes to use when creating a new task, or null if not set.
protected  IMarkergetMarker()
     Returns the marker being created or modified.
protected  MapgetMarkerAttributes()
     Returns the marker attributes to save back to the marker, based on the current dialog fields.
protected  StringgetModifyOperationTitle()
     Return the string that describes a modify marker operation.
protected  IResourcegetResource()
     Returns the resource to use when creating a new task, or null if none has been set.
protected  booleanisDirty()
    
protected  booleanisEditable()
    
protected  booleanisResizable()
    
protected  voidmarkDirty()
    
protected  voidokPressed()
    
protected  voidsetInitialAttributes(Map initialAttributes)
     Sets initial attributes to use when creating a new task.
public  voidsetMarker(IMarker marker)
     Sets the marker to show or modify.

IMPORTANT: Although this class is internal, there are public subclasses that expose this method as API.

public  voidsetResource(IResource resource)
     Sets the resource to use when creating a new task. If not set, the new task is created on the workspace root.

IMPORTANT: Although this class is internal, there are public subclasses that expose this method as API.

protected  voidsetType(String type)
     Sets the marker type when creating a new marker.
protected  voidupdateDialogForNewMarker()
     Updates the dialog from the predefined attributes.
protected  voidupdateDialogFromMarker()
     Updates the dialog from the marker state.
protected  voidupdateEnablement()
     Updates widget enablement for the dialog.


Constructor Detail
DialogMarkerProperties
public DialogMarkerProperties(Shell parentShell)(Code)
Creates the dialog. By default this dialog creates a new marker. To set the resource and initial attributes for the new marker, use setResource and setInitialAttributes. To show or modify an existing marker, use setMarker.
Parameters:
  parentShell - the parent shell



DialogMarkerProperties
public DialogMarkerProperties(Shell parentShell, String title)(Code)
Creates the dialog. By default this dialog creates a new marker. To set the resource and initial attributes for the new marker, use setResource and setInitialAttributes. To show or modify an existing marker, use setMarker.
Parameters:
  parentShell - the parent shell
Parameters:
  title - the title of the dialog



DialogMarkerProperties
public DialogMarkerProperties(Shell parentShell, String title, String markerName)(Code)
Creates the dialog. By default this dialog creates a new marker. To set the resource and initial attributes for the new marker, use setResource and setInitialAttributes. To show or modify an existing marker, use setMarker.
Parameters:
  parentShell - the parent shell
Parameters:
  title - the title of the dialog
Parameters:
  markerName - the name used to describe the specific kind of marker shown
since:
   3.3




Method Detail
configureShell
protected void configureShell(Shell newShell)(Code)
Method declared on Window.



createAttributesArea
protected void createAttributesArea(Composite parent)(Code)
This method is intended to be overridden by subclasses. The attributes area is created between the creation time area and the resource area.
Parameters:
  parent - the parent composite



createButtonsForButtonBar
protected void createButtonsForButtonBar(Composite parent)(Code)
Creates the OK and Cancel buttons.



createDialogArea
protected Control createDialogArea(Composite parent)(Code)
Method declared on Dialog.



createSeperator
protected void createSeperator(Composite parent)(Code)
Creates a seperator.



getCreateOperationTitle
protected String getCreateOperationTitle()(Code)
Return the string that describes a create marker operation. Subclasses may override to more specifically describe the marker.
since:
   3.3



getDialogBoundsSettings
protected IDialogSettings getDialogBoundsSettings()(Code)



getInitialAttributes
protected Map getInitialAttributes()(Code)
Returns the initial attributes to use when creating a new task, or null if not set. If not set, the new task is created with default attributes.

IMPORTANT: Although this method is protected and the class is internal, there are public subclasses that expose this method as API. Changes in this implementation should be treated as API changes. the initial attributes
since:
   3.3




getMarker
protected IMarker getMarker()(Code)
Returns the marker being created or modified. For a new marker, this returns null until the dialog returns, but is non-null after.

IMPORTANT: Although this method is protected and the class is internal, there are public subclasses that expose this method as API. Changes in this implementation should be treated as API changes. the marker
since:
   3.3




getMarkerAttributes
protected Map getMarkerAttributes()(Code)
Returns the marker attributes to save back to the marker, based on the current dialog fields.



getModifyOperationTitle
protected String getModifyOperationTitle()(Code)
Return the string that describes a modify marker operation. Subclasses may override to more specifically describe the marker.
since:
   3.3



getResource
protected IResource getResource()(Code)
Returns the resource to use when creating a new task, or null if none has been set. If not set, the new task is created on the workspace root.

IMPORTANT: Although this method is protected and the class is internal, there are public subclasses that expose this method as API. Changes in this implementation should be treated as API changes. the resource
since:
   3.3




isDirty
protected boolean isDirty()(Code)
  • true if the dirty flag has been set to true.
  • false otherwise.



isEditable
protected boolean isEditable()(Code)
  • true if the marker is editable or the dialog iscreating a new marker.
  • false if the marker is not editable.



isResizable
protected boolean isResizable()(Code)



markDirty
protected void markDirty()(Code)
Sets the dialog's dirty flag to true



okPressed
protected void okPressed()(Code)
Method declared on Dialog



setInitialAttributes
protected void setInitialAttributes(Map initialAttributes)(Code)
Sets initial attributes to use when creating a new task. If not set, the new task is created with default attributes.

IMPORTANT: Although this method is protected and the class is internal, there are public subclasses that expose this method as API. Changes in this implementation should be treated as API changes.
Parameters:
  initialAttributes - the initial attributes
since:
   3.3




setMarker
public void setMarker(IMarker marker)(Code)
Sets the marker to show or modify.

IMPORTANT: Although this class is internal, there are public subclasses that expose this method as API. Changes in this implementation should be treated as API changes.
Parameters:
  marker - the marker, or null to create a new marker
since:
   3.3




setResource
public void setResource(IResource resource)(Code)
Sets the resource to use when creating a new task. If not set, the new task is created on the workspace root.

IMPORTANT: Although this class is internal, there are public subclasses that expose this method as API. Changes in this implementation should be treated as API changes.
Parameters:
  resource - the resource




setType
protected void setType(String type)(Code)
Sets the marker type when creating a new marker.
Parameters:
  type - the marker type
since:
   3.3 this method is protected.



updateDialogForNewMarker
protected void updateDialogForNewMarker()(Code)
Updates the dialog from the predefined attributes.



updateDialogFromMarker
protected void updateDialogFromMarker()(Code)
Updates the dialog from the marker state.



updateEnablement
protected void updateEnablement()(Code)
Updates widget enablement for the dialog. Should be overridden by subclasses.



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