createConnection missing? [message #84878] |
Mon, 23 June 2003 17:05  |
Eclipse User |
|
|
|
Originally posted by: rahul.dhar.intel.com
There used to be a method createConnection in
com.ibm.etools.gef.editparts.AbstractEditPart (or so I'm told). I was
also told that it had moved to the class
org.eclipse.gef.editparts.AbstractEditPart when GEF became part of
Eclipse. However, I can't find it in the API. Has it been removed or
moved somewhere? Is there a method that does the same thing?
Any guidance is much appreciated.
Thanks,
-Rahul
Intel Corp. does not endorse any content in this post. All opinions
contained are solely the opinions of the poster.
|
|
|
|
Re: createConnection missing? [message #84981 is a reply to message #84894] |
Tue, 24 June 2003 09:46   |
Eclipse User |
|
|
|
Originally posted by: rahul.dhar.intel.com
Randy, thanks for your help.
However, I'm confused about how factories, editparts, models, etc work
together. Is there documentation on how each component plugs into the
overall application and how they're supposed to interact with each other?
Thanks.
-Rahul
Intel Corp. does not endorse any content in this post. All opinions
contained are solely the opinions of the poster.
Randy Hudson wrote:
> It's in AbstractGraphicalEditPart, since only graphical editparts can have
> connections.
> Also, all createMethods now call out to an EditPartFactory by default. So
> you can new everything in the same place now.
> "Rahul Dhar" <rahul.dhar@intel.com> wrote in message
> news:bd7q37$958$1@rogue.oti.com...
> > There used to be a method createConnection in
> > com.ibm.etools.gef.editparts.AbstractEditPart (or so I'm told). I was
> > also told that it had moved to the class
> > org.eclipse.gef.editparts.AbstractEditPart when GEF became part of
> > Eclipse. However, I can't find it in the API. Has it been removed or
> > moved somewhere? Is there a method that does the same thing?
> >
> > Any guidance is much appreciated.
> >
> > Thanks,
> > -Rahul
> >
> > Intel Corp. does not endorse any content in this post. All opinions
> > contained are solely the opinions of the poster.
> >
|
|
|
Re: createConnection missing? [message #84993 is a reply to message #84981] |
Tue, 24 June 2003 10:01  |
Eclipse User |
|
|
|
Originally posted by: none.us.ibm.com
The EditPartFactory does not work with your model. It's job is to create
the EditPart associated with an already-existing model object.
In the version you were using, you had to override createEditPart(Object
model) in multiple places. The only difference is that you can now create a
single EditPartFactory, set it on the EditPartViewer, and remove all
overrides of that method. Everything else is the same.
"Rahul Dhar" <rahul.dhar@intel.com> wrote in message
news:bd9kmo$pjk$1@rogue.oti.com...
> Randy, thanks for your help.
> However, I'm confused about how factories, editparts, models, etc work
> together. Is there documentation on how each component plugs into the
> overall application and how they're supposed to interact with each other?
>
> Thanks.
> -Rahul
>
> Intel Corp. does not endorse any content in this post. All opinions
> contained are solely the opinions of the poster.
>
> Randy Hudson wrote:
>
> > It's in AbstractGraphicalEditPart, since only graphical editparts can
have
> > connections.
> > Also, all createMethods now call out to an EditPartFactory by default.
So
> > you can new everything in the same place now.
>
> > "Rahul Dhar" <rahul.dhar@intel.com> wrote in message
> > news:bd7q37$958$1@rogue.oti.com...
> > > There used to be a method createConnection in
> > > com.ibm.etools.gef.editparts.AbstractEditPart (or so I'm told). I was
> > > also told that it had moved to the class
> > > org.eclipse.gef.editparts.AbstractEditPart when GEF became part of
> > > Eclipse. However, I can't find it in the API. Has it been removed or
> > > moved somewhere? Is there a method that does the same thing?
> > >
> > > Any guidance is much appreciated.
> > >
> > > Thanks,
> > > -Rahul
> > >
> > > Intel Corp. does not endorse any content in this post. All opinions
> > > contained are solely the opinions of the poster.
> > >
>
>
>
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.02612 seconds