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

COVERAGE SUMMARY FOR SOURCE FILE [ActionListSelectionDialog.java]

nameclass, %method, %block, %line, %
ActionListSelectionDialog.java0%   (0/1)0%   (0/4)0%   (0/44)0%   (0/12)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class ActionListSelectionDialog0%   (0/1)0%   (0/4)0%   (0/44)0%   (0/12)
ActionListSelectionDialog (Shell, LabelProvider): void 0%   (0/1)0%   (0/14)0%   (0/5)
ActionListSelectionDialog (Shell, LabelProvider, int, int): void 0%   (0/1)0%   (0/20)0%   (0/7)
createButtonBar (Composite): Control 0%   (0/1)0%   (0/2)0%   (0/1)
getInitialSize (): Point 0%   (0/1)0%   (0/8)0%   (0/1)

1/**
2 * 
3 */
4package de.uka.ipd.sdq.sensorframework.visualisation.dialogs;
5 
6import org.eclipse.jface.viewers.LabelProvider;
7import org.eclipse.swt.SWT;
8import org.eclipse.swt.graphics.Point;
9import org.eclipse.swt.widgets.Composite;
10import org.eclipse.swt.widgets.Control;
11import org.eclipse.swt.widgets.Shell;
12import org.eclipse.ui.dialogs.ElementListSelectionDialog;
13 
14/**
15 * Dialog possible make selection from actions in Menu/Visualasetions are
16 * contained.
17 * 
18 * @author Roman Andrej
19 */
20public class ActionListSelectionDialog extends ElementListSelectionDialog {
21 
22        /** Default dialog size. */
23        private int width  = 400;
24        private int height = 300;
25        
26        /**
27         * @param parent
28         *            shell
29         * @param labelProvider for super class
30         */
31        public ActionListSelectionDialog(Shell parent, LabelProvider labelProvider) {
32                super(parent, labelProvider);
33                super.setShellStyle(SWT.NONE);
34        }
35        
36        /**
37         * @param parent
38         *            shell
39         * @param labelProvider
40         *            for super class
41         * @param width
42         *            the x coordinate of the new point
43         * @param height
44         *            the y coordinate of the new point
45         */
46        public ActionListSelectionDialog(Shell parent, LabelProvider labelProvider,
47                        int width, int height) {
48                super(parent, labelProvider);
49                super.setShellStyle(SWT.NONE);
50                this.width = width;
51                this.height = height;
52        }
53 
54        /* (non-Javadoc)
55         * @see org.eclipse.ui.dialogs.SelectionStatusDialog#createButtonBar(org.eclipse.swt.widgets.Composite)
56         */
57        @Override
58        protected Control createButtonBar(Composite parent) {
59                // Delete OK and CANCEL butons
60                return null;
61        }
62 
63        /* (non-Javadoc)
64         * @see org.eclipse.jface.dialogs.TitleAreaDialog#getInitialSize()
65         */
66        @Override
67        protected Point getInitialSize() {
68                return new Point(width, height);
69        }
70}

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