Class TextInputWizardPage
- java.lang.Object
-
- org.eclipse.jface.dialogs.DialogPage
-
- org.eclipse.jface.wizard.WizardPage
-
- org.eclipse.ltk.ui.refactoring.RefactoringWizardPage
-
- org.eclipse.ltk.ui.refactoring.UserInputWizardPage
-
- com._1c.g5.v8.dt.bsl.ui.refactoring.TextInputWizardPage
-
- All Implemented Interfaces:
org.eclipse.jface.dialogs.IDialogPage
,org.eclipse.jface.dialogs.IMessageProvider
,org.eclipse.jface.wizard.IWizardPage
public abstract class TextInputWizardPage extends org.eclipse.ltk.ui.refactoring.UserInputWizardPage
Default implementation ofUserInputWizardPage
for Bsl extracting refactoring
The main facilities of this class is to create text input field and validate inserting value
-
-
Constructor Summary
Constructors Constructor Description TextInputWizardPage(String description, String initialValue)
Constructor
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected org.eclipse.swt.widgets.Text
createTextInputField(org.eclipse.swt.widgets.Composite parent)
Create input field controlvoid
dispose()
protected String
getText()
Returns the content of the text input field.protected org.eclipse.swt.widgets.Text
getTextField()
Returns the text entry fieldvoid
setVisible(boolean visible)
protected void
textModified(String text)
Checks the page's state and issues a corresponding error message.protected abstract org.eclipse.ltk.core.refactoring.RefactoringStatus
validateTextField(String text)
Validates inputing text-
Methods inherited from class org.eclipse.ltk.ui.refactoring.UserInputWizardPage
canFlipToNextPage, computeSuccessorPage, getNextPage, isLastUserInputPage, performFinish, setPageComplete
-
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, getControl, getDescription, getDialogFontName, getErrorMessage, getFont, getMessage, getMessageType, getTitle, getToolTipText, initializeDialogUnits, isControlCreated, performHelp, setButtonLayoutData, setControl, setMessage
-
-
-
-
Field Detail
-
PAGE_NAME
public static final String PAGE_NAME
- See Also:
- Constant Field Values
-
-
Method Detail
-
dispose
public void dispose()
- Specified by:
dispose
in interfaceorg.eclipse.jface.dialogs.IDialogPage
- Overrides:
dispose
in classorg.eclipse.jface.dialogs.DialogPage
-
setVisible
public void setVisible(boolean visible)
- Specified by:
setVisible
in interfaceorg.eclipse.jface.dialogs.IDialogPage
- Overrides:
setVisible
in classorg.eclipse.ltk.ui.refactoring.UserInputWizardPage
-
validateTextField
protected abstract org.eclipse.ltk.core.refactoring.RefactoringStatus validateTextField(String text)
Validates inputing text- Parameters:
text
- for validation, can't benull
- Returns:
- result of validation
RefactoringStatus
-
getText
protected String getText()
Returns the content of the text input field.- Returns:
- the content of the text input field. Returns
null
if not text input field has been created
-
getTextField
protected org.eclipse.swt.widgets.Text getTextField()
Returns the text entry field- Returns:
- the text entry field
-
createTextInputField
protected org.eclipse.swt.widgets.Text createTextInputField(org.eclipse.swt.widgets.Composite parent)
Create input field control- Parameters:
parent
- parent composite, can't benull
- Returns:
- created control, can't be
null
-
textModified
protected void textModified(String text)
Checks the page's state and issues a corresponding error message. The page validation is computed by callingvalidatePage
.
-
-