Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com
Answertopia.com

How To Guides
Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Windows
Problem Solutions
Privacy Policy

  




 

 


Eclipse Platform
Release 3.5

org.eclipse.ltk.ui.refactoring
Class UserInputWizardPage


java.lang.Object
  extended by 

org.eclipse.jface.dialogs.DialogPage
      extended by 

org.eclipse.jface.wizard.WizardPage
          extended by 

org.eclipse.ltk.ui.refactoring.RefactoringWizardPage
              extended by 
org.eclipse.ltk.ui.refactoring.UserInputWizardPage
All Implemented Interfaces:
IDialogPage, IMessageProvider, IWizardPage

public abstract class UserInputWizardPage
extends RefactoringWizardPage

An abstract wizard page that is to be used to implement user input pages presented inside a refactoring wizard. User input pages are shown at the beginning of a wizard. As soon as the last input page is left the refactoring's condition checking is performed. Depending on the outcome an error page or the preview page is shown.

Clients may extend this class.

Since:
3.0

Field Summary
 
Fields inherited from class org.eclipse.ltk.ui.refactoring. RefactoringWizardPage
REFACTORING_SETTINGS
 
Fields inherited from interface org.eclipse.jface.dialogs. IMessageProvider
ERROR, INFORMATION, NONE, WARNING
 
Constructor Summary
UserInputWizardPage ( String name)
          Creates a new user input page.
 
Method Summary
 boolean canFlipToNextPage ()
          The WizardPage implementation of this IWizardPage method returns true if this page is complete (isPageComplete) and there is a next page to flip to.
protected   IWizardPage computeSuccessorPage ()
          Triggers the refactoring's condition checking and returns either the error wizard page or a preview page, depending on the outcome of the precondition checking.
  IWizardPage getNextPage ()
          Returns the wizard page that would to be shown if the user was to press the Next button.
 boolean isLastUserInputPage ()
          Returns true if this is the last user input page in the stack of input pages; false otherwise.
protected  boolean performFinish ()
          Performs any actions appropriate in response to the user having pressed the Finish button, or refuse if finishing now is not permitted.
 void setPageComplete ( RefactoringStatus status)
          Sets the page's complete status depending on the given ReactoringStatus.
 void setVisible (boolean visible)
          The DialogPage implementation of this IDialogPage method sets the control to the given visibility state.
 
Methods inherited from class org.eclipse.ltk.ui.refactoring. RefactoringWizardPage
getRefactoring, getRefactoringSettings, getRefactoringWizard, setWizard
 
Methods inherited from class org.eclipse.jface.wizard. WizardPage
getContainer, getDialogSettings, getImage, getName, getPreviousPage, getShell, getWizard, isCurrentPage, isPageComplete, setDescription, setErrorMessage, setImageDescriptor, setMessage, setPageComplete, setPreviousPage, setTitle, 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
 
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, dispose, getControl, getDescription, getErrorMessage, getMessage, getTitle, performHelp
 

Constructor Detail

UserInputWizardPage

public UserInputWizardPage(
String name)
Creates a new user input page.

Parameters:
name - the page's name.
Method Detail

isLastUserInputPage

public boolean isLastUserInputPage()
Returns true if this is the last user input page in the stack of input pages; false otherwise. The last user input page is not necessarily the page after which the refactoring's precondition has to be triggered. For wizards implementing a dynamic work flow, this may happen for other pages as well.

Returns:
whether this is the last user input page or not.

computeSuccessorPage

protected final 
IWizardPage computeSuccessorPage()
Triggers the refactoring's condition checking and returns either the error wizard page or a preview page, depending on the outcome of the precondition checking.

Returns:
either the error or the preview page, depending on the refactoring's precondition checking

setPageComplete

public void setPageComplete(
RefactoringStatus status)
Sets the page's complete status depending on the given ReactoringStatus.

Parameters:
status - the RefactoringStatus

setVisible

public void setVisible(boolean visible)
The DialogPage implementation of this IDialogPage method sets the control to the given visibility state. Subclasses may extend.

Specified by:
setVisible in interface IDialogPage
Overrides:
setVisible in class DialogPage
Parameters:
visible - true to make this page visible, and false to hide it

getNextPage

public 
IWizardPage getNextPage()
Returns the wizard page that would to be shown if the user was to press the Next button.

Specified by:
getNextPage in interface IWizardPage
Overrides:
getNextPage in class WizardPage
Returns:
the next wizard page, or null if none

canFlipToNextPage

public boolean canFlipToNextPage()
The WizardPage implementation of this IWizardPage method returns true if this page is complete (isPageComplete) and there is a next page to flip to. Subclasses may override (extend or reimplement).

Specified by:
canFlipToNextPage in interface IWizardPage
Overrides:
canFlipToNextPage in class WizardPage
Returns:
true if the next page could be displayed, and false otherwise
See Also:
WizardPage.getNextPage(), WizardPage.isPageComplete()

performFinish

protected boolean performFinish()
Performs any actions appropriate in response to the user having pressed the Finish button, or refuse if finishing now is not permitted. This method is called by the refactoring wizard on the currently active refactoring wizard page.

Overrides:
performFinish in class RefactoringWizardPage
Returns:
true to indicate the finish request was accepted, and false to indicate that the finish request was refused

Eclipse Platform
Release 3.5

Guidelines for using Eclipse APIs.

Copyright (c) Eclipse contributors and others 2000, 2008. All rights reserved.


 
 
  Published under the terms of the Eclipse Public License Version 1.0 ("EPL") Design by Interspire