-
Notifications
You must be signed in to change notification settings - Fork 91
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#2749 Select Related Operational Process Elements
Changed name on OperationalProcess Added Junit Change-Id: I43277a3808645134abf6aa1b02a49e5b74504727 Signed-off-by: Erwann Traisnel <erwann.traisnel@obeo.fr>
- Loading branch information
1 parent
02eacb0
commit f8d14dd
Showing
4 changed files
with
79 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
31 changes: 31 additions & 0 deletions
31
....ui/src/org/polarsys/capella/core/sirius/ui/testers/ValidOPSelectionMenuTargetTester.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
/******************************************************************************* | ||
* Copyright (c) 2023 THALES GLOBAL SERVICES. | ||
* | ||
* This program and the accompanying materials are made available under the | ||
* terms of the Eclipse Public License 2.0 which is available at | ||
* http://www.eclipse.org/legal/epl-2.0 | ||
* | ||
* SPDX-License-Identifier: EPL-2.0 | ||
* | ||
* Contributors: | ||
* Thales - initial API and implementation | ||
*******************************************************************************/ | ||
package org.polarsys.capella.core.sirius.ui.testers; | ||
|
||
import org.eclipse.emf.ecore.EObject; | ||
import org.polarsys.capella.core.data.oa.OperationalProcess; | ||
|
||
public class ValidOPSelectionMenuTargetTester extends AbstractValidSelectionMenuTarget { | ||
|
||
protected String PROPERTY_ID = "isValidOPSelectionMenu"; | ||
|
||
@Override | ||
protected boolean isValid(EObject element) { | ||
return element instanceof OperationalProcess; | ||
} | ||
|
||
@Override | ||
protected String getPropertyId() { | ||
return PROPERTY_ID; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters