Naming sync

This commit is contained in:
Bane Stojkovic
2022-11-15 22:57:47 +01:00
parent 0535df6880
commit 07f7382e56
2 changed files with 4 additions and 4 deletions
@@ -309,10 +309,10 @@ public interface IPlugInPort extends ISelectionProcessor, IMouseProcessor, IKeyP
* *
* @param componentType * @param componentType
* @param template optional * @param template optional
* @param parameters optional * @param model optional datasheet model
* @param forceInstatiate * @param forceInstatiate
*/ */
void setNewComponentTypeSlot(ComponentType componentType, Template template, String[] parameters, boolean forceInstatiate); void setNewComponentTypeSlot(ComponentType componentType, Template template, String[] model, boolean forceInstatiate);
/** /**
* Locks or unlocks the specified layer. All components within +- 0.5 range will be affected by * Locks or unlocks the specified layer. All components within +- 0.5 range will be affected by
@@ -721,7 +721,7 @@ public class Presenter implements IPlugInPort {
} }
} }
private void addPendingComponentsToProject(Point2D scaledPoint, ComponentType componentTypeSlot, Template template, String[] parameters) { private void addPendingComponentsToProject(Point2D scaledPoint, ComponentType componentTypeSlot, Template template, String[] model) {
List<IDIYComponent<?>> componentSlot = instantiationManager.getComponentSlot(); List<IDIYComponent<?>> componentSlot = instantiationManager.getComponentSlot();
Point2D firstPoint = componentSlot.get(0).getControlPoint(0); Point2D firstPoint = componentSlot.get(0).getControlPoint(0);
// don't allow to create component with the same points // don't allow to create component with the same points
@@ -745,7 +745,7 @@ public class Presenter implements IPlugInPort {
editSelection(); editSelection();
} }
if (configManager.readBoolean(IPlugInPort.CONTINUOUS_CREATION_KEY, false)) { if (configManager.readBoolean(IPlugInPort.CONTINUOUS_CREATION_KEY, false)) {
setNewComponentTypeSlot(componentTypeSlot, template, parameters, false); setNewComponentTypeSlot(componentTypeSlot, template, model, false);
} else { } else {
setNewComponentTypeSlot(null, null, null, false); setNewComponentTypeSlot(null, null, null, false);
} }