当前位置: 首页>>代码示例>>Java>>正文


Java ViewpointRegistry类代码示例

本文整理汇总了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);
   }
 
开发者ID:Nielko,项目名称:MBSE-Vacation-Manager,代码行数:12,代码来源:Activator.java

示例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")); 
 }
 
开发者ID:polarsys,项目名称:time4sys,代码行数:8,代码来源:Activator.java

示例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());
					}
				});
	}
}
 
开发者ID:occiware,项目名称:OCCI-Studio,代码行数:21,代码来源:WizardUtils.java

示例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"));
}
 
开发者ID:ObeoNetwork,项目名称:M2Doc,代码行数:9,代码来源:M2DocSiriusTestPlugin.java

示例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);
}
 
开发者ID:ObeoNetwork,项目名称:M2Doc,代码行数:13,代码来源:M2DocSiriusTestPlugin.java

示例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);
}
 
开发者ID:spoenemann,项目名称:xtext-gef,代码行数:9,代码来源:StatemachineSiriusActivator.java

示例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();
}
 
开发者ID:fp7-netide,项目名称:IDE,代码行数:9,代码来源:Activator.java

示例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")); 
 }
 
开发者ID:Nielko,项目名称:MBSE-Vacation-Manager,代码行数:7,代码来源:Activator.java

示例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")); 
 }
 
开发者ID:Nielko,项目名称:MBSE-Vacation-Manager,代码行数:7,代码来源:Activator.java

示例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")); 
 }
 
开发者ID:IncQueryLabs,项目名称:smarthome-cep-demonstrator,代码行数:7,代码来源:Activator.java

示例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")); 
 }
 
开发者ID:cetic,项目名称:SimQRI,代码行数:7,代码来源:Activator.java

示例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")); 
 }
 
开发者ID:occiware,项目名称:TOSCA-Studio,代码行数:7,代码来源:Activator.java

示例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")); 
 }
 
开发者ID:occiware,项目名称:TOSCA-Studio,代码行数:7,代码来源:Activator.java

示例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")); 
 }
 
开发者ID:eclipse,项目名称:gemoc-studio,代码行数:7,代码来源:Activator.java

示例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")); 
 }
 
开发者ID:eclipse,项目名称:gemoc-studio,代码行数:7,代码来源:Activator.java


注:本文中的org.eclipse.sirius.business.api.componentization.ViewpointRegistry类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。