本文整理匯總了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();
}