{"action":"closed","issue":{"url":"https://api.github.com/repos/JanKoehnlein/FXDiagram/issues/48","repository_url":"https://api.github.com/repos/JanKoehnlein/FXDiagram","labels_url":"https://api.github.com/repos/JanKoehnlein/FXDiagram/issues/48/labels{/name}","comments_url":"https://api.github.com/repos/JanKoehnlein/FXDiagram/issues/48/comments","events_url":"https://api.github.com/repos/JanKoehnlein/FXDiagram/issues/48/events","html_url":"https://github.com/JanKoehnlein/FXDiagram/issues/48","id":142394547,"number":48,"title":"Adding new node in maximized diagram view causes diagram view to get incorrectly restored","user":{"login":"ralfellner","id":16237985,"avatar_url":"https://avatars.githubusercontent.com/u/16237985?v=3","gravatar_id":"","url":"https://api.github.com/users/ralfellner","html_url":"https://github.com/ralfellner","followers_url":"https://api.github.com/users/ralfellner/followers","following_url":"https://api.github.com/users/ralfellner/following{/other_user}","gists_url":"https://api.github.com/users/ralfellner/gists{/gist_id}","starred_url":"https://api.github.com/users/ralfellner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ralfellner/subscriptions","organizations_url":"https://api.github.com/users/ralfellner/orgs","repos_url":"https://api.github.com/users/ralfellner/repos","events_url":"https://api.github.com/users/ralfellner/events{/privacy}","received_events_url":"https://api.github.com/users/ralfellner/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-03-21T16:03:23Z","updated_at":"2016-11-23T20:50:05Z","closed_at":"2016-11-23T20:50:05Z","body":"I'm using version 0.25.0 of FXDiagram with a Xtext DSL. Models are spread across several files. Creating diagrams works fine in Eclipse with the Diagram View being inside or outside of the Eclipse main window. \n### Actual behavior\n\nIf the Diagram View is inside the Eclipse main window and is set to maximized (because the diagrams get large) the follwing happens when adding a new node (from another model file) using the side buttons of an existing node: \n- A new Xtext editor for the file containing the new node is opened. \n- The Diagram View is resized to fill the lower half of the screen - the state is still displayed as maximized\n- Somtimes the Diagram View zooms to another zoom level.\n- In order to maximize the Diagram View again you have to klick Restore and then Maximize.\n### Expected behavior\n- The Diagram View is maximized\n- A new Xtext editor for the file containing the new node is opened (btw. does it really need to be openend?) \n- The new Xtext editor is opened minimized but focused, i.e., it is displayed as a small overlay near the view icon and automatically hides when it is unfocused.\n### Steps to reproduce\n\nAs far as I know there are no examples in Xtext that use more than one model file. However, the problem can also be reproduced with FXDiagram on a Java class, although the Java editor is not automatically opened when adding a new class:\n1. Open a Java class and add it to the Diagram View\n2. Maximize the Diagram View inside the Eclipse main window\n3. Add any other class to the diagram that is not already openend in an editor using the side buttons\n4. Double click the new class - a Java editor is opened in the upper half of the screen\n\nThe expected behavior is demonstrated e.g., by the statemachine (fowlerdsl) editor. Adding and double clicking a new node opens the statemachine editor as a small overlay. \n"}}
{"actor":{"display_login":"JanKoehnlein"}}