Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [jwt-dev] How to extend Editpart in JWT

Hi Kim, Marc,

the EPC view still works fine for me. Take a look at the view extension in the plugin.xml which registeres the EpcFactoryRegistry. The factory registry creates a CompositeEditPartFactory using the original JWT factory and a custom EPC factory which allows to use your own EditParts. The order in which the factories in the CompositeEditPartFactory are queried is the same as the order in which they are stored, so you have to make sure to register your custom EditPartFactory first.

Regards,
Chris

Am 02.09.2010 12:06, schrieb Marc Dutoo:
Hi Kim

Does the EditPart of the EPC Plugin load on your Eclipse ?

If not, it would be a bug.

Maybe Chris has some more ideas...

Regards,
Marc


Kim Nguyen a écrit :
Hi Marc,

We are searching for possibility how to extends the EditPart in JWT
now. We found this link, which describes the same problem what we have
too.
https://bugs.eclipse.org/bugs/show_bug.cgi?id=257725

The problem what we have is that we have the own meta model, where
element extend from jwt meta modell. So we want to use our own
editpart to makes more flexibility.
To do that, we have looked at EditpartFactory, which is registered in
RegistryFactory. This step work fine.
In the next step we want to load our new editpart with the
EditpartFactory, but this the new editpart didn't load.
I have looked at EPC example but could find out why it does not work.
Do you have some ideas?

Best regards,

Kim



Back to the top