本文整理汇总了Java中net.ssehub.easy.instantiation.core.model.execution.TracerFactory.setDefaultInstance方法的典型用法代码示例。如果您正苦于以下问题:Java TracerFactory.setDefaultInstance方法的具体用法?Java TracerFactory.setDefaultInstance怎么用?Java TracerFactory.setDefaultInstance使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类net.ssehub.easy.instantiation.core.model.execution.TracerFactory
的用法示例。
在下文中一共展示了TracerFactory.setDefaultInstance方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: initialize
import net.ssehub.easy.instantiation.core.model.execution.TracerFactory; //导入方法依赖的package包/类
/**
* Initializes the repository connector. This is done automatically on first access, but shall be done during
* layer startup.
*/
public static void initialize() {
if (null == loader) {
// start up EASy
try {
QmLogging.setLogLevel(Level.INFO);
QmLogging.disableUnwantedLogging();
//QmLogging.setLogLevel("org.eclipse.xtext.service.BindModule", Level.INFO);
loader = new ListLoader();
loader.setVerbose(false);
loader.startup();
} catch (IOException e) {
getLogger().error(e.getMessage());
}
if (readModels()) {
// set tracing
TracerFactory.setDefaultInstance(TracerFactory.DEFAULT);
}
}
}
示例2: executeScript
import net.ssehub.easy.instantiation.core.model.execution.TracerFactory; //导入方法依赖的package包/类
/**
* Creates a VIL executor for the contained PLP.
*
* @param artifactsFolder the name of the folder in testdata
* @param script the script
* @param targetFile the target directory
*
* @throws ModelManagementException
* @throws VilException
*/
private void executeScript(String artifactsFolder, File script, File targetFile) throws
ModelManagementException,
VilException {
// final File base = new File(getArtifactsFolder(), artifactsFolder);
// final File script = new File(getArtifactsFolder(), script);
// execute
//System.out.println(script.getAbsolutePath());
String scriptName = script.getName().replaceAll(".vil", "");
ProjectDescriptor source = new ProjectDescriptor(script.getAbsolutePath(), scriptName);
ProjectDescriptor target = new ProjectDescriptor(source, targetFile);
TracerFactory.setDefaultInstance(ConsoleTracerFactory.INSTANCE);
Executor executor = new Executor(source.getMainVilScript()).addSource(source).addTarget(target)
.addConfiguration(ProjectDescriptor.getConfiguration(scriptName));
executor.execute();
}
示例3: earlyStartup
import net.ssehub.easy.instantiation.core.model.execution.TracerFactory; //导入方法依赖的package包/类
@Override
public void earlyStartup() {
IWorkbench workbench = PlatformUI.getWorkbench();
workbench.getDisplay().syncExec(new Runnable() {
public void run() {
// I would expect the following line to be part of the startup of EASy core
EASyLogger logger = EASyLoggerFactory.INSTANCE.getLogger(Startup.class,
"de.uni_hildesheim.sse.easy.ui");
logger.info("EASy-Producer 2.0 is up and running...");
ResourcesMgmt.INSTANCE.findPLProjects();
}
});
// Register the observer for sending messages to the console of the running Eclipse-instance.
TracerFactory.setDefaultInstance(GuiTracerFactory.INSTANCE);
}
示例4: Activator
import net.ssehub.easy.instantiation.core.model.execution.TracerFactory; //导入方法依赖的package包/类
/**
* The constructor.
*/
public Activator() {
EASyInitializer.setInitializer();
TracerFactory.setDefaultInstance(ConsoleTracerFactory.INSTANCE);
}