Replies: 4 comments
-
It looks like you haven't registered the server on the client-side to handle the action with the You'll have to add your custom actions here in order to make sure they are sent and handled by the server. |
Beta Was this translation helpful? Give feedback.
-
(well not 'here', but you can register the diagram server as a handler for actions also in any other place where you have access to the di container or can inject things) |
Beta Was this translation helpful? Give feedback.
-
[Leo Knoll] Thank you that and some other stuff made it finally work, I'll share my solution tomorrow for documentation :-) |
Beta Was this translation helpful? Give feedback.
-
[Leo Knoll] Example how to add customs actions based on my changes:
Define Actions:
Change EcoreGLSPTheiaDiagramServer to contain you actions in initialize
Dispatch action
Server
Change EcoreActionProvider to contain your incoming action in private void addEcoreActions
Add action handler to handle your action and return action
Change EcoreGLSPModule and add your action handler in the constructor
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
So I have questions to the server client communication, the 'Custom Actions in GLSP' already helped a lot but my problem is that I don't have any predefined actions or handlers I can reuse.
My task is basically to retrieve a list of strings (attribute types) from the server to the client.
Client
I injected the action dispatcher into my class:
Then I defined 2 actions as required for the actionDispatcher.requestUntil call
And I'm sending the action to the server and want to process the response in the .then and not in a specific handler
Server
I defined the action in the server
And the action handler
I added my action handler to the defaultActionHandlers of the DefaultGLSPModule class
And because it still did not work I changed the action provider to include my class
As the error messages show I get a timeout and it says the handler is not found
q5.PNG
What is missing so that the server will process my request?
original thread by Leo Knoll
Beta Was this translation helpful? Give feedback.
All reactions