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

COVERAGE SUMMARY FOR SOURCE FILE [LoadResourceAction.java]

nameclass, %method, %block, %line, %
LoadResourceAction.java0%   (0/1)0%   (0/3)0%   (0/42)0%   (0/10)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class LoadResourceAction0%   (0/1)0%   (0/3)0%   (0/42)0%   (0/10)
<static initializer> 0%   (0/1)0%   (0/8)0%   (0/1)
LoadResourceAction (): void 0%   (0/1)0%   (0/3)0%   (0/1)
execute (ExecutionEvent): Object 0%   (0/1)0%   (0/31)0%   (0/9)

1/*
2 * Copyright 2006 SDQ Research Group, University of Karlsruhe (TH)
3 */
4package de.uka.ipd.sdq.pcm.gmf.seff.part;
5 
6import org.eclipse.core.commands.AbstractHandler;
7import org.eclipse.core.commands.ExecutionEvent;
8import org.eclipse.core.commands.ExecutionException;
9import org.eclipse.emf.transaction.TransactionalEditingDomain;
10import org.eclipse.gmf.runtime.diagram.ui.parts.DiagramEditor;
11import org.eclipse.swt.widgets.Shell;
12import org.eclipse.ui.IEditorPart;
13import org.eclipse.ui.handlers.HandlerUtil;
14 
15/**
16 * @generated
17 */
18public class LoadResourceAction extends AbstractHandler {
19        /**
20         * @generated
21         */
22        public Object execute(ExecutionEvent event) throws ExecutionException {
23                IEditorPart diagramEditor = HandlerUtil.getActiveEditorChecked(event);
24                Shell shell = diagramEditor.getEditorSite().getShell();
25                assert diagramEditor instanceof DiagramEditor;
26                TransactionalEditingDomain editingDomain = ((DiagramEditor) diagramEditor)
27                                .getEditingDomain();
28                org.eclipse.emf.edit.ui.action.LoadResourceAction.LoadResourceDialog loadResourceDialog = new org.eclipse.emf.edit.ui.action.LoadResourceAction.LoadResourceDialog(
29                                shell, editingDomain);
30                loadResourceDialog.open();
31                return null;
32        }
33 
34}

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