Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(514)

Side by Side Diff: dart/editor/tools/plugins/com.google.dart.tools.debug.ui/src/com/google/dart/tools/debug/ui/internal/dialogs/ManageLaunchesDialog.java

Issue 59073003: Version 0.8.10.4 (Closed) Base URL: http://dart.googlecode.com/svn/trunk/
Patch Set: Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright 2012 Dart project authors. 2 * Copyright 2012 Dart project authors.
3 * 3 *
4 * Licensed under the Eclipse Public License v1.0 (the "License"); you may not u se this file except 4 * Licensed under the Eclipse Public License v1.0 (the "License"); you may not u se this file except
5 * in compliance with the License. You may obtain a copy of the License at 5 * in compliance with the License. You may obtain a copy of the License at
6 * 6 *
7 * http://www.eclipse.org/legal/epl-v10.html 7 * http://www.eclipse.org/legal/epl-v10.html
8 * 8 *
9 * Unless required by applicable law or agreed to in writing, software distribut ed under the License 9 * Unless required by applicable law or agreed to in writing, software distribut ed under the License
10 * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY K IND, either express 10 * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY K IND, either express
11 * or implied. See the License for the specific language governing permissions a nd limitations under 11 * or implied. See the License for the specific language governing permissions a nd limitations under
12 * the License. 12 * the License.
13 */ 13 */
14 14
15 package com.google.dart.tools.debug.ui.internal.dialogs; 15 package com.google.dart.tools.debug.ui.internal.dialogs;
16 16
17 import com.google.dart.tools.core.DartCoreDebug;
17 import com.google.dart.tools.debug.core.DartDebugCorePlugin; 18 import com.google.dart.tools.debug.core.DartDebugCorePlugin;
18 import com.google.dart.tools.debug.ui.internal.DartDebugUIPlugin; 19 import com.google.dart.tools.debug.ui.internal.DartDebugUIPlugin;
19 import com.google.dart.tools.debug.ui.internal.DartUtil; 20 import com.google.dart.tools.debug.ui.internal.DartUtil;
20 import com.google.dart.tools.debug.ui.internal.DebugErrorHandler; 21 import com.google.dart.tools.debug.ui.internal.DebugErrorHandler;
21 import com.google.dart.tools.debug.ui.internal.util.LaunchUtils; 22 import com.google.dart.tools.debug.ui.internal.util.LaunchUtils;
22 23
23 import org.eclipse.core.resources.IResource; 24 import org.eclipse.core.resources.IResource;
24 import org.eclipse.core.resources.ResourcesPlugin; 25 import org.eclipse.core.resources.ResourcesPlugin;
25 import org.eclipse.core.runtime.CoreException; 26 import org.eclipse.core.runtime.CoreException;
26 import org.eclipse.core.runtime.IStatus; 27 import org.eclipse.core.runtime.IStatus;
(...skipping 445 matching lines...) Expand 10 before | Expand all | Expand 10 after
472 handleSelectedConfigChanged(); 473 handleSelectedConfigChanged();
473 } 474 }
474 }); 475 });
475 476
476 GridDataFactory.swtDefaults().grab(false, true).align(SWT.FILL, SWT.FILL).hi nt(50, 50).applyTo( 477 GridDataFactory.swtDefaults().grab(false, true).align(SWT.FILL, SWT.FILL).hi nt(50, 50).applyTo(
477 launchesViewer.getControl()); 478 launchesViewer.getControl());
478 479
479 ILaunchManager manager = DebugPlugin.getDefault().getLaunchManager(); 480 ILaunchManager manager = DebugPlugin.getDefault().getLaunchManager();
480 481
481 for (final ILaunchConfigurationType configType : manager.getLaunchConfigurat ionTypes()) { 482 for (final ILaunchConfigurationType configType : manager.getLaunchConfigurat ionTypes()) {
482 CreateLaunchAction action = new CreateLaunchAction(this, configType); 483 // remove chrome app and pub serve launch icons from toolbar, unless user has opted in
484 if (!configType.getIdentifier().contains("pubServe")
485 && !configType.getIdentifier().contains("chromeApp")) {
486 CreateLaunchAction action = new CreateLaunchAction(this, configType);
487 toolBarManager.add(action);
488 } else {
489 if ((configType.getIdentifier().contains("pubServe") && DartCoreDebug.EN ABLE_PUB_SERVE_LAUNCH)
490 || (configType.getIdentifier().contains("chromeApp") && DartCoreDebu g.ENABLE_CHROME_APP_LAUNCH_CONFIG)) {
483 491
484 toolBarManager.add(action); 492 CreateLaunchAction action = new CreateLaunchAction(this, configType);
493 toolBarManager.add(action);
494 }
495 }
485 } 496 }
486 497
487 //toolBarManager.add(new Separator()); 498 //toolBarManager.add(new Separator());
488 toolBarManager.add(getDeleteAction()); 499 toolBarManager.add(getDeleteAction());
489 500
490 toolBarManager.update(true); 501 toolBarManager.update(true);
491 502
492 configUI = new Composite(sashForm, SWT.NONE); 503 configUI = new Composite(sashForm, SWT.NONE);
493 GridLayoutFactory.fillDefaults().applyTo(configUI); 504 GridLayoutFactory.fillDefaults().applyTo(configUI);
494 GridDataFactory.swtDefaults().grab(true, false).align(SWT.FILL, SWT.BEGINNIN G).applyTo(configUI); 505 GridDataFactory.swtDefaults().grab(true, false).align(SWT.FILL, SWT.BEGINNIN G).applyTo(configUI);
(...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after
666 DartDebugUIPlugin.PLUGIN_ID, 677 DartDebugUIPlugin.PLUGIN_ID,
667 0, 678 0,
668 Messages.ManageLaunchesDialog_Launch_configuration_already_exists_ with_this_name, 679 Messages.ManageLaunchesDialog_Launch_configuration_already_exists_ with_this_name,
669 null)); 680 null));
670 } 681 }
671 } 682 }
672 } 683 }
673 } 684 }
674 685
675 } 686 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698