How to Call a RCP perspective from IntroPage(HTML) of RCP application - eclipse

I have built a RCP application with Intropage in HTML. I also have other perspectives in the application. How do call (or load) a perspective from a button click in the HTML intro page ?

You can find views like
PlatformUI.getWorkbench().getViewRegistry().find(id)
or perspectives like
PlatformUI.getWorkbench().getPerspectiveRegistry().getPerspectives()

Related

how to hide toolbar items in e4 application with specific perspective

I am currently working with e4 application where I want to hide some toolbar buttons when the application is in certain perspective. In eclipse 3.x, I used to do it by perspective property tester using extension. But in e4, is there any way to do the same?

enabling ShowView menu for rcp application

I created a sample eclipse rcp application and create some Views.
I added a Window menu and under that added command org.eclipse.ui.window.showViewMenu
for showing the ShowView functionality of eclipse. But when I run my rcp application Showview is disabled.
How can I enable the ShowView menu for my rcp application? Even if it is enabled, will
I get option for Seeing only the views which I created associated with my eclipsed rcp application?

Eclipse comes with windowbuilder, which wizard should I start with?

I just find out that windowbuilder comes with the original Eclipse package. There are project palette, application window, japplet, jdialog, jdialog, jframe, jinternalframe, jpanel, swing automatic databinding. Which one should I start with and how to learn more?
For Eclipse IDE, Window Builder is one more Editor for handling java source files.
So you should be able to open all java classes with it. Right click on any java class and select open with menu option. You should see "WindowBuilder Editor" as an option there.
Note that this editor may not show any content in Design or Bindings tab for any non-GUI classes (e.g. interfaces).

Eclipse RCP - Modal dialog not on top in Linux

We have developed an Eclipse RCP. One of the dialogs (Jface dialog) is not appearing to be modal in Linux. There is another similar Jface dialog in the same RCP that works as modal.
Can anyone help me in this regard. I tried debugging and confirmed that the style of both the dialogs are same and parent shell is set as same for both.
I couldn't figure out why this dialog is not modal, whereas the other one appears fine. In Windows, both of them work fine as modal dialogs.
I am using Ubuntu(32 bit) for testing this.
Thanks in advance

Hide menus contributed by other plugin

My eclipse rcp application depends on a set of eclipse plugins, after I add them as dependency, the "Run" and "Search" menu appear in the main menu bar.
Which plugin contains these two menu contribution ?
How Can I hide the menu, while I still need the plugin which contribute the menu ?
You could try to use activities and contexts, as described in the Eclipse Help
Which plugin contains these two menu contribution ?
You can use Shift-Alt-F2 and then click the menu (inside your IDE, not your RCP app) to find out the menu id and thereby get a good idea of which plugin contributes it.