double click on a component button to select all of that type

This commit is contained in:
bancika
2011-08-26 17:56:33 +00:00
parent 15ac8ff2e9
commit f137a398dc
5 changed files with 53 additions and 20 deletions
@@ -157,7 +157,8 @@ public class ComponentProcessor {
}
/**
* Returns properties mutual for all the selected components.
* Returns properties that have the same value for all the selected
* components.
*
* @param selectedComponents
* @return
@@ -1062,14 +1062,7 @@ public class Presenter implements IPlugInPort {
drawingManager.setTheme(theme);
}
/**
* Updates the selection with the specified {@link ComponentTransferable}.
* Also, updates control point map with all components that are stuck to the
* newly selected components.
*
* @param newSelection
*/
private void updateSelection(List<IDIYComponent<?>> newSelection) {
public void updateSelection(List<IDIYComponent<?>> newSelection) {
this.selectedComponents = newSelection;
Map<IDIYComponent<?>, Set<Integer>> controlPointMap = new HashMap<IDIYComponent<?>, Set<Integer>>();
for (IDIYComponent<?> component : selectedComponents) {