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