How do I show ItemStatus in UI Spy? - ui-automation

How do I show the ItemStatus property of an AutomationElement in UI Spy?

With UI Spy open
From the View menu
Click Configure Properties
Expand AutomationElement
Expand Misc
Check ItemStatus

Related

Adding a static "new" option to MUI5 Autocomplete

MUI5 Autocomplete does not seem to have a footer option in which you can place a custom "new item" option. The required flow is:
Autocomplete's options drawer is opened
Scroll to the bottom of the options drawer
New custom model is clicked (last option)
Result: A modal is opened to customize the new custom item
What is the best course of action to support such a behaviour?
Adding it manually can collide with the sort/search capabilities of the AutoComplete component.

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 ..

Steps needed to add context menu to eclipse outline view

I would like to add a context menu to the Eclipse standard Outline View. Just adding a menuContribution with url
popup:org.eclipse.ui.views.ContentOutline
did not work, so I guess I need to create the context menu first. Here, I read that the menu has to be created in the view's createPartControl() method. But when adding a context menu to another view like the Outline View, where do I put this code?
To create a context menu for a view use something like:
MenuManager contextMenu = new MenuManager();
Control control = viewer.getControl();
Menu menu = contextMenu.createContextMenu(control);
control.setMenu(menu);
getSite().registerContextMenu("menu id", contextMenu, viewer);
where viewer is the outline tree viewer.
The final registerContextMenu call means that you can contribute to this menu using the menu id you specify.
This menuContribution locationURI worked for me:
popup:org.eclipse.jdt.ui.outline

How to use DialogBoxes in a TabPanel in GWT

i use the GWT TabPanel and want to use a DialogBox in one of these tabs. I think the DialogBox is added to the RootPanel because i see the box in every Tab.
Is there a option to see the box only in the box there the panel was created? Or must i create my own DialogBox or overwrite some methods (.show?)
Greetz,
Destiny
A DialogBox is is a popup and not attached to any of your panels. So you can't use a Dialogox in a TabPanel as it will not be attached to that panel as you found out yourself (it's attached to the RootPanel). If you want to only show this dialogbox when a specific tab is selected you need to hide the dialog box when another tab is selected. You can do this by adding a TabListener on the TabPanel and implement the onBeforeTabSelected method and check which tab is selected and hide or show the dialogbox.

modal dialog in gwt with clicklistener

I've a huge panel with drop-down lists and checkboxes. To manage them I have to implement the ClickListener interface so that on expanding the drop-down list or clicking on the checkbox some actions are executed.
Then I have to show the dialog box with just one 'OK' button and this dialog should be modal. I create it using via the following constructor
final DialogBox msg = new DialogBox(false, true);
so it should be modal and it is except for drop-down lists and checkboxes because clicking on them calls to the onClick(Widget sender) method which knows nothing about the modality of the dialog box so it could expand the drop-down list or tick the checkbox.
I see that this could be resolved by just one if in that onClick() method where it should check if there is no modal window or there is one. But is there another option to resolve this issue?
Are you looking for setGlassEnabled(boolean)?