EMMA Coverage Report (generated Sun Feb 05 10:43:15 CET 2012)
[all classes][de.uka.ipd.sdq.pcm.gmf.toolbar]

COVERAGE SUMMARY FOR SOURCE FILE [BaseDiagramAction.java]

nameclass, %method, %block, %line, %
BaseDiagramAction.java0%   (0/1)0%   (0/6)0%   (0/32)0%   (0/8)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class BaseDiagramAction0%   (0/1)0%   (0/6)0%   (0/32)0%   (0/8)
<static initializer> 0%   (0/1)0%   (0/8)0%   (0/1)
BaseDiagramAction (): void 0%   (0/1)0%   (0/6)0%   (0/2)
dispose (): void 0%   (0/1)0%   (0/1)0%   (0/1)
getWindow (): IWorkbenchWindow 0%   (0/1)0%   (0/3)0%   (0/1)
init (IWorkbenchWindow): void 0%   (0/1)0%   (0/13)0%   (0/3)
selectionChanged (IAction, ISelection): void 0%   (0/1)0%   (0/1)0%   (0/1)

1package de.uka.ipd.sdq.pcm.gmf.toolbar;
2 
3import org.eclipse.jface.action.IAction;
4import org.eclipse.jface.viewers.ISelection;
5import org.eclipse.ui.IWorkbenchWindow;
6import org.eclipse.ui.IWorkbenchWindowActionDelegate;
7 
8/**
9 * Baseclass for action delegates that require the window
10 * passed to the init method.
11 *
12 * @author Philipp Meier
13 */
14abstract class BaseDiagramAction
15        implements IWorkbenchWindowActionDelegate {
16 
17        private IWorkbenchWindow myWindow = null;
18 
19        public void init(final IWorkbenchWindow window) {
20                assert (myWindow != null);
21                myWindow = window;
22        }
23 
24        /**
25         * @return the window which was active when the action was activated
26         */
27        protected IWorkbenchWindow getWindow() {
28                return myWindow;
29        }
30 
31        public void selectionChanged(final IAction action, final ISelection selection) {
32                // do nothing
33        }
34 
35        public void dispose() {
36                // do nothing
37        }
38}

[all classes][de.uka.ipd.sdq.pcm.gmf.toolbar]
EMMA 2.0.9414 (unsupported private build) (C) Vladimir Roubtsov