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

java.lang.Object
  extended by org.eclipse.jface.dialogs.DialogPage
      extended by org.eclipse.jface.wizard.WizardPage
          extended by org.eclipse.mylar.internal.tasks.ui.wizards.NewAttachmentPage
All Implemented Interfaces:
org.eclipse.jface.dialogs.IDialogPage, org.eclipse.jface.dialogs.IMessageProvider, org.eclipse.jface.wizard.IWizardPage

public class NewAttachmentPage
extends org.eclipse.jface.wizard.WizardPage

A wizard page to enter details of a new attachment.

Author:
Jeff Pound

Field Summary
private  org.eclipse.swt.widgets.Button attachContextButton
           
private  LocalAttachment attachment
           
private  org.eclipse.swt.widgets.Text attachmentComment
           
private  org.eclipse.swt.widgets.Text attachmentDesc
           
private static java.util.List<java.lang.String> contentTypes
           
private static java.util.Map<java.lang.String,java.lang.String> extensions2Types
           
private  org.eclipse.swt.widgets.Text filePath
           
private  org.eclipse.swt.widgets.Button isPatchButton
           
 
Fields inherited from interface org.eclipse.jface.dialogs.IMessageProvider
ERROR, INFORMATION, NONE, WARNING
 
Constructor Summary
protected NewAttachmentPage(LocalAttachment att)
           
 
Method Summary
 boolean canFlipToNextPage()
           
 void createControl(org.eclipse.swt.widgets.Composite parent)
           
 boolean getAttachContext()
           
 LocalAttachment getAttachment()
           
 org.eclipse.jface.wizard.IWizardPage getNextPage()
           
 boolean isPageComplete()
           
 void populateAttachment()
           
 void setFilePath(java.lang.String path)
           
 
Methods inherited from class org.eclipse.jface.wizard.WizardPage
getContainer, getDialogSettings, getImage, getName, getPreviousPage, getShell, getWizard, isCurrentPage, setDescription, setErrorMessage, setImageDescriptor, setMessage, setPageComplete, setPreviousPage, setTitle, setWizard, toString
 
Methods inherited from class org.eclipse.jface.dialogs.DialogPage
convertHeightInCharsToPixels, convertHorizontalDLUsToPixels, convertVerticalDLUsToPixels, convertWidthInCharsToPixels, dispose, getControl, getDescription, getDialogFontName, getErrorMessage, getFont, getMessage, getMessageType, getTitle, getToolTipText, initializeDialogUnits, isControlCreated, performHelp, setButtonLayoutData, setControl, setMessage, setVisible
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.eclipse.jface.dialogs.IDialogPage
dispose, getControl, getDescription, getErrorMessage, getMessage, getTitle, performHelp, setVisible
 

Field Detail

attachment

private LocalAttachment attachment

filePath

private org.eclipse.swt.widgets.Text filePath

attachmentDesc

private org.eclipse.swt.widgets.Text attachmentDesc

attachmentComment

private org.eclipse.swt.widgets.Text attachmentComment

isPatchButton

private org.eclipse.swt.widgets.Button isPatchButton

attachContextButton

private org.eclipse.swt.widgets.Button attachContextButton

contentTypes

private static java.util.List<java.lang.String> contentTypes

extensions2Types

private static java.util.Map<java.lang.String,java.lang.String> extensions2Types
Constructor Detail

NewAttachmentPage

protected NewAttachmentPage(LocalAttachment att)
Method Detail

createControl

public void createControl(org.eclipse.swt.widgets.Composite parent)

isPageComplete

public boolean isPageComplete()
Specified by:
isPageComplete in interface org.eclipse.jface.wizard.IWizardPage
Overrides:
isPageComplete in class org.eclipse.jface.wizard.WizardPage

populateAttachment

public void populateAttachment()

getAttachment

public LocalAttachment getAttachment()

canFlipToNextPage

public boolean canFlipToNextPage()
Specified by:
canFlipToNextPage in interface org.eclipse.jface.wizard.IWizardPage
Overrides:
canFlipToNextPage in class org.eclipse.jface.wizard.WizardPage

setFilePath

public void setFilePath(java.lang.String path)

getNextPage

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

getAttachContext

public boolean getAttachContext()