org.eclipse.mylar.internal.tasks.ui.wizards
Class NewAttachmentWizard

java.lang.Object
  extended by org.eclipse.jface.wizard.Wizard
      extended by org.eclipse.mylar.internal.tasks.ui.wizards.NewAttachmentWizard
All Implemented Interfaces:
org.eclipse.jface.wizard.IWizard

public class NewAttachmentWizard
extends org.eclipse.jface.wizard.Wizard

A wizard to add a new attachment to a task report.

Author:
Jeff Pound

Field Summary
private  LocalAttachment attachment
           
private  NewAttachmentPage attachPage
           
private  NewAttachmentWizardDialog dialog
           
private static java.lang.String DIALOG_SETTINGS_KEY
           
private  boolean hasNewDialogSettings
           
private  InputAttachmentSourcePage inputPage
           
private  TaskRepository repository
           
private  AbstractRepositoryTask task
           
 
Fields inherited from class org.eclipse.jface.wizard.Wizard
DEFAULT_IMAGE
 
Constructor Summary
NewAttachmentWizard(TaskRepository repository, AbstractRepositoryTask task)
           
NewAttachmentWizard(TaskRepository repository, AbstractRepositoryTask task, java.io.File attachFile)
           
NewAttachmentWizard(TaskRepository repository, AbstractRepositoryTask task, java.lang.String attachContents)
           
 
Method Summary
 void addPages()
           
 boolean canFinish()
           
 LocalAttachment getAttachment()
           
 java.lang.String getClipboardContents()
           
protected  java.lang.String getFilePath()
           
 org.eclipse.jface.wizard.IWizardPage getNextPage(org.eclipse.jface.wizard.IWizardPage page)
           
protected  boolean hasContext()
           
 boolean needsPreviousAndNextButtons()
           
 boolean performFinish()
           
 void setDialog(NewAttachmentWizardDialog dialog)
           
 void showPage(org.eclipse.jface.wizard.IWizardPage page)
           
 
Methods inherited from class org.eclipse.jface.wizard.Wizard
addPage, createPageControls, dispose, getContainer, getDefaultPageImage, getDialogSettings, getPage, getPageCount, getPages, getPreviousPage, getShell, getStartingPage, getTitleBarColor, getWindowTitle, isHelpAvailable, needsProgressMonitor, performCancel, setContainer, setDefaultPageImageDescriptor, setDialogSettings, setForcePreviousAndNextButtons, setHelpAvailable, setNeedsProgressMonitor, setTitleBarColor, setWindowTitle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DIALOG_SETTINGS_KEY

private static final java.lang.String DIALOG_SETTINGS_KEY
See Also:
Constant Field Values

attachment

private LocalAttachment attachment

inputPage

private InputAttachmentSourcePage inputPage

attachPage

private NewAttachmentPage attachPage

dialog

private NewAttachmentWizardDialog dialog

hasNewDialogSettings

private boolean hasNewDialogSettings

repository

private TaskRepository repository

task

private AbstractRepositoryTask task
Constructor Detail

NewAttachmentWizard

public NewAttachmentWizard(TaskRepository repository,
                           AbstractRepositoryTask task)

NewAttachmentWizard

public NewAttachmentWizard(TaskRepository repository,
                           AbstractRepositoryTask task,
                           java.io.File attachFile)

NewAttachmentWizard

public NewAttachmentWizard(TaskRepository repository,
                           AbstractRepositoryTask task,
                           java.lang.String attachContents)
Method Detail

performFinish

public boolean performFinish()
Specified by:
performFinish in interface org.eclipse.jface.wizard.IWizard
Specified by:
performFinish in class org.eclipse.jface.wizard.Wizard

hasContext

protected boolean hasContext()

canFinish

public boolean canFinish()
Specified by:
canFinish in interface org.eclipse.jface.wizard.IWizard
Overrides:
canFinish in class org.eclipse.jface.wizard.Wizard

addPages

public void addPages()
Specified by:
addPages in interface org.eclipse.jface.wizard.IWizard
Overrides:
addPages in class org.eclipse.jface.wizard.Wizard

getAttachment

public LocalAttachment getAttachment()

getFilePath

protected java.lang.String getFilePath()

getNextPage

public org.eclipse.jface.wizard.IWizardPage getNextPage(org.eclipse.jface.wizard.IWizardPage page)
Specified by:
getNextPage in interface org.eclipse.jface.wizard.IWizard
Overrides:
getNextPage in class org.eclipse.jface.wizard.Wizard

showPage

public void showPage(org.eclipse.jface.wizard.IWizardPage page)

setDialog

public void setDialog(NewAttachmentWizardDialog dialog)

getClipboardContents

public java.lang.String getClipboardContents()

needsPreviousAndNextButtons

public boolean needsPreviousAndNextButtons()
Specified by:
needsPreviousAndNextButtons in interface org.eclipse.jface.wizard.IWizard
Overrides:
needsPreviousAndNextButtons in class org.eclipse.jface.wizard.Wizard