The answer depends on the class. In some cases there is no way.
regards,
Larry
On 3/16/07, Sunburned Surveyor [EMAIL PROTECTED] wrote:
I'm doing some final tweaks on my pluggable rendering system for OpenJUMP.
I need to know how to obtain a reference to the JUMPWorkbench from inside
another
That really sucks. There has got to be a way to fix that.
I'll have to take a look at my code to figure out a way around this. :[
Thanks Larry.
The Sunburned Surveyor
On 3/16/07, Larry Becker [EMAIL PROTECTED] wrote:
The answer depends on the class. In some cases there is no way.
If it is your own class, you have a solution. Create a method (usually the
constructor) that sets a private variable. Invoke the method when you
initialize the class. Just remember that there are multiple Tasks and
Frames.
Larry
On 3/16/07, Sunburned Surveyor [EMAIL PROTECTED] wrote:
That
Larry,
I can do what you suggest, but how do I obtain the reference to the
JUMPWorkbench to set the value of the private variable? For example:
JUMPWorkbench thisWorkbench = ???
The Sunburned Surveyor
On 3/16/07, Larry Becker [EMAIL PROTECTED] wrote:
If it is your own class, you have a
Larry,
That makes sense. I'll have to track down the location where the
RenderingManager is currently initialized. Thank you for your help with
this.
SS
On 3/16/07, Larry Becker [EMAIL PROTECTED] wrote:
You must instantiate the new class object inside a class that has that
visibility. This