Eclipse/プラグイン開発のTIPS集/org.eclipse.ui.IPerspectiveFactory(パースペクティブ)
をテンプレートにして作成
[
トップ
] [
新規
|
一覧
|
単語検索
|
最終更新
|
ヘルプ
|
ログイン
]
開始行:
#topicpath
----
//ここにコンテンツを記述します。
自分用のパースペクティブを作成したいときはorg.eclipse.ui....
-ビューの配置
-ツールバーやメニューバーへの設置
などを行います。
***拡張ポイント [#ee3d4bb9]
org.eclipse.ui.perspectives
***plugin.xmlのサンプル [#re648bd8]
<extension point="org.eclipse.ui.perspectives">
<perspective name="パースペクティブ名"
icon="icons/sample.gif" <-アイコン
class="nu.mine.kino.example.MyPerspectiveFactory" <-...
id="nu.mine.kino.example.MyPerspectiveFactory"> <-ID
</perspective>
</extension>
**ポイント [#xa081de4]
***ビューの配置 [#v1460888]
基本的に、エディタエリアの取得を行い、その場所から相対的...
//エディタの場所を取得。
String editorArea = layout.getEditorArea();
IFolderLayout topLeft =
layout.createFolder("topLeft", IPageLayout.LEFT, 0.26F...
//"topLeft"という文字列の参照部分を作った <-第一引数。変...
//この参照は、editorAreaのLEFTを指している。
topLeft.addView("org.eclipse.ui.views.ResourceNavigator");
IFolderLayout bottomLeft =
layout.createFolder("bottomLeft", IPageLayout.BOTTOM, ...
//"bottomLeft"という文字列の参照部分を作った
//この参照は、"topLeft"のBOTTOMを指している。
// よってこれはエディタから見て、左の下、つまり左下に...
bottomLeft.addView("org.eclipse.ui.views.ContentOutline");
の様に行います。ちなみに、IPageLayoutの定数ですが、
public static final int LEFT = 1;
public static final int RIGHT = 2;
public static final int TOP = 3;
public static final int BOTTOM = 4;
となっていました。
*** createInitialLayout(IPageLayout layout) のlayoutのメ...
:layout.addView("viewのID"); |パースペクティブに配置
:layout.addNewWizardShortcut("wizardのID"); |ファイル>新...
:layout.addShowViewShortcut("viewのID"); |ウィンドウ>ビュ...
:layout.addPerspectiveShortcut("perspectiveのID"); |ウィ...
----
この記事は
#vote(おもしろかった[7],そうでもない[1])
#comment
#topicpath
SIZE(10){現在のアクセス:&counter;}
終了行:
#topicpath
----
//ここにコンテンツを記述します。
自分用のパースペクティブを作成したいときはorg.eclipse.ui....
-ビューの配置
-ツールバーやメニューバーへの設置
などを行います。
***拡張ポイント [#ee3d4bb9]
org.eclipse.ui.perspectives
***plugin.xmlのサンプル [#re648bd8]
<extension point="org.eclipse.ui.perspectives">
<perspective name="パースペクティブ名"
icon="icons/sample.gif" <-アイコン
class="nu.mine.kino.example.MyPerspectiveFactory" <-...
id="nu.mine.kino.example.MyPerspectiveFactory"> <-ID
</perspective>
</extension>
**ポイント [#xa081de4]
***ビューの配置 [#v1460888]
基本的に、エディタエリアの取得を行い、その場所から相対的...
//エディタの場所を取得。
String editorArea = layout.getEditorArea();
IFolderLayout topLeft =
layout.createFolder("topLeft", IPageLayout.LEFT, 0.26F...
//"topLeft"という文字列の参照部分を作った <-第一引数。変...
//この参照は、editorAreaのLEFTを指している。
topLeft.addView("org.eclipse.ui.views.ResourceNavigator");
IFolderLayout bottomLeft =
layout.createFolder("bottomLeft", IPageLayout.BOTTOM, ...
//"bottomLeft"という文字列の参照部分を作った
//この参照は、"topLeft"のBOTTOMを指している。
// よってこれはエディタから見て、左の下、つまり左下に...
bottomLeft.addView("org.eclipse.ui.views.ContentOutline");
の様に行います。ちなみに、IPageLayoutの定数ですが、
public static final int LEFT = 1;
public static final int RIGHT = 2;
public static final int TOP = 3;
public static final int BOTTOM = 4;
となっていました。
*** createInitialLayout(IPageLayout layout) のlayoutのメ...
:layout.addView("viewのID"); |パースペクティブに配置
:layout.addNewWizardShortcut("wizardのID"); |ファイル>新...
:layout.addShowViewShortcut("viewのID"); |ウィンドウ>ビュ...
:layout.addPerspectiveShortcut("perspectiveのID"); |ウィ...
----
この記事は
#vote(おもしろかった[7],そうでもない[1])
#comment
#topicpath
SIZE(10){現在のアクセス:&counter;}
ページ名: