Download
Getting Started
Members
Projects
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
More
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
Toggle navigation
Bugzilla – Attachment 84023 Details for
Bug 39900
[launch] Start multiple debug configurations at once
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
[patch]
work in progress
patch-39900.txt (text/plain), 7.13 KB, created by
Boris Bokowski
on 2007-11-28 17:08:17 EST
(
hide
)
Description:
work in progress
Filename:
MIME Type:
Creator:
Boris Bokowski
Created:
2007-11-28 17:08:17 EST
Size:
7.13 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P org.eclipse.debug.ui >Index: ui/org/eclipse/debug/internal/ui/launchConfigurations/LaunchConfigurationsMessages.properties >=================================================================== >RCS file: /cvsroot/eclipse/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/launchConfigurations/LaunchConfigurationsMessages.properties,v >retrieving revision 1.193 >diff -u -r1.193 LaunchConfigurationsMessages.properties >--- ui/org/eclipse/debug/internal/ui/launchConfigurations/LaunchConfigurationsMessages.properties 27 Sep 2007 21:03:06 -0000 1.193 >+++ ui/org/eclipse/debug/internal/ui/launchConfigurations/LaunchConfigurationsMessages.properties 28 Nov 2007 22:07:52 -0000 >@@ -202,3 +202,5 @@ > SelectLaunchersDialog_2=This dialog allows you to specify which launcher to use when multiple launchers are available for a configuration and launch mode. > SelectLaunchersDialog_4=<a href="ws">Change Workspace Settings...</a> > SelectLaunchersDialog_5=Description >+ >+MultiLaunchAction__Launch_All_1=Launch &All >\ No newline at end of file >Index: ui/org/eclipse/debug/internal/ui/launchConfigurations/LaunchConfigurationsMessages.java >=================================================================== >RCS file: /cvsroot/eclipse/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/launchConfigurations/LaunchConfigurationsMessages.java,v >retrieving revision 1.64 >diff -u -r1.64 LaunchConfigurationsMessages.java >--- ui/org/eclipse/debug/internal/ui/launchConfigurations/LaunchConfigurationsMessages.java 27 Sep 2007 21:03:06 -0000 1.64 >+++ ui/org/eclipse/debug/internal/ui/launchConfigurations/LaunchConfigurationsMessages.java 28 Nov 2007 22:07:52 -0000 >@@ -223,4 +223,5 @@ > public static String SelectLaunchOptionsDialog_3; > public static String SelectLaunchOptionsDialog_4; > >+ public static String MultiLaunchAction__Launch_All_1; > } >Index: ui/org/eclipse/debug/internal/ui/launchConfigurations/LaunchConfigurationView.java >=================================================================== >RCS file: /cvsroot/eclipse/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/launchConfigurations/LaunchConfigurationView.java,v >retrieving revision 1.45 >diff -u -r1.45 LaunchConfigurationView.java >--- ui/org/eclipse/debug/internal/ui/launchConfigurations/LaunchConfigurationView.java 28 Nov 2007 20:02:49 -0000 1.45 >+++ ui/org/eclipse/debug/internal/ui/launchConfigurations/LaunchConfigurationView.java 28 Nov 2007 22:07:52 -0000 >@@ -102,6 +102,8 @@ > * @since 3.2 > */ > private ViewerFilter[] fFilters = null; >+ >+ private MultiLaunchAction fMultiLaunchAction; > > /** > * Constructs a launch configuration view for the given launch group >@@ -192,6 +194,9 @@ > fDuplicateAction = new DuplicateLaunchConfigurationAction(getViewer(), getLaunchGroup().getMode()); > setAction(DuplicateLaunchConfigurationAction.ID_DUPLICATE_ACTION, fDuplicateAction); > >+ fMultiLaunchAction = new MultiLaunchAction(getViewer(), getLaunchGroup().getMode()); >+ setAction(MultiLaunchAction.ID_MULTI_LAUNCH_ACTION, fMultiLaunchAction); >+ > fCollapseAllAction = new CollapseAllLaunchConfigurationAction((TreeViewer)getViewer()); > setAction(CollapseAllLaunchConfigurationAction.ID_COLLAPSEALL_ACTION, fCollapseAllAction); > >@@ -215,6 +220,7 @@ > menu.add(fDuplicateAction); > menu.add(fDeleteAction); > menu.add(new Separator()); >+ menu.add(fMultiLaunchAction); > } > > /** >Index: ui/org/eclipse/debug/internal/ui/launchConfigurations/MultiLaunchAction.java >=================================================================== >RCS file: ui/org/eclipse/debug/internal/ui/launchConfigurations/MultiLaunchAction.java >diff -N ui/org/eclipse/debug/internal/ui/launchConfigurations/MultiLaunchAction.java >--- /dev/null 1 Jan 1970 00:00:00 -0000 >+++ ui/org/eclipse/debug/internal/ui/launchConfigurations/MultiLaunchAction.java 1 Jan 1970 00:00:00 -0000 >@@ -0,0 +1,93 @@ >+/******************************************************************************* >+ * Copyright (c) 2000, 2007 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 >+ * >+ * Contributors: >+ * IBM Corporation - initial API and implementation >+ *******************************************************************************/ >+package org.eclipse.debug.internal.ui.launchConfigurations; >+ >+ >+import org.eclipse.core.runtime.CoreException; >+import org.eclipse.core.runtime.NullProgressMonitor; >+import org.eclipse.debug.core.ILaunch; >+import org.eclipse.debug.core.ILaunchConfiguration; >+import org.eclipse.debug.internal.ui.DebugUIPlugin; >+import org.eclipse.debug.internal.ui.IInternalDebugUIConstants; >+import org.eclipse.debug.ui.DebugUITools; >+import org.eclipse.jface.resource.ImageDescriptor; >+import org.eclipse.jface.viewers.IStructuredSelection; >+import org.eclipse.jface.viewers.Viewer; >+ >+/** >+ * Launches all selected launch configurations. >+ */ >+public class MultiLaunchAction extends AbstractLaunchConfigurationAction { >+ >+ /** >+ * Action identifier for IDebugView#getAction(String) >+ */ >+ public static final String ID_MULTI_LAUNCH_ACTION = DebugUIPlugin.getUniqueIdentifier() + ".ID_MULTI_LAUNCH_ACTION"; //$NON-NLS-1$ >+ >+ /** >+ * Constructs an action to launch multiple configurations >+ */ >+ public MultiLaunchAction(Viewer viewer, String mode) { >+ super(LaunchConfigurationsMessages.MultiLaunchAction__Launch_All_1, viewer, mode); >+ } >+ >+ /** >+ * @see AbstractLaunchConfigurationAction#performAction() >+ */ >+ protected void performAction() { >+ Object[] launches = getStructuredSelection().toArray(); >+ try { >+ for (int i = 0; i < launches.length; i++) { >+ ILaunch launch = ((ILaunchConfiguration)launches[i]).launch(getMode(), new NullProgressMonitor(), true); >+ } >+ } catch (CoreException e) { >+ errorDialog(e); >+ } >+ } >+ >+ /** >+ * @see org.eclipse.ui.actions.SelectionListenerAction#updateSelection(org.eclipse.jface.viewers.IStructuredSelection) >+ */ >+ protected boolean updateSelection(IStructuredSelection selection) { >+ if (selection.size() < 2) { >+ return false; >+ } >+ Object[] launches = getStructuredSelection().toArray(); >+ for (int i = 0; i < launches.length; i++) { >+ if (!(launches[i] instanceof ILaunchConfiguration)) { >+ return false; >+ } >+ } >+ return true; >+ } >+ >+ /* (non-Javadoc) >+ * @see org.eclipse.jface.action.Action#getDisabledImageDescriptor() >+ */ >+ public ImageDescriptor getDisabledImageDescriptor() { >+ return DebugUITools.getImageDescriptor(IInternalDebugUIConstants.IMG_DLCL_DUPLICATE_CONFIG); >+ } >+ >+ /* (non-Javadoc) >+ * @see org.eclipse.jface.action.Action#getImageDescriptor() >+ */ >+ public ImageDescriptor getImageDescriptor() { >+ return DebugUITools.getImageDescriptor(IInternalDebugUIConstants.IMG_ELCL_DUPLICATE_CONFIG); >+ } >+ >+ /* (non-Javadoc) >+ * @see org.eclipse.jface.action.Action#getToolTipText() >+ */ >+ public String getToolTipText() { >+ return LaunchConfigurationsMessages.LaunchConfigurationsDialog_5; >+ } >+ >+}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 39900
:
84023
|
109715
|
109794
|
177951
|
179099