Skip to main content



      Home
Home » Eclipse Projects » Sirius » Table Editors(Several Questions about the table editors)
Table Editors [message #1755921] Thu, 09 March 2017 05:08 Go to next message
Eclipse UserFriend
Hello, I am building an application with Sirius and I have several questions!

As I image the application I would like to have the description diagrams on the top of my screen and the table diagrams below them, as you can see in the first image.
1) Is it possible to generate any new table diagram on that position?
2) The yellow rectangles in the image below are called modules. When I select a module in my diagram then I can see in the property view the selected module; I was wondering if it possible to do the same with the table diagram. For instance, when I select a module in my diagram I would also like to see the table diagram of the selected module.
http://image.prntscr.com/image/960a3a2aa7a345c5ab21ada22e65b386.png
3) How can I add search button or a filter for the table editor? For instance search all the labels starting with the letter A. Is there any example?
4) Is there any way to create a new line on the table just by double clicking on the first empty line in the table editor?
http://image.prntscr.com/image/3437d17c2d5144b5b2a1c1b8441d15fb.png

Thanks a lot!!
Kostas
Re: Table Editors [message #1755929 is a reply to message #1755921] Thu, 09 March 2017 06:11 Go to previous messageGo to next message
Eclipse UserFriend
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
Re: Table Editors [message #1756169 is a reply to message #1755929] Mon, 13 March 2017 07:06 Go to previous messageGo to next message
Eclipse UserFriend
Hi,

To complete Steve answer for point 3, you have also the "Quick Outline" (Ctrl+o) in table to search elements [1]. 2 enhancements concerning this feature are also opened ([2] and [3]).

Regards,

Laurent

[1] https://www.eclipse.org/sirius/doc/user/tables/Tables.html#quick_outline
[2] https://bugs.eclipse.org/bugs/show_bug.cgi?id=453196
[3] https://bugs.eclipse.org/bugs/show_bug.cgi?id=487025
Re: Table Editors [message #1770436 is a reply to message #1756169] Fri, 11 August 2017 07:47 Go to previous messageGo to next message
Eclipse UserFriend
Hello Steve MonnierFriend and Laurent RedorFriend,
I have some requirement like the author. I need when user open the diagram, the table will display under the diagram automatically.

For your answer
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.

I know how to provide perspective, but when I define the perspective, I need the ID of the view. The table defined in Sirius, so I don't know the ID, and maybe user hasn't creates the table right now. How could I define the perspective?
Re: Table Editors [message #1770560 is a reply to message #1770436] Mon, 14 August 2017 08:33 Go to previous message
Eclipse UserFriend
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,

Previous Topic:URGENT: Display tool in tool palette
Next Topic:URGENT: Edge delete on Element deletion
Goto Forum:
  


Current Time: Wed Jul 23 21:10:33 EDT 2025

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

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

Back to the top