-
Notifications
You must be signed in to change notification settings - Fork 85
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Only merged when the commit https://git.polarsys.org/r/#/c/5936/ has
been integrated in Capella] [2026] Rename a model element/diagram should update the title of related editors Bug: 2026 Change-Id: Iac6fe5aaa8132a8bbc89a79aab33acfe4bb184c9 Signed-off-by: Tu Ton <minhtutonthat@gmail.com>
- Loading branch information
1 parent
882fd54
commit 354bbde
Showing
2 changed files
with
38 additions
and
0 deletions.
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
32 changes: 32 additions & 0 deletions
32
...pella/core/ui/properties/richtext/contribution/CapellaEditorInputFeatureContribution.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,32 @@ | ||
/******************************************************************************* | ||
* Copyright (c) 2018 THALES GLOBAL SERVICES. | ||
* All rights reserved. This program and the accompanying materials | ||
* are made available under the terms of the Eclipse Public License v1.0 | ||
* which accompanies this distribution, and is available at | ||
* http://www.eclipse.org/legal/epl-v10.html | ||
* | ||
* Contributors: | ||
* Thales - initial API and implementation | ||
******************************************************************************/ | ||
|
||
package org.polarsys.capella.core.ui.properties.richtext.contribution; | ||
|
||
import java.util.ArrayList; | ||
import java.util.List; | ||
|
||
import org.eclipse.emf.ecore.EStructuralFeature; | ||
import org.eclipse.sirius.viewpoint.ViewpointPackage; | ||
import org.polarsys.capella.common.data.modellingcore.ModellingcorePackage; | ||
import org.polarsys.kitalpha.richtext.widget.editor.intf.EditorInputFeatureContribution; | ||
|
||
public class CapellaEditorInputFeatureContribution implements EditorInputFeatureContribution { | ||
|
||
@Override | ||
public List<EStructuralFeature> getTitleChangingFeatures() { | ||
List<EStructuralFeature> features = new ArrayList<>(); | ||
features.add(ModellingcorePackage.Literals.ABSTRACT_NAMED_ELEMENT__NAME); | ||
features.add(ViewpointPackage.Literals.DREPRESENTATION__NAME); | ||
return features; | ||
} | ||
|
||
} |