org.eclipse.ui.actions
Class ReadOnlyStateChecker
java.lang.Object
|
+--org.eclipse.ui.actions.ReadOnlyStateChecker
- public class ReadOnlyStateChecker
- extends Object
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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ReadOnlyStateChecker
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.
- Parameters:
parent
- the shell used for dialogstitle
- the title for dialogsmessage
- the message for a dialog - this will be prefaced with the name of the resource.
checkReadOnlyResources
public IResource[] checkReadOnlyResources(IResource[] itemsToCheck)
- 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.
- Returns:
- the resulting selected resources
Copyright (c) IBM Corp. and others 2000, 2003. All Rights Reserved.