Commit a6b8aaf6 authored by Johannes Eder's avatar Johannes Eder
Browse files

YELLOW

Issue-Ref: 3886
Issue-Url: https://af3-developer.fortiss.org/issues/3886

Signed-off-by: Johannes Eder's avatarJohannes Eder <eder@fortiss.org>
parent 42cd09dc
DashboardWizard.java 4ff1ce284e9d90b239d4b647fc5eb40c8eb7c75b GREEN
DashboardWizard.java 327a5ae84e8c8c0e48bfa9694e4827fc14f000a0 YELLOW
DashboardWizardRootElementSelectionBase.java 1fe550598f11da4cdcf1ecc02173dfc2b992b669 GREEN
DashboardWizardSelectAllocation.java 1a9a0db43c3d8e2247804be2de6eccbd0a9aa48c GREEN
DashboardWizardSelectComponentArchitecture.java 26ee0bd9412f05dfad0903d86bda159b0629b722 GREEN
......
......@@ -101,8 +101,6 @@ public class DashboardWizard extends Wizard {
addPage(new DashboardWizardSelectProjectSource());
// Add the actual importer wizard pages.
registerConverter(new DashboardWizardSelectDataDictionary());
// FIXME (AB) #3892 - Wizzard broken, due to MIRA chainsaw massacre.
// registerConverter(new DashboardWizardSelectReqirements());
registerConverter(new DashboardWizardSelectComponentArchitecture());
registerConverter(new DashboardWizardSelectTaskArchitecture());
registerConverter(new DashboardWizardSelectAllocation());
......
/// *-------------------------------------------------------------------------+
// | Copyright 2019 fortiss GmbH |
// | |
// | Licensed under the Apache License, Version 2.0 (the "License"); |
// | you may not use this file except in compliance with the License. |
// | You may obtain a copy of the License at |
// | |
// | http://www.apache.org/licenses/LICENSE-2.0 |
// | |
// | Unless required by applicable law or agreed to in writing, software |
// | distributed under the License is distributed on an "AS IS" BASIS, |
// | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
// | See the License for the specific language governing permissions and |
// | limitations under the License. |
// +--------------------------------------------------------------------------*/
// package org.fortiss.af3.exploration.ui.perspective.dashboard.projectwizard;
//
// import static
/// org.fortiss.af3.exploration.util.ModelSnapshotExtractUtils.createRequirementModelSnapshot;
// import static org.fortiss.tooling.kernel.utils.EcoreUtils.getFirstChildWithType;
// import static org.fortiss.tooling.kernel.utils.EcoreUtils.pickInstanceOf;
//
// import java.util.List;
// import java.util.function.Function;
//
// import org.eclipse.emf.ecore.EObject;
// import org.fortiss.af3.exploration.model.project.ModelSnapshot;
// import org.fortiss.af3.mira.model.Analysis;
// import org.fortiss.af3.mira.model.Requirement;
// import org.fortiss.af3.mira.model.SafetyLevelRequirementSpecification;
// import org.fortiss.tooling.kernel.model.IProjectRootElement;
//
/// **
// * Wizard page for selecting the {@link Requirement} {@link Analysis}. Currently, only
// * safety-relevant Requirements are imported.
// *
// * @author eder
// */
// public class DashboardWizardSelectReqirements
// extends DashboardWizardRootElementSelectionBase<Analysis> {
//
// /** Constructor. */
// public DashboardWizardSelectReqirements() {
// super("Requirements", Analysis.class);
// }
//
// /** {@inheritDoc} */
// @Override
// protected boolean isRelevantElement(EObject element) {
// if(element instanceof Requirement) {
// Requirement req = (Requirement)element;
// return req.getSpecifications().stream()
// .anyMatch(s -> s instanceof SafetyLevelRequirementSpecification);
// }
// return false;
// }
//
// /** {@inheritDoc} */
// @Override
// protected boolean isRelevantRootElement(Analysis requirements) {
// return getFirstChildWithType(requirements,
// SafetyLevelRequirementSpecification.class) != null;
// }
//
// /** {@inheritDoc} */
// @Override
// public Function<Analysis, ModelSnapshot> getModelToSnapShotConverter() {
// return new Function<Analysis, ModelSnapshot>() {
// @Override
// public ModelSnapshot apply(Analysis t) {
// return createRequirementModelSnapshot(t);
// }
// };
// }
//
// /** {@inheritDoc} */
// @Override
// public boolean inputsAvailable(List<? extends IProjectRootElement> rootElements) {
// List<Analysis> reqNodes = pickInstanceOf(Analysis.class, rootElements);
// for(Analysis reqNode : reqNodes) {
// if(isRelevantRootElement(reqNode)) {
// return true;
// }
// }
// return false;
// }
//
// /** {@inheritDoc} */
// @Override
// public boolean isRequired() {
// return false;
// }
// }
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