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

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.VirtualFileManagerLocationDialog
All Implemented Interfaces:
IVirtualFileManagerDialog
Direct Known Subclasses:
FtpLocationDialog

public class VirtualFileManagerLocationDialog
extends GenericDialog
implements IVirtualFileManagerDialog

Author:
Ingo Muschenetz

Nested Class Summary
protected  class VirtualFileManagerLocationDialog.OkButtonSelectionAdapter
          OkButtonSelectionAdapter
protected  class VirtualFileManagerLocationDialog.TestButtonSelectionAdapter
          TestButtonSelectionAdapter
 
Field Summary
protected  org.eclipse.jface.wizard.ProgressMonitorPart progressMonitorPart
          progressMonitorPart
protected  org.eclipse.swt.widgets.Shell shell
          shell
 
Constructor Summary
VirtualFileManagerLocationDialog(org.eclipse.swt.widgets.Shell parent)
          Create the dialog
VirtualFileManagerLocationDialog(org.eclipse.swt.widgets.Shell parent, int style)
          Create the dialog
 
Method Summary
 IVirtualFileManager getItem()
          getItem
 void handleCancel()
          Cancels the dialog and disposes the shell
 boolean isNewItem()
          isNewItem
 IVirtualFileManager open()
          open
 void setItem(IVirtualFileManager vfm, boolean newItem)
          setItem
protected  void setUpdatedValues()
          Sets the updated values onto the item
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

shell

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


progressMonitorPart

protected org.eclipse.jface.wizard.ProgressMonitorPart progressMonitorPart
progressMonitorPart

Constructor Detail

VirtualFileManagerLocationDialog

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

Parameters:
parent -
style -

VirtualFileManagerLocationDialog

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

Parameters:
parent -
Method Detail

setUpdatedValues

protected void setUpdatedValues()
Sets the updated values onto the item


validateFields

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

Returns:
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()

isNewItem

public boolean isNewItem()
isNewItem

Returns:
boolean

getItem

public IVirtualFileManager getItem()
getItem

Returns:
IVirtualFileManager

setItem

public void setItem(IVirtualFileManager vfm,
                    boolean newItem)
setItem

Specified by:
setItem in interface IVirtualFileManagerDialog
Parameters:
vfm -
newItem -

open

public IVirtualFileManager open()
open

Specified by:
open in interface IVirtualFileManagerDialog
Returns:
IVirtualFileManager