{
title = title + " (" + modelObjectTypeName + ")";
}
// Send the object to the OE
modeler.fireEvent(new PropertyBrowserSetEvent(modeler, mo, originalObject, false, mo.getDescription(), title, null, false, true));
// Show object description in info panel
modeler.fireEvent(new JaspiraEvent(modeler, "plugin.infopanel.setinfotext", mo));
}
if (figure instanceof Colorizable)
{
// Make the color chooser display the color of the selected object if it has a custom color
Colorizable colorizable = (Colorizable) figure;
Color figureColor = colorizable.getFillColor();
Color defaultColor = colorizable.getDefaultFillColor();
if (figureColor != null && ! figureColor.equals(defaultColor))
{
modeler.fireEvent("colorchooser.setcolor", figureColor);
}
}
}
else
{
// More than one object selected, clear OE
modeler.fireEvent(new PropertyBrowserSetEvent(modeler));
modeler.fireEvent(new JaspiraEvent(modeler, "plugin.infopanel.clearinfotext"));
}
// Update the cut/copy/paste button status
modeler.fireEvent("global.clipboard.updatestatus");