mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-03 07:05:24 +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 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 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()
|
||||
{
|
||||
nullObject = new SystemMessageObject(RSEUIPlugin.getPluginMessage(ISystemMessages.MSG_EXPAND_EMPTY),ISystemMessageObject.MSGTYPE_EMPTY, null);
|
||||
|
|
|
@ -76,32 +76,6 @@ public class SystemEmptyListAPIProviderImpl
|
|||
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...
|
||||
|
|
|
@ -36,15 +36,5 @@ public class SystemResolveFilterStringAPIProviderImpl extends SystemTestFilterSt
|
|||
super(subsystem, filterString);
|
||||
} // 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
|
|
@ -469,36 +469,6 @@ public class SystemSelectRemoteObjectAPIProviderImpl
|
|||
{
|
||||
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
|
||||
|
|
|
@ -139,32 +139,6 @@ public class SystemTestFilterStringAPIProviderImpl
|
|||
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...
|
||||
|
|
|
@ -95,13 +95,4 @@ public class SystemViewAPIProviderForConnections
|
|||
{
|
||||
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 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 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 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 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;
|
||||
}
|
||||
|
||||
/* (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 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)
|
||||
* @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.
|
||||
*/
|
||||
public boolean containsUserActionContext(ISystemProfile profile, ISubSystemConfiguration configuration, IUserActionContext context) {
|
||||
|
||||
Map map = getUserActionContextMap(profile);
|
||||
List list = getUserActionContexts(map, configuration);
|
||||
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.
|
||||
*/
|
||||
public boolean containsUserActionModel(ISystemProfile profile, ISubSystemConfiguration configuration, IUserActionContext context) {
|
||||
|
||||
Map map = getUserActionModelMap(profile);
|
||||
List list = getUserActionModels(map, configuration);
|
||||
return list.contains(context);
|
||||
|
@ -140,7 +138,6 @@ public class UserActionRegistry {
|
|||
* @param context the user action context.
|
||||
*/
|
||||
public void addUserActionContext(ISystemProfile profile, ISubSystemConfiguration configuration, IUserActionContext context) {
|
||||
|
||||
Map map = getUserActionContextMap(profile);
|
||||
List list = getUserActionContexts(map, configuration);
|
||||
list.add(context);
|
||||
|
@ -153,7 +150,6 @@ public class UserActionRegistry {
|
|||
* @param model the user action model.
|
||||
*/
|
||||
public void addUserActionModel(ISystemProfile profile, ISubSystemConfiguration configuration, IUserActionModel model) {
|
||||
|
||||
Map map = getUserActionModelMap(profile);
|
||||
List list = getUserActionModels(map, configuration);
|
||||
list.add(model);
|
||||
|
@ -166,7 +162,6 @@ public class UserActionRegistry {
|
|||
* @param context the user action context.
|
||||
*/
|
||||
public void removeUserActionContext(ISystemProfile profile, ISubSystemConfiguration configuration, IUserActionContext context) {
|
||||
|
||||
Map map = getUserActionContextMap(profile);
|
||||
List list = getUserActionContexts(map, configuration);
|
||||
list.remove(context);
|
||||
|
@ -179,7 +174,6 @@ public class UserActionRegistry {
|
|||
* @param model the user action model.
|
||||
*/
|
||||
public void removeUserActionModel(ISystemProfile profile, ISubSystemConfiguration configuration, IUserActionModel model) {
|
||||
|
||||
Map map = getUserActionModelMap(profile);
|
||||
List list = getUserActionModels(map, configuration);
|
||||
list.remove(model);
|
||||
|
|
Loading…
Add table
Reference in a new issue