| org.eclipse.ui.actions.SelectionListenerAction org.eclipse.ui.actions.WorkspaceAction org.eclipse.ui.actions.RefreshAction
RefreshAction | public class RefreshAction extends WorkspaceAction (Code) | | Standard action for refreshing the workspace from the local file system for
the selected resources and all of their descendents.
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 | RefreshAction(Shell shell) Creates a new action. |
ID | final public static String ID(Code) | | The id of this action.
|
RefreshAction | public RefreshAction(Shell shell)(Code) | | Creates a new action.
Parameters: shell - the shell for any dialogs |
checkLocationDeleted | void checkLocationDeleted(IProject project) throws CoreException(Code) | | Checks whether the given project's location has been deleted. If so,
prompts the user with whether to delete the project or not.
|
getOperationMessage | protected String getOperationMessage()(Code) | | |
getProblemsMessage | protected String getProblemsMessage()(Code) | | |
getSelectedResources | protected List getSelectedResources()(Code) | | Returns a list containing the workspace root if the selection would
otherwise be empty.
|
handleKeyReleased | public void handleKeyReleased(KeyEvent event)(Code) | | Handle the key release.
Parameters: event - the event |
invokeOperation | protected void invokeOperation(IResource resource, IProgressMonitor monitor) throws CoreException(Code) | | |
refreshAll | public void refreshAll()(Code) | | Refreshes the entire workspace.
|
updateSelection | protected boolean updateSelection(IStructuredSelection s)(Code) | | The RefreshAction implementation of this
SelectionListenerAction method ensures that this action is
enabled if the selection is empty, but is disabled if any of the selected
elements are not resources.
|
|
|