Thread: RE: [Squirrel-sql-develop] new plugin data update
A Java SQL client for any JDBC compliant database
Brought to you by:
colbell,
gerdwagner
From: Colin B. <Col...@as...> - 2003-06-25 22:13:58
|
Hi Ronald, Just to let you know, Glenn Griffin has already enhanced SQuirreL to = allow data maintenance in the Contents Tab for a table. This is in the CVS = module SQL12 and will be available in the soon to be released 1.2beta. > i started to write a plugin, so you can update your data in a table. = The plugin has now some > bugs. But my main problem is, that right now my plugin works only for = one session. I using a > static method. With this static method I advise the session to the = other class. I looked at the > jedit plugin, but i couldn=B4t figure out how it works.=20 > my code:=20 > plugin.sessionCreated(ISession session) > { > ... > session.getProperties().setSQLResultsOutputClassName > ("net.sourceforge.squirrel_sql.plugins.plugin.DataSetViewerTablePanelPlu= gin" ); > DataSetViewerTablePanelPlugin.setSession(session); > } sessionCreated() is called when a new session is created. Therefore its called when session1 is created and then called for session2. I don't = know what your DataSetViewerTablePanelPlugin.setSession(session) method does = but I suspect you are only keeping track of the most recent session. You'll = need to keep track of each session. Col |