public class ReadOnlyStateChecker extends Object
Constructor and Description |
---|
ReadOnlyStateChecker(Shell parent,
String title,
String message)
Create a new checker that parents the dialog off of parent using the supplied
title and message.
|
Modifier and Type | Method and Description |
---|---|
IResource[] |
checkReadOnlyResources(IResource[] itemsToCheck)
Check the supplied resources to see if they are read only.
|
boolean |
getIgnoreLinkedResources()
Returns whether to ignore linked resources.
|
void |
setIgnoreLinkedResources(boolean ignore)
Sets whether to ignore linked resources.
|
public ReadOnlyStateChecker(Shell parent, String title, String message)
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.public IResource[] checkReadOnlyResources(IResource[] itemsToCheck)
itemsToCheck
- public boolean getIgnoreLinkedResources()
true
to ignore linked resources, false
to consider thempublic void setIgnoreLinkedResources(boolean ignore)
false
.ignore
- true
to ignore linked resources, false
to consider them
Copyright (c) 2000, 2018 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.