mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-08-20 06:35:50 +02:00
[186769] Add comments about how to add RSE preference page actions
This commit is contained in:
parent
0e39dbbba8
commit
6b7f927b68
5 changed files with 165 additions and 157 deletions
|
@ -112,6 +112,7 @@ Select the configuration to be used for this subsystem and then edit the propert
|
|||
<description>Set as the default user ID for a given system type when creating a new connection, or change it for existing connections that inherit the user ID.</description>
|
||||
</context>
|
||||
<!-- PULLDOWN ACTION: Preferences cascading action... -->
|
||||
<!-- FIXME this one is OBSOLETE, see https://bugs.eclipse.org/bugs/show_bug.cgi?id=186769 -->
|
||||
<context id="actnpref">
|
||||
<description>Go directly to a preference page. Saves drilling down via Windows->Preferences.</description>
|
||||
</context>
|
||||
|
|
|
@ -733,6 +733,7 @@ public class SystemResources extends NLS
|
|||
public static String ACTION_CASCADING_VIEW_TOOLTIP;
|
||||
|
||||
public static String ACTION_CASCADING_PREFERENCES_LABEL;
|
||||
//FIXME This one is OBSOLETE with https://bugs.eclipse.org/bugs/show_bug.cgi?id=186769
|
||||
public static String ACTION_CASCADING_PREFERENCES_TOOLTIP;
|
||||
|
||||
public static String ACTION_CASCADING_PULLDOWN_LABEL;
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/********************************************************************************
|
||||
* Copyright (c) 2002, 2007 IBM Corporation and others. All rights reserved.
|
||||
* Copyright (c) 2002, 2008 IBM Corporation and others. All rights reserved.
|
||||
* This program and the accompanying materials are made available under the terms
|
||||
* of the Eclipse Public License v1.0 which accompanies this distribution, and is
|
||||
* available at http://www.eclipse.org/legal/epl-v10.html
|
||||
|
@ -38,7 +38,6 @@ import org.eclipse.ui.internal.dialogs.WorkbenchPreferenceDialog;
|
|||
* child pages registered under that page ("category").
|
||||
* <p>
|
||||
* @deprecated this will be moved to use the command/handler extension point.
|
||||
* @see SystemCascadingPreferencesAction
|
||||
*/
|
||||
public class SystemShowPreferencesPageAction extends SystemBaseAction implements IViewActionDelegate
|
||||
{
|
||||
|
|
|
@ -684,6 +684,10 @@ public class SystemViewPart
|
|||
MenuManager subMenu = new MenuManager(SystemResources.ACTION_CASCADING_PREFERENCES_LABEL, ISystemContextMenuConstants.MENU_PREFERENCES);
|
||||
menuMgr.add(subMenu);
|
||||
|
||||
// The initial "RSE" Preference page action is added hardcoded.
|
||||
// This comes from the former SystemCascadingPreferencesAction.
|
||||
// FIXME will be moved to using command/hander extension point as per
|
||||
// https://bugs.eclipse.org/bugs/show_bug.cgi?id=186769
|
||||
SystemShowPreferencesPageAction action = new SystemShowPreferencesPageAction();
|
||||
action.setPreferencePageID("org.eclipse.rse.ui.preferences.RemoteSystemsPreferencePage"); //$NON-NLS-1$
|
||||
action.setText(SystemResources.ACTION_SHOW_PREFERENCEPAGE_LABEL);
|
||||
|
|
|
@ -266,7 +266,10 @@ Anna Dushistova (MontaVista) - [234274][api] Launch Shell / Terminal commands m
|
|||
<!-- ================================================================================= -->
|
||||
<!-- Define Remote System Explorer view pulldown menu submenu for preferences actions -->
|
||||
<!-- ================================================================================= -->
|
||||
<!-- TODO migrate to command/handler
|
||||
<!-- FIXME this is hardcoded for now, but will be migrated to command/handler -->
|
||||
<!-- Clients can add their actions already if they create their own handler -->
|
||||
<!-- See the patch on https://bugs.eclipse.org/bugs/show_bug.cgi?id=186769 -->
|
||||
<!--
|
||||
<extension point="org.eclipse.rse.ui.remoteSystemsViewPreferencesActions">
|
||||
<action
|
||||
id="org.eclipse.rse.ui.preferences.actions.rse"
|
||||
|
|
Loading…
Add table
Reference in a new issue