本文整理汇总了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;
}
示例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);
}
}
示例3: caseWindowElement
import org.eclipse.e4.ui.model.application.ui.basic.MWindowElement; //导入依赖的package包/类
@Override
public Adapter caseWindowElement(MWindowElement object) {
return createWindowElementAdapter();
}
示例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;
}