com.aptana.ide.syncing
Class SyncInfoDialog

java.lang.Object
  extended by org.eclipse.swt.widgets.Dialog
      extended by com.aptana.ide.core.ui.dialogs.GenericDialog
          extended by com.aptana.ide.syncing.SyncInfoDialog

public class SyncInfoDialog
extends GenericDialog

Author:
Ingo Muschenetz

Field Summary
protected  java.lang.Object result
          result
protected  org.eclipse.swt.widgets.Shell shell
          shell
 
Constructor Summary
SyncInfoDialog(org.eclipse.swt.widgets.Shell parent)
          Create the dialog
SyncInfoDialog(org.eclipse.swt.widgets.Shell parent, int style)
          Create the dialog
 
Method Summary
protected  void createContents()
          Create contents of the dialog
protected  void handleBrowseDirectory()
          The browse button has been selected.
 void handleCancel()
          Cancels the dialog and disposes the shell
 VirtualFileManagerSyncPair open()
          Opens the dialog and returns the input
 void setItem(VirtualFileManagerSyncPair vfm, boolean newItem)
          setItem
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

SyncInfoDialog

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

Parameters:
parent -
style -

SyncInfoDialog

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

Parameters:
parent -
Method Detail

open

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

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

handleBrowseDirectory

protected void handleBrowseDirectory()
The browse button has been selected. Select the location.


setItem

public void setItem(VirtualFileManagerSyncPair vfm,
                    boolean newItem)
setItem

Parameters:
vfm -
newItem -

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