|
Re: How get status of the "Show Properties Properties" button ? [message #1587253 is a reply to message #1586017] |
Tue, 27 January 2015 08:23 |
|
Hello,
Thank you for contacting us!
What is the difference between pressed and unpressed button in your case?
Could you please attach Widget Details of that button? Press button "Widget details..." in Assertion dialog and attach content of appeared window.
As I anderstand property "selected" is exactly what you need.
get-property selected | equals true | verify-true
On attached screenshot this property is "true".
Please let me know if it is suitable for you or you have any questions.
Yours sincerely,
Olga.
|
|
|
Re: How get status of the "Show Properties Properties" button ? [message #1587397 is a reply to message #1587253] |
Tue, 27 January 2015 10:13 |
|
Hello,
Thans for your reply.
I try to determinate with RCP TT the status of the "Show Advanced Properties" button.
Is it pressed or unpressed (pinned or unpinned) ? See the attached picture for more explanation.
As requested, please find below the widget details :
Widget information
Class: org.eclipse.swt.widgets.ToolItem
extends org.eclipse.swt.widgets.Item, org.eclipse.swt.widgets.Widget
WidgetID: Shell/Composite|0/Composite|0/Composite|0/Composite|0/Composite|0/CTabFolder|3/Composite|3/|0/ToolBar|0/ToolItem
Style flags: 32
Enabled: true
Text value: Show Advanced Properties
Registered event listeners:
listener class: org.eclipse.e4.ui.css.swt.engine.CSSSWTEngineImpl$1
implements org.eclipse.swt.events.DisposeListener
events:
SWT.Dispose
listener class: org.eclipse.jface.action.ActionContributionItem$6
implements org.eclipse.swt.widgets.Listener
events:
SWT.Selection
SWT.Dispose
Please find in attachment, the details of the available properties in the "Assertion and Verification" window of the Show Advanced Properties button.
Thanks for your help.
Regards,
Camille
Cordialement / Best regards,
Camille
|
|
|
|
|
Re: How get status of the "Show Properties Properties" button ? [message #1587768 is a reply to message #1587664] |
Tue, 27 January 2015 14:55 |
|
Hello,
Thank you for ECL snippet!
Add key -raw after get-property selected.
if [get-view Properties | get-button "Show Advanced Properties" | get-property selected -raw | equals false ] {
get-view Properties | get-button "Show Advanced Properties" | click
}
When get-property command is executed, internally it does not return a property value, it returns a special verification handle object.
To get value it is needed to add key -raw.
You can find more information here.
Please let me know if you have any questions!
Yours sincerely,
Olga.
|
|
|
|
Powered by
FUDForum. Page generated in 0.02431 seconds