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


Java MWindowElement类代码示例

本文整理汇总了Java中org.eclipse.e4.ui.model.application.ui.basic.MWindowElement的典型用法代码示例。如果您正苦于以下问题:Java MWindowElement类的具体用法?Java MWindowElement怎么用?Java MWindowElement使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


MWindowElement类属于org.eclipse.e4.ui.model.application.ui.basic包,在下文中一共展示了MWindowElement类的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: getPerspectiveStack

import org.eclipse.e4.ui.model.application.ui.basic.MWindowElement; //导入依赖的package包/类
private MPerspectiveStack getPerspectiveStack(){
	EModelService modelService = getService(EModelService.class);
	MWindow window = getActiveWindow();
	List<MPerspectiveStack> theStack =
		modelService.findElements(window, null, MPerspectiveStack.class, null);
	if (theStack.size() > 0) {
		return theStack.get(0);
	}
	
	for (MWindowElement child : window.getChildren()) {
		if (child instanceof MPerspectiveStack) {
			return (MPerspectiveStack) child;
		}
	}
	return null;
}
 
开发者ID:elexis,项目名称:elexis-3-core,代码行数:17,代码来源:PerspectiveImportService.java

示例2: addElementsFrom

import org.eclipse.e4.ui.model.application.ui.basic.MWindowElement; //导入依赖的package包/类
private void addElementsFrom(MWindow window, List<MPerspective> perspectives) {
List<MWindowElement> windowElements = window.getChildren();
for (Iterator<MWindowElement> i = windowElements.iterator(); i.hasNext();) {
	MWindowElement _elm = i.next();

	if (_elm instanceof MPerspectiveStack)
		perspectives.addAll(((MPerspectiveStack) _elm).getChildren());
	else if (_elm instanceof MPartSashContainer)
		addChildPerspectives((MPartSashContainer) _elm, perspectives);
}
  }
 
开发者ID:cplutte,项目名称:bts,代码行数:12,代码来源:PerspectiveContentProvider.java

示例3: caseWindowElement

import org.eclipse.e4.ui.model.application.ui.basic.MWindowElement; //导入依赖的package包/类
@Override
public Adapter caseWindowElement(MWindowElement object) {
	return createWindowElementAdapter();
}
 
开发者ID:scela,项目名称:EclipseCon2014,代码行数:5,代码来源:ExtensionsAdapterFactory.java

示例4: caseWindowElement

import org.eclipse.e4.ui.model.application.ui.basic.MWindowElement; //导入依赖的package包/类
/**
 * Returns the result of interpreting the object as an instance of '<em>Window Element</em>'.
 * <!-- begin-user-doc -->
 * This implementation returns null;
 * returning a non-null result will terminate the switch.
 * <!-- end-user-doc -->
 * @param object the target of the switch.
 * @return the result of interpreting the object as an instance of '<em>Window Element</em>'.
 * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
 * @generated
 */
public T caseWindowElement(MWindowElement object) {
	return null;
}
 
开发者ID:scela,项目名称:EclipseCon2014,代码行数:15,代码来源:ExtensionsSwitch.java


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