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

COVERAGE SUMMARY FOR SOURCE FILE [EditCompletionDialog.java]

nameclass, %method, %block, %line, %
EditCompletionDialog.java0%   (0/1)0%   (0/3)0%   (0/51)0%   (0/16)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class EditCompletionDialog0%   (0/1)0%   (0/3)0%   (0/51)0%   (0/16)
EditCompletionDialog (Shell, Transformation): void 0%   (0/1)0%   (0/21)0%   (0/7)
createDialogArea (Composite): Control 0%   (0/1)0%   (0/22)0%   (0/6)
okPressed (): void 0%   (0/1)0%   (0/8)0%   (0/3)

1/**
2 * 
3 */
4package de.uka.ipd.sdq.cip.runtime.dialogs;
5 
6import org.eclipse.jface.dialogs.TitleAreaDialog;
7import org.eclipse.swt.SWT;
8import org.eclipse.swt.widgets.Composite;
9import org.eclipse.swt.widgets.Control;
10import org.eclipse.swt.widgets.Shell;
11 
12import de.uka.ipd.sdq.cip.configuration.Transformation;
13 
14/**
15 * @author thomass
16 *
17 */
18public class EditCompletionDialog extends TitleAreaDialog {
19        
20        private CompletionConfigurationWidget completionConfigurationWidget = null;
21        
22        private Transformation transformation = null;
23 
24        public EditCompletionDialog(Shell parentShell, Transformation transformation) {
25                super(parentShell);
26                this.transformation = transformation;
27                completionConfigurationWidget = new CompletionConfigurationWidget();
28                
29                setShellStyle(SWT.DIALOG_TRIM | SWT.RESIZE | SWT.APPLICATION_MODAL);
30        }
31 
32        @Override
33        protected Control createDialogArea(Composite parent) {
34                
35                setTitle("Edit completion");
36                setMessage("Edit one completion and change its config");
37                
38                Composite mainComponent = (Composite) super.createDialogArea(parent);
39                
40                completionConfigurationWidget.createControl(mainComponent);
41                completionConfigurationWidget.setTransformation(transformation);
42                return mainComponent;
43                
44        }
45        
46        @Override
47        protected void okPressed() {
48                completionConfigurationWidget.getTransformation(transformation);
49                super.okPressed();
50        }
51}

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