| java.lang.Object org.eclipse.ui.internal.ide.dialogs.CreateLinkedResourceGroup
CreateLinkedResourceGroup | public class CreateLinkedResourceGroup (Code) | | Widget group for specifying a linked file or folder target.
since: 2.1 |
Inner Class :public static interface IStringValue | |
Constructor Summary | |
public | CreateLinkedResourceGroup(int type, Listener listener, IStringValue updatableResourceName) Creates a link target group
Parameters: type - specifies the type of resource to link to.IResource.FILE or IResource.FOLDER Parameters: listener - listener to notify when one of the widgets' value is changed. Parameters: updatableResourceName - an updatable string value that will be updated to reflect thelink target's last segment, or null . |
Method Summary | |
public Composite | createContents(Composite parent) | public void | dispose() Disposes the group's widgets. | public URI | getLinkTargetURI() Returns the link target location entered by the user.
the link target location entered by the user. | protected void | initializeDialogUnits(Control control) Initializes the computation of horizontal and vertical dialog units based
on the size of current font. | public void | setLinkTarget(String target) | public IStatus | validateLinkLocation(IResource linkHandle) Validates this page's controls.
Parameters: linkHandle - The target to check IStatus indicating the validation result. |
CreateLinkedResourceGroup | public CreateLinkedResourceGroup(int type, Listener listener, IStringValue updatableResourceName)(Code) | | Creates a link target group
Parameters: type - specifies the type of resource to link to.IResource.FILE or IResource.FOLDER Parameters: listener - listener to notify when one of the widgets' value is changed. Parameters: updatableResourceName - an updatable string value that will be updated to reflect thelink target's last segment, or null . Updatingwill only happen if the current value of that string is nullor the empty string, or if it has not been changed since thelast time it was updated. |
createContents | public Composite createContents(Composite parent)(Code) | | Creates the widgets
Parameters: parent - parent composite of the widget group the widget group |
dispose | public void dispose()(Code) | | Disposes the group's widgets.
|
getLinkTargetURI | public URI getLinkTargetURI()(Code) | | Returns the link target location entered by the user.
the link target location entered by the user. null if the userchose not to create a link. |
initializeDialogUnits | protected void initializeDialogUnits(Control control)(Code) | | Initializes the computation of horizontal and vertical dialog units based
on the size of current font.
This method must be called before setButtonLayoutData is
called.
Parameters: control - a control from which to obtain the current font |
setLinkTarget | public void setLinkTarget(String target)(Code) | | Sets the value of the link target field
Parameters: target - the value of the link target field |
validateLinkLocation | public IStatus validateLinkLocation(IResource linkHandle)(Code) | | Validates this page's controls.
Parameters: linkHandle - The target to check IStatus indicating the validation result. IStatus.OK if thespecified link target is valid given the linkHandle. |
|
|