|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.officefloor.eclipse.common.dialog.input.impl.ClasspathFileInput
public class ClasspathFileInput
Input to obtain an file from the class path.
| Constructor Summary | |
|---|---|
ClasspathFileInput(org.eclipse.core.resources.IContainer container,
org.eclipse.swt.widgets.Shell shell)
Initiate. |
|
ClasspathFileInput(org.eclipse.ui.IEditorPart editor)
Convenience constructor to use the IProject and Shell of
the IEditorInput. |
|
| Method Summary | |
|---|---|
org.eclipse.swt.widgets.Composite |
buildControl(InputContext context)
Builds the Control. |
Object |
getValue(org.eclipse.swt.widgets.Composite control,
InputContext context)
Obtains the value from the input Control. |
protected String |
transformToPath(org.eclipse.core.resources.IFile file)
Transforms the IFile to the path to use. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ClasspathFileInput(org.eclipse.core.resources.IContainer container,
org.eclipse.swt.widgets.Shell shell)
container - IContainer to find the file within.shell - Shell.public ClasspathFileInput(org.eclipse.ui.IEditorPart editor)
IProject and Shell of
the IEditorInput.
editor - IEditorInput.shell - Shell.| Method Detail |
|---|
protected String transformToPath(org.eclipse.core.resources.IFile file)
Transforms the IFile to the path to use.
Allows overriding for more specialised transformation.
file - IFile.
public org.eclipse.swt.widgets.Composite buildControl(InputContext context)
InputControl.
buildControl in interface Input<org.eclipse.swt.widgets.Composite>context - InputContext.
Control to input the value.
public Object getValue(org.eclipse.swt.widgets.Composite control,
InputContext context)
Input
Obtains the value from the input Control.
The input Control will be the one created by
Input.buildControl(InputContext).
getValue in interface Input<org.eclipse.swt.widgets.Composite>control - Control.context - InputContext.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||