Eclipse rcp 如何仅显示视图
我是RCP新手,问题可能很基本,但: 在有两个视图的透视图中,如何在应用程序开始时只显示其中一个视图?试试这个Eclipse rcp 如何仅显示视图,eclipse-rcp,Eclipse Rcp,我是RCP新手,问题可能很基本,但: 在有两个视图的透视图中,如何在应用程序开始时只显示其中一个视图?试试这个 public class Perspective implements IPerspectiveFactory { /** Top folder's id. */ public static final String FI_TOP = Bootstrap.PLUGIN_ID + ".topFolder"; /** Top fol
public class Perspective implements IPerspectiveFactory {
/** Top folder's id. */
public static final String FI_TOP = Bootstrap.PLUGIN_ID + ".topFolder";
/** Top folder's id. */
public static final String FI_BOTTOM = Bootstrap.PLUGIN_ID+ ".bottomFolder";
float ratioTop = 0.35f;
float ratioBottom = 0.60f;
private IPageLayout layout;
public void createInitialLayout(IPageLayout layout) {
this.layout = layout;
String editorAreaId = layout.getEditorArea();
layout.setEditorAreaVisible(false);
layout.createPlaceholderFolder(FI_TOP, IPageLayout.TOP, ratioTop, editorAreaId);
layout.createPlaceholderFolder(FI_BOTTOM, IPageLayout.BOTTOM, ratioBottom, editorAreaId);
//Opnen a view
layout.addView("MyViewId", IPageLayout.TOP, 0.9f, layout.getEditorArea());
}
public IPageLayout getLayout() {
return layout;
}
谢谢Luiz的快速回复,请原谅我的无知,但这是什么意思?噢,对不起。引导是我的激活器类。Bootstrap扩展了AbstractUIPlugin classHi Luiz,用户有可能从viewA中的表中选择一个项目,并且该选择打开了viewB,该选项在开始时是隐藏的?请打开另一个问题。