Class StochasticExpressionEditDialogOLD
- java.lang.Object
-
- org.eclipse.jface.window.Window
-
- org.eclipse.jface.dialogs.Dialog
-
- org.eclipse.jface.dialogs.TrayDialog
-
- org.eclipse.jface.dialogs.TitleAreaDialog
-
- org.palladiosimulator.editors.commons.dialogs.stoex.AbstractGrammerBasedEditDialog
-
- org.palladiosimulator.editors.commons.dialogs.stoex.StochasticExpressionEditDialogOLD
-
- All Implemented Interfaces:
IShellProvider
@Deprecated(forRemoval=true) public class StochasticExpressionEditDialogOLD extends AbstractGrammerBasedEditDialog
Deprecated, for removal: This API element is subject to removal in a future version.The Class StochasticExpressionEditDialog.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.eclipse.jface.window.Window
Window.IExceptionHandler
-
-
Field Summary
-
Fields inherited from class org.palladiosimulator.editors.commons.dialogs.stoex.AbstractGrammerBasedEditDialog
context, ERROR_TYPE, newText, WARNING_TYPE
-
Fields inherited from class org.eclipse.jface.dialogs.TitleAreaDialog
DLG_IMG_TITLE_BANNER, DLG_IMG_TITLE_ERROR, INFO_MESSAGE, WARNING_MESSAGE
-
Fields inherited from class org.eclipse.jface.dialogs.Dialog
blockedHandler, buttonBar, DIALOG_DEFAULT_BOUNDS, DIALOG_PERSISTLOCATION, DIALOG_PERSISTSIZE, dialogArea, DLG_IMG_ERROR, DLG_IMG_HELP, DLG_IMG_INFO, DLG_IMG_MESSAGE_ERROR, DLG_IMG_MESSAGE_INFO, DLG_IMG_MESSAGE_WARNING, DLG_IMG_QUESTION, DLG_IMG_WARNING, ELLIPSIS
-
Fields inherited from class org.eclipse.jface.window.Window
CANCEL, OK, resizeHasOccurred
-
-
Constructor Summary
Constructors Constructor Description StochasticExpressionEditDialogOLD(Shell parent, de.uka.ipd.sdq.stoex.analyser.visitors.TypeEnum expectedType)
Deprecated, for removal: This API element is subject to removal in a future version.Instantiates a new stochastic expression edit dialog.StochasticExpressionEditDialogOLD(Shell parent, de.uka.ipd.sdq.stoex.analyser.visitors.TypeEnum expectedType, EObject contextObject)
Deprecated, for removal: This API element is subject to removal in a future version.Instantiates a new stochastic expression edit dialog.StochasticExpressionEditDialogOLD(Shell parent, de.uka.ipd.sdq.stoex.analyser.visitors.TypeEnum expectedType, org.palladiosimulator.pcm.repository.Parameter[] context)
Deprecated, for removal: This API element is subject to removal in a future version.Instantiates a new stochastic expression edit dialog.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected String
getInitialText()
Deprecated, for removal: This API element is subject to removal in a future version.Gets the initial text.protected org.antlr.runtime.Lexer
getLexer(String text)
Deprecated, for removal: This API element is subject to removal in a future version.Gets the lexer.protected Class<org.palladiosimulator.pcm.stochasticexpressions.parser.PCMStoExLexer>
getLexerClass()
Deprecated, for removal: This API element is subject to removal in a future version.Gets the lexer class.de.uka.ipd.sdq.stoex.Expression
getResult()
Deprecated, for removal: This API element is subject to removal in a future version.Gets the result.String
getResultText()
Deprecated, for removal: This API element is subject to removal in a future version.Gets the result text.protected String
getTitle()
Deprecated, for removal: This API element is subject to removal in a future version.Gets the title.protected ITokenMapper
getTokenMapper()
Deprecated, for removal: This API element is subject to removal in a future version.Gets the token mapper.static de.uka.ipd.sdq.stoex.analyser.visitors.TypeEnum
getTypeFromVariableCharacterisation(org.palladiosimulator.pcm.parameter.VariableCharacterisation ch)
Deprecated, for removal: This API element is subject to removal in a future version.Get the type of an variable characterisation.protected EObject
parse(org.antlr.runtime.Lexer lexer)
Deprecated, for removal: This API element is subject to removal in a future version.Parses the.void
setInitialExpression(de.uka.ipd.sdq.stoex.RandomVariable ex)
Deprecated, for removal: This API element is subject to removal in a future version.Sets the initial expression.-
Methods inherited from class org.palladiosimulator.editors.commons.dialogs.stoex.AbstractGrammerBasedEditDialog
cancelPressed, configureShell, createContents, createDialogArea, createSourceViewer, parseInputAndRefreshAnnotations, setDisplayTitle
-
Methods inherited from class org.eclipse.jface.dialogs.TitleAreaDialog
getErrorMessage, getInitialSize, getMessage, getTitleArea, getTitleImageLabel, setErrorMessage, setMessage, setMessage, setTitle, setTitleAreaColor, setTitleImage
-
Methods inherited from class org.eclipse.jface.dialogs.TrayDialog
closeTray, createButtonBar, createHelpControl, getLayout, getTray, handleShellCloseEvent, isDialogHelpAvailable, isHelpAvailable, openTray, setDialogHelpAvailable, setHelpAvailable
-
Methods inherited from class org.eclipse.jface.dialogs.Dialog
applyDialogFont, buttonPressed, close, convertHeightInCharsToPixels, convertHeightInCharsToPixels, convertHorizontalDLUsToPixels, convertHorizontalDLUsToPixels, convertVerticalDLUsToPixels, convertVerticalDLUsToPixels, convertWidthInCharsToPixels, convertWidthInCharsToPixels, create, createButton, createButtonsForButtonBar, dialogFontIsDefault, getBlockedHandler, getButton, getButtonBar, getCancelButton, getDialogArea, getDialogBoundsSettings, getDialogBoundsStrategy, getImage, getInitialLocation, getOKButton, initializeBounds, initializeDialogUnits, isResizable, okPressed, setBlockedHandler, setButtonLayoutData, setButtonLayoutFormData, shortenText
-
Methods inherited from class org.eclipse.jface.window.Window
canHandleShellCloseEvent, constrainShellSize, createShell, getConstrainedShellBounds, getContents, getDefaultImage, getDefaultImages, getDefaultOrientation, getParentShell, getReturnCode, getShell, getShellListener, getShellStyle, getWindowManager, handleFontChange, open, setBlockOnOpen, setDefaultImage, setDefaultImages, setDefaultModalParent, setDefaultOrientation, setExceptionHandler, setParentShell, setReturnCode, setShellStyle, setWindowManager
-
-
-
-
Constructor Detail
-
StochasticExpressionEditDialogOLD
public StochasticExpressionEditDialogOLD(Shell parent, de.uka.ipd.sdq.stoex.analyser.visitors.TypeEnum expectedType)
Deprecated, for removal: This API element is subject to removal in a future version.Instantiates a new stochastic expression edit dialog.- Parameters:
parent
- the parentexpectedType
- the expected type
-
StochasticExpressionEditDialogOLD
public StochasticExpressionEditDialogOLD(Shell parent, de.uka.ipd.sdq.stoex.analyser.visitors.TypeEnum expectedType, org.palladiosimulator.pcm.repository.Parameter[] context)
Deprecated, for removal: This API element is subject to removal in a future version.Instantiates a new stochastic expression edit dialog.- Parameters:
parent
- the parentexpectedType
- the expected typecontext
- the context
-
StochasticExpressionEditDialogOLD
public StochasticExpressionEditDialogOLD(Shell parent, de.uka.ipd.sdq.stoex.analyser.visitors.TypeEnum expectedType, EObject contextObject)
Deprecated, for removal: This API element is subject to removal in a future version.Instantiates a new stochastic expression edit dialog.- Parameters:
parent
- The parent shellexpectedType
- The type of the expression to be enteredcontextObject
- An EObject from which a parameter context is derived by searching for its parent SEFF and taking this SEFFs signature into account
-
-
Method Detail
-
setInitialExpression
public void setInitialExpression(de.uka.ipd.sdq.stoex.RandomVariable ex)
Deprecated, for removal: This API element is subject to removal in a future version.Sets the initial expression.- Parameters:
ex
- the new initial expression
-
getResult
public de.uka.ipd.sdq.stoex.Expression getResult()
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from class:AbstractGrammerBasedEditDialog
Gets the result.- Overrides:
getResult
in classAbstractGrammerBasedEditDialog
- Returns:
- the result
-
getResultText
public String getResultText()
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from class:AbstractGrammerBasedEditDialog
Gets the result text.- Overrides:
getResultText
in classAbstractGrammerBasedEditDialog
- Returns:
- the result text
-
getInitialText
protected String getInitialText()
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from class:AbstractGrammerBasedEditDialog
Gets the initial text.- Specified by:
getInitialText
in classAbstractGrammerBasedEditDialog
- Returns:
- the initial text
-
getLexer
protected org.antlr.runtime.Lexer getLexer(String text)
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from class:AbstractGrammerBasedEditDialog
Gets the lexer.- Specified by:
getLexer
in classAbstractGrammerBasedEditDialog
- Parameters:
text
- the text- Returns:
- the lexer
-
getTitle
protected String getTitle()
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from class:AbstractGrammerBasedEditDialog
Gets the title.- Specified by:
getTitle
in classAbstractGrammerBasedEditDialog
- Returns:
- the title
-
parse
protected EObject parse(org.antlr.runtime.Lexer lexer) throws org.antlr.runtime.RecognitionException, StoExParserException
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from class:AbstractGrammerBasedEditDialog
Parses the.- Specified by:
parse
in classAbstractGrammerBasedEditDialog
- Parameters:
lexer
- the lexer- Returns:
- the e object
- Throws:
org.antlr.runtime.RecognitionException
- the recognition exceptionStoExParserException
- the sto ex parser exception
-
getLexerClass
protected Class<org.palladiosimulator.pcm.stochasticexpressions.parser.PCMStoExLexer> getLexerClass()
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from class:AbstractGrammerBasedEditDialog
Gets the lexer class.- Specified by:
getLexerClass
in classAbstractGrammerBasedEditDialog
- Returns:
- the lexer class
-
getTokenMapper
protected ITokenMapper getTokenMapper()
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from class:AbstractGrammerBasedEditDialog
Gets the token mapper.- Specified by:
getTokenMapper
in classAbstractGrammerBasedEditDialog
- Returns:
- the token mapper
-
getTypeFromVariableCharacterisation
public static de.uka.ipd.sdq.stoex.analyser.visitors.TypeEnum getTypeFromVariableCharacterisation(org.palladiosimulator.pcm.parameter.VariableCharacterisation ch)
Deprecated, for removal: This API element is subject to removal in a future version.Get the type of an variable characterisation.- Parameters:
ch
- The characterisation to check.- Returns:
- INT for ByteSize and number of elements, ANY for all others.
-
-