]> gerrit.simantics Code Review - simantics/platform.git/blob - bundles/org.simantics.modeling.ui/src/org/simantics/modeling/ui/actions/MergeRelatedFlagsHandler.java
Improved Copy Visible Data usability in time series chart editor
[simantics/platform.git] / bundles / org.simantics.modeling.ui / src / org / simantics / modeling / ui / actions / MergeRelatedFlagsHandler.java
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(Messages.MergeRelatedFlagsHandler_MonitorMergeRelatedFlags, IProgressMonitor.UNKNOWN);
22         MergeFlags.expandFlagSet(graph, flags);
23         MergeFlagsHandler.performMerge(graph, flags, canvasContext);
24     }
25
26 }