本文整理汇总了Java中org.eclipse.sirius.business.api.componentization.ViewpointRegistry类的典型用法代码示例。如果您正苦于以下问题:Java ViewpointRegistry类的具体用法?Java ViewpointRegistry怎么用?Java ViewpointRegistry使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
ViewpointRegistry类属于org.eclipse.sirius.business.api.componentization包,在下文中一共展示了ViewpointRegistry类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: stop
import org.eclipse.sirius.business.api.componentization.ViewpointRegistry; //导入依赖的package包/类
public void stop(BundleContext context) throws Exception {
plugin = null;
if (viewpoints != null) {
for (final Viewpoint viewpoint: viewpoints) {
ViewpointRegistry.getInstance().disposeFromPlugin(viewpoint);
}
viewpoints.clear();
viewpoints = null;
}
super.stop(context);
}
示例2: start
import org.eclipse.sirius.business.api.componentization.ViewpointRegistry; //导入依赖的package包/类
public void start(BundleContext context) throws Exception {
super.start(context);
plugin = this;
viewpoints = new HashSet<Viewpoint>();
viewpoints.addAll(ViewpointRegistry.getInstance().registerFromPlugin(PLUGIN_ID + "/description/analysis.odesign"));
viewpoints.addAll(ViewpointRegistry.getInstance().registerFromPlugin(PLUGIN_ID + "/description/design.odesign"));
}
示例3: enableViewpoint
import org.eclipse.sirius.business.api.componentization.ViewpointRegistry; //导入依赖的package包/类
/**
* Enable OCCI Extension viewpoints.
*
* @param session
* Session
*/
public static void enableViewpoint(final Session session, final String viewpointURI) {
if (session != null) {
session.getTransactionalEditingDomain().getCommandStack()
.execute(new RecordingCommand(session.getTransactionalEditingDomain()) {
@Override
protected void doExecute() {
final ViewpointSelectionCallback selection = new ViewpointSelectionCallback();
selection.selectViewpoint(
ViewpointRegistry.getInstance().getViewpoint(URI.createURI(viewpointURI)), session,
new NullProgressMonitor());
}
});
}
}
示例4: start
import org.eclipse.sirius.business.api.componentization.ViewpointRegistry; //导入依赖的package包/类
@Override
public void start(BundleContext context) throws Exception {
super.start(context);
plugin = this;
viewpoints = new HashSet<Viewpoint>();
viewpoints
.addAll(ViewpointRegistry.getInstance().registerFromPlugin(PLUGIN_ID + "/description/genconf.odesign"));
}
示例5: stop
import org.eclipse.sirius.business.api.componentization.ViewpointRegistry; //导入依赖的package包/类
@Override
public void stop(BundleContext context) throws Exception {
plugin = null;
if (viewpoints != null) {
for (final Viewpoint viewpoint : viewpoints) {
ViewpointRegistry.getInstance().disposeFromPlugin(viewpoint);
}
viewpoints.clear();
viewpoints = null;
}
super.stop(context);
}
示例6: stop
import org.eclipse.sirius.business.api.componentization.ViewpointRegistry; //导入依赖的package包/类
public void stop(BundleContext bundleContext) throws Exception {
for (Viewpoint viewpoint : viewpoints) {
ViewpointRegistry.getInstance().disposeFromPlugin(viewpoint);
}
viewpoints.clear();
StatemachineSiriusActivator.context = null;
super.stop(bundleContext);
}
示例7: start
import org.eclipse.sirius.business.api.componentization.ViewpointRegistry; //导入依赖的package包/类
public void start(BundleContext context) throws Exception {
super.start(context);
plugin = this;
viewpoints = new HashSet<Viewpoint>();
viewpoints.addAll(
ViewpointRegistry.getInstance().registerFromPlugin(PLUGIN_ID + "/description/RuntimeTopology.odesign"));
System.out.println();
}
示例8: start
import org.eclipse.sirius.business.api.componentization.ViewpointRegistry; //导入依赖的package包/类
public void start(BundleContext context) throws Exception {
super.start(context);
plugin = this;
viewpoints = new HashSet<Viewpoint>();
viewpoints.addAll(ViewpointRegistry.getInstance().registerFromPlugin(PLUGIN_ID + "/description/testCalender.odesign"));
}
示例9: start
import org.eclipse.sirius.business.api.componentization.ViewpointRegistry; //导入依赖的package包/类
public void start(BundleContext context) throws Exception {
super.start(context);
plugin = this;
viewpoints = new HashSet<Viewpoint>();
viewpoints.addAll(ViewpointRegistry.getInstance().registerFromPlugin(PLUGIN_ID + "/description/Sirius.odesign"));
}
示例10: start
import org.eclipse.sirius.business.api.componentization.ViewpointRegistry; //导入依赖的package包/类
public void start(BundleContext context) throws Exception {
super.start(context);
plugin = this;
viewpoints = new HashSet<Viewpoint>();
viewpoints.addAll(ViewpointRegistry.getInstance().registerFromPlugin(PLUGIN_ID + "/description/ruleeditor.odesign"));
}
示例11: start
import org.eclipse.sirius.business.api.componentization.ViewpointRegistry; //导入依赖的package包/类
public void start(BundleContext context) throws Exception {
super.start(context);
plugin = this;
viewpoints = new HashSet<Viewpoint>();
viewpoints.addAll(ViewpointRegistry.getInstance().registerFromPlugin(PLUGIN_ID + "/description/simqri.odesign"));
}
示例12: start
import org.eclipse.sirius.business.api.componentization.ViewpointRegistry; //导入依赖的package包/类
public void start(BundleContext context) throws Exception {
super.start(context);
plugin = this;
viewpoints = new HashSet<Viewpoint>();
viewpoints.addAll(ViewpointRegistry.getInstance().registerFromPlugin(PLUGIN_ID + "/description/tosca.odesign"));
}
示例13: start
import org.eclipse.sirius.business.api.componentization.ViewpointRegistry; //导入依赖的package包/类
public void start(BundleContext context) throws Exception {
super.start(context);
plugin = this;
viewpoints = new HashSet<Viewpoint>();
viewpoints.addAll(ViewpointRegistry.getInstance().registerFromPlugin(PLUGIN_ID + "/description/extendedtosca.odesign"));
}
示例14: start
import org.eclipse.sirius.business.api.componentization.ViewpointRegistry; //导入依赖的package包/类
public void start(BundleContext context) throws Exception {
super.start(context);
plugin = this;
viewpoints = new HashSet<Viewpoint>();
viewpoints.addAll(ViewpointRegistry.getInstance().registerFromPlugin(PLUGIN_ID + "/description/fsm.odesign"));
}
示例15: start
import org.eclipse.sirius.business.api.componentization.ViewpointRegistry; //导入依赖的package包/类
public void start(BundleContext context) throws Exception {
super.start(context);
plugin = this;
viewpoints = new HashSet<Viewpoint>();
viewpoints.addAll(ViewpointRegistry.getInstance().registerFromPlugin(PLUGIN_ID + "/description/XSFSM.odesign"));
}