| org.eclipse.ui.actions.SelectionListenerAction org.eclipse.ui.actions.AddBookmarkAction
AddBookmarkAction | public class AddBookmarkAction extends SelectionListenerAction (Code) | | Standard action for adding a bookmark to the currently selected file
resource(s).
This class may be instantiated; it is not intended to be subclassed.
|
Field Summary | |
final public static String | ID The id of this action. |
Constructor Summary | |
public | AddBookmarkAction(Shell shell) Creates a new bookmark action. | public | AddBookmarkAction(Shell shell, boolean promptForName) Creates a new bookmark action. |
Method Summary | |
public void | run() | protected boolean | updateSelection(IStructuredSelection selection) The AddBookmarkAction implementation of this
SelectionListenerAction method enables the action only if
the selection is not empty and contains just file resources. |
ID | final public static String ID(Code) | | The id of this action.
|
AddBookmarkAction | public AddBookmarkAction(Shell shell)(Code) | | Creates a new bookmark action. By default, prompts the user for the
bookmark name.
Parameters: shell - the shell for any dialogs |
AddBookmarkAction | public AddBookmarkAction(Shell shell, boolean promptForName)(Code) | | Creates a new bookmark action.
Parameters: shell - the shell for any dialogs Parameters: promptForName - whether to ask the user for the bookmark name |
updateSelection | protected boolean updateSelection(IStructuredSelection selection)(Code) | | The AddBookmarkAction implementation of this
SelectionListenerAction method enables the action only if
the selection is not empty and contains just file resources.
|
|
|