use of org.eclipse.titan.common.parsers.AddedParseTree in project titan.EclipsePlug-ins by eclipse.
the class GeneralOptionsSubPage method createTimeStampFormatNode.
private void createTimeStampFormatNode(final LoggingSectionHandler.LoggerTreeElement lte, final LogParamEntry logentry, final String value) {
logentry.setTimestampFormatRoot(new ParserRuleContext());
logentry.setTimestampFormat(new AddedParseTree(value));
createNode(lte, logentry, value, "TimeStampFormat", logentry.getTimestampFormatRoot(), logentry.getTimestampFormat());
}
use of org.eclipse.titan.common.parsers.AddedParseTree in project titan.EclipsePlug-ins by eclipse.
the class GeneralOptionsSubPage method createLogEventTypesNode.
private void createLogEventTypesNode(final LoggingSectionHandler.LoggerTreeElement lte, final LogParamEntry logentry, final String value) {
logentry.setLogeventTypesRoot(new ParserRuleContext());
logentry.setLogeventTypes(new AddedParseTree(value));
createNode(lte, logentry, value, "LogEventTypes", logentry.getLogeventTypesRoot(), logentry.getLogeventTypes());
}
use of org.eclipse.titan.common.parsers.AddedParseTree in project titan.EclipsePlug-ins by eclipse.
the class GeneralOptionsSubPage method createPluginSpecificParamNode.
private PluginSpecificParam createPluginSpecificParamNode(final String param, final String value) {
StringBuilder name = new StringBuilder();
loggingPage.getSelectedTreeElement().writeNamePrefix(name);
name.append(param);
name.append(" := ");
final ParseTree keyAST = new AddedParseTree(name.toString());
final ParseTree valueAST = new AddedParseTree(value);
final ParseTree root = new ParserRuleContext();
ConfigTreeNodeUtilities.addChild(loggingSectionHandler.getLastSectionRoot(), root);
ConfigTreeNodeUtilities.addChild(root, new AddedParseTree("\n"));
ConfigTreeNodeUtilities.addChild(root, keyAST);
ConfigTreeNodeUtilities.addChild(root, valueAST);
PluginSpecificParam psp = new PluginSpecificParam(root, keyAST, valueAST, param);
selectedLogEntry.getPluginSpecificParam().add(psp);
return psp;
}
use of org.eclipse.titan.common.parsers.AddedParseTree in project titan.EclipsePlug-ins by eclipse.
the class LoggingBitsSubPage method addLoggingBit.
private void addLoggingBit(final Map<LoggingBit, ParseTree> bitMask, final ParseTree bitmaskRoot, final LoggingBit bit) {
ParseTree newBit = new AddedParseTree(bit.getName());
bitMask.put(bit, newBit);
if (bitMask.keySet().size() > 1) {
ParseTree separator = new AddedParseTree("|");
ConfigTreeNodeUtilities.addChild(bitmaskRoot, separator);
}
ConfigTreeNodeUtilities.addChild(bitmaskRoot, newBit);
}
use of org.eclipse.titan.common.parsers.AddedParseTree in project titan.EclipsePlug-ins by eclipse.
the class LoggingBitsSubPage method createFileMaskRootNode.
private void createFileMaskRootNode(final LoggingSectionHandler.LoggerTreeElement lte, final LogParamEntry logentry) {
ParseTree fileMaskRoot = new ParserRuleContext();
logentry.setFileMaskRoot(fileMaskRoot);
ConfigTreeNodeUtilities.addChild(fileMaskRoot, new AddedParseTree("\n"));
StringBuilder name = new StringBuilder();
lte.writeNamePrefix(name);
name.append("FileMask := ");
ParseTree node = new AddedParseTree(name.toString());
ConfigTreeNodeUtilities.addChild(fileMaskRoot, node);
ParseTree fileMask = new ParserRuleContext();
logentry.setFileMask(fileMask);
ConfigTreeNodeUtilities.addChild(fileMaskRoot, fileMask);
ConfigTreeNodeUtilities.addChild(loggingSectionHandler.getLastSectionRoot(), fileMaskRoot);
}
Aggregations