|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectComposite
org.csstudio.ui.util.composites.ResourceSelectionGroup
public final class ResourceSelectionGroup
Workbench-level composite for choosing a resource.
Code is based upon
org.eclipse.ui.internal.ide.misc.ContainerSelectionGroup
in
plugin org.eclipse.ui.ide
.
Constructor Summary | |
---|---|
ResourceSelectionGroup(Composite parent,
Listener listener,
java.lang.String[] fileExtensions,
boolean showNewContainerActions)
Creates a new instance of the widget. |
|
ResourceSelectionGroup(Composite parent,
Listener listener,
java.lang.String[] fileExtensions,
java.lang.String message,
boolean showNewContainerActions)
Creates a new instance of the widget. |
|
ResourceSelectionGroup(Composite parent,
Listener listener,
java.lang.String[] fileExtensions,
java.lang.String message,
boolean showClosedProjects,
boolean showNewContainerActions)
Creates a new instance of the widget. |
|
ResourceSelectionGroup(Composite parent,
Listener listener,
java.lang.String[] fileExtensions,
java.lang.String message,
boolean showClosedProjects,
boolean showNewContainerActions,
int heightHint,
int widthHint)
Creates a new instance of the widget. |
Method Summary | |
---|---|
void |
containerSelectionChanged(IResource resource)
The container selection has changed in the tree view. |
void |
createContents(java.lang.String message,
java.lang.String[] fileExtensions,
int heightHint,
int widthHint)
Creates the contents of the composite. |
protected void |
createTreeViewer(java.lang.String[] fileExtensions,
int heightHint)
Returns a new drill down viewer for this dialog. |
IPath |
getFullPath()
Returns the currently entered container name. |
void |
itemDoubleClicked(IResource resource)
|
void |
setInitialFocus()
Gives focus to one of the widgets in the group, as determined by the group. |
void |
setSelectedResource(IPath path)
Selects the resource with the given path. |
void |
setSelectedResource(IResource resource)
Selects the given resource. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ResourceSelectionGroup(Composite parent, Listener listener, java.lang.String[] fileExtensions, boolean showNewContainerActions)
parent
- The parent widget of the group.listener
- A listener to forward events to. Can be null if no listener is
required.fileExtensions
- File extensions of files to include in the tree view. Pass
an empty array or null
to show only container
resources.showNewContainerActions
- Whether to show the New Folder and New Project actions.public ResourceSelectionGroup(Composite parent, Listener listener, java.lang.String[] fileExtensions, java.lang.String message, boolean showNewContainerActions)
parent
- The parent widget of the group.listener
- A listener to forward events to. Can be null if no listener is
required.fileExtensions
- File extensions of files to include in the tree view. Pass
an empty array or null
to show only container
resources.message
- The text to present to the user.showNewContainerActions
- Whether to show the New Folder and New Project actions.public ResourceSelectionGroup(Composite parent, Listener listener, java.lang.String[] fileExtensions, java.lang.String message, boolean showClosedProjects, boolean showNewContainerActions)
parent
- The parent widget of the group.listener
- A listener to forward events to. Can be null if no listener is
required.fileExtensions
- File extensions of files to include in the tree view. Pass
an empty array or null
to show only container
resources.message
- The text to present to the user.showClosedProjects
- Whether or not to show closed projects.showNewContainerActions
- Whether to show the New Folder and New Project actions.public ResourceSelectionGroup(Composite parent, Listener listener, java.lang.String[] fileExtensions, java.lang.String message, boolean showClosedProjects, boolean showNewContainerActions, int heightHint, int widthHint)
parent
- The parent widget of the group.listener
- A listener to forward events to. Can be null if no listener is
required.fileExtensions
- File extensions of files to include in the tree view. Pass
an empty array or null
to show only container
resources.message
- The text to present to the user.showClosedProjects
- Whether or not to show closed projects.showNewContainerActions
- Whether to show the New Folder and New Project actions.heightHint
- height hint for the drill down compositewidthHint
- width hint for the drill down compositeMethod Detail |
---|
public void containerSelectionChanged(IResource resource)
resource
- The container that changedpublic void itemDoubleClicked(IResource resource)
public void createContents(java.lang.String message, java.lang.String[] fileExtensions, int heightHint, int widthHint)
message
- The text to present to the user.fileExtensions
- The file extensions of files to include in the tree.heightHint
- The height of the tree widget.widthHint
- The width of the tree widget.protected void createTreeViewer(java.lang.String[] fileExtensions, int heightHint)
fileExtensions
- The file extensions of files to include in the tree.heightHint
- height hint for the drill down compositepublic IPath getFullPath()
public void setInitialFocus()
public void setSelectedResource(IResource resource)
resource
- the resource to select.public void setSelectedResource(IPath path)
path
- The path to a specific resource.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |