ハウトゥ非表示設定ページからeclipse RCP
-
13-09-2019 - |
質問
私はeclipse rcpたいと非表示セキュリティとヘprerenceます。する方法を教えてください。
解決
私は同じものを探していると、このリンクで解決策を見つけました。
http://sourceforge.net/apps/trac/fable/wiki/Preferences >
乾杯。 ステファン
<時間>
無効にするには、ヘルプのプリファレンス
¶
org.eclipse.ui.application.WorkbenchAdvisor
のサブクラスに次のコードを入れて、それがRCP設定ダイアログから「ヘルプ」グループを削除します:
public void postStartup() {
PreferenceManager pm = PlatformUI.getWorkbench().getPreferenceManager( );
pm.remove( "org.eclipse.help.ui.browsersPreferencePage" );
}
「org.eclipse.help.ui.browsersPreferencePage
は、」環境設定の拡張ポイントのためのIDである。
パースペクティブの好みを追加¶
備考:選択Window-->show view--> PDE Runtime--> Plugin Registry
をプラグインIDの好みを見つける.....、あなたが探しているものを見つけるためにしようとする.....
たとえば、 "Workbench preferences
" のために、fable.eclipse.ui.ide
と拡張子org.eclipse.ui.preferencePages
で見て:id="org.eclipse.ui.preferencePages.Workbench"
あなたは、好み(例えば)だけ視点を追加MANIFEST.XML
に設定の拡張機能を追加する場合:
id : org.eclipse.ui.preferencePages.Perspectives
name:perspective(fable)
class:org.eclipse.ui.internal.ide.dialogs.IDEPerspectivesPreferencePage
//Add : org.eclipse.ui.ide in your Dependencies
ApplicationWorkBenchAdvisorでます:
public void postStartup() {
PreferenceManager pm = PlatformUI.getWorkbench().getPreferenceManager( );
pm.remove( ""org.eclipse.ui.preferencePages.Workbench"browsersPreferencePage" );
}
public String getInitialWindowPerspectiveId() {
IPreferenceStore pref = Activator.getDefault().getPreferenceStore();
String ret = pref.getDefaultString(IWorkbenchPreferenceConstants.DEFAULT_PERSPECTIVE_ID);
ret=(ret==null || ret.equals(""))?"yourDefaultPerspectiveID":ret;
return ret;
}//
他のヒント
による このエントリ, ここでは、この構造をどう使用する "ワークベンチの活動" 機構:
- の定義が別の活動に対応する異なるアクセスレベル
- 定義のあなたの行動はレギュラーアクションセットグループ化によるアクセスレベル
- 准それぞれの活動は適切なアクションを設定しよ
activityPatternBinding
要素- の設定を有効に活動idの認証後に、早めのワークベンチ ライフサイクルなどから
WorkbenchAdvisor
'spreStartup()
方法。
注上記のためのフィルタリングに基づくユーザーのアクセス権が、これを一般化するその他の基準とします。)
に関する設定ページの保存、きbindのidのページ活動んにオフにすることもできます:
<activityPatternBinding
activityId="org.eclipse.javaDevelopment"
pattern="org\.eclipse\.help\..*/.*">
</activityPatternBinding>
いを無効にすべてのメニュー/preferences/関係です。
ご利用の場合 org.eclipse.help.ui.PrefPageHelp\..*
, うにのみ結合する prefPageHelp
や prefPageHelpContent
.
を追加した場合、他の活性結合の拡張
org.eclipse.equinox.security.ui.sec_storage_preferences_context
, うものを安全に保管する嗜好のページです。