Commit 980794c1 authored by Sabine Teufl's avatar Sabine Teufl
Browse files

Exception in Branch of scenario

refs 951
parent be2651a1
......@@ -28,6 +28,7 @@ import org.eclipse.jface.viewers.EditingSupport;
import org.eclipse.jface.viewers.LabelProvider;
import org.eclipse.swt.SWT;
import org.eclipse.swt.widgets.Composite;
import org.fortiss.af3.mira.model.usecase.Scenario;
import org.fortiss.af3.mira.model.usecase.ScenarioStep;
import org.fortiss.af3.mira.model.usecase.UseCase;
import org.fortiss.tooling.base.model.element.IHierarchicElement;
......@@ -40,7 +41,7 @@ import org.fortiss.tooling.kernel.service.ICommandStackService;
* @author uden
* @author $Author$
* @version $Rev$
* @ConQAT.Rating GREEN Hash: 0B12D02E2DEA3600576E5D7083BE6996
* @ConQAT.Rating YELLOW Hash: 1F6B3401972338809DB7C7E74E357EF0
*/
public final class ScenarioStepBranchEditingSupport extends EditingSupport {
......@@ -83,7 +84,9 @@ public final class ScenarioStepBranchEditingSupport extends EditingSupport {
ArrayList<IHierarchicElement> steps = new ArrayList<IHierarchicElement>();
for(IHierarchicElement scen : uc.getContainedElements()) {
steps.addAll(scen.getContainedElementsList());
if(scen instanceof Scenario) {
steps.addAll(scen.getContainedElementsList());
}
}
ComboBoxViewerCellEditor editor =
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment