select components when dropped

This commit is contained in:
bancika
2011-01-21 20:44:15 +00:00
parent 3339a1b6eb
commit 7c5a125cd2
@@ -1055,7 +1055,9 @@ public class Presenter implements IPlugInPort {
: componentType.getName())); : componentType.getName()));
try { try {
instantiationManager.setComponentTypeSlot(componentType, currentProject); instantiationManager.setComponentTypeSlot(componentType, currentProject);
if (componentType != null) {
updateSelection(ComponentSelection.EMPTY_SELECTION); updateSelection(ComponentSelection.EMPTY_SELECTION);
}
messageDispatcher.dispatchMessage(EventType.REPAINT); messageDispatcher.dispatchMessage(EventType.REPAINT);
// messageDispatcher.dispatchMessage(EventType.SELECTION_CHANGED, // messageDispatcher.dispatchMessage(EventType.SELECTION_CHANGED,
// selectedComponents); // selectedComponents);