Skip to content

Commit

Permalink
[569618] Filters are added even if add-on is not referenced in the model
Browse files Browse the repository at this point in the history
Conflicts:
	plugins/org.polarsys.capella.filtering.tools/src/org/polarsys/capella/filtering/tools/refresh/ExtensionRefreshExtension.java

Change-Id: I730726b6872d6c034089c4e47e315ffde92eede6
Signed-off-by: Tu Ton <minhtutonthat@gmail.com>
  • Loading branch information
minhtutonthat authored and pdulth committed Jan 7, 2021
1 parent f68b29d commit 12d9b91
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*******************************************************************************
* Copyright (c) 2018 THALES GLOBAL SERVICES.
* Copyright (c) 2018, 2020 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
Expand All @@ -18,14 +18,17 @@
import org.eclipse.sirius.diagram.description.filter.FilterDescription;
import org.eclipse.sirius.diagram.ui.business.api.helper.graphicalfilters.CompositeFilterApplicationBuilder;
import org.polarsys.capella.filtering.tools.FilteringToolsPlugin;
import org.polarsys.capella.filtering.tools.helpers.ViewpointHelper;

public class ExtensionRefreshExtension implements IRefreshExtension {

private final ResourceSetImpl localSet = new ResourceSetImpl();

@Override
public void beforeRefresh(DDiagram diagram) {
process(diagram);
if (ViewpointHelper.isViewpointActive(diagram)) {
process(diagram);
}
}

@Override
Expand Down

0 comments on commit 12d9b91

Please sign in to comment.