2012-04-19 11 views
0

私はRCPを初めて使用していますが、おそらく質問は基本的ですが、 の2つのビューを持つ視点では、アプリケーションの最初にどのように表示できますか?ビューのみを表示する方法

答えて

1

は、迅速な対応のために、この

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; 
     } 
+0

おかげでルイスを試してみて、自分の無知を許すが、何が、それはブートストラップを意味するのでしょうか? –

+0

ああ申し訳ありません。ブートストラップは私のアクチベータクラスです。ブーツストラップはAbstractUIPluginクラスを拡張します –

+0

ルイスに感謝します。 –

関連する問題