public void update(Observable obs, Object objEvt)
{
if (objEvt instanceof GfrEvtMdlPlgActive)
{
GfrEvtMdlPlgActive evt = (GfrEvtMdlPlgActive) objEvt;
IGfrHandlerPlugin plgSource = evt.getSource();
boolean blnValue = evt.getValue();
if (! this._updateSetActive_(plgSource, blnValue))
{
String strSevere = "! this._updateSetActive_(plgSource, blnValue)";
GfrTblPopHeightRowFixManPlgsAbs._LOGGER_.severe(strSevere);
GfrOptionPaneAbs.s_showDialogError(null, strSevere);
}
return;
}
if (objEvt instanceof EvtMdlDspPlgAdded)
{
Object[] objsRowDataNew = new Object[this._atm_.getColumnCount()];
int intCountId = 0;
IGfrHandlerPlugin plg = ((EvtMdlDspPlgAbs) objEvt).getValue();
objsRowDataNew[intCountId++] = plg;
objsRowDataNew[intCountId++] = plg.getVersionThisPlugin();
objsRowDataNew[intCountId++] = plg.getAuthorPlugin();
objsRowDataNew[intCountId++] = plg.isActivePlugin(); // !!! new Boolean ???
objsRowDataNew[intCountId++] = plg.getDescriptionPlugin();
objsRowDataNew[intCountId++] = (plg instanceof IGfrHandlerLicensingPlugin); // !!! new Boolean ???
objsRowDataNew[intCountId++] = plg.getNameFilePlugin();
this._atm_.addRow(objsRowDataNew);
return;
}
if (objEvt instanceof EvtMdlDspPlgRemoved)
{
IGfrHandlerPlugin plg = ((EvtMdlDspPlgAbs) objEvt).getValue();
this._atm_.removeRow(plg);
return;
}