EMMA Coverage Report (generated Mon Sep 29 15:05:28 EDT 2008)
[all classes][org.eclipse.ui.internal.ide.actions]

COVERAGE SUMMARY FOR SOURCE FILE [BuildCleanAction.java]

nameclass, %method, %block, %line, %
BuildCleanAction.java100% (1/1)67%  (2/3)46%  (11/24)62%  (5/8)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class BuildCleanAction100% (1/1)67%  (2/3)46%  (11/24)62%  (5/8)
run (): void 0%   (0/1)0%   (0/13)0%   (0/3)
BuildCleanAction (IWorkbenchWindow): void 100% (1/1)100% (10/10)100% (4/4)
dispose (): void 100% (1/1)100% (1/1)100% (1/1)

1/*******************************************************************************
2 * Copyright (c) 2004, 2005 IBM Corporation and others.
3 * All rights reserved. This program and the accompanying materials
4 * are made available under the terms of the Eclipse Public License v1.0
5 * which accompanies this distribution, and is available at
6 * http://www.eclipse.org/legal/epl-v10.html
7 *
8 * Contributors:
9 * IBM - Initial API and implementation
10 *******************************************************************************/
11package org.eclipse.ui.internal.ide.actions;
12 
13import org.eclipse.core.resources.IProject;
14import org.eclipse.jface.action.Action;
15import org.eclipse.ui.IWorkbenchWindow;
16import org.eclipse.ui.actions.ActionFactory;
17import org.eclipse.ui.internal.ide.IDEWorkbenchMessages;
18import org.eclipse.ui.internal.ide.dialogs.CleanDialog;
19 
20/**
21 * The clean action replaces the rebuild actions. Clean will discard all built
22 * state for all projects in the workspace, and deletes all problem markers.
23 * The next time a build is run, projects will have to be built from scratch.
24 * Technically this is only necessary if an incremental builder misbehaves.
25 * 
26 * @since 3.0
27 */
28public class BuildCleanAction extends Action implements ActionFactory.IWorkbenchAction {
29        private IWorkbenchWindow window;
30 
31        /**
32         * Creates a new BuildCleanAction
33         * 
34         * @param window The window for parenting this action
35         */
36        public BuildCleanAction(IWorkbenchWindow window) {
37                super(IDEWorkbenchMessages.Workbench_buildClean);
38                setActionDefinitionId("org.eclipse.ui.project.cleanAction"); //$NON-NLS-1$
39                this.window = window;
40        }
41 
42        /* (non-Javadoc)
43         * @see org.eclipse.ui.actions.ActionFactory.IWorkbenchAction#dispose()
44         */
45        public void dispose() {
46                //nothing to dispose
47        }
48 
49        public void run() {
50                IProject[] selected = BuildUtilities.findSelectedProjects(window);
51                new CleanDialog(window, selected).open();
52        }
53}

[all classes][org.eclipse.ui.internal.ide.actions]
EMMA 2.0.5312 EclEmma Fix 1 (C) Vladimir Roubtsov