Eclipse Markers View ID - eclipse

Does anyone know the ID of Eclipse's Markers view? I'm trying to bind an activity to it to hide from my RCP application.
Thanks.

Do you mean the "Problem view" by "Markers view"?
If so the corresponding ID should be: menu:org.eclipse.ui.views.ProblemView
Moreover there is a cool feature on the Eclipse SDK called "Plugin Spy" that displays informations on the UI you just clicked on (so you can retrieve the corresponding ID). Just hit "Alt+F1" then click on a view. To have same kind of information for the contextual menu actions, hit "Alt+F2" then click on the action you want to spy.

The problem view is different from the markers view.
The marker view id is:
org.eclipse.ui.views.AllMarkersView

Related

Is there a way to click on selected object on jubula?

I'm using Jubula to automate a JavaFX application. The problem is that, when I selected a tabbed component, I want to click right on this component. However, this component isn't mapped cause I selected it with index.
Is there a way to click on it with the right button?
If the mouse in in the component, Jubula does not change the position for the next action(except it is specified in the action).
This means if you select the tab with the select tab action. You could do another action e.g. "select context menu" at the exact same position.

Should I provide new GWT place?

I have a general question for GWT Activity and Places paradigm realization
For example, I have a place "productList" and appropriate view ProductListView. A have a table with some Product entity in each row. I wanna to double click on row and got popup window which allow me to edit Product in doubleclicked row. How to implement it? Should I provide new place "editProduct" for this activity?
A popup dialog is not a place - users would not expect to see it when they press the back button. So there is no need to create a special EditProduct place.
You can think of "places" as something that users may want to see when they click on Back or Forward buttons, or something they want to bookmark.

How can i hide toolbar menu item or whole toolbar depending on perspective in eclipse rcp?

I want to hide the toolbar item or whole toolbar when I m in specific perspective .
Till now I have tried to define a perspective extension and inside it i defined all the menubar and toolbar item needed to be hidden and linked them with the respective id.But contrary to my expectation when i opened the application all the menu item are gone as expected but toolbar item are still visible.Is there anything which I am doing wrong here.
2nd approach :
WorkbenchWindow window = (WorkbenchWindow) PlatformUI.getWorkbench()
.getActiveWorkbenchWindow();
window.setCoolBarVisible(b.getSelection());
// window.toggleToolbarVisibility();
But here as window is an internal class so I donot want to use this approach.
Any light on my first approach is appreciated ..

How do I get html data to show in an panel when I click an item in my listbox? gwt

I am using eclipse with the google web toolkit plugin and have built a widget which has a ListBox and a horizontal SplitLayoutPanel. I want to be able to click on an item in my list box and have it display the HTML in the top pane of my split panel. I think I need to setup click handler but I am not quite sure how to go about this. Please give me a push in the right direction.
Add a ChangeHandler to the listBoxInstance. In the onChange, get the selected value using getSelectedIndex()/getValue(). Process as required.

Programatically change icon for a eclipse RCP command

I have a menu drop down action in the coolbar. It has 3 sub items that form a radio group. I would like to change the icon shown in the coolbar when the user selects one of these options.
I've googled and seen that I should look at:
org.eclipse.ui.commands.ICommandService.refreshElements(String, Map)
and
org.eclipse.ui.commands.IElementUpdater
Its probably the right thing to look at exception its not enough information. One or two small code snippets will be excellent.
Thanks in advance.
Ok basically if you don't want to use a "custom" control the what to do it is to have your handler (handler that is linked to the specific command) implement IElementUpdater. When every the toolbar item gets shown or clicked on (i.e if the user selects on the the radio buttons) the method: updateElement(UIElement element, Map parameters) gets called.
The element has a setIcon() method and this is what i used to change the icon of the menu drop down action.
Every update to the Coolbar points to the specialization of the WorkbenchWindowControlContribution class.
This bug 186800 has some code example in it which can be of interest.