Skip to content

Commit

Permalink
[Only merged when the commit https://git.polarsys.org/r/#/c/5936/ has
Browse files Browse the repository at this point in the history
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
minhtutonthat authored and pdulth committed Aug 9, 2018
1 parent 882fd54 commit 354bbde
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 0 deletions.
Expand Up @@ -70,4 +70,10 @@
strategy="org.polarsys.capella.core.ui.properties.richtext.navigation.CapellaNavigationModelElement">
</openStrategy>
</extension>
<extension
point="org.polarsys.kitalpha.richtext.widget.editorInputFeatureContribution">
<featureContribution
class="org.polarsys.capella.core.ui.properties.richtext.contribution.CapellaEditorInputFeatureContribution">
</featureContribution>
</extension>
</plugin>
@@ -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;
}

}

0 comments on commit 354bbde

Please sign in to comment.