Select All should not include locked components

This commit is contained in:
bancika
2011-09-03 19:38:15 +00:00
parent 84d0da6308
commit 144bfb01ad
2 changed files with 7 additions and 1 deletions
@@ -585,7 +585,9 @@ public class Presenter implements IPlugInPort {
@Override
public void selectAll() {
LOG.info("selectAll()");
updateSelection(new ArrayList<IDIYComponent<?>>(currentProject.getComponents()));
List<IDIYComponent<?>> newSelection = new ArrayList<IDIYComponent<?>>(currentProject.getComponents());
newSelection.removeAll(getLockedComponents());
updateSelection(newSelection);
// messageDispatcher.dispatchMessage(EventType.SELECTION_CHANGED,
// selectedComponents);
// messageDispatcher.dispatchMessage(EventType.SELECTION_SIZE_CHANGED,