1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-17 22:15:23 +02:00

JavaDoc corrected

This commit is contained in:
Andrew Gvozdev 2010-04-19 02:11:48 +00:00
parent 06ce0b8fbe
commit e514d04dfa

View file

@ -1,5 +1,5 @@
/******************************************************************************* /*******************************************************************************
* Copyright (c) 2007 Intel Corporation and others. * Copyright (c) 2007, 2010 Intel Corporation and others.
* All rights reserved. This program and the accompanying materials * All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0 * are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at * which accompanies this distribution, and is available at
@ -25,8 +25,7 @@ import org.eclipse.cdt.ui.newui.IConfigManager;
import org.eclipse.cdt.ui.newui.ManageConfigSelector; import org.eclipse.cdt.ui.newui.ManageConfigSelector;
/** /**
* Action which changes active build configuration of the current project to * Action which lets to manage (add/remove etc.) build configurations of the project.
* the given one.
*/ */
public class ManageConfigsAction public class ManageConfigsAction
implements IWorkbenchWindowPulldownDelegate2, IObjectActionDelegate { implements IWorkbenchWindowPulldownDelegate2, IObjectActionDelegate {
@ -34,7 +33,7 @@ implements IWorkbenchWindowPulldownDelegate2, IObjectActionDelegate {
public void selectionChanged(IAction action, ISelection selection) { public void selectionChanged(IAction action, ISelection selection) {
if (!selection.isEmpty()) { if (!selection.isEmpty()) {
// case for context menu // case for context menu
if (selection instanceof StructuredSelection) { if (selection instanceof StructuredSelection) {
obs = ManageConfigSelector.getProjects(((StructuredSelection)selection).toArray()); obs = ManageConfigSelector.getProjects(((StructuredSelection)selection).toArray());
action.setEnabled(ManageConfigSelector.getManager(obs) != null); action.setEnabled(ManageConfigSelector.getManager(obs) != null);