public abstract class SourceViewerParameterPage extends SourceListParameterPage<org.eclipse.jface.text.source.SourceViewer>
Constructor and Description |
---|
SourceViewerParameterPage(String pageName) |
SourceViewerParameterPage(String pageName,
String title,
org.eclipse.jface.resource.ImageDescriptor titleImage) |
Modifier and Type | Method and Description |
---|---|
protected void |
configure(org.eclipse.jface.text.source.SourceViewer viewer)
Configure the source viewer.
|
protected org.eclipse.jface.text.source.SourceViewer |
createAndLayoutTextField(org.eclipse.swt.widgets.Composite parent)
Create and text field and layout it.
|
protected void |
createAndSetDocument(org.eclipse.jface.text.source.SourceViewer viewer)
Create the initial document and set it for the viewer.
|
protected org.eclipse.jface.text.source.SourceViewerConfiguration |
createConfiguration()
Create the source viewer configuration.
|
protected org.eclipse.jface.text.source.IVerticalRuler |
createRuler()
Create the vertical ruler for the source viewer.
|
protected org.eclipse.jface.text.IDocument |
getDocument()
Get the source viewer document.
|
protected String |
getText(org.eclipse.jface.text.source.SourceViewer viewer)
Get the current text of the text field.
|
protected void |
insertTextAtCurrentPos(org.eclipse.jface.text.source.SourceViewer viewer,
String insert)
Insert a given text at the current position of the given text field.
|
protected void |
setText(org.eclipse.jface.text.source.SourceViewer viewer,
String value)
Set the text of the text field to the given value.
|
protected void |
updateState(org.eclipse.jface.text.IDocument document)
Update the page state.
|
protected boolean |
validate(org.eclipse.jface.text.IDocument document)
Validate the given document.
|
createContent, determineDefaultVariableNames, getConfiguration, getParameterName, getSourcePropertyName, getTextField, getVariableName, onShowPage, setParameter, sourcePropertiesChanged
createControl, dispose, getHelpContext, getWizard, performHelp
canFlipToNextPage, getContainer, getDialogSettings, getImage, getName, getNextPage, getPreviousPage, getShell, isCurrentPage, isPageComplete, setDescription, setErrorMessage, setImageDescriptor, setMessage, setPageComplete, setPreviousPage, setTitle, setWizard, toString
convertHeightInCharsToPixels, convertHorizontalDLUsToPixels, convertVerticalDLUsToPixels, convertWidthInCharsToPixels, getControl, getDescription, getDialogFontName, getErrorMessage, getFont, getMessage, getMessageType, getTitle, getToolTipText, initializeDialogUnits, isControlCreated, setButtonLayoutData, setControl, setMessage, setVisible
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
public SourceViewerParameterPage(String pageName, String title, org.eclipse.jface.resource.ImageDescriptor titleImage)
public SourceViewerParameterPage(String pageName)
protected void setText(org.eclipse.jface.text.source.SourceViewer viewer, String value)
SourceListParameterPage
setText
in class SourceListParameterPage<org.eclipse.jface.text.source.SourceViewer>
viewer
- the text fieldvalue
- the value to set as textSourceListParameterPage.setText(Object, String)
protected String getText(org.eclipse.jface.text.source.SourceViewer viewer)
SourceListParameterPage
getText
in class SourceListParameterPage<org.eclipse.jface.text.source.SourceViewer>
viewer
- the text fieldSourceListParameterPage.getText(Object)
protected void insertTextAtCurrentPos(org.eclipse.jface.text.source.SourceViewer viewer, String insert)
SourceListParameterPage
insertTextAtCurrentPos
in class SourceListParameterPage<org.eclipse.jface.text.source.SourceViewer>
viewer
- the text fieldinsert
- the text to insertSourceListParameterPage.insertTextAtCurrentPos(Object, String)
protected org.eclipse.jface.text.source.SourceViewer createAndLayoutTextField(org.eclipse.swt.widgets.Composite parent)
SourceListParameterPage
createAndLayoutTextField
in class SourceListParameterPage<org.eclipse.jface.text.source.SourceViewer>
parent
- the parent composite, it has a one-column grid layoutSourceListParameterPage.createAndLayoutTextField(Composite)
protected org.eclipse.jface.text.source.IVerticalRuler createRuler()
protected void configure(org.eclipse.jface.text.source.SourceViewer viewer)
configure
in class SourceListParameterPage<org.eclipse.jface.text.source.SourceViewer>
viewer
- the text field to configureprotected org.eclipse.jface.text.IDocument getDocument()
protected void updateState(org.eclipse.jface.text.IDocument document)
document
- the current documentprotected boolean validate(org.eclipse.jface.text.IDocument document)
true
.document
- the document to validateprotected void createAndSetDocument(org.eclipse.jface.text.source.SourceViewer viewer)
viewer
- the source viewerprotected org.eclipse.jface.text.source.SourceViewerConfiguration createConfiguration()
Build 2013-10-07_11-27-38
Revision 99b27713a799a59a21b0b166eaaea8aaefbf125a