mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-08-24 08:44:01 +02:00
[223126] fix: [api][breaking] Remove API related to User Actions in RSE Core/UI
This commit is contained in:
parent
c2a78bd6d9
commit
d87be9980f
20 changed files with 239 additions and 404 deletions
|
@ -206,13 +206,6 @@ public class DeveloperResourceAdapter extends AbstractSystemViewAdapter
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.rse.ui.view.ISystemRemoteElementAdapter#supportsUserDefinedActions(java.lang.Object)
|
|
||||||
*/
|
|
||||||
public boolean supportsUserDefinedActions(Object object) {
|
|
||||||
<strong>return false;</strong>
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
</samp></pre>
|
</samp></pre>
|
||||||
</body>
|
</body>
|
||||||
|
|
|
@ -214,14 +214,6 @@ public class TeamResourceAdapter extends AbstractSystemViewAdapter implements
|
||||||
allNames[idx] = allTeams[idx].getName();
|
allNames[idx] = allTeams[idx].getName();
|
||||||
return allNames;</strong> // Return list of all team names
|
return allNames;</strong> // Return list of all team names
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.rse.ui.view.ISystemRemoteElementAdapter#supportsUserDefinedActions(java.lang.Object)
|
|
||||||
*/
|
|
||||||
public boolean supportsUserDefinedActions(Object object) {
|
|
||||||
<strong>return false;</strong>
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
</samp></pre>
|
</samp></pre>
|
||||||
</body>
|
</body>
|
||||||
|
|
|
@ -12,6 +12,7 @@
|
||||||
*
|
*
|
||||||
* Contributors:
|
* Contributors:
|
||||||
* Martin Oberhuber (Wind River) - adapted template for daytime example.
|
* Martin Oberhuber (Wind River) - adapted template for daytime example.
|
||||||
|
* Xuan Chen (IBM) - [223126] [api][breaking] Remove API related to User Actions in RSE Core/UI
|
||||||
********************************************************************************/
|
********************************************************************************/
|
||||||
|
|
||||||
package org.eclipse.rse.examples.daytime.model;
|
package org.eclipse.rse.examples.daytime.model;
|
||||||
|
@ -132,9 +133,4 @@ public class DaytimeResourceAdapter extends AbstractSystemViewAdapter implements
|
||||||
String[] allLabels = new String[] { time };
|
String[] allLabels = new String[] { time };
|
||||||
return allLabels; // Return list of all labels
|
return allLabels; // Return list of all labels
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean supportsUserDefinedActions(Object object) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -12,6 +12,7 @@
|
||||||
*
|
*
|
||||||
* Contributors:
|
* Contributors:
|
||||||
* Martin Oberhuber (Wind River) - Adapted original tutorial code to Open RSE.
|
* Martin Oberhuber (Wind River) - Adapted original tutorial code to Open RSE.
|
||||||
|
* Xuan Chen (IBM) - [223126] [api][breaking] Remove API related to User Actions in RSE Core/UI
|
||||||
********************************************************************************/
|
********************************************************************************/
|
||||||
|
|
||||||
package samples.model;
|
package samples.model;
|
||||||
|
@ -211,12 +212,4 @@ public class DeveloperResourceAdapter extends AbstractSystemViewAdapter
|
||||||
return null;
|
return null;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.rse.ui.view.ISystemRemoteElementAdapter#supportsUserDefinedActions(java.lang.Object)
|
|
||||||
*/
|
|
||||||
public boolean supportsUserDefinedActions(Object object) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -13,6 +13,7 @@
|
||||||
* Contributors:
|
* Contributors:
|
||||||
* Martin Oberhuber (Wind River) - Adapted original tutorial code to Open RSE.
|
* Martin Oberhuber (Wind River) - Adapted original tutorial code to Open RSE.
|
||||||
* Xuan Chen (IBM) - [160775] [api] [breaking] [nl] rename (at least within a zip) blocks UI thread
|
* Xuan Chen (IBM) - [160775] [api] [breaking] [nl] rename (at least within a zip) blocks UI thread
|
||||||
|
* Xuan Chen (IBM) - [223126] [api][breaking] Remove API related to User Actions in RSE Core/UI
|
||||||
********************************************************************************/
|
********************************************************************************/
|
||||||
|
|
||||||
package samples.model;
|
package samples.model;
|
||||||
|
@ -224,12 +225,4 @@ public class TeamResourceAdapter extends AbstractSystemViewAdapter implements
|
||||||
allNames[idx] = allTeams[idx].getName();
|
allNames[idx] = allTeams[idx].getName();
|
||||||
return allNames; // Return list of all team names
|
return allNames; // Return list of all team names
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.rse.ui.view.ISystemRemoteElementAdapter#supportsUserDefinedActions(java.lang.Object)
|
|
||||||
*/
|
|
||||||
public boolean supportsUserDefinedActions(Object object) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -17,6 +17,7 @@
|
||||||
* Martin Oberhuber (Wind River) - [189123] Move renameSubSystemProfile() from UI to Core
|
* Martin Oberhuber (Wind River) - [189123] Move renameSubSystemProfile() from UI to Core
|
||||||
* David Dykstal (IBM) - [197036] change signature of getFilterPoolManager method to be able to control the creation of filter pools
|
* David Dykstal (IBM) - [197036] change signature of getFilterPoolManager method to be able to control the creation of filter pools
|
||||||
* David Dykstal (IBM) - [217556] remove service subsystem types
|
* David Dykstal (IBM) - [217556] remove service subsystem types
|
||||||
|
* Xuan Chen (IBM) - [223126] [api][breaking] Remove API related to User Actions in RSE Core/UI
|
||||||
********************************************************************************/
|
********************************************************************************/
|
||||||
|
|
||||||
package org.eclipse.rse.core.subsystems;
|
package org.eclipse.rse.core.subsystems;
|
||||||
|
@ -182,20 +183,6 @@ public interface ISubSystemConfiguration extends ISystemFilterPoolManagerProvide
|
||||||
*/
|
*/
|
||||||
public boolean providesCustomDropInFilters();
|
public boolean providesCustomDropInFilters();
|
||||||
|
|
||||||
/**
|
|
||||||
* Return true if you support user-defined actions for the remote system objects returned from expansion of
|
|
||||||
* subsystems created by this subsystem factory
|
|
||||||
* <p>Returns false in default implementation.
|
|
||||||
*/
|
|
||||||
public boolean supportsUserDefinedActions();
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Return true if you support compile actions for the remote system objects returned from expansion of
|
|
||||||
* subsystems created by this subsystem factory.
|
|
||||||
* <p>Returns false in default implementation.
|
|
||||||
*/
|
|
||||||
public boolean supportsCompileActions();
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Return true if you support user-defined/managed named file types
|
* Return true if you support user-defined/managed named file types
|
||||||
* <p>Returns false in default implementation.
|
* <p>Returns false in default implementation.
|
||||||
|
|
|
@ -47,6 +47,7 @@
|
||||||
* David McKnight (IBM) - [216252] [nls] Resource Strings specific to subsystems should be moved from rse.ui into files.ui / shells.ui / processes.ui where possible
|
* David McKnight (IBM) - [216252] [nls] Resource Strings specific to subsystems should be moved from rse.ui into files.ui / shells.ui / processes.ui where possible
|
||||||
* David McKnight (IBM) - [216252] MessageFormat.format -> NLS.bind
|
* David McKnight (IBM) - [216252] MessageFormat.format -> NLS.bind
|
||||||
* David McKnight (IBM) - [220547] [api][breaking] SimpleSystemMessage needs to specify a message id and some messages should be shared
|
* David McKnight (IBM) - [220547] [api][breaking] SimpleSystemMessage needs to specify a message id and some messages should be shared
|
||||||
|
* Xuan Chen (IBM) - [223126] [api][breaking] Remove API related to User Actions in RSE Core/UI
|
||||||
*******************************************************************************/
|
*******************************************************************************/
|
||||||
|
|
||||||
package org.eclipse.rse.internal.files.ui.view;
|
package org.eclipse.rse.internal.files.ui.view;
|
||||||
|
@ -3627,29 +3628,4 @@ public class SystemViewRemoteFileAdapter
|
||||||
{
|
{
|
||||||
return new SystemFetchOperation(null, o, this, collector, true);
|
return new SystemFetchOperation(null, o, this, collector, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Returns <code>false</code> if the file is a virtual file, otherwise defaults to asking the subsystem
|
|
||||||
* factory.
|
|
||||||
* @see org.eclipse.rse.ui.view.ISystemRemoteElementAdapter#supportsUserDefinedActions(java.lang.Object)
|
|
||||||
*/
|
|
||||||
public boolean supportsUserDefinedActions(Object object) {
|
|
||||||
|
|
||||||
// if object is an instance of a remote file
|
|
||||||
if (object instanceof IRemoteFile) {
|
|
||||||
|
|
||||||
IRemoteFile file = (IRemoteFile)object;
|
|
||||||
|
|
||||||
// virtual files do not support user defined actions
|
|
||||||
if (file instanceof IVirtualRemoteFile) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
return getSubSystem(object).getSubSystemConfiguration().supportsUserDefinedActions();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
return getSubSystem(object).getSubSystemConfiguration().supportsUserDefinedActions();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -19,6 +19,7 @@
|
||||||
* Martin Oberhuber (Wind River) - [186773] split ISystemRegistryUI from ISystemRegistry
|
* Martin Oberhuber (Wind River) - [186773] split ISystemRegistryUI from ISystemRegistry
|
||||||
* Martin Oberhuber (Wind River) - [189130] Move SystemIFileProperties from UI to Core
|
* Martin Oberhuber (Wind River) - [189130] Move SystemIFileProperties from UI to Core
|
||||||
* David McKnight (IBM) - [216252] [nls] Resource Strings specific to subsystems should be moved from rse.ui into files.ui / shells.ui / processes.ui where possible
|
* David McKnight (IBM) - [216252] [nls] Resource Strings specific to subsystems should be moved from rse.ui into files.ui / shells.ui / processes.ui where possible
|
||||||
|
* Xuan Chen (IBM) - [223126] [api][breaking] Remove API related to User Actions in RSE Core/UI
|
||||||
*******************************************************************************/
|
*******************************************************************************/
|
||||||
|
|
||||||
package org.eclipse.rse.internal.files.ui.view;
|
package org.eclipse.rse.internal.files.ui.view;
|
||||||
|
@ -777,14 +778,6 @@ public class SystemViewRemoteSearchResultAdapter extends AbstractSystemViewAdapt
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Returns <code>false</code>.
|
|
||||||
* @see org.eclipse.rse.ui.view.ISystemRemoteElementAdapter#supportsUserDefinedActions(java.lang.Object)
|
|
||||||
*/
|
|
||||||
public boolean supportsUserDefinedActions(Object object) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -15,6 +15,7 @@
|
||||||
* Martin Oberhuber (Wind River) - [186128] Move IProgressMonitor last in all API
|
* Martin Oberhuber (Wind River) - [186128] Move IProgressMonitor last in all API
|
||||||
* David McKnight (IBM) - [216252] [api][nls] Resource Strings specific to subsystems should be moved from rse.ui into files.ui / shells.ui / processes.ui where possible
|
* David McKnight (IBM) - [216252] [api][nls] Resource Strings specific to subsystems should be moved from rse.ui into files.ui / shells.ui / processes.ui where possible
|
||||||
* David McKnight (IBM) - [220547] [api][breaking] SimpleSystemMessage needs to specify a message id and some messages should be shared
|
* David McKnight (IBM) - [220547] [api][breaking] SimpleSystemMessage needs to specify a message id and some messages should be shared
|
||||||
|
* Xuan Chen (IBM) - [223126] [api][breaking] Remove API related to User Actions in RSE Core/UI
|
||||||
********************************************************************************/
|
********************************************************************************/
|
||||||
|
|
||||||
package org.eclipse.rse.internal.files.ui.view;
|
package org.eclipse.rse.internal.files.ui.view;
|
||||||
|
@ -356,12 +357,4 @@ public class SystemViewRemoteSearchResultSetAdapter extends AbstractSystemViewAd
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Returns <code>false</code>.
|
|
||||||
* @see org.eclipse.rse.ui.view.ISystemRemoteElementAdapter#supportsUserDefinedActions(java.lang.Object)
|
|
||||||
*/
|
|
||||||
public boolean supportsUserDefinedActions(Object object) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
}
|
}
|
|
@ -17,6 +17,7 @@
|
||||||
* Martin Oberhuber (Wind River) - [186773] split ISystemRegistryUI from ISystemRegistry
|
* Martin Oberhuber (Wind River) - [186773] split ISystemRegistryUI from ISystemRegistry
|
||||||
* David McKnight (IBM) - [216252] [api][nls] Resource Strings specific to subsystems should be moved from rse.ui into files.ui / shells.ui / processes.ui where possible
|
* David McKnight (IBM) - [216252] [api][nls] Resource Strings specific to subsystems should be moved from rse.ui into files.ui / shells.ui / processes.ui where possible
|
||||||
* David McKnight (IBM) - [220547] [api][breaking] SimpleSystemMessage needs to specify a message id and some messages should be shared
|
* David McKnight (IBM) - [220547] [api][breaking] SimpleSystemMessage needs to specify a message id and some messages should be shared
|
||||||
|
* Xuan Chen (IBM) - [223126] [api][breaking] Remove API related to User Actions in RSE Core/UI
|
||||||
********************************************************************************/
|
********************************************************************************/
|
||||||
|
|
||||||
package org.eclipse.rse.internal.processes.ui.view;
|
package org.eclipse.rse.internal.processes.ui.view;
|
||||||
|
@ -495,11 +496,6 @@ public class SystemViewRemoteProcessAdapter extends AbstractSystemViewAdapter
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean supportsUserDefinedActions(Object object)
|
|
||||||
{
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Return whether deferred queries are supported.
|
* Return whether deferred queries are supported.
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -13,6 +13,7 @@
|
||||||
*
|
*
|
||||||
* Contributors:
|
* Contributors:
|
||||||
* David McKnight (IBM) - [216252] [nls] Resource Strings specific to subsystems should be moved from rse.ui into files.ui / shells.ui / processes.ui where possible
|
* David McKnight (IBM) - [216252] [nls] Resource Strings specific to subsystems should be moved from rse.ui into files.ui / shells.ui / processes.ui where possible
|
||||||
|
* Xuan Chen (IBM) - [223126] [api][breaking] Remove API related to User Actions in RSE Core/UI
|
||||||
*******************************************************************************/
|
*******************************************************************************/
|
||||||
|
|
||||||
package org.eclipse.rse.internal.shells.ui;
|
package org.eclipse.rse.internal.shells.ui;
|
||||||
|
@ -71,6 +72,8 @@ public class ShellResources extends NLS
|
||||||
public static String ACTION_OPEN_OUTPUT_LABEL;
|
public static String ACTION_OPEN_OUTPUT_LABEL;
|
||||||
public static String ACTION_OPEN_OUTPUT_TOOLTIP;
|
public static String ACTION_OPEN_OUTPUT_TOOLTIP;
|
||||||
|
|
||||||
|
public static String ACTION_OPEN_WITH_LABEL;
|
||||||
|
|
||||||
// error properties
|
// error properties
|
||||||
public static String RESID_PROPERTY_ERROR_FILENAME_LABEL;
|
public static String RESID_PROPERTY_ERROR_FILENAME_LABEL;
|
||||||
public static String RESID_PROPERTY_ERROR_FILENAME_TOOLTIP;
|
public static String RESID_PROPERTY_ERROR_FILENAME_TOOLTIP;
|
||||||
|
|
|
@ -14,6 +14,7 @@
|
||||||
# Contributors:
|
# Contributors:
|
||||||
# David McKnight (IBM) - [216252] [nls] Resource Strings specific to subsystems should be moved from rse.ui into files.ui / shells.ui / processes.ui where possible
|
# David McKnight (IBM) - [216252] [nls] Resource Strings specific to subsystems should be moved from rse.ui into files.ui / shells.ui / processes.ui where possible
|
||||||
# Radoslav Gerganov (ProSyst) - [181563] Fix hardcoded Ctrl+Space for remote shell content assist
|
# Radoslav Gerganov (ProSyst) - [181563] Fix hardcoded Ctrl+Space for remote shell content assist
|
||||||
|
# Xuan Chen (IBM) - [223126] [api][breaking] Remove API related to User Actions in RSE Core/UI
|
||||||
###############################################################################
|
###############################################################################
|
||||||
|
|
||||||
# NLS_MESSAGEFORMAT_VAR
|
# NLS_MESSAGEFORMAT_VAR
|
||||||
|
@ -76,6 +77,8 @@ ACTION_EXPORT_SHELL_HISTORY_TOOLTIP=Export the command history for the selected
|
||||||
ACTION_OPEN_OUTPUT_LABEL= Goto
|
ACTION_OPEN_OUTPUT_LABEL= Goto
|
||||||
ACTION_OPEN_OUTPUT_TOOLTIP= Open the selected output object in an editor or view
|
ACTION_OPEN_OUTPUT_TOOLTIP= Open the selected output object in an editor or view
|
||||||
|
|
||||||
|
ACTION_OPEN_WITH_LABEL = Open Wit&h
|
||||||
|
|
||||||
#ERROR PROPERTIES
|
#ERROR PROPERTIES
|
||||||
RESID_PROPERTY_ERROR_FILENAME_LABEL=File
|
RESID_PROPERTY_ERROR_FILENAME_LABEL=File
|
||||||
RESID_PROPERTY_ERROR_FILENAME_TOOLTIP=File Containing Error
|
RESID_PROPERTY_ERROR_FILENAME_TOOLTIP=File Containing Error
|
||||||
|
|
|
@ -24,6 +24,7 @@
|
||||||
* Xuan Chen (IBM) - [160775] [api] rename (at least within a zip) blocks UI thread
|
* Xuan Chen (IBM) - [160775] [api] rename (at least within a zip) blocks UI thread
|
||||||
* David McKnight (IBM) - [189873] Improve remote shell editor open action with background jobs
|
* David McKnight (IBM) - [189873] Improve remote shell editor open action with background jobs
|
||||||
* David McKnight (IBM) - [216252] [nls] Resource Strings specific to subsystems should be moved from rse.ui into files.ui / shells.ui / processes.ui where possible
|
* David McKnight (IBM) - [216252] [nls] Resource Strings specific to subsystems should be moved from rse.ui into files.ui / shells.ui / processes.ui where possible
|
||||||
|
* Xuan Chen (IBM) - [223126] [api][breaking] Remove API related to User Actions in RSE Core/UI
|
||||||
*******************************************************************************/
|
*******************************************************************************/
|
||||||
|
|
||||||
package org.eclipse.rse.shells.ui.view;
|
package org.eclipse.rse.shells.ui.view;
|
||||||
|
@ -166,7 +167,7 @@ implements ISystemViewElementAdapter, ISystemRemoteElementAdapter
|
||||||
//createActions.create(menu, selection, shell, menuGroup);
|
//createActions.create(menu, selection, shell, menuGroup);
|
||||||
// open with ->
|
// open with ->
|
||||||
MenuManager submenu =
|
MenuManager submenu =
|
||||||
new MenuManager(org.eclipse.ui.internal.views.navigator.ResourceNavigatorMessages.ResourceNavigator_openWith,
|
new MenuManager(ShellResources.ACTION_OPEN_WITH_LABEL,
|
||||||
ISystemContextMenuConstants.GROUP_OPENWITH);
|
ISystemContextMenuConstants.GROUP_OPENWITH);
|
||||||
|
|
||||||
SystemRemoteFileLineOpenWithMenu openWithMenu = new SystemRemoteFileLineOpenWithMenu();
|
SystemRemoteFileLineOpenWithMenu openWithMenu = new SystemRemoteFileLineOpenWithMenu();
|
||||||
|
@ -1130,15 +1131,6 @@ implements ISystemViewElementAdapter, ISystemRemoteElementAdapter
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Returns <code>false</code>.
|
|
||||||
* @see org.eclipse.rse.ui.view.ISystemRemoteElementAdapter#supportsUserDefinedActions(java.lang.Object)
|
|
||||||
*/
|
|
||||||
public boolean supportsUserDefinedActions(Object object) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Don't show properties for remote output
|
* Don't show properties for remote output
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -17,6 +17,7 @@
|
||||||
* Martin Oberhuber (Wind River) - [189123] Move renameSubSystemProfile() from UI to Core
|
* Martin Oberhuber (Wind River) - [189123] Move renameSubSystemProfile() from UI to Core
|
||||||
* David Dykstal (IBM) - [197036] fixed NPE found during testing
|
* David Dykstal (IBM) - [197036] fixed NPE found during testing
|
||||||
* David Dykstal (IBM) - [222270] clean up interfaces in org.eclipse.rse.core.filters
|
* David Dykstal (IBM) - [222270] clean up interfaces in org.eclipse.rse.core.filters
|
||||||
|
* Xuan Chen (IBM) - [223126] [api][breaking] Remove API related to User Actions in RSE Core/UI
|
||||||
*******************************************************************************/
|
*******************************************************************************/
|
||||||
|
|
||||||
package org.eclipse.rse.subsystems.files.core.subsystems;
|
package org.eclipse.rse.subsystems.files.core.subsystems;
|
||||||
|
@ -224,16 +225,6 @@ public abstract class RemoteFileSubSystemConfiguration extends SubSystemConfigur
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Return true if you support user-defined actions for the remote system objects returned from expansion of
|
|
||||||
* subsystems created by this subsystem factory.
|
|
||||||
* <p>We return true.
|
|
||||||
*/
|
|
||||||
public boolean supportsUserDefinedActions()
|
|
||||||
{
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Return true if you support user-defined/managed named file types
|
* Return true if you support user-defined/managed named file types
|
||||||
* <p>We return true
|
* <p>We return true
|
||||||
|
@ -243,19 +234,6 @@ public abstract class RemoteFileSubSystemConfiguration extends SubSystemConfigur
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Return true if you support compile actions for the remote system objects returned from expansion of
|
|
||||||
* subsystems created by this subsystem factory.
|
|
||||||
* <p>
|
|
||||||
* By returning true, user sees a "Work with->Compile Commands..." action item in the popup menu for this
|
|
||||||
* subsystem. The action is supplied by the framework, but is populated using overridable methods in this subsystem.
|
|
||||||
* <p>We return false, but really we expect subclasses to return true
|
|
||||||
*/
|
|
||||||
public boolean supportsCompileActions()
|
|
||||||
{
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* (non-Javadoc)
|
* (non-Javadoc)
|
||||||
* @see org.eclipse.rse.core.subsystems.SubSystemConfiguration#renameSubSystemProfile(java.lang.String, java.lang.String)
|
* @see org.eclipse.rse.core.subsystems.SubSystemConfiguration#renameSubSystemProfile(java.lang.String, java.lang.String)
|
||||||
|
|
|
@ -15,6 +15,7 @@
|
||||||
* Martin Oberhuber (Wind River) - [182454] improve getAbsoluteName() documentation
|
* Martin Oberhuber (Wind River) - [182454] improve getAbsoluteName() documentation
|
||||||
* Martin Oberhuber (Wind River) - [186128] Move IProgressMonitor last in all API
|
* Martin Oberhuber (Wind River) - [186128] Move IProgressMonitor last in all API
|
||||||
* Martin Oberhuber (Wind River) - [186773] split ISystemRegistryUI from ISystemRegistry
|
* Martin Oberhuber (Wind River) - [186773] split ISystemRegistryUI from ISystemRegistry
|
||||||
|
* Xuan Chen (IBM) - [223126] [api][breaking] Remove API related to User Actions in RSE Core/UI
|
||||||
********************************************************************************/
|
********************************************************************************/
|
||||||
|
|
||||||
package org.eclipse.rse.internal.ui.view;
|
package org.eclipse.rse.internal.ui.view;
|
||||||
|
@ -270,14 +271,6 @@ public class SystemViewScratchpadAdapter extends AbstractSystemViewAdapter imple
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Returns <code>false</code>.
|
|
||||||
* @see org.eclipse.rse.ui.view.ISystemRemoteElementAdapter#supportsUserDefinedActions(java.lang.Object)
|
|
||||||
*/
|
|
||||||
public boolean supportsUserDefinedActions(Object object) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* This is a local RSE artifact so returning false
|
* This is a local RSE artifact so returning false
|
||||||
*
|
*
|
||||||
|
|
|
@ -18,6 +18,7 @@
|
||||||
* Martin Oberhuber (Wind River) - [186773] split ISystemRegistryUI from ISystemRegistry
|
* Martin Oberhuber (Wind River) - [186773] split ISystemRegistryUI from ISystemRegistry
|
||||||
* David Dykstal (IBM) - [197036] rewrote getSubSystemConfigurationNodes to get filter pools
|
* David Dykstal (IBM) - [197036] rewrote getSubSystemConfigurationNodes to get filter pools
|
||||||
* in a way that delays the loading of subsystem configurations
|
* in a way that delays the loading of subsystem configurations
|
||||||
|
* Xuan Chen (IBM) - [223126] [api][breaking] Remove API related to User Actions in RSE Core/UI
|
||||||
*******************************************************************************/
|
*******************************************************************************/
|
||||||
|
|
||||||
package org.eclipse.rse.internal.ui.view.team;
|
package org.eclipse.rse.internal.ui.view.team;
|
||||||
|
@ -202,10 +203,6 @@ public class SystemTeamViewCategoryAdapter
|
||||||
boolean createNode = false;
|
boolean createNode = false;
|
||||||
if (categoryType.equals(SystemTeamViewCategoryNode.MEMENTO_FILTERPOOLS)) {
|
if (categoryType.equals(SystemTeamViewCategoryNode.MEMENTO_FILTERPOOLS)) {
|
||||||
createNode = ssf.supportsFilters() && (profile.getFilterPools(ssf).length > 0);
|
createNode = ssf.supportsFilters() && (profile.getFilterPools(ssf).length > 0);
|
||||||
} else if (categoryType.equals(SystemTeamViewCategoryNode.MEMENTO_USERACTIONS)) {
|
|
||||||
createNode = ssf.supportsUserDefinedActions(); // && profile.getUserActions(ssf).length > 0;
|
|
||||||
} else if (categoryType.equals(SystemTeamViewCategoryNode.MEMENTO_COMPILECMDS)) {
|
|
||||||
createNode = ssf.supportsCompileActions(); // && profile.getCompileCommandTypes(ssf).length > 0;
|
|
||||||
} else if (categoryType.equals(SystemTeamViewCategoryNode.MEMENTO_TARGETS)) {
|
} else if (categoryType.equals(SystemTeamViewCategoryNode.MEMENTO_TARGETS)) {
|
||||||
createNode = ssf.supportsTargets(); // && profile.getTargets(ssf).length > 0;
|
createNode = ssf.supportsTargets(); // && profile.getTargets(ssf).length > 0;
|
||||||
}
|
}
|
||||||
|
|
|
@ -14,6 +14,7 @@
|
||||||
* Martin Oberhuber (Wind River) - [182454] improve getAbsoluteName() documentation
|
* Martin Oberhuber (Wind River) - [182454] improve getAbsoluteName() documentation
|
||||||
* Martin Oberhuber (Wind River) - [186128] Move IProgressMonitor last in all API
|
* Martin Oberhuber (Wind River) - [186128] Move IProgressMonitor last in all API
|
||||||
* Martin Oberhuber (Wind River) - [186773] split ISystemRegistryUI from ISystemRegistry
|
* Martin Oberhuber (Wind River) - [186773] split ISystemRegistryUI from ISystemRegistry
|
||||||
|
* Xuan Chen (IBM) - [223126] [api][breaking] Remove API related to User Actions in RSE Core/UI
|
||||||
********************************************************************************/
|
********************************************************************************/
|
||||||
|
|
||||||
package org.eclipse.rse.internal.ui.view.team;
|
package org.eclipse.rse.internal.ui.view.team;
|
||||||
|
@ -68,19 +69,6 @@ public class SystemTeamViewSubSystemConfigurationAdapter
|
||||||
SystemTeamViewCategoryNode category = ssfNode.getParentCategory();
|
SystemTeamViewCategoryNode category = ssfNode.getParentCategory();
|
||||||
String categoryType = category.getMementoHandle();
|
String categoryType = category.getMementoHandle();
|
||||||
|
|
||||||
// FIXME - user actions and compilecmds no longer coupled to core
|
|
||||||
// if (categoryType.equals(SystemTeamViewCategoryNode.MEMENTO_USERACTIONS) && ssfNode.getSubSystemConfiguration().supportsUserDefinedActions())
|
|
||||||
// {
|
|
||||||
// wwActionsAction.reset();
|
|
||||||
// wwActionsAction.setShell(shell);
|
|
||||||
// menu.add(menuGroup, wwActionsAction);
|
|
||||||
// }
|
|
||||||
// else if (categoryType.equals(SystemTeamViewCategoryNode.MEMENTO_COMPILECMDS) && ssfNode.getSubSystemConfiguration().supportsCompileActions())
|
|
||||||
// {
|
|
||||||
// wwCmdsAction.reset();
|
|
||||||
// wwCmdsAction.setShell(shell);
|
|
||||||
// menu.add(menuGroup, wwCmdsAction);
|
|
||||||
// }
|
|
||||||
if (categoryType.equals(SystemTeamViewCategoryNode.MEMENTO_FILTERPOOLS) && ssfNode.getSubSystemConfiguration().supportsFilters())
|
if (categoryType.equals(SystemTeamViewCategoryNode.MEMENTO_FILTERPOOLS) && ssfNode.getSubSystemConfiguration().supportsFilters())
|
||||||
{
|
{
|
||||||
wwPoolsAction.reset();
|
wwPoolsAction.reset();
|
||||||
|
|
|
@ -13,6 +13,7 @@
|
||||||
* Contributors:
|
* Contributors:
|
||||||
* Martin Oberhuber (Wind River) - [182454] improve getAbsoluteName() documentation
|
* Martin Oberhuber (Wind River) - [182454] improve getAbsoluteName() documentation
|
||||||
* Martin Oberhuber (Wind River) - [168870] refactor org.eclipse.rse.core package of the UI plugin
|
* Martin Oberhuber (Wind River) - [168870] refactor org.eclipse.rse.core package of the UI plugin
|
||||||
|
* Xuan Chen (IBM) - [223126] [api][breaking] Remove API related to User Actions in RSE Core/UI
|
||||||
********************************************************************************/
|
********************************************************************************/
|
||||||
|
|
||||||
package org.eclipse.rse.ui.view;
|
package org.eclipse.rse.ui.view;
|
||||||
|
@ -142,12 +143,4 @@ public interface ISystemRemoteElementAdapter extends ISystemRemoteObjectMatchPro
|
||||||
*/
|
*/
|
||||||
public String[] getRemoteParentNamesInUse(Object element, IProgressMonitor monitor) throws Exception;
|
public String[] getRemoteParentNamesInUse(Object element, IProgressMonitor monitor) throws Exception;
|
||||||
|
|
||||||
/**
|
|
||||||
* Returns whether user defined actions should be shown for the object.
|
|
||||||
*
|
|
||||||
* @param object the object.
|
|
||||||
* @return <code>true</code> if the object supports user defined actions,
|
|
||||||
* <code>false</code> otherwise.
|
|
||||||
*/
|
|
||||||
public boolean supportsUserDefinedActions(Object object);
|
|
||||||
}
|
}
|
|
@ -31,6 +31,7 @@
|
||||||
* Martin Oberhuber (Wind River) - [cleanup] Avoid using SystemStartHere in production code
|
* Martin Oberhuber (Wind River) - [cleanup] Avoid using SystemStartHere in production code
|
||||||
* David McKnight (IBM) - [220309] [nls] Some GenericMessages and SubSystemResources should move from UI to Core
|
* David McKnight (IBM) - [220309] [nls] Some GenericMessages and SubSystemResources should move from UI to Core
|
||||||
* David McKnight (IBM) - [220547] [api][breaking] SimpleSystemMessage needs to specify a message id and some messages should be shared
|
* David McKnight (IBM) - [220547] [api][breaking] SimpleSystemMessage needs to specify a message id and some messages should be shared
|
||||||
|
* Xuan Chen (IBM) - [223126] [api][breaking] Remove API related to User Actions in RSE Core/UI
|
||||||
********************************************************************************/
|
********************************************************************************/
|
||||||
|
|
||||||
package org.eclipse.rse.core.subsystems;
|
package org.eclipse.rse.core.subsystems;
|
||||||
|
@ -98,7 +99,6 @@ import org.eclipse.rse.ui.messages.SystemMessageDialog;
|
||||||
* <li>SubSystemConfiguration#isCaseSensitive() to indicate if filter strings are case sensitive or not
|
* <li>SubSystemConfiguration#isCaseSensitive() to indicate if filter strings are case sensitive or not
|
||||||
* <li>SubSystemConfiguration#supportsQuickFilters() to indicate if filters can be specified at contain expansion time.
|
* <li>SubSystemConfiguration#supportsQuickFilters() to indicate if filters can be specified at contain expansion time.
|
||||||
* <li>SubSystemConfiguration#supportsUserActions() to indicate if users can define their own actions for your subsystems' child objects.
|
* <li>SubSystemConfiguration#supportsUserActions() to indicate if users can define their own actions for your subsystems' child objects.
|
||||||
* <li>SubSystemConfiguration#supportsCompileActions() to indicate if users can compile remote objects using menu actions
|
|
||||||
* <li>SubSystemConfiguration#supportsFileTypes() to indicate if users can define their own named file types.
|
* <li>SubSystemConfiguration#supportsFileTypes() to indicate if users can define their own named file types.
|
||||||
* <li>SubSystemConfiguration#isSubSystemsDeletable() if they support user-deleting of subsystems. Default is false.
|
* <li>SubSystemConfiguration#isSubSystemsDeletable() if they support user-deleting of subsystems. Default is false.
|
||||||
* <li>SubSystemConfiguration#supportsSubSystemConnect() to return false if the connect() action is not supported
|
* <li>SubSystemConfiguration#supportsSubSystemConnect() to return false if the connect() action is not supported
|
||||||
|
@ -306,29 +306,6 @@ public abstract class SubSystemConfiguration implements ISubSystemConfiguration
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Return true if you support user-defined actions for the remote system objects returned from expansion of
|
|
||||||
* subsystems created by this subsystem configuration
|
|
||||||
* <p>RETURNS false BY DEFAULT
|
|
||||||
*/
|
|
||||||
public boolean supportsUserDefinedActions()
|
|
||||||
{
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Return true if you support compile actions for the remote system objects returned from expansion of
|
|
||||||
* subsystems created by this subsystem configuration.
|
|
||||||
* <p>
|
|
||||||
* By returning true, user sees a "Work with->Compile Commands..." action item in the popup menu for this
|
|
||||||
* subsystem. The action is supplied by the framework, but is populated using overridable methods in this subsystem.
|
|
||||||
* <p>RETURNS false BY DEFAULT
|
|
||||||
*/
|
|
||||||
public boolean supportsCompileActions()
|
|
||||||
{
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Return true if you support user-defined/managed named file types
|
* Return true if you support user-defined/managed named file types
|
||||||
* <p>RETURNS false BY DEFAULT
|
* <p>RETURNS false BY DEFAULT
|
||||||
|
|
|
@ -11,6 +11,7 @@
|
||||||
* Martin Oberhuber (Wind River) - [186773] split ISystemRegistryUI from ISystemRegistry
|
* Martin Oberhuber (Wind River) - [186773] split ISystemRegistryUI from ISystemRegistry
|
||||||
* David Dykstal (IBM) - [186589] move user actions API out of org.eclipse.rse.ui
|
* David Dykstal (IBM) - [186589] move user actions API out of org.eclipse.rse.ui
|
||||||
* Martin Oberhuber (Wind River) - [cleanup] Avoid using SystemStartHere in production code
|
* Martin Oberhuber (Wind River) - [cleanup] Avoid using SystemStartHere in production code
|
||||||
|
* Xuan Chen (IBM) - [223126] [api][breaking] Remove API related to User Actions in RSE Core/UI
|
||||||
*******************************************************************************/
|
*******************************************************************************/
|
||||||
|
|
||||||
package org.eclipse.rse.internal.useractions.ui.compile;
|
package org.eclipse.rse.internal.useractions.ui.compile;
|
||||||
|
@ -72,8 +73,6 @@ import org.eclipse.swt.widgets.Shell;
|
||||||
* user to easily insert these into his command string, and the SystemCompilableSource
|
* user to easily insert these into his command string, and the SystemCompilableSource
|
||||||
* object is responsible for making the substitutions at runtime, given the compile
|
* object is responsible for making the substitutions at runtime, given the compile
|
||||||
* command and selected source object.
|
* command and selected source object.
|
||||||
* <li>For subsystem factory support of compiling, the factory provider simply returns true
|
|
||||||
* to supportsCompileActions() and implements the
|
|
||||||
* </ul>
|
* </ul>
|
||||||
* @see SystemCompileProfile
|
* @see SystemCompileProfile
|
||||||
* @see SystemCompileType
|
* @see SystemCompileType
|
||||||
|
|
Loading…
Add table
Reference in a new issue