/** * Request to supplied SelectionListener of this SelectionManager to be back-synchronized with * current selection */ public void fireUpdateSelection(SelectionListener selectionListenerToSynchronize) { selectionListenerToSynchronize.fireResetSelection(); for (Enumeration<FlexoModelObject> e = getSelection().elements(); e.hasMoreElements(); ) { FlexoModelObject o = e.nextElement(); if (!o.isDeleted()) { selectionListenerToSynchronize.fireObjectSelected(o); } } }
protected boolean isSelectable(FlexoModelObject object) { if (object == null) { return false; } if (object.isDeleted()) { return false; } if (object.getContext() != null) { if (object.getContext() instanceof PalettePanel) { return (((PalettePanel) object.getContext()).isEdited()); } } return true; }