Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse 4 » e4xmi view class uri
e4xmi view class uri [message #1749427] Tue, 06 December 2016 15:26 Go to next message
Dimg Cim is currently offline Dimg CimFriend
Messages: 31
Registered: December 2015
Member
Hello everybody,

I want to understand the viewpart mapping in the application model.
When I have a Viewpart, I set the ViewPart Class in the e4xmi, e.g.
Class URI:bundleclass://BUNDLE_ID/BUNDLE_ID.TestPart.

How can this be interpreted by the workbench renderer?
Which place should I look for this.

The interesting thing, how can bundleClass be read as View and added to the workbench?

The other question is how to convert this class uri to Java Object (Pojo?)

Hope my questions is clear enough.

Thanks.

Dimg
Re: e4xmi view class uri [message #1752544 is a reply to message #1749427] Wed, 25 January 2017 00:36 Go to previous message
Patrik Suzzi is currently offline Patrik SuzziFriend
Messages: 86
Registered: June 2010
Location: Imola, Italy
Member

In the Class URI, you have: bundleclass://<BUNDLE-NAME>/<FULL-PATH-TO-PART-CLASS>

where:
- bundleclass:// is the prefix indicating you are loading a class from your bundle
- <BUNDLE-NAME>: name of your plug-in or your application
- <FULL-PATH-TO-PART-CLASS>: full class name for the Part you want to use

as an example:

bundleclass://MyPluginOrApplication/com.example.myplugin.views.ExampleView

Loads the class ExampleView (in package com.example.myplugin.views), from inside the plugin named MyPluginOrApplication.

Kind Regards,

Ing. Patrik Suzzi
Consultant Software Engineer,
Eclipse Platform Committer
https://about.me/psuzzi

[Updated on: Wed, 25 January 2017 00:37]

Report message to a moderator

Previous Topic:How to detect when the result of the canExecute-method method has changed on an already open menu
Next Topic:Label decoration in e4
Goto Forum:
  


Current Time: Wed Sep 26 14:17:31 GMT 2018

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

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

Back to the top