Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Sprotty » Question: Binding openFeature to a dialog
Question: Binding openFeature to a dialog [message #1859979] Fri, 07 July 2023 15:28 Go to next message
Francesco Lubrano is currently offline Francesco LubranoFriend
Messages: 1
Registered: July 2023
Junior Member
Hello, I'm using sprotty with react and I'm trying to bind the open feature (or catching the doubleclick action on a node) to a dialog that should appear showing nodeId-related information.

Enabling the openFeature gives "Error: Missing handler for action 'open'". I tried to look at the examples and documentations without finding any example of how to implement a specific eventHandler to catch it and open a dialog.

Could you please help me providing some example where there is a specific use of openFeature or in which you bind doubleclick events to something?

To give more context, I started to work on this cloning the repository https://github.com/tunesmith/sprotty-nextjs/tree/main/src

[Updated on: Fri, 07 July 2023 15:42]

Report message to a moderator

Re: Question: Binding openFeature to a dialog [message #1860552 is a reply to message #1859979] Wed, 16 August 2023 07:27 Go to previous message
Miro Spönemann is currently offline Miro SpönemannFriend
Messages: 78
Registered: March 2015
Location: Kiel, Germany
Member

The intent of the "open" feature is to process the event in the ModelSource, for example a DiagramServer in the backend. This would be done by sending an OpenAction to the server.

If you just want to handle double-click events in the frontend, it's easier to bind a MouseListener with a `doubleClick` method.

[Updated on: Wed, 16 August 2023 07:27]

Report message to a moderator

Previous Topic:Sprotty Server: Tracing Attributes only knowing their name
Next Topic:Using compartments with labels and buttons and in an elk-layouted graph
Goto Forum:
  


Current Time: Tue Nov 12 08:55:30 GMT 2024

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

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

Back to the top