/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package org.geoforge.mdldsp.plugin;
import java.io.File;
import org.geoforge.mdldsp.GfrMdlDspAbs;
import org.geoforge.mdldsp.event.plugin.EvtMdlDspPlgsRemoved;
import org.geoforge.mgrplg.handler.IGfrHandlerPlugin;
/**
*
* @author robert
*/
abstract public class GfrMdlDspPlgAbs extends GfrMdlDspAbs
{
abstract public IGfrHandlerPlugin add(File fleSource) throws Exception;
abstract public boolean remove(IGfrHandlerPlugin plg) throws Exception;
// ---
/*
* what about existing internal frames?
* ==> taking care in calling method
*/
public boolean removeAll() throws Exception
{
super.setChanged();
Object obj = new EvtMdlDspPlgsRemoved();
super.notifyObservers(obj);
return true;
}
// ---
protected GfrMdlDspPlgAbs()
{
super();
}
}