com.javapathfinder.vjp.config.editors
Class ModePropertyFileDialog
java.lang.Object
com.javapathfinder.vjp.config.editors.ModePropertyFileDialog
public class ModePropertyFileDialog
- extends java.lang.Object
This class serves as a wrapper for the FileDialog class since Eclipse
doesn't allow FileDialog to be subclassed.
- Author:
- Sandro Badame
Method Summary |
org.eclipse.core.resources.IFile |
getFile()
Gets the file chosen from the dialog. |
org.eclipse.core.resources.IProject |
getFileProject()
Returns the project that contains the chosen file
Null if this was saved outside of any project. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ModePropertyFileDialog
public ModePropertyFileDialog(org.eclipse.swt.widgets.Shell parent)
- Parameters:
parent
- the parent shell for this dialog.
ModePropertyFileDialog
public ModePropertyFileDialog(org.eclipse.swt.widgets.Shell parent,
ModePropertyConfiguration properties)
- Parameters:
parent
- the parent shell for this dialogproperties
- the dialog will open with the file associated to this
property selected.
getFile
public org.eclipse.core.resources.IFile getFile()
- Gets the file chosen from the dialog. Note that if the file chosen is not
contained in a poject then bad things can happen with the returned value.
getFileProject
public org.eclipse.core.resources.IProject getFileProject()
- Returns the project that contains the chosen file
Null if this was saved outside of any project.