public class ContainerSelectionGroup
extends org.eclipse.swt.widgets.Composite
Constructor and Description |
---|
ContainerSelectionGroup(org.eclipse.swt.widgets.Composite parent,
org.eclipse.swt.widgets.Listener listener,
boolean allowNewContainerName)
Creates a new instance of the widget.
|
ContainerSelectionGroup(org.eclipse.swt.widgets.Composite parent,
org.eclipse.swt.widgets.Listener listener,
boolean allowNewContainerName,
java.lang.String message)
Creates a new instance of the widget.
|
ContainerSelectionGroup(org.eclipse.swt.widgets.Composite parent,
org.eclipse.swt.widgets.Listener listener,
boolean allowNewContainerName,
java.lang.String message,
boolean showClosedProjects)
Creates a new instance of the widget.
|
ContainerSelectionGroup(org.eclipse.swt.widgets.Composite parent,
org.eclipse.swt.widgets.Listener listener,
boolean allowNewContainerName,
java.lang.String message,
boolean showClosedProjects,
int heightHint,
int widthHint)
Creates a new instance of the widget.
|
Modifier and Type | Method and Description |
---|---|
void |
containerSelectionChanged(org.eclipse.core.resources.IContainer container)
The container selection has changed in the tree view.
|
void |
createContents(java.lang.String message)
Creates the contents of the composite.
|
void |
createContents(java.lang.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.
|
org.eclipse.core.runtime.IPath |
getContainerFullPath()
Returns the currently entered container name.
|
void |
setInitialFocus()
Gives focus to one of the widgets in the group, as determined by the
group.
|
void |
setSelectedContainer(org.eclipse.core.resources.IContainer container)
Sets the selected existing container.
|
changed, checkSubclass, drawBackground, getBackgroundMode, getChildren, getLayout, getLayoutDeferred, getTabList, isLayoutDeferred, layout, layout, layout, layout, layout, setBackgroundMode, setFocus, setLayout, setLayoutDeferred, setTabList
computeTrim, getClientArea, getHorizontalBar, getScrollbarsMode, getVerticalBar
addControlListener, addDragDetectListener, addFocusListener, addGestureListener, addHelpListener, addKeyListener, addMenuDetectListener, addMouseListener, addMouseMoveListener, addMouseTrackListener, addMouseWheelListener, addPaintListener, addTouchListener, addTraverseListener, computeSize, computeSize, dragDetect, dragDetect, forceFocus, getAccessible, getBackground, getBackgroundImage, getBorderWidth, getBounds, getCursor, getDragDetect, getEnabled, getFont, getForeground, getLayoutData, getLocation, getMenu, getMonitor, getOrientation, getParent, getRegion, getShell, getSize, getTextDirection, getToolTipText, getTouchEnabled, getVisible, internal_dispose_GC, internal_new_GC, isEnabled, isFocusControl, isReparentable, isVisible, moveAbove, moveBelow, pack, pack, print, redraw, redraw, removeControlListener, removeDragDetectListener, removeFocusListener, removeGestureListener, removeHelpListener, removeKeyListener, removeMenuDetectListener, removeMouseListener, removeMouseMoveListener, removeMouseTrackListener, removeMouseWheelListener, removePaintListener, removeTouchListener, removeTraverseListener, requestLayout, setBackground, setBackgroundImage, setBounds, setBounds, setCapture, setCursor, setDragDetect, setEnabled, setFont, setForeground, setLayoutData, setLocation, setLocation, setMenu, setOrientation, setParent, setRedraw, setRegion, setSize, setSize, setTextDirection, setToolTipText, setTouchEnabled, setVisible, toControl, toControl, toDisplay, toDisplay, traverse, traverse, traverse, update
addDisposeListener, addListener, checkWidget, dispose, getData, getData, getDisplay, getListeners, getStyle, isAutoDirection, isDisposed, isListening, notifyListeners, removeDisposeListener, removeListener, removeListener, reskin, setData, setData, toString
public ContainerSelectionGroup(org.eclipse.swt.widgets.Composite parent, org.eclipse.swt.widgets.Listener listener, boolean allowNewContainerName)
parent
- The parent widget of the group.listener
- A listener to forward events to. Can be null if no listener is
required.allowNewContainerName
- Enable the user to type in a new container name instead of
just selecting from the existing ones.public ContainerSelectionGroup(org.eclipse.swt.widgets.Composite parent, org.eclipse.swt.widgets.Listener listener, boolean allowNewContainerName, java.lang.String message)
parent
- The parent widget of the group.listener
- A listener to forward events to. Can be null if no listener is
required.allowNewContainerName
- Enable the user to type in a new container name instead of
just selecting from the existing ones.message
- The text to present to the user.public ContainerSelectionGroup(org.eclipse.swt.widgets.Composite parent, org.eclipse.swt.widgets.Listener listener, boolean allowNewContainerName, java.lang.String message, boolean showClosedProjects)
parent
- The parent widget of the group.listener
- A listener to forward events to. Can be null if no listener is
required.allowNewContainerName
- Enable the user to type in a new container name instead of
just selecting from the existing ones.message
- The text to present to the user.showClosedProjects
- Whether or not to show closed projects.public ContainerSelectionGroup(org.eclipse.swt.widgets.Composite parent, org.eclipse.swt.widgets.Listener listener, boolean allowNewContainerName, java.lang.String message, boolean showClosedProjects, 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.allowNewContainerName
- Enable the user to type in a new container name instead of
just selecting from the existing ones.message
- The text to present to the user.showClosedProjects
- Whether or not to show closed projects.heightHint
- height hint for the drill down compositewidthHint
- width hint for the drill down compositepublic void containerSelectionChanged(org.eclipse.core.resources.IContainer container)
container
- The container that changedpublic void createContents(java.lang.String message)
message
- public void createContents(java.lang.String message, int heightHint, int widthHint)
message
- heightHint
- widthHint
- protected void createTreeViewer(int heightHint)
heightHint
- height hint for the drill down compositepublic org.eclipse.core.runtime.IPath getContainerFullPath()
public void setInitialFocus()
public void setSelectedContainer(org.eclipse.core.resources.IContainer container)
container
-