0
私はRCPを初めて使用していますが、おそらく質問は基本的ですが、 の2つのビューを持つ視点では、アプリケーションの最初にどのように表示できますか?ビューのみを表示する方法
私はRCPを初めて使用していますが、おそらく質問は基本的ですが、 の2つのビューを持つ視点では、アプリケーションの最初にどのように表示できますか?ビューのみを表示する方法
は、迅速な対応のために、この
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;
}
おかげでルイスを試してみて、自分の無知を許すが、何が、それはブートストラップを意味するのでしょうか? –
ああ申し訳ありません。ブートストラップは私のアクチベータクラスです。ブーツストラップはAbstractUIPluginクラスを拡張します –
ルイスに感謝します。 –