|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.cdt.internal.ui.wizards.dialogfields.DialogField
org.eclipse.cdt.internal.ui.wizards.dialogfields.StringDialogField
org.eclipse.cdt.internal.ui.wizards.dialogfields.StringButtonDialogField
org.eclipse.cdt.internal.ui.wizards.dialogfields.LinkToFileGroup
public class LinkToFileGroup
This class is part of the NewClassWizard It handels the Link to file part
Constructor Summary | |
---|---|
LinkToFileGroup(IStringButtonAdapter adapter,
org.eclipse.swt.widgets.Listener listener)
|
Method Summary | |
---|---|
org.eclipse.swt.widgets.Control[] |
doFillIntoGrid(org.eclipse.swt.widgets.Composite parent,
int nColumns)
Creates all controls of the dialog field and fills it to a composite. |
org.eclipse.swt.widgets.Button |
getBrowseButtonControl(org.eclipse.swt.widgets.Composite parent)
|
org.eclipse.swt.widgets.Button |
getLinkCheckButtonControl(org.eclipse.swt.widgets.Composite parent)
|
java.lang.String |
getLinkTarget()
Returns the link target location entered by the user. |
int |
getNumberOfControls()
Returns the number of columns of the dialog field. |
java.lang.String |
getResolvedPath()
|
java.lang.String |
getText()
Gets the text. |
org.eclipse.swt.widgets.Text |
getTextControl(org.eclipse.swt.widgets.Composite parent)
Creates or returns the created text control. |
static org.eclipse.swt.layout.GridData |
gridDataForText(int span)
|
boolean |
linkCreated()
|
void |
setLinkTarget(java.lang.String target)
Sets the value of the link target field |
void |
setText(java.lang.String text)
Sets the text. |
org.eclipse.core.runtime.IStatus |
validateLinkLocation(org.eclipse.core.resources.IResource linkHandle)
Validates this page's controls. |
Methods inherited from class org.eclipse.cdt.internal.ui.wizards.dialogfields.StringButtonDialogField |
---|
changeControlPressed, enableButton, getChangeControl, setButtonLabel |
Methods inherited from class org.eclipse.cdt.internal.ui.wizards.dialogfields.StringDialogField |
---|
setFocus, setTextWithoutUpdate |
Methods inherited from class org.eclipse.cdt.internal.ui.wizards.dialogfields.DialogField |
---|
createEmptySpace, createEmptySpace, dialogFieldChanged, getLabelControl, isEnabled, postSetFocusOnDialogField, setDialogFieldListener, setEnabled, setLabelText |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LinkToFileGroup(IStringButtonAdapter adapter, org.eclipse.swt.widgets.Listener listener)
Method Detail |
---|
public org.eclipse.swt.widgets.Control[] doFillIntoGrid(org.eclipse.swt.widgets.Composite parent, int nColumns)
DialogField
MGridLayout
as
layout.
The dialog field will adjust its controls' spans to the number of columns given.
To be reimplemented by dialog field implementors.
doFillIntoGrid
in class StringButtonDialogField
public int getNumberOfControls()
DialogField
getNumberOfControls
in class StringButtonDialogField
public org.eclipse.swt.widgets.Button getLinkCheckButtonControl(org.eclipse.swt.widgets.Composite parent)
public java.lang.String getText()
StringDialogField
null
getText
in class StringDialogField
public void setText(java.lang.String text)
StringDialogField
setText
in class StringDialogField
public org.eclipse.swt.widgets.Text getTextControl(org.eclipse.swt.widgets.Composite parent)
StringDialogField
getTextControl
in class StringDialogField
parent
- The parent composite or null
when the widget has
already been created.public static org.eclipse.swt.layout.GridData gridDataForText(int span)
public org.eclipse.swt.widgets.Button getBrowseButtonControl(org.eclipse.swt.widgets.Composite parent)
public java.lang.String getLinkTarget()
public java.lang.String getResolvedPath()
public void setLinkTarget(java.lang.String target)
target
- the value of the link target fieldpublic org.eclipse.core.runtime.IStatus validateLinkLocation(org.eclipse.core.resources.IResource linkHandle)
public boolean linkCreated()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |