public LayoutSelectionOperation( IGraphicalFeatureModel featureModel, int newSelectedLayoutAlgorithm, int oldSelectedLayoutAlgorithm) { super( featureModel, SET + FeatureDiagramLayoutHelper.getLayoutLabel(newSelectedLayoutAlgorithm)); this.newSelectedLayoutAlgorithm = newSelectedLayoutAlgorithm; this.oldSelectedLayoutAlgorithm = oldSelectedLayoutAlgorithm; }
public LayoutSelectionAction( GraphicalViewerImpl viewer, FeatureModel featureModel, int newSelectedLayoutAlgorithm, int oldSelectedLayoutAlgorithm) { super(FeatureDiagramLayoutHelper.getLayoutLabel(newSelectedLayoutAlgorithm)); this.newSelectedLayoutAlgorithm = newSelectedLayoutAlgorithm; this.oldSelectedLayoutAlgorithm = oldSelectedLayoutAlgorithm; this.featureModel = featureModel; }