|
Eclipse Platform Release 3.7 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.jface.window.Window
org.eclipse.jface.dialogs.Dialog
org.eclipse.jface.dialogs.TrayDialog
org.eclipse.ui.views.markers.internal.DialogMarkerProperties
org.eclipse.ui.views.bookmarkexplorer.BookmarkPropertiesDialog
public class BookmarkPropertiesDialog
Shows the properties of a new or existing bookmark This class was made public in 3.3.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.eclipse.jface.window.Window |
|---|
Window.IExceptionHandler |
| Field Summary |
|---|
| Fields inherited from class org.eclipse.jface.dialogs.Dialog |
|---|
blockedHandler, buttonBar, DIALOG_DEFAULT_BOUNDS, DIALOG_PERSISTLOCATION, DIALOG_PERSISTSIZE, dialogArea, DLG_IMG_ERROR, DLG_IMG_HELP, DLG_IMG_INFO, DLG_IMG_MESSAGE_ERROR, DLG_IMG_MESSAGE_INFO, DLG_IMG_MESSAGE_WARNING, DLG_IMG_QUESTION, DLG_IMG_WARNING, ELLIPSIS |
| Fields inherited from class org.eclipse.jface.window.Window |
|---|
CANCEL, OK |
| Constructor Summary | |
|---|---|
BookmarkPropertiesDialog(Shell parentShell)
Creates the dialog. |
|
BookmarkPropertiesDialog(Shell parentShell,
String title)
Creates the dialog. |
|
| Method Summary | |
|---|---|
protected String |
getCreateOperationTitle()
Return the string that describes a create marker operation. |
Map |
getInitialAttributes()
Returns the initial attributes to use when creating a new bookmark, or null if not set. |
IMarker |
getMarker()
Returns the marker being created or modified. |
protected String |
getModifyOperationTitle()
Return the string that describes a modify marker operation. |
IResource |
getResource()
Returns the resource to use when creating a new bookmark, or null if none has been set. |
void |
setInitialAttributes(Map initialAttributes)
Sets initial attributes to use when creating a new bookmark. |
void |
setMarker(IMarker marker)
Sets the marker to show or modify. |
void |
setResource(IResource resource)
Sets the resource to use when creating a new bookmark. |
| Methods inherited from class org.eclipse.ui.views.markers.internal.DialogMarkerProperties |
|---|
configureShell, createAttributesArea, createButtonsForButtonBar, createDialogArea, createSeperator, getDialogBoundsSettings, getMarkerAttributes, isDirty, isEditable, isResizable, markDirty, okPressed, setType, updateDialogForNewMarker, updateDialogFromMarker, updateEnablement |
| Methods inherited from class org.eclipse.jface.dialogs.TrayDialog |
|---|
close, closeTray, createButtonBar, createHelpControl, getLayout, getTray, isDialogHelpAvailable, isHelpAvailable, openTray, setDialogHelpAvailable, setHelpAvailable |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BookmarkPropertiesDialog(Shell parentShell)
setResource and setInitialAttributes.
To show or modify an existing bookmark, use setMarker.
parentShell - the parent shell
public BookmarkPropertiesDialog(Shell parentShell,
String title)
setResource and setInitialAttributes.
To show or modify an existing bookmark, use setMarker.
parentShell - the parent shelltitle - the title for the dialog| Method Detail |
|---|
public void setMarker(IMarker marker)
setMarker in class org.eclipse.ui.views.markers.internal.DialogMarkerPropertiesmarker - the marker, or null to create a new markerpublic IMarker getMarker()
null until
the dialog returns, but is non-null after.
getMarker in class org.eclipse.ui.views.markers.internal.DialogMarkerPropertiespublic void setResource(IResource resource)
setResource in class org.eclipse.ui.views.markers.internal.DialogMarkerPropertiesresource - the resourcepublic IResource getResource()
null if none has been set.
If not set, the new bookmark is created on the workspace root.
getResource in class org.eclipse.ui.views.markers.internal.DialogMarkerPropertiespublic void setInitialAttributes(Map initialAttributes)
setInitialAttributes in class org.eclipse.ui.views.markers.internal.DialogMarkerPropertiesinitialAttributes - the initial attributespublic Map getInitialAttributes()
null if not set.
If not set, the new bookmark is created with default attributes.
getInitialAttributes in class org.eclipse.ui.views.markers.internal.DialogMarkerPropertiesprotected String getModifyOperationTitle()
org.eclipse.ui.views.markers.internal.DialogMarkerProperties
getModifyOperationTitle in class org.eclipse.ui.views.markers.internal.DialogMarkerPropertiesprotected String getCreateOperationTitle()
org.eclipse.ui.views.markers.internal.DialogMarkerProperties
getCreateOperationTitle in class org.eclipse.ui.views.markers.internal.DialogMarkerProperties
|
Eclipse Platform Release 3.7 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Guidelines for using Eclipse APIs.
Copyright (c) Eclipse contributors and others 2000, 2011. All rights reserved.