1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-04 23:55:26 +02:00

[fix] [api] Unify action contribution methods in ISubSystemConfigurationAdapter

This commit is contained in:
Uwe Stieber 2007-03-16 16:07:35 +00:00
parent 52f4211900
commit bec5ef86c8

View file

@ -21,6 +21,7 @@ import java.util.List;
import org.eclipse.jface.action.IAction;
import org.eclipse.jface.resource.ImageDescriptor;
import org.eclipse.jface.viewers.IStructuredSelection;
import org.eclipse.rse.core.subsystems.ISubSystem;
import org.eclipse.rse.core.subsystems.ISubSystemConfiguration;
import org.eclipse.rse.shells.ui.RemoteCommandHelpers;
@ -31,6 +32,7 @@ import org.eclipse.rse.subsystems.files.core.subsystems.IRemoteFileSubSystem;
import org.eclipse.rse.subsystems.shells.core.subsystems.IRemoteCmdSubSystem;
import org.eclipse.rse.ui.ISystemIconConstants;
import org.eclipse.rse.ui.RSEUIPlugin;
import org.eclipse.rse.ui.SystemMenuManager;
import org.eclipse.rse.ui.view.SubSystemConfigurationAdapter;
import org.eclipse.swt.widgets.Shell;
@ -43,10 +45,10 @@ public class ShellServiceSubSystemConfigurationAdapter extends SubSystemConfigur
protected ImageDescriptor _activeShellImageDescriptor;
protected ImageDescriptor _inactiveShellImageDescriptor;
public IAction[] getSubSystemActions(ISubSystemConfiguration factory, ISubSystem selectedSubSystem, Shell shell)
public IAction[] getSubSystemActions(SystemMenuManager menu, IStructuredSelection selection, Shell shell, String menuGroup, ISubSystemConfiguration factory, ISubSystem selectedSubSystem)
{
List allActions = new ArrayList();
IAction[] baseActions = super.getSubSystemActions(factory, selectedSubSystem, shell);
IAction[] baseActions = super.getSubSystemActions(menu, selection, shell, menuGroup, factory, selectedSubSystem);
for (int i = 0; i < baseActions.length; i++)
{
allActions.add(baseActions[i]);