本文整理匯總了Java中org.eclipse.gemoc.xdsmlframework.api.core.ExecutionMode類的典型用法代碼示例。如果您正苦於以下問題:Java ExecutionMode類的具體用法?Java ExecutionMode怎麽用?Java ExecutionMode使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。
ExecutionMode類屬於org.eclipse.gemoc.xdsmlframework.api.core包,在下文中一共展示了ExecutionMode類的9個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: engineSelectionChanged
import org.eclipse.gemoc.xdsmlframework.api.core.ExecutionMode; //導入依賴的package包/類
@Override
public void engineSelectionChanged(IExecutionEngine engine)
{
_currentSelectedEngine = engine;
if (_currentSelectedEngine == null)
{
setEnabled(false);
}
else
{
setEnabled(
!_currentSelectedEngine.getRunningStatus().equals(RunStatus.Stopped)
&& _currentSelectedEngine.getExecutionContext().getExecutionMode().equals(ExecutionMode.Animation));
}
}
示例2: createAndLaunchConfiguration
import org.eclipse.gemoc.xdsmlframework.api.core.ExecutionMode; //導入依賴的package包/類
private ILaunch createAndLaunchConfiguration(ExecutionMode executionMode,
IProgressMonitor monitor, URI launchURI) {
ILaunchManager manager = DebugPlugin.getDefault().getLaunchManager();
String launchPathName = launchURI.toPlatformString(true);
String tmpProjectName = launchPathName.substring(1, launchPathName.length());
String projectName = tmpProjectName.substring(0, tmpProjectName.indexOf('/'));
IProject launchProject = ResourcesPlugin.getWorkspace().getRoot().getProject(projectName);
IFile launchFile = launchProject.getFile(launchPathName.replaceFirst("/"+projectName+"/", ""));
ILaunchConfiguration launch = manager.getLaunchConfiguration(launchFile);
try {
ILaunch startedLaunch = launch.launch(ILaunchManager.DEBUG_MODE, monitor);
return startedLaunch;
} catch (CoreException e) {
e.printStackTrace();
}
return null;
}
示例3: createExecutionEngine
import org.eclipse.gemoc.xdsmlframework.api.core.ExecutionMode; //導入依賴的package包/類
@Override
protected IExecutionEngine createExecutionEngine(RunConfiguration runConfiguration, ExecutionMode executionMode)
throws CoreException, EngineContextException {
// create and initialize engine
IExecutionEngine executionEngine = new PlainK3ExecutionEngine();
ModelExecutionContext executioncontext = new SequentialModelExecutionContext(runConfiguration, executionMode);
executioncontext.getExecutionPlatform().getModelLoader().setProgressMonitor(this.launchProgressMonitor);
executioncontext.initializeResourceModel();
executionEngine.initialize(executioncontext);
return executionEngine;
}
示例4: canDisplayTimeline
import org.eclipse.gemoc.xdsmlframework.api.core.ExecutionMode; //導入依賴的package包/類
private boolean canDisplayTimeline(IExecutionEngine engine) {
if (engine.getExecutionContext().getExecutionMode().equals(ExecutionMode.Run)
&& engine.getRunningStatus().equals(RunStatus.Stopped)) {
return true;
}
if (engine.getExecutionContext().getExecutionMode().equals(ExecutionMode.Animation)) {
return true;
}
return false;
}
示例5: prepareEngine
import org.eclipse.gemoc.xdsmlframework.api.core.ExecutionMode; //導入依賴的package包/類
public void prepareEngine(BenchmarkRunConfiguration runConf) throws CoreException, EngineContextException {
ExecutionMode executionMode = ExecutionMode.Run;
executionContext = new SequentialModelExecutionContext(runConf, executionMode);
executionContext.initializeResourceModel();
_executionEngine = new PlainK3ExecutionEngine();
_executionEngine.initialize(executionContext);
_executionEngine.stopOnAddonError = true;
}
示例6: SequentialModelExecutionContext
import org.eclipse.gemoc.xdsmlframework.api.core.ExecutionMode; //導入依賴的package包/類
public SequentialModelExecutionContext(IRunConfiguration runConfiguration, ExecutionMode executionMode)
throws EngineContextException
{
super(runConfiguration, executionMode);
}
示例7: createExecutionEngine
import org.eclipse.gemoc.xdsmlframework.api.core.ExecutionMode; //導入依賴的package包/類
protected abstract IExecutionEngine createExecutionEngine(RunConfiguration runConfiguration,
ExecutionMode executionMode) throws CoreException, EngineContextException;
示例8: getExecutionMode
import org.eclipse.gemoc.xdsmlframework.api.core.ExecutionMode; //導入依賴的package包/類
@Override
public ExecutionMode getExecutionMode() {
return _executionMode;
}
示例9: getExecutionMode
import org.eclipse.gemoc.xdsmlframework.api.core.ExecutionMode; //導入依賴的package包/類
@Override
public ExecutionMode getExecutionMode()
{
return _executionMode;
}