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

COVERAGE SUMMARY FOR SOURCE FILE [EditorContentsSelectionAction.java]

nameclass, %method, %block, %line, %
EditorContentsSelectionAction.java0%   (0/1)0%   (0/3)0%   (0/24)0%   (0/8)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class EditorContentsSelectionAction0%   (0/1)0%   (0/3)0%   (0/24)0%   (0/8)
EditorContentsSelectionAction (): void 0%   (0/1)0%   (0/6)0%   (0/2)
getSelectedDeclaration (): EObject 0%   (0/1)0%   (0/3)0%   (0/1)
selectionChanged (SelectionChangedEvent): void 0%   (0/1)0%   (0/15)0%   (0/5)

1package de.uka.ipd.sdq.pcm.dialogs.parameters;
2 
3import org.eclipse.emf.ecore.EObject;
4import org.eclipse.jface.viewers.ISelectionChangedListener;
5import org.eclipse.jface.viewers.IStructuredSelection;
6import org.eclipse.jface.viewers.SelectionChangedEvent;
7 
8 
9/**
10 * The class delegates straight in the active View selected object on the
11 * subclass.
12 * 
13 * @author Roman Andrej
14 */
15public class EditorContentsSelectionAction implements ISelectionChangedListener {
16 
17        private EObject selectedDeclaration = null;
18        
19        /* (non-Javadoc)
20         * @see org.eclipse.jface.viewers.ISelectionChangedListener#selectionChanged(org.eclipse.jface.viewers.SelectionChangedEvent)
21         */
22        public void selectionChanged(SelectionChangedEvent event) {
23                IStructuredSelection sel = (IStructuredSelection) event.getSelection();
24                Object selection = (Object) sel.getFirstElement();
25                this.selectedDeclaration = (EObject) selection;
26 
27                /** make validation(Enabled/Unenabled) for delete-,up-,downToolItem */
28                UpDownButtonsValidator.getSingelton().validateSelection(selection);
29        }
30 
31        public EObject getSelectedDeclaration() {
32                return selectedDeclaration;
33        }
34}

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