Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Graphiti » design question - bundle feature classes as local classes?
design question - bundle feature classes as local classes? [message #640401] Sun, 21 November 2010 17:43 Go to next message
Volker Wegert is currently offline Volker WegertFriend
Messages: 182
Registered: July 2009
Senior Member
Hello,

I'm unsure about how to keep my editor structured "the right way". I've got
some stuff that occurs throughout all feature classes that handle a certain
model element. Since the feature classes all have different superclasses, I
can't use inheritance to keep them together. So I was thinking about putting
them as local classes inside a "wrapper class" that also provides the common
constants, methods, whatever. I've tried it and it's technically possible, but
is it a good idea? What do you think?

Thanks
Volker

--
* Volker Wegert * http://www.volker-wegert.de/contact *
"Documentation is like sex: when it is good, it is very, very good; and when
it is bad, it is better than nothing." (Dick Brandon)
Re: design question - bundle feature classes as local classes? [message #640787 is a reply to message #640401] Tue, 23 November 2010 07:46 Go to previous messageGo to next message
Michael Wenz is currently offline Michael WenzFriend
Messages: 1931
Registered: July 2009
Location: Walldorf, Germany
Senior Member
Sure, this is a valid approach. From Graphiti side there are no issues with
that involved that I can currentyl think of.

An alternative approach would be to use delegation for implementing common
functionality.

Michael


"Volker Wegert" <mail@volker-wegert.de> wrote in message
news:84y68mbmij.fsf@zak.home.volker-wegert.de...
> Hello,
>
> I'm unsure about how to keep my editor structured "the right way". I've
> got
> some stuff that occurs throughout all feature classes that handle a
> certain
> model element. Since the feature classes all have different superclasses,
> I
> can't use inheritance to keep them together. So I was thinking about
> putting
> them as local classes inside a "wrapper class" that also provides the
> common
> constants, methods, whatever. I've tried it and it's technically possible,
> but
> is it a good idea? What do you think?
>
> Thanks
> Volker
>
> --
> * Volker Wegert * http://www.volker-wegert.de/contact *
> "Documentation is like sex: when it is good, it is very, very good; and
> when
> it is bad, it is better than nothing." (Dick Brandon)
Re: design question - bundle feature classes as local classes? [message #641065 is a reply to message #640787] Wed, 24 November 2010 08:03 Go to previous messageGo to next message
Matthias Gorning is currently offline Matthias GorningFriend
Messages: 81
Registered: April 2010
Location: Germany
Member
Hello Volker,
what could be also interesting for you is the pattern concept in Graphiti.

Unfortunately there is currently no documentation for this. The pattern stuff can be found in the plugin "org.eclipse.graphiti.pattern".

BR,
Matthias
Re: design question - bundle feature classes as local classes? [message #641302 is a reply to message #640787] Wed, 24 November 2010 18:43 Go to previous messageGo to next message
Henrik Rentz-Reichert is currently offline Henrik Rentz-ReichertFriend
Messages: 261
Registered: July 2009
Senior Member
Hi Volker and Michael,

as I indicated to Michael at the recent Eclipse Summit Europe in
Ludwigsburg I also follow this approach an am quite happy with it.

I also used the EMF generated model switch to dispatch to feature
providers by the EClass of the involved business object.

Soon all this will be public as we make our initial contribution for the
eTrice project (http://www.eclipse.org/etrice is still under
construction but have a look on http://www.eclipse.org/proposals/etrice
and http://wiki.eclipse.org/ETrice).

Cheers,
Henrik


Am 23.11.2010 08:46, schrieb Michael Wenz:
> Sure, this is a valid approach. From Graphiti side there are no issues
> with that involved that I can currentyl think of.
>
> An alternative approach would be to use delegation for implementing
> common functionality.
>
> Michael
>
>
> "Volker Wegert" <mail@volker-wegert.de> wrote in message
> news:84y68mbmij.fsf@zak.home.volker-wegert.de...
>> Hello,
>>
>> I'm unsure about how to keep my editor structured "the right way".
>> I've got
>> some stuff that occurs throughout all feature classes that handle a
>> certain
>> model element. Since the feature classes all have different
>> superclasses, I
>> can't use inheritance to keep them together. So I was thinking about
>> putting
>> them as local classes inside a "wrapper class" that also provides the
>> common
>> constants, methods, whatever. I've tried it and it's technically
>> possible, but
>> is it a good idea? What do you think?
>>
>> Thanks
>> Volker
>>
>> --
>> * Volker Wegert * http://www.volker-wegert.de/contact *
>> "Documentation is like sex: when it is good, it is very, very good;
>> and when
>> it is bad, it is better than nothing." (Dick Brandon)
>
Re: design question - bundle feature classes as local classes? [message #641751 is a reply to message #641065] Sat, 27 November 2010 16:39 Go to previous messageGo to next message
Volker Wegert is currently offline Volker WegertFriend
Messages: 182
Registered: July 2009
Senior Member
Hello,

Matthias Gorning <matthias.gorning@sap.com> writes:
> what could be also interesting for you is the pattern concept in Graphiti.
> Unfortunately there is currently no documentation for this. The pattern
> stuff can be found in the plugin "org.eclipse.graphiti.pattern".

Yes, this looks interesting. Is there an example for this? I've found some
example classes, but nothing that seems to use these classes.

Thanks
Volker

--
* Volker Wegert * http://www.volker-wegert.de/contact *
"Man hat einen Menschen noch lange nicht bekehrt, wenn man ihn zum Schweigen
gebracht hat." (John Morley of Blackburn)
Re: design question - bundle feature classes as local classes? [message #644497 is a reply to message #641065] Sun, 12 December 2010 09:55 Go to previous message
Volker Wegert is currently offline Volker WegertFriend
Messages: 182
Registered: July 2009
Senior Member
Hello Matthias,

Matthias Gorning <matthias.gorning@sap.com> writes:
> what could be also interesting for you is the pattern concept in Graphiti.

I've tried it and it looks very promising. As far as I can see, a few features
are not (yet) supported by the patterns - direct editing, removal and deletion
for example. Do you plan to add support for these features?

Volker


--
* Volker Wegert * http://www.volker-wegert.de/contact *
"Erfahrung ist der Name, den der Mensch seinen Irrtümern gibt." (Oscar Wilde)
Previous Topic:Width of direct editing drop-down listboxes
Next Topic:Hide individual resize handles?
Goto Forum:
  


Current Time: Fri Apr 19 16:31:07 GMT 2024

Powered by FUDForum. Page generated in 0.03455 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top