You must instantiate the new class object inside a class that has that
visibility.  This can always be arranged somehow.

Larry

On 3/16/07, Sunburned Surveyor <[EMAIL PROTECTED]> wrote:

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 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 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.
> > >
> > > 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 class in the core. (I can't use the plug-in context 
because
> > > > I'm not making my changes in a plug-in.)
> > > >
> > > > Thanks in advance for the help.
> > > >
> > > > The Sunburned Surveyor
> > > >
> > > >
> > > > 
-------------------------------------------------------------------------
> > > > Take Surveys. Earn Cash. Influence the Future of IT
> > > > Join SourceForge.net's Techsay panel and you'll get the chance to
> > > > share your
> > > > opinions on IT & business topics through brief surveys-and earn
> > > > cash
> > > >
> > > > 
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> > > > _______________________________________________
> > > > Jump-pilot-devel mailing list
> > > > Jump-pilot-devel@lists.sourceforge.net
> > > > https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
> > > >
> > > >
> > >
> > >
> > > --
> > > http://amusingprogrammer.blogspot.com/
> > >
> > > -------------------------------------------------------------------------
> > > Take Surveys. Earn Cash. Influence the Future of IT
> > > Join SourceForge.net's Techsay panel and you'll get the chance to
> > > share your
> > > opinions on IT & business topics through brief surveys-and earn cash
> > >
> > > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> > > _______________________________________________
> > > Jump-pilot-devel mailing list
> > > Jump-pilot-devel@lists.sourceforge.net
> > > https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
> > >
> > >
> >
> >
> > -------------------------------------------------------------------------
> > Take Surveys. Earn Cash. Influence the Future of IT
> > Join SourceForge.net's Techsay panel and you'll get the chance to
> > share your
> > opinions on IT & business topics through brief surveys-and earn cash
> >
> > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> > _______________________________________________
> > Jump-pilot-devel mailing list
> > Jump-pilot-devel@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
> >
> >
>
>
> --
> http://amusingprogrammer.blogspot.com/
>
>
> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share
> your
> opinions on IT & business topics through brief surveys-and earn cash
>
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> _______________________________________________
> Jump-pilot-devel mailing list
> Jump-pilot-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
>
>

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share
your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel




--
http://amusingprogrammer.blogspot.com/
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel

Reply via email to