com.aptana.ide.core.ui.io.file
Class ProjectLocationDialog

java.lang.Object
  extended by org.eclipse.swt.widgets.Dialog
      extended by com.aptana.ide.core.ui.dialogs.GenericDialog
          extended by com.aptana.ide.core.ui.io.file.ProjectLocationDialog
All Implemented Interfaces:
IVirtualFileManagerDialog

public class ProjectLocationDialog
extends GenericDialog
implements IVirtualFileManagerDialog

Author:
Ingo Muschenetz

Field Summary
protected  java.lang.Object result
          result
protected  org.eclipse.swt.widgets.Shell shell
          shell
 
Constructor Summary
ProjectLocationDialog(org.eclipse.swt.widgets.Shell parent)
          Create the dialog
ProjectLocationDialog(org.eclipse.swt.widgets.Shell parent, int style)
          Create the dialog
 
Method Summary
protected  void createContents()
          Create contents of the dialog
 void handleCancel()
          Cancels the dialog and disposes the shell
 IVirtualFileManager open()
          Opens the dialog and returns the input
 void setItem(IVirtualFileManager vfm, boolean newItem)
          Sets the IVirtualFileManager this item is operating on
protected  boolean validateFields()
          Validates the fields to see if they are complete
 
Methods inherited from class com.aptana.ide.core.ui.dialogs.GenericDialog
addCloseBoxListener
 
Methods inherited from class org.eclipse.swt.widgets.Dialog
checkSubclass, getParent, getStyle, getText, setText
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

result

protected java.lang.Object result
result


shell

protected org.eclipse.swt.widgets.Shell shell
shell

Constructor Detail

ProjectLocationDialog

public ProjectLocationDialog(org.eclipse.swt.widgets.Shell parent,
                             int style)
Create the dialog

Parameters:
parent -
style -

ProjectLocationDialog

public ProjectLocationDialog(org.eclipse.swt.widgets.Shell parent)
Create the dialog

Parameters:
parent -
Method Detail

open

public IVirtualFileManager open()
Opens the dialog and returns the input

Specified by:
open in interface IVirtualFileManagerDialog
Returns:
String

createContents

protected void createContents()
Create contents of the dialog


validateFields

protected boolean validateFields()
Validates the fields to see if they are complete

Returns:
boolean

setItem

public void setItem(IVirtualFileManager vfm,
                    boolean newItem)
Description copied from interface: IVirtualFileManagerDialog
Sets the IVirtualFileManager this item is operating on

Specified by:
setItem in interface IVirtualFileManagerDialog
newItem - Is this item new, or are we editing an exiting item?
See Also:
IVirtualFileManagerDialog.setItem(IVirtualFileManager, boolean)

handleCancel

public void handleCancel()
Description copied from class: GenericDialog
Cancels the dialog and disposes the shell

Specified by:
handleCancel in class GenericDialog
See Also:
GenericDialog.handleCancel()