|
|
Re: [EMFFORMS] TreeViewerSWTFactory and RAP [message #1748586 is a reply to message #1748231] |
Thu, 24 November 2016 19:18 |
Jay Norwood Messages: 155 Registered: July 2009 |
Senior Member |
|
|
Ok, I used the eclipse rap/rcp neon platform.
I created the makeithappen RAP example, and set the workspace to use its target. No problem with the default.
Then I modified its View.java to use the UserGroup class for display.
No problem with this, other than the scrolling range not working well.
final UserGroup ug = TaskFactory.eINSTANCE.createUserGroup();
ug.setName("group1");
for (int i = 0; i < 10; i++) {
final User usi = TaskFactory.eINSTANCE.createUser();
usi.setLastName("UsLast" + i);
usi.setEmail("UsEmail" + i);
ug.getUsers().add(usi);
}
render = ECPSWTViewRenderer.INSTANCE.render(content, ug);
content.layout();
-----------------
Now I simply remove the 'render =' line, replace it with
TreeViewerSWTFactory.createTreeViewer(content, ug);
add the import:
import org.eclipse.emfforms.spi.swt.treemasterdetail.TreeViewerSWTFactory;
and the dependency.
check the bundles ... it requires first the treemasterdetail.
add that, check bundles again, then it requires:
treemasterdetail.model and org.eclipse.emf.edit.ui
add those, check bundles again, then it requires:
emf.common.ui, eclipse.ui.views, eclipse.ui.workbench
At this point, I'm assuming this wasn't tested for RAP, and bail.
I could use something like this, though , since the RAP view render doesn't support selection listeners on the tree.
[Updated on: Thu, 24 November 2016 19:19] Report message to a moderator
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03561 seconds