]> gerrit.simantics Code Review - simantics/platform.git/blob
b3d4896266089592d437a2b2ccf76488401497de
[simantics/platform.git] /
1 package org.simantics.modeling.ui.actions;
2
3 import java.util.List;
4
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;
11
12 /**
13  * @author Hannu Niemistö
14  * @author Tuukka Lehtonen
15  */
16 public class MergeRelatedFlagsHandler extends FlagOperationHandler {
17
18     @Override
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);
24     }
25
26 }