Tree View in e4 Rcp application - eclipse-rcp

I have worked in eclipse 3.x rcp development. But its appearance has been not so good. So when e4 came, it looked very amazing and good looking. I started working on e4 application. Iam just new to e4 rcp application development. I need to know how can we provide the treeview or tableview in e4 rcp. How can we provide data to the view by content provider and label by label provider. Can anyone help please.

Eclipse4 application can still use JFace table and tree viewers. See how the e4.demo.contacts view uses TableViewer in its ListView implementation.

Related

WindowBuilder SWT Table

Can you suggest me how to build a Table with Eclipse WindowBuilder Plugin and SWT?
I read the official docs but I found orrible example with fixed column size. I would like to build a Table who fit the parent container (I used composite) when it is resized.
P.S.: Maybe I should use Swing instead?? All valid example I have seen are with JTable..
Can you help me?
Thank you
Thank you for your reply!
I have to do a little GUI application for a friend, I'm not so practice nor with Swing neither with SWT.
Anyway I manage to do a Simple ApplicationWindow with menubar, some submenu item and a composite container under the menu where panel should appear when user clicks on menu item.
Than I manage to build a TableViewer inside that composite component.. but now I would like add another table in the same place (the table represents different thing and should appear or disappear when user click some menu button).
In Swing I see many example of CardLayout but nothing with SWT.
Can you suggest me a simple example of layered layout with SWT?? I have the impression that Swing is much more simple..
Thank you all
On my modest opinion, Swing is well documented than SWT and maybe more simple. I switched to it.
Thank you.

Eclipse Sirius custom layout

I am fairly new to Sirius developing environment, I am trying to develop a custom module layout using Sirius, the documentation available is a bit advanced.
Is there any good source or tutorial available that explains how to create custom layout that explains the basics.
If you are looking for a custom layout when pressing the "Arrange-All" button in the Sirius toolbar of your diagram take a look at this article. Didn't read it completely but looks quite good if that's what you need.

Showing Part toolbar in full span in Eclipse e4

I have implemented Eclipse RCP product in 4.5 (Mars) version. There is a part with toolbar. I want to show the part toolbar always in full span (covering the entire width of the part) and not on the part stack (on right side of the part tab).
I tried to add Part-Toolbar-FullSpan tag to the Part and also to the part toolbar but it is not helping.
I also tried to create a custom toolbar but that approach did not work out.
Do you know how I can show the part toolbar in full span?
Thank you.
Part-Toolbar-FullSpan appears to be for the e(fx)clipse JavaFX stack renderer only so it won't work with SWT.
The SWT stack renderer org.eclipse.e4.ui.workbench.renderers.swt.StackRenderer uses the setTopRight method of CTabFolder to manage the toolbar. This will only push the toolbar on to a separate row when there not enough space for it on the tab row.
So it looks like the only way to do this would be to define a custom renderer factory and override the stack renderer. Unfortunately for what you want this would be a substantial change to the renderer.

Editors framework and MVP

Is there a conflict in development or architecture that prevents me from using Editors inside the View in a GWT MVP application?
I am developing a business application and I am thinking of making Editor widgets for my beans and use RequestFactory. I will place editors inside the views when I need to display or edit single object but I will use CellWidgets when I need to display multiple objects.
Will this make a mess of my application or am i heading to the right direction?
What do you recommend according to your experience?
There's no conflict between Editors and MVP. Editors are for easy binding between view and backing beans. Using them together you can fill model via Editor framework.

How to remove unused view from Eclipse RCP application

I have a RCP application with a set of my views and i needn't such views as Debug/* views or Team/* views. How can i remove them from Window->SHow view->Other dialog?
I found here a solution with visibleWhen attribute, but i need to disable not mine items.
Could anyone help me?
Thank you
The best way to ensure that unwanted views do not appear, is to remove the contributing plugins from your RCP app. Presumably, if you don't want the debug view to appear, then you don't need any debug.ui functionality. So, it seems to me that you should be removing that plugin from your app.
Andrew is correct, if you don't need the extra view, you can just remove the plugin that contributes the view.
On the other hand, if you need the view but don't want it to be readily available from the UI, you can also use the concept of activities to selectively hide any ui contributions.
please see http://www.vogella.de/blog/2009/07/13/eclipse-activities/ for details on how to use them