| java.lang.Object org.eclipse.ui.actions.ReadOnlyStateChecker
ReadOnlyStateChecker | public class ReadOnlyStateChecker (Code) | | The ReadOnlyStateChecker is a helper class that takes a set of resource
some of which may be read only and queries the user as to whether or
not they wish to continue the operation on it.
|
Constructor Summary | |
public | ReadOnlyStateChecker(Shell parent, String title, String message) Create a new checker that parents the dialog off of parent using the supplied
title and message. |
ReadOnlyStateChecker | public ReadOnlyStateChecker(Shell parent, String title, String message)(Code) | | Create a new checker that parents the dialog off of parent using the supplied
title and message.
Parameters: parent - the shell used for dialogs Parameters: title - the title for dialogs Parameters: message - the message for a dialog - this will be prefaced with the name of the resource. |
checkReadOnlyResources | public IResource[] checkReadOnlyResources(IResource[] itemsToCheck)(Code) | | Check the supplied resources to see if they are read only. If so then
prompt the user to see if they can be deleted.Return those that were
accepted.
Parameters: itemsToCheck - the resulting selected resources |
getIgnoreLinkedResources | public boolean getIgnoreLinkedResources()(Code) | | Returns whether to ignore linked resources.
true to ignore linked resources, false to consider them since: 3.1 |
setIgnoreLinkedResources | public void setIgnoreLinkedResources(boolean ignore)(Code) | | Sets whether to ignore linked resources.
The default is false .
Parameters: ignore - true to ignore linked resources, false to consider them since: 3.1 |
|
|