// to let the Adapter DC now about our possible definition class
AdapterSettings.addFactory(new XMLDCDataControlObjectFactory());
DTContext.setCurrentContextImpl(new DTContext() {
public Context getConnectionContext() throws Exception {
AppConnContext appConnCtx = AppConnContext.getInstance();
Workspace workspace = Ide.getActiveWorkspace();
appConnCtx.setCurrentWorkspace(workspace);
return appConnCtx.getConnectionContext();
}
});
}