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,
@@ -386,6 +386,10 @@
<changeType>IMPROVEMENT</changeType>
<description>Increased PNG export resolution to 300dpi</description>
</com.diyfever.gui.update.Change>
<com.diyfever.gui.update.Change>
<changeType>IMPROVEMENT</changeType>
<description>Select All should not include locked components</description>
</com.diyfever.gui.update.Change>
</changes>
<url>http://code.google.com/p/diy-layout-creator/downloads/list</url>
</com.diyfever.gui.update.Version>