mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-16 21:45:22 +02:00
[189506] [api][breaking] Remove showActionBar(), showButtonBar() and showActions() from implementors of ISystemViewInputProvider.
This commit is contained in:
parent
9cd938e86d
commit
d74c0ce49b
14 changed files with 0 additions and 254 deletions
|
@ -95,31 +95,6 @@ public class SystemFileAPIProviderImpl
|
||||||
{
|
{
|
||||||
return sr.hasConnectionChildren(selectedConnection);
|
return sr.hasConnectionChildren(selectedConnection);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Return true to show the action bar (ie, toolbar) above the viewer.
|
|
||||||
* The action bar contains connection actions, predominantly.
|
|
||||||
*/
|
|
||||||
public boolean showActionBar()
|
|
||||||
{
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
/**
|
|
||||||
* Return true to show the button bar above the viewer.
|
|
||||||
* The tool bar contains "Get List" and "Refresh" buttons and is typicall
|
|
||||||
* shown in dialogs that list only remote system objects.
|
|
||||||
*/
|
|
||||||
public boolean showButtonBar()
|
|
||||||
{
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
/**
|
|
||||||
* Return true to show right-click popup actions on objects in the tree.
|
|
||||||
*/
|
|
||||||
public boolean showActions()
|
|
||||||
{
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
// ----------------------------------
|
// ----------------------------------
|
||||||
|
|
|
@ -104,36 +104,6 @@ public abstract class SystemAbstractAPIProvider
|
||||||
return viewer;
|
return viewer;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Return true to show the action bar (ie, toolbar) above the viewer.
|
|
||||||
* The action bar contains connection actions, predominantly.
|
|
||||||
* We return false
|
|
||||||
*/
|
|
||||||
public boolean showActionBar()
|
|
||||||
{
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Return true to show the button bar above the viewer.
|
|
||||||
* The tool bar contains "Get List" and "Refresh" buttons and is typically
|
|
||||||
* shown in dialogs that list only remote system objects.
|
|
||||||
* We return false.
|
|
||||||
*/
|
|
||||||
public boolean showButtonBar()
|
|
||||||
{
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Return true to show right-click popup actions on objects in the tree.
|
|
||||||
* We return false.
|
|
||||||
*/
|
|
||||||
public boolean showActions()
|
|
||||||
{
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
private void initMsgObjects()
|
private void initMsgObjects()
|
||||||
{
|
{
|
||||||
nullObject = new SystemMessageObject(RSEUIPlugin.getPluginMessage(ISystemMessages.MSG_EXPAND_EMPTY),ISystemMessageObject.MSGTYPE_EMPTY, null);
|
nullObject = new SystemMessageObject(RSEUIPlugin.getPluginMessage(ISystemMessages.MSG_EXPAND_EMPTY),ISystemMessageObject.MSGTYPE_EMPTY, null);
|
||||||
|
|
|
@ -76,32 +76,6 @@ public class SystemEmptyListAPIProviderImpl
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Return true to show the action bar (ie, toolbar) above the viewer.
|
|
||||||
* The action bar contains connection actions, predominantly.
|
|
||||||
*/
|
|
||||||
public boolean showActionBar()
|
|
||||||
{
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
/**
|
|
||||||
* Return true to show the button bar above the viewer.
|
|
||||||
* The tool bar contains "Get List" and "Refresh" buttons and is typicall
|
|
||||||
* shown in dialogs that list only remote system objects.
|
|
||||||
*/
|
|
||||||
public boolean showButtonBar()
|
|
||||||
{
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
/**
|
|
||||||
* Return true to show right-click popup actions on objects in the tree.
|
|
||||||
*/
|
|
||||||
public boolean showActions()
|
|
||||||
{
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// ----------------------------------
|
// ----------------------------------
|
||||||
// OUR OWN METHODS...
|
// OUR OWN METHODS...
|
||||||
|
|
|
@ -36,15 +36,5 @@ public class SystemResolveFilterStringAPIProviderImpl extends SystemTestFilterSt
|
||||||
super(subsystem, filterString);
|
super(subsystem, filterString);
|
||||||
} // end constructor
|
} // end constructor
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Return true to show the button bar above the viewer.
|
|
||||||
* The tool bar contains "Get List" and "Refresh" buttons and is typicall
|
|
||||||
* shown in dialogs that list only remote system objects.
|
|
||||||
*/
|
|
||||||
public boolean showButtonBar()
|
|
||||||
{
|
|
||||||
return false;
|
|
||||||
} // end showButtonBar()
|
|
||||||
|
|
||||||
} // end class SystemResolveFilterStringAPIProviderImpl
|
} // end class SystemResolveFilterStringAPIProviderImpl
|
|
@ -469,36 +469,6 @@ public class SystemSelectRemoteObjectAPIProviderImpl
|
||||||
{
|
{
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Return true to show the action bar (ie, toolbar) above the viewer.
|
|
||||||
* The action bar contains connection actions, predominantly.
|
|
||||||
* We return false.
|
|
||||||
*/
|
|
||||||
public boolean showActionBar()
|
|
||||||
{
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Return true to show the button bar above the viewer.
|
|
||||||
* The tool bar contains "Get List" and "Refresh" buttons and is typically
|
|
||||||
* shown in dialogs that list only remote system objects.
|
|
||||||
* We return false.
|
|
||||||
*/
|
|
||||||
public boolean showButtonBar()
|
|
||||||
{
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Return true to show right-click popup actions on objects in the tree.
|
|
||||||
* We return true.
|
|
||||||
*/
|
|
||||||
public boolean showActions()
|
|
||||||
{
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Return true if we are listing connections or not, so we know whether we are interested in
|
* Return true if we are listing connections or not, so we know whether we are interested in
|
||||||
|
|
|
@ -139,32 +139,6 @@ public class SystemTestFilterStringAPIProviderImpl
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Return true to show the action bar (ie, toolbar) above the viewer.
|
|
||||||
* The action bar contains connection actions, predominantly.
|
|
||||||
*/
|
|
||||||
public boolean showActionBar()
|
|
||||||
{
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
/**
|
|
||||||
* Return true to show the button bar above the viewer.
|
|
||||||
* The tool bar contains "Get List" and "Refresh" buttons and is typicall
|
|
||||||
* shown in dialogs that list only remote system objects.
|
|
||||||
*/
|
|
||||||
public boolean showButtonBar()
|
|
||||||
{
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
/**
|
|
||||||
* Return true to show right-click popup actions on objects in the tree.
|
|
||||||
*/
|
|
||||||
public boolean showActions()
|
|
||||||
{
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// ----------------------------------
|
// ----------------------------------
|
||||||
// OUR OWN METHODS...
|
// OUR OWN METHODS...
|
||||||
|
|
|
@ -95,13 +95,4 @@ public class SystemViewAPIProviderForConnections
|
||||||
{
|
{
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
/**
|
|
||||||
* Return true to show right-click popup actions on objects in the tree.
|
|
||||||
* We return true.
|
|
||||||
*/
|
|
||||||
public boolean showActions()
|
|
||||||
{
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
|
@ -115,14 +115,4 @@ public class SystemViewAPIProviderForFilterPools
|
||||||
{
|
{
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Return true to show right-click popup actions on objects in the tree.
|
|
||||||
* We return true.
|
|
||||||
*/
|
|
||||||
public boolean showActions()
|
|
||||||
{
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
|
@ -189,14 +189,4 @@ public class SystemViewAPIProviderForFilterStrings
|
||||||
{
|
{
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Return true to show right-click popup actions on objects in the tree.
|
|
||||||
* We return true.
|
|
||||||
*/
|
|
||||||
public boolean showActions()
|
|
||||||
{
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
|
@ -251,14 +251,4 @@ public class SystemViewAPIProviderForFilters
|
||||||
{
|
{
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Return true to show right-click popup actions on objects in the tree.
|
|
||||||
* We return true.
|
|
||||||
*/
|
|
||||||
public boolean showActions()
|
|
||||||
{
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
|
@ -94,14 +94,4 @@ public class SystemViewAPIProviderForSubSystems
|
||||||
{
|
{
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Return true to show right-click popup actions on objects in the tree.
|
|
||||||
* We return true.
|
|
||||||
*/
|
|
||||||
public boolean showActions()
|
|
||||||
{
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
|
@ -141,29 +141,4 @@ public class SystemTeamViewInputProvider implements IAdaptable, ISystemViewInput
|
||||||
{
|
{
|
||||||
return viewer;
|
return viewer;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.rse.ui.view.ISystemViewInputProvider#showActionBar()
|
|
||||||
*/
|
|
||||||
public boolean showActionBar()
|
|
||||||
{
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.rse.ui.view.ISystemViewInputProvider#showButtonBar()
|
|
||||||
*/
|
|
||||||
public boolean showButtonBar()
|
|
||||||
{
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.rse.ui.view.ISystemViewInputProvider#showActions()
|
|
||||||
*/
|
|
||||||
public boolean showActions()
|
|
||||||
{
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
|
@ -261,33 +261,6 @@ public class SystemRegistryUI implements ISystemRegistryUI, ISystemViewInputProv
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Return true to show the action bar (i.e., toolbar) above the viewer.
|
|
||||||
* The action bar contains connection actions, predominantly.
|
|
||||||
*/
|
|
||||||
public boolean showActionBar()
|
|
||||||
{
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Return true to show the button bar above the viewer.
|
|
||||||
* The tool bar contains "Get List" and "Refresh" buttons and is typically
|
|
||||||
* shown in dialogs that list only remote system objects.
|
|
||||||
*/
|
|
||||||
public boolean showButtonBar()
|
|
||||||
{
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Return true to show right-click popup actions on objects in the tree.
|
|
||||||
*/
|
|
||||||
public boolean showActions()
|
|
||||||
{
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* (non-Javadoc)
|
* (non-Javadoc)
|
||||||
* @see org.eclipse.rse.ui.view.ISystemViewInputProvider#setViewer(org.eclipse.jface.viewers.Viewer)
|
* @see org.eclipse.rse.ui.view.ISystemViewInputProvider#setViewer(org.eclipse.jface.viewers.Viewer)
|
||||||
|
|
|
@ -113,7 +113,6 @@ public class UserActionRegistry {
|
||||||
* @return <code>true</code> if the user action context exists, <code>false</code> otherwise.
|
* @return <code>true</code> if the user action context exists, <code>false</code> otherwise.
|
||||||
*/
|
*/
|
||||||
public boolean containsUserActionContext(ISystemProfile profile, ISubSystemConfiguration configuration, IUserActionContext context) {
|
public boolean containsUserActionContext(ISystemProfile profile, ISubSystemConfiguration configuration, IUserActionContext context) {
|
||||||
|
|
||||||
Map map = getUserActionContextMap(profile);
|
Map map = getUserActionContextMap(profile);
|
||||||
List list = getUserActionContexts(map, configuration);
|
List list = getUserActionContexts(map, configuration);
|
||||||
return list.contains(context);
|
return list.contains(context);
|
||||||
|
@ -127,7 +126,6 @@ public class UserActionRegistry {
|
||||||
* @return <code>true</code> if the user action context exists, <code>false</code> otherwise.
|
* @return <code>true</code> if the user action context exists, <code>false</code> otherwise.
|
||||||
*/
|
*/
|
||||||
public boolean containsUserActionModel(ISystemProfile profile, ISubSystemConfiguration configuration, IUserActionContext context) {
|
public boolean containsUserActionModel(ISystemProfile profile, ISubSystemConfiguration configuration, IUserActionContext context) {
|
||||||
|
|
||||||
Map map = getUserActionModelMap(profile);
|
Map map = getUserActionModelMap(profile);
|
||||||
List list = getUserActionModels(map, configuration);
|
List list = getUserActionModels(map, configuration);
|
||||||
return list.contains(context);
|
return list.contains(context);
|
||||||
|
@ -140,7 +138,6 @@ public class UserActionRegistry {
|
||||||
* @param context the user action context.
|
* @param context the user action context.
|
||||||
*/
|
*/
|
||||||
public void addUserActionContext(ISystemProfile profile, ISubSystemConfiguration configuration, IUserActionContext context) {
|
public void addUserActionContext(ISystemProfile profile, ISubSystemConfiguration configuration, IUserActionContext context) {
|
||||||
|
|
||||||
Map map = getUserActionContextMap(profile);
|
Map map = getUserActionContextMap(profile);
|
||||||
List list = getUserActionContexts(map, configuration);
|
List list = getUserActionContexts(map, configuration);
|
||||||
list.add(context);
|
list.add(context);
|
||||||
|
@ -153,7 +150,6 @@ public class UserActionRegistry {
|
||||||
* @param model the user action model.
|
* @param model the user action model.
|
||||||
*/
|
*/
|
||||||
public void addUserActionModel(ISystemProfile profile, ISubSystemConfiguration configuration, IUserActionModel model) {
|
public void addUserActionModel(ISystemProfile profile, ISubSystemConfiguration configuration, IUserActionModel model) {
|
||||||
|
|
||||||
Map map = getUserActionModelMap(profile);
|
Map map = getUserActionModelMap(profile);
|
||||||
List list = getUserActionModels(map, configuration);
|
List list = getUserActionModels(map, configuration);
|
||||||
list.add(model);
|
list.add(model);
|
||||||
|
@ -166,7 +162,6 @@ public class UserActionRegistry {
|
||||||
* @param context the user action context.
|
* @param context the user action context.
|
||||||
*/
|
*/
|
||||||
public void removeUserActionContext(ISystemProfile profile, ISubSystemConfiguration configuration, IUserActionContext context) {
|
public void removeUserActionContext(ISystemProfile profile, ISubSystemConfiguration configuration, IUserActionContext context) {
|
||||||
|
|
||||||
Map map = getUserActionContextMap(profile);
|
Map map = getUserActionContextMap(profile);
|
||||||
List list = getUserActionContexts(map, configuration);
|
List list = getUserActionContexts(map, configuration);
|
||||||
list.remove(context);
|
list.remove(context);
|
||||||
|
@ -179,7 +174,6 @@ public class UserActionRegistry {
|
||||||
* @param model the user action model.
|
* @param model the user action model.
|
||||||
*/
|
*/
|
||||||
public void removeUserActionModel(ISystemProfile profile, ISubSystemConfiguration configuration, IUserActionModel model) {
|
public void removeUserActionModel(ISystemProfile profile, ISubSystemConfiguration configuration, IUserActionModel model) {
|
||||||
|
|
||||||
Map map = getUserActionModelMap(profile);
|
Map map = getUserActionModelMap(profile);
|
||||||
List list = getUserActionModels(map, configuration);
|
List list = getUserActionModels(map, configuration);
|
||||||
list.remove(model);
|
list.remove(model);
|
||||||
|
|
Loading…
Add table
Reference in a new issue