|
Re: Table Editors [message #1755929 is a reply to message #1755921] |
Thu, 09 March 2017 11:11 |
|
Hello,
1) Yes, you can provide your own Eclipse perspective[1] and organize it as you like. You can also reuse and modify the Sirius perspectives org.eclipse.sirius.ui.tools.internal.perspectives.DesignerModelingPerspective or org.eclipse.sirius.editor.tools.internal.perspectives.DesignerDesignPerspective.
2) You can provide a new ISelectionChangeListener (There are a few in Sirius, you can look into as sample). On selection, it will be triggered than you will need to set focus on the table related to the selected element.
3) This enhancement has been identified but not implemented so far[2]. However, I think that you can do it without too much work but providing a new contextual information that opens a dialog where you would enter your filter. Using this filter, you will make a list of elements/lines to hide on the table using the API org.eclipse.sirius.diagram.business.api.helper.graphicalfilters.HideFilterHelper.INSTANCE.hide(element).
4) We have not implemented a DoubleClickTool on table representation, you will need to provide your own IDoubleClickListener to do it.
Regards,
Steve
[1] https://eclipse.org/articles/using-perspectives/PerspectiveArticle.html
[2] https://bugs.eclipse.org/bugs/show_bug.cgi?id=482914
Steve Monnier - Obeo Canada
Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius
|
|
|
|
|
Re: Table Editors [message #1770560 is a reply to message #1770436] |
Mon, 14 August 2017 12:33 |
Pierre Guilet Messages: 250 Registered: June 2017 |
Senior Member |
|
|
Hi Bo Zhang,
A Sirius table is an editor and not a view so you cannot do what you want from the perspective API that only allows to place view regarding editor area position but not to manipulate the editor area content.
To achieve what you want, it may be possible to use an ISelectionChangeListener that will be triggered when your element from which you want to show other table editors is selected.
In this listener you would manually focus the right table if already opened or open it before if needed and if it exists. And you also would layout the editor area to have your corresponding table under your editor source of the selection.
The big question is: is there an API to layout programmatically editors in the editor area? If yes you can try what is suggested. If not I don't see a way to do that.
Regards,
Pierre Guilet - Obeo
Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius
|
|
|
Powered by
FUDForum. Page generated in 0.02867 seconds