org.eclipse.emf.importer.ui.contribution.base
Class ModelImporterPage

java.lang.Object
  extended byorg.eclipse.jface.dialogs.DialogPage
      extended byorg.eclipse.jface.wizard.WizardPage
          extended byorg.eclipse.emf.importer.ui.contribution.base.ModelImporterPage
All Implemented Interfaces:
IDialogPage, IMessageProvider, IWizardPage, Listener
Direct Known Subclasses:
ModelDetailPage, ModelPackagePage

public abstract class ModelImporterPage
extends WizardPage
implements Listener

Since:
2.1.0

Field Summary
static int CAUSE_BACK
           
static int CAUSE_CANCEL
           
static int CAUSE_FINISH
           
static int CAUSE_NEXT
           
static int CAUSE_UNKNOWN
           
protected  boolean forwardDirection
           
protected  boolean handlingEvent
           
protected  ModelImporter modelImporter
           
protected  boolean neverVisible
           
 
Fields inherited from interface org.eclipse.jface.dialogs.IMessageProvider
ERROR, INFORMATION, NONE, WARNING
 
Constructor Summary
ModelImporterPage(ModelImporter modelImporter, String pageName)
           
 
Method Summary
protected  ImporterUtil.DecodedAction decodeAction(IStatus status)
           
 void dispose()
           
protected  void doHandleEvent(Event event)
           
 ModelImporter getModelImporter()
           
 IWizardPage getNextPage()
           
 IWizardPage getPreviousPage()
           
 void handleEvent(Event event)
           
protected  void handleNotOKStatus(IStatus status, ImporterUtil.DecodedAction decodedAction, String message, String dialogTitle, String dialogMessage)
           
protected  void handleOKStatus(IStatus status, String message, String dialogTitle, String dialogMessage)
           
protected  void handleStatus(IStatus status)
           
protected  void handleStatus(IStatus status, String message, String dialogTitle, String dialogMessage)
           
 boolean isHandlingEvent()
           
 boolean isPageComplete()
           
protected  void pageActivated(boolean firstTime, int cause)
           
protected  void pageDeactivated(int cause)
           
 void setHandlingEvent(boolean handlingEvent)
           
 
Methods inherited from class org.eclipse.jface.wizard.WizardPage
canFlipToNextPage, getContainer, getDialogSettings, getImage, getName, 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, 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
createControl, getControl, getDescription, getErrorMessage, getMessage, getTitle, performHelp, setVisible
 

Field Detail

CAUSE_UNKNOWN

public static final int CAUSE_UNKNOWN
See Also:
Constant Field Values

CAUSE_BACK

public static final int CAUSE_BACK
See Also:
Constant Field Values

CAUSE_NEXT

public static final int CAUSE_NEXT
See Also:
Constant Field Values

CAUSE_FINISH

public static final int CAUSE_FINISH
See Also:
Constant Field Values

CAUSE_CANCEL

public static final int CAUSE_CANCEL
See Also:
Constant Field Values

modelImporter

protected ModelImporter modelImporter

neverVisible

protected boolean neverVisible

forwardDirection

protected boolean forwardDirection

handlingEvent

protected boolean handlingEvent
Constructor Detail

ModelImporterPage

public ModelImporterPage(ModelImporter modelImporter,
                         String pageName)
Method Detail

dispose

public void dispose()
Specified by:
dispose in interface IDialogPage

getModelImporter

public ModelImporter getModelImporter()

pageActivated

protected void pageActivated(boolean firstTime,
                             int cause)

pageDeactivated

protected void pageDeactivated(int cause)

getNextPage

public IWizardPage getNextPage()
Specified by:
getNextPage in interface IWizardPage

getPreviousPage

public IWizardPage getPreviousPage()
Specified by:
getPreviousPage in interface IWizardPage

isPageComplete

public boolean isPageComplete()
Specified by:
isPageComplete in interface IWizardPage

isHandlingEvent

public boolean isHandlingEvent()

setHandlingEvent

public void setHandlingEvent(boolean handlingEvent)

handleEvent

public void handleEvent(Event event)
Specified by:
handleEvent in interface Listener

doHandleEvent

protected void doHandleEvent(Event event)

handleStatus

protected void handleStatus(IStatus status)

handleStatus

protected void handleStatus(IStatus status,
                            String message,
                            String dialogTitle,
                            String dialogMessage)

decodeAction

protected ImporterUtil.DecodedAction decodeAction(IStatus status)

handleOKStatus

protected void handleOKStatus(IStatus status,
                              String message,
                              String dialogTitle,
                              String dialogMessage)

handleNotOKStatus

protected void handleNotOKStatus(IStatus status,
                                 ImporterUtil.DecodedAction decodedAction,
                                 String message,
                                 String dialogTitle,
                                 String dialogMessage)

Copyright 2001-2004 IBM Corporation and others.
All Rights Reserved.