Login | Register
My pages Projects Community openCollabNet

Discussions > users > [gef-users] creating more than one editor

gef
Discussion topic

Back to topic list

[gef-users] creating more than one editor

Reply

Author Ashish Shrestha <ashish dot shrestha at sysdm dot com>
Full name Ashish Shrestha <ashish dot shrestha at sysdm dot com>
Date 2004-04-30 03:26:34 PDT
Message Hello,

We have been using gef (0.9.6) in our product as a "flowchart" editor.
Every time we need to edit a flowchart, we create a new JGraph and
launch it in a custom frame. This in turn creates a new Editor and
SelectionManager pair for each instance.

The problem is that when I am editing a second or third flowchart. Even
if the first editor and selection manager pair are not used any more
they are still around. This can often result in the Fig pointing to the
wrong editor and selection manager. So when I attempt to delete or move,
it results in NullPointerException.

Also since Globals have static instances of everything, it restricts me
from launching two instances of JGraph at the same time.

What is the recommended way to get around this. I want to launch first
editor to edit the top flowchart with second editor to may be edit a
libary function.

Ashish

--------------------​--------------------​--------------------​---------
To unsubscribe, e-mail: users-unsubscribe@ge​f.tigris.org
For additional commands, e-mail: users-help at gef dot tigris dot org

« Previous message in topic | 1 of 1 | Next message in topic »

Messages

Show all messages in topic

[gef-users] creating more than one editor Ashish Shrestha <ashish dot shrestha at sysdm dot com> Ashish Shrestha <ashish dot shrestha at sysdm dot com> 2004-04-30 03:26:34 PDT
Messages per page: