Fragments / Imports / Part Descriptors [message #893906] |
Thu, 05 July 2012 22:24 |
|
So I am still getting a feel for the e4 application model.
Where can I find information on using fragments and part descriptors?
After browsing the 4.2 Live Model, it seems as though everything is first defined as a Part Descriptor and then placed using a placeholder. Is this the recommended approach? (I am assuming a Part Descriptor is more of a template and a Part is a concrete item, correct?)
I am able to contribute model elements to the main application using fragments, however I cannot seem to use any of the model elements contributed by one fragment in another fragment. (Even if I list the bundle as a dependency) Is there a recommended approach to accomplishing this?
I have plenty of other questions regarding the e4 model (like how to use Container Data), but I would really rather not be "that guy" who just posts any question without really looking for an answer. But, I haven't come across a detailed source of information. Even Lars' documentation (as good as it may be) is still fairly shallow when it comes to robust implementations. Any clues on where to look?
Thanks,
JD
|
|
|
|
Re: Fragments / Imports / Part Descriptors [message #894080 is a reply to message #893906] |
Fri, 06 July 2012 14:47 |
|
Tom-
Thanks for the reply. However, I think I am still a little lost when it comes to the fragments. I created a sample e4 application and posted it to gitHub [1], if you send me an email with your user name I'll add you as a contributor (jdsalingerjr@gmail.com) and anyone else if they would like.
My application will have multiple perspectives (workflows?) and shared views between them. So the part descriptor approach would be necessary.
In the sample, a new perspective is contributed in the plugin com.sample.fragment.perspective, and I would like to assign the placeholders to the part descriptors created in com.sample.fragment.view. However, when I go to 'Find' the reference, nothing comes up, nor will the reference be displayed when I try to import a part descriptor reference.
If you could take a look (or anyone else) and let me know where I have gone awry that would be most appreciated. Then I would be happy to start putting together documentation about this for the wiki.
One final note I just thought of... Is it bad form (possible?) to have the model fragment in com.sample.fragment.perspective depend on the fragment in com.sample.fragment.view when the code/plugin dependencies are exactly oposite (i.e. com.sample.fragment.view.SomeClass has a dependency on com.sample.fragment.perspective.UtilClass)?
Thanks,
JD
[1] github.com/jd-carroll/e4-fragment-example
|
|
|
Re: Fragments / Imports / Part Descriptors [message #894106 is a reply to message #893906] |
Fri, 06 July 2012 16:29 |
|
GOT IT!!!
Because I am a genius, I decided that I did not need to include the extension for org.eclipse.e4.workbench.model. By including that (for both plugins), everything comes up well. Reading the documentation again, it makes more sense.
If I create documentation for the wiki, where should I submit it?
Also, if someone could comment on the dependency thing that would be great.
Thanks,
JD
ps- the github project has been updated
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03519 seconds