Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » Opening properties view on clicking on any figure in canvas(Opening properties view on clicking on any figure in canvas)
Opening properties view on clicking on any figure in canvas [message #1816503] Wed, 30 October 2019 09:47
Vaibhav Vaibhav is currently offline Vaibhav VaibhavFriend
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

Previous Topic:Connector Labels (Polyline Connection)
Next Topic:GMF compatible to Eclipse e4
Goto Forum:
  


Current Time: Thu Mar 28 12:19:54 GMT 2024

Powered by FUDForum. Page generated in 0.03328 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top