| org.eclipse.ui.internal.ide.misc.ContainerSelectionGroup
ContainerSelectionGroup | public class ContainerSelectionGroup extends Composite (Code) | | Workbench-level composite for choosing a container.
|
Constructor Summary | |
public | ContainerSelectionGroup(Composite parent, Listener listener, boolean allowNewContainerName) Creates a new instance of the widget.
Parameters: parent - The parent widget of the group. Parameters: listener - A listener to forward events to. | public | ContainerSelectionGroup(Composite parent, Listener listener, boolean allowNewContainerName, String message) Creates a new instance of the widget.
Parameters: parent - The parent widget of the group. Parameters: listener - A listener to forward events to. | public | ContainerSelectionGroup(Composite parent, Listener listener, boolean allowNewContainerName, String message, boolean showClosedProjects) Creates a new instance of the widget.
Parameters: parent - The parent widget of the group. Parameters: listener - A listener to forward events to. | public | ContainerSelectionGroup(Composite parent, Listener listener, boolean allowNewContainerName, String message, boolean showClosedProjects, int heightHint, int widthHint) Creates a new instance of the widget.
Parameters: parent - The parent widget of the group. Parameters: listener - A listener to forward events to. |
Method Summary | |
public void | containerSelectionChanged(IContainer container) The container selection has changed in the tree view. | public void | createContents(String message) Creates the contents of the composite. | public void | createContents(String message, int heightHint, int widthHint) Creates the contents of the composite. | protected void | createTreeViewer(int heightHint) Returns a new drill down viewer for this dialog. | public IPath | getContainerFullPath() Returns the currently entered container name. | public void | setInitialFocus() Gives focus to one of the widgets in the group, as determined by the
group. | public void | setSelectedContainer(IContainer container) Sets the selected existing container. |
treeViewer | TreeViewer treeViewer(Code) | | |
ContainerSelectionGroup | public ContainerSelectionGroup(Composite parent, Listener listener, boolean allowNewContainerName)(Code) | | Creates a new instance of the widget.
Parameters: parent - The parent widget of the group. Parameters: listener - A listener to forward events to. Can be null if no listener isrequired. Parameters: allowNewContainerName - Enable the user to type in a new container name instead ofjust selecting from the existing ones. |
ContainerSelectionGroup | public ContainerSelectionGroup(Composite parent, Listener listener, boolean allowNewContainerName, String message)(Code) | | Creates a new instance of the widget.
Parameters: parent - The parent widget of the group. Parameters: listener - A listener to forward events to. Can be null if no listener isrequired. Parameters: allowNewContainerName - Enable the user to type in a new container name instead ofjust selecting from the existing ones. Parameters: message - The text to present to the user. |
ContainerSelectionGroup | public ContainerSelectionGroup(Composite parent, Listener listener, boolean allowNewContainerName, String message, boolean showClosedProjects)(Code) | | Creates a new instance of the widget.
Parameters: parent - The parent widget of the group. Parameters: listener - A listener to forward events to. Can be null if no listener isrequired. Parameters: allowNewContainerName - Enable the user to type in a new container name instead ofjust selecting from the existing ones. Parameters: message - The text to present to the user. Parameters: showClosedProjects - Whether or not to show closed projects. |
ContainerSelectionGroup | public ContainerSelectionGroup(Composite parent, Listener listener, boolean allowNewContainerName, String message, boolean showClosedProjects, int heightHint, int widthHint)(Code) | | Creates a new instance of the widget.
Parameters: parent - The parent widget of the group. Parameters: listener - A listener to forward events to. Can be null if no listener isrequired. Parameters: allowNewContainerName - Enable the user to type in a new container name instead ofjust selecting from the existing ones. Parameters: message - The text to present to the user. Parameters: showClosedProjects - Whether or not to show closed projects. Parameters: heightHint - height hint for the drill down composite Parameters: widthHint - width hint for the drill down composite |
containerSelectionChanged | public void containerSelectionChanged(IContainer container)(Code) | | The container selection has changed in the tree view. Update the
container name field value and notify all listeners.
Parameters: container - The container that changed |
createContents | public void createContents(String message)(Code) | | Creates the contents of the composite.
Parameters: message - |
createContents | public void createContents(String message, int heightHint, int widthHint)(Code) | | Creates the contents of the composite.
Parameters: message - Parameters: heightHint - Parameters: widthHint - |
createTreeViewer | protected void createTreeViewer(int heightHint)(Code) | | Returns a new drill down viewer for this dialog.
Parameters: heightHint - height hint for the drill down composite |
getContainerFullPath | public IPath getContainerFullPath()(Code) | | Returns the currently entered container name. Null if the field is empty.
Note that the container may not exist yet if the user entered a new
container name in the field.
IPath |
setInitialFocus | public void setInitialFocus()(Code) | | Gives focus to one of the widgets in the group, as determined by the
group.
|
setSelectedContainer | public void setSelectedContainer(IContainer container)(Code) | | Sets the selected existing container.
Parameters: container - |
|
|