Opening properties view on clicking on any figure in canvas [message #1816503] |
Wed, 30 October 2019 09:47 |
Vaibhav Vaibhav Messages: 3 Registered: August 2019 |
Junior Member |
|
|
Hello
How to open properties view on clicking any figure in canvas? I want to open properties view on clicking the figure to show its properties. I'm able to open properties view on clicking the figure but I've to click 2 times. On clicking first time properties view opens and on clicking second time the properties come.
Both these things should happen in a single click so that user is not annoyed by clicking again and again.
I've written the following code in my editparts to open properties view programmatically:-
IViewPart propertiesView = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage()
.findView("org.eclipse.ui.views.PropertySheet");
if (propertiesView == null) {
try {
PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage()
.showView("org.eclipse.ui.views.PropertySheet");
} catch (PartInitException e1) {
e1.printStackTrace();
}
}
What code I've to write after this to trigger properties view to show the properties?
[Updated on: Wed, 30 October 2019 09:53] Report message to a moderator
|
|
|
Powered by
FUDForum. Page generated in 0.02663 seconds