| org.eclipse.ui.actions.SelectionListenerAction org.eclipse.ui.actions.WorkspaceAction org.eclipse.ui.actions.OpenResourceAction
OpenResourceAction | public class OpenResourceAction extends WorkspaceAction implements IResourceChangeListener(Code) | | Standard action for opening the currently selected project(s).
Note that there is a different action for opening an editor on file
resources: OpenFileAction .
This class may be instantiated; it is not intended to be subclassed.
|
Field Summary | |
final public static String | ID The id of this action. |
ID | final public static String ID(Code) | | The id of this action.
|
OpenResourceAction | public OpenResourceAction(Shell shell)(Code) | | Creates a new action.
Parameters: shell - the shell for any dialogs |
getOperationMessage | protected String getOperationMessage()(Code) | | |
getProblemsMessage | protected String getProblemsMessage()(Code) | | |
invokeOperation | protected void invokeOperation(IResource resource, IProgressMonitor monitor) throws CoreException(Code) | | |
resourceChanged | public void resourceChanged(IResourceChangeEvent event)(Code) | | Handles a resource changed event by updating the enablement if one of the
selected projects is opened or closed.
|
shouldPerformResourcePruning | protected boolean shouldPerformResourcePruning()(Code) | | |
updateSelection | protected boolean updateSelection(IStructuredSelection s)(Code) | | The OpenResourceAction implementation of this
SelectionListenerAction method ensures that this action is
enabled only if one of the selections is a closed project.
|
|
|