public class MavenLocationComponent
extends org.eclipse.swt.widgets.Composite
Modifier and Type | Field and Description |
---|---|
protected org.eclipse.swt.widgets.Button |
inExternalLocationButton
Radio button indicating whether an external location has been chosen.
|
protected org.eclipse.swt.widgets.Button |
inWorkspaceButton
Radio button indicating whether the workspace location has been chosen.
|
protected org.eclipse.swt.widgets.Button |
locationBrowseButton
Button allowing to choose a directory on the file system as the external location.
|
protected org.eclipse.swt.widgets.Combo |
locationCombo
Text field for defining a user specified external location.
|
protected org.eclipse.swt.widgets.Label |
locationLabel |
protected org.eclipse.swt.events.ModifyListener |
modifyingListener |
Constructor and Description |
---|
MavenLocationComponent(org.eclipse.swt.widgets.Composite parent,
int styles)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
dispose() |
org.eclipse.swt.widgets.Combo |
getLocationCombo() |
org.eclipse.core.runtime.IPath |
getLocationPath()
Returns the path of the location chosen by the user.
|
boolean |
isInWorkspace()
Returns whether the workspace has been chosen as the location to use.
|
void |
setModifyingListener(org.eclipse.swt.events.ModifyListener modifyingListener) |
changed, checkSubclass, computeSize, drawBackground, getBackgroundMode, getChildren, getClientArea, getLayout, getLayoutDeferred, getTabList, isLayoutDeferred, layout, layout, layout, layout, layout, setBackgroundMode, setFocus, setLayout, setLayoutDeferred, setTabList
computeTrim, getBorderWidth, getHorizontalBar, getScrollbarsMode, getVerticalBar
addControlListener, addDragDetectListener, addFocusListener, addGestureListener, addHelpListener, addKeyListener, addMenuDetectListener, addMouseListener, addMouseMoveListener, addMouseTrackListener, addMouseWheelListener, addPaintListener, addTouchListener, addTraverseListener, computeSize, dragDetect, dragDetect, forceFocus, getAccessible, getBackground, getBackgroundImage, 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, 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
protected org.eclipse.swt.widgets.Button inWorkspaceButton
protected org.eclipse.swt.widgets.Button inExternalLocationButton
protected org.eclipse.swt.widgets.Combo locationCombo
protected org.eclipse.swt.widgets.Button locationBrowseButton
protected org.eclipse.swt.events.ModifyListener modifyingListener
protected org.eclipse.swt.widgets.Label locationLabel
public MavenLocationComponent(org.eclipse.swt.widgets.Composite parent, int styles)
Composite
. These components allow the
user to choose between a workspace location and a user specified external location.parent
- The widget which will be the parent of this component.styles
- The widget style for this component.modifyingListener
- Listener which is notified when the contents of this component change due to user input.public org.eclipse.core.runtime.IPath getLocationPath()
null
.public boolean isInWorkspace()
true
if the workspace is chosen as the location to use, false
if the specified
external location is to be used.public void setModifyingListener(org.eclipse.swt.events.ModifyListener modifyingListener)
public org.eclipse.swt.widgets.Combo getLocationCombo()
public void dispose()
dispose
in class org.eclipse.swt.widgets.Widget
Copyright © 2005–2015 Sonatype, Inc.. All rights reserved.