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

COVERAGE SUMMARY FOR SOURCE FILE [PassiveResourceEditHelperAdvice.java]

nameclass, %method, %block, %line, %
PassiveResourceEditHelperAdvice.java0%   (0/1)0%   (0/2)0%   (0/24)0%   (0/9)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class PassiveResourceEditHelperAdvice0%   (0/1)0%   (0/2)0%   (0/24)0%   (0/9)
PassiveResourceEditHelperAdvice (): void 0%   (0/1)0%   (0/3)0%   (0/1)
getAfterConfigureCommand (ConfigureRequest): ICommand 0%   (0/1)0%   (0/21)0%   (0/8)

1package de.uka.ipd.sdq.pcm.gmf.repository.helper;
2 
3import org.eclipse.gmf.runtime.common.core.command.ICommand;
4import org.eclipse.gmf.runtime.emf.type.core.commands.SetValueCommand;
5import org.eclipse.gmf.runtime.emf.type.core.edithelper.AbstractEditHelperAdvice;
6import org.eclipse.gmf.runtime.emf.type.core.edithelper.IEditHelperAdvice;
7import org.eclipse.gmf.runtime.emf.type.core.requests.ConfigureRequest;
8import org.eclipse.gmf.runtime.emf.type.core.requests.SetRequest;
9 
10import de.uka.ipd.sdq.pcm.core.CoreFactory;
11import de.uka.ipd.sdq.pcm.core.PCMRandomVariable;
12import de.uka.ipd.sdq.pcm.repository.PassiveResource;
13import de.uka.ipd.sdq.pcm.repository.RepositoryPackage;
14 
15public class PassiveResourceEditHelperAdvice
16extends        AbstractEditHelperAdvice 
17implements IEditHelperAdvice {
18 
19        @Override
20        protected ICommand getAfterConfigureCommand(ConfigureRequest request) {
21                PCMRandomVariable rv = CoreFactory.eINSTANCE.createPCMRandomVariable();
22                rv.setSpecification("1");
23                
24/*                StochasticExpressionEditDialog dialog = new StochasticExpressionEditDialog(
25                                PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(),
26                                TypeEnum.INT, rv);
27                dialog.open();
28 
29                if (dialog.getReturnCode() == Dialog.CANCEL)
30                        return new CanceledCommand();
31 
32                rv.setSpecification(dialog.getResultText());*/
33                
34                ICommand cmd = new SetValueCommand(
35                                new SetRequest((PassiveResource)request
36                                        .getElementToConfigure(),
37                                RepositoryPackage.eINSTANCE.getPassiveResource_Capacity_PassiveResource(),
38                                rv));
39                
40                return cmd;
41        }
42 
43}

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