本文整理汇总了Java中org.eclipse.ui.IPerspectiveFactory类的典型用法代码示例。如果您正苦于以下问题:Java IPerspectiveFactory类的具体用法?Java IPerspectiveFactory怎么用?Java IPerspectiveFactory使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
IPerspectiveFactory类属于org.eclipse.ui包,在下文中一共展示了IPerspectiveFactory类的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: createFactory
import org.eclipse.ui.IPerspectiveFactory; //导入依赖的package包/类
@Override
public IPerspectiveFactory createFactory() {
try {
return (IPerspectiveFactory) getSimulationDescriptor().getConfigElement()
.createExecutableExtension(IWorkbenchRegistryConstants.ATT_CLASS);
} catch (final CoreException e) {
e.printStackTrace();
throw new RuntimeException(e);
}
}
示例2: missingInitialViews
import org.eclipse.ui.IPerspectiveFactory; //导入依赖的package包/类
public static List<String> missingInitialViews(final IWorkbenchPage page) {
final IPerspectiveFactory factory;
factory = ((PerspectiveDescriptor)page.getPerspective()).createFactory();
ViewCapturingLayout layout = new ViewCapturingLayout();
factory.createInitialLayout(layout);
final F<String, Boolean> missing = new F<String, Boolean>() {
@Override
public Boolean f(final String viewId) {
return page.findView(viewId) == null;
}
};
return fj(layout.viewIds).filter(missing).toList();
}