aXLang source code editor and project constants. More...
Public Member Functions | |
boolean | checkIfElementIsInFile (IAXLangElement element, MultiPageEditorPart part) |
checks if the element is defined inside the current file. | |
boolean | checkIfTheIFileIsIncluded (IFile possibleIncludedFile, IFile modelfile) throws Exception |
boolean | containsModel (File file) |
looks inside the content to find out if it contains a model. | |
IFile | convertFileToIFile (File file,@SuppressWarnings("unused") IProject project) |
converts a File to a IFile. (other direction-->IFile.getRawLocation().toFile) | |
String | correctedPath (File file, IProject project) |
searches for the correct name of the model, starting from the project name. | |
ArrayList< File > | findAllFilesRekursiv (IFileStore store, ArrayList< String > fileextensions) |
searches for all files recursively. | |
String | findFileName (IAXLangElement element) |
not all iaxlangelements have an information about their file!especially the expressions.... | |
String | findIncludeFileName (IAXLangElement element) |
not all iaxlangelements have an information about their file!especially the expressions.... | |
AXLMultiPageEditor | findTheMultiPageEditor (IAXLView view) |
ArrayList< File > | getAllAXLFilesFromProject (IProject project, boolean ignoreaxlproject) |
searches for all files inside an axlproject. | |
String | getCorrectAXBenchFilePath (IFile file) |
AXLMultiPageEditor | getCurrentmultipage () |
ImageData | getImageData (String path) |
get the image data. | |
LinkedHashMap< String, TreePath[]> | getOldExpandedTreePaths () |
ISelection | getOldISelection () |
LinkedHashMap< String, AXLMultiPageEditor > | getOldopenedmultieditor () |
LinkedHashMap< String, ArrayList< File > > | getOpencorrespondingfiles () |
LinkedHashMap< File, IDocument > | getOpendocumentfiles () |
LinkedHashMap< String, ArrayList< AXLMultiPageEditor > > | getOpenmultipageeditors () |
String | getOutlineSynchronizeString (IFile file) |
ArrayList< String > | getPrefixmatch () |
LinkedHashMap< String, AtomicBoolean > | getTreepathcollected () |
LinkedHashMap< String, AtomicBoolean > | getTreeviewrefreshed () |
boolean | isIncludedFile (String theNameToSearch, File file) |
boolean | isLockSetSessionElement () |
boolean | isNavigated () |
void | setCurrentmultipage (AXLMultiPageEditor currentopenmultipageeditor) |
void | setLockSetSessionElement (boolean lockSetSessionElement) |
void | setNavigated (boolean navigated) |
void | setOldISelection (ISelection oldISelection) |
Static Public Member Functions | |
static Constants | getInstance () |
static String[] | getTokenArray () |
Returns the defined token types. | |
Static Public Attributes | |
static final String | AXBENCHNATUREID = "de.fraunhofer.isst.AXBenchNature" |
static final String | AXL_POSITION_CATEGORY = "AXL_CATEGORY" |
the axl_category for the position save | |
static final String | CURRENT_VERSION = "0.9.0" |
the current axbench version | |
static final String | PVNATUREID = "com.ps.consul.eclipse.core.ConsulNature" |
static final Map< KeywordKind, AXLToken > | TOKENS |
Private Member Functions | |
boolean | isValidIncludeTag (String includetag) |
checks if the string is a valid include tag (no / \ before include ). | |
Private Attributes | |
AXLMultiPageEditor | currentmultipage = null |
needed e.g. for the instance view | |
boolean | lockSetSessionElement = false |
boolean | navigated = false |
LinkedHashMap< String, TreePath[]> | oldExpandedTreePaths = null |
perhapse for later changes the outline page could be always the same inside one project (in dependency to the current chosen model) | |
ISelection | oldISelection = null |
LinkedHashMap< String, AXLMultiPageEditor > | oldopenedmultieditor = null |
LinkedHashMap< String, ArrayList< File > > | opencorrespondingfiles = null |
LinkedHashMap< File, IDocument > | opendocumentfiles = null |
the currently opened document files | |
LinkedHashMap< String, ArrayList< AXLMultiPageEditor > > | openmultipageeditors = null |
the currently opened mutlipageeditors | |
ArrayList< String > | prefixmatch = null |
needed for the content assit to find the typed word by the user. | |
LinkedHashMap< String, AtomicBoolean > | treepathcollected = null |
LinkedHashMap< String, AtomicBoolean > | treeviewrefreshed = null |
Static Private Attributes | |
static Constants | constantsInstance = null |
aXLang source code editor and project constants.
boolean de.fraunhofer.isst.axbench.utilities.Constants.checkIfElementIsInFile | ( | IAXLangElement | element, | |
MultiPageEditorPart | part | |||
) |
checks if the element is defined inside the current file.
element | ||
part |
boolean de.fraunhofer.isst.axbench.utilities.Constants.checkIfTheIFileIsIncluded | ( | IFile | possibleIncludedFile, | |
IFile | modelfile | |||
) | throws Exception |
boolean de.fraunhofer.isst.axbench.utilities.Constants.containsModel | ( | File | file | ) |
looks inside the content to find out if it contains a model.
file |
IFile de.fraunhofer.isst.axbench.utilities.Constants.convertFileToIFile | ( | File | file, | |
@SuppressWarnings("unused") IProject | project | |||
) |
converts a File to a IFile. (other direction-->IFile.getRawLocation().toFile)
file |
String de.fraunhofer.isst.axbench.utilities.Constants.correctedPath | ( | File | file, | |
IProject | project | |||
) |
searches for the correct name of the model, starting from the project name.
path | ||
project |
ArrayList<File> de.fraunhofer.isst.axbench.utilities.Constants.findAllFilesRekursiv | ( | IFileStore | store, | |
ArrayList< String > | fileextensions | |||
) |
searches for all files recursively.
store | ||
fileextensions | - e.g. .axl or .vdm |
String de.fraunhofer.isst.axbench.utilities.Constants.findFileName | ( | IAXLangElement | element | ) |
not all iaxlangelements have an information about their file!especially the expressions....
element |
String de.fraunhofer.isst.axbench.utilities.Constants.findIncludeFileName | ( | IAXLangElement | element | ) |
not all iaxlangelements have an information about their file!especially the expressions....
element |
AXLMultiPageEditor de.fraunhofer.isst.axbench.utilities.Constants.findTheMultiPageEditor | ( | IAXLView | view | ) |
ArrayList<File> de.fraunhofer.isst.axbench.utilities.Constants.getAllAXLFilesFromProject | ( | IProject | project, | |
boolean | ignoreaxlproject | |||
) |
searches for all files inside an axlproject.
project |
String de.fraunhofer.isst.axbench.utilities.Constants.getCorrectAXBenchFilePath | ( | IFile | file | ) |
file |
AXLMultiPageEditor de.fraunhofer.isst.axbench.utilities.Constants.getCurrentmultipage | ( | ) |
ImageData de.fraunhofer.isst.axbench.utilities.Constants.getImageData | ( | String | path | ) |
get the image data.
static Constants de.fraunhofer.isst.axbench.utilities.Constants.getInstance | ( | ) | [static] |
LinkedHashMap<String, TreePath[]> de.fraunhofer.isst.axbench.utilities.Constants.getOldExpandedTreePaths | ( | ) |
ISelection de.fraunhofer.isst.axbench.utilities.Constants.getOldISelection | ( | ) |
LinkedHashMap<String, AXLMultiPageEditor> de.fraunhofer.isst.axbench.utilities.Constants.getOldopenedmultieditor | ( | ) |
LinkedHashMap<String, ArrayList<File> > de.fraunhofer.isst.axbench.utilities.Constants.getOpencorrespondingfiles | ( | ) |
LinkedHashMap<File, IDocument> de.fraunhofer.isst.axbench.utilities.Constants.getOpendocumentfiles | ( | ) |
LinkedHashMap<String, ArrayList<AXLMultiPageEditor> > de.fraunhofer.isst.axbench.utilities.Constants.getOpenmultipageeditors | ( | ) |
String de.fraunhofer.isst.axbench.utilities.Constants.getOutlineSynchronizeString | ( | IFile | file | ) |
ArrayList<String> de.fraunhofer.isst.axbench.utilities.Constants.getPrefixmatch | ( | ) |
static String [] de.fraunhofer.isst.axbench.utilities.Constants.getTokenArray | ( | ) | [static] |
Returns the defined token types.
LinkedHashMap<String, AtomicBoolean> de.fraunhofer.isst.axbench.utilities.Constants.getTreepathcollected | ( | ) |
LinkedHashMap<String, AtomicBoolean> de.fraunhofer.isst.axbench.utilities.Constants.getTreeviewrefreshed | ( | ) |
boolean de.fraunhofer.isst.axbench.utilities.Constants.isIncludedFile | ( | String | theNameToSearch, | |
File | file | |||
) |
nametosearch | ||
file | to search in |
boolean de.fraunhofer.isst.axbench.utilities.Constants.isLockSetSessionElement | ( | ) |
boolean de.fraunhofer.isst.axbench.utilities.Constants.isNavigated | ( | ) |
boolean de.fraunhofer.isst.axbench.utilities.Constants.isValidIncludeTag | ( | String | includetag | ) | [private] |
checks if the string is a valid include tag (no / \ before include ).
includetag |
void de.fraunhofer.isst.axbench.utilities.Constants.setCurrentmultipage | ( | AXLMultiPageEditor | currentopenmultipageeditor | ) |
currentopenmultipageeditor | the currentopenmultipageeditor to set |
void de.fraunhofer.isst.axbench.utilities.Constants.setLockSetSessionElement | ( | boolean | lockSetSessionElement | ) |
lockSetSessionElement | the lockSetSessionElement to set |
void de.fraunhofer.isst.axbench.utilities.Constants.setNavigated | ( | boolean | navigated | ) |
void de.fraunhofer.isst.axbench.utilities.Constants.setOldISelection | ( | ISelection | oldISelection | ) |
final String de.fraunhofer.isst.axbench.utilities.Constants.AXBENCHNATUREID = "de.fraunhofer.isst.AXBenchNature" [static] |
final String de.fraunhofer.isst.axbench.utilities.Constants.AXL_POSITION_CATEGORY = "AXL_CATEGORY" [static] |
the axl_category for the position save
Constants de.fraunhofer.isst.axbench.utilities.Constants.constantsInstance = null [static, private] |
final String de.fraunhofer.isst.axbench.utilities.Constants.CURRENT_VERSION = "0.9.0" [static] |
the current axbench version
needed e.g. for the instance view
boolean de.fraunhofer.isst.axbench.utilities.Constants.lockSetSessionElement = false [private] |
boolean de.fraunhofer.isst.axbench.utilities.Constants.navigated = false [private] |
LinkedHashMap<String, TreePath[]> de.fraunhofer.isst.axbench.utilities.Constants.oldExpandedTreePaths = null [private] |
perhapse for later changes the outline page could be always the same inside one project (in dependency to the current chosen model)
ISelection de.fraunhofer.isst.axbench.utilities.Constants.oldISelection = null [private] |
LinkedHashMap<String, AXLMultiPageEditor> de.fraunhofer.isst.axbench.utilities.Constants.oldopenedmultieditor = null [private] |
LinkedHashMap<String, ArrayList<File> > de.fraunhofer.isst.axbench.utilities.Constants.opencorrespondingfiles = null [private] |
LinkedHashMap<File, IDocument> de.fraunhofer.isst.axbench.utilities.Constants.opendocumentfiles = null [private] |
the currently opened document files
LinkedHashMap<String, ArrayList<AXLMultiPageEditor> > de.fraunhofer.isst.axbench.utilities.Constants.openmultipageeditors = null [private] |
the currently opened mutlipageeditors
ArrayList<String> de.fraunhofer.isst.axbench.utilities.Constants.prefixmatch = null [private] |
needed for the content assit to find the typed word by the user.
final String de.fraunhofer.isst.axbench.utilities.Constants.PVNATUREID = "com.ps.consul.eclipse.core.ConsulNature" [static] |
final Map<KeywordKind, AXLToken> de.fraunhofer.isst.axbench.utilities.Constants.TOKENS [static] |
new HashMap<KeywordKind, AXLToken>() { private static final long serialVersionUID = 8704450280149961189L; { put( KeywordKind.COMMENT, new AXLToken( new RGB( 136, 136, 136 ), null, SWT.ITALIC ) ); put( KeywordKind.DEFAULT, new AXLToken( new RGB( 0, 0, 0 ), null, SWT.NORMAL ) ); put( KeywordKind.KEYWORD1, new AXLToken( new RGB( 0, 0, 0 ), null, SWT.BOLD ) ); put( KeywordKind.KEYWORD2, new AXLToken( new RGB( 0, 0, 136 ), null, SWT.BOLD ) ); put( KeywordKind.KEYWORD3, new AXLToken( new RGB( 51, 51, 170 ), null, SWT.NORMAL ) ); put( KeywordKind.KEYWORD4, new AXLToken( new RGB( 0, 102, 0 ), null, SWT.NORMAL ) ); put( KeywordKind.KEYWORD5, new AXLToken( new RGB( 136, 0, 0 ), null, SWT.NORMAL ) ); put( KeywordKind.KEYWORD6, new AXLToken( new RGB( 205, 133, 63 ), null, SWT.NORMAL ) ); put( KeywordKind.STRING, new AXLToken( new RGB( 51, 170, 51 ), null, SWT.NORMAL ) ); } }
Map of language tokens.
LinkedHashMap<String, AtomicBoolean> de.fraunhofer.isst.axbench.utilities.Constants.treepathcollected = null [private] |
LinkedHashMap<String, AtomicBoolean> de.fraunhofer.isst.axbench.utilities.Constants.treeviewrefreshed = null [private] |