1 package org.simantics.modeling.ui.actions;
\r
3 import java.util.List;
\r
5 import org.eclipse.core.runtime.IProgressMonitor;
\r
6 import org.simantics.db.Resource;
\r
7 import org.simantics.db.WriteGraph;
\r
8 import org.simantics.db.exception.DatabaseException;
\r
9 import org.simantics.g2d.canvas.ICanvasContext;
\r
10 import org.simantics.modeling.flags.MergeFlags;
\r
13 * @author Hannu Niemistö
\r
14 * @author Tuukka Lehtonen
\r
16 public class MergeRelatedFlagsHandler extends FlagOperationHandler {
\r
19 protected void perform(IProgressMonitor monitor, WriteGraph graph, List<Resource> flags,
\r
20 ICanvasContext canvasContext) throws DatabaseException {
\r
21 monitor.beginTask("Merge Related Flags", IProgressMonitor.UNKNOWN);
\r
22 MergeFlags.expandFlagSet(graph, flags);
\r
23 MergeFlagsHandler.performMerge(graph, flags, canvasContext);
\r