Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP] Merge KEITH features #49

Merged
merged 377 commits into from
Sep 18, 2020
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
377 commits
Select commit Hold shift + click to select a range
bff3ed3
Constraints: Model is serialized back to the file
ConnorObrian Jun 12, 2019
4981102
Merge remote-tracking branch 'origin/jet_cos/constraints' into jet_co…
ConnorObrian Jun 12, 2019
9fb5bbb
reversed edges and width of nodes dont make problems anymore
Drakae Jun 12, 2019
0489849
klighd-lsp: updateLayout is now always called during diagram generation.
NiklasRentzCAU Jun 12, 2019
485ef75
Merge branch 'keith' into jet_cos/constraints
ConnorObrian Jun 13, 2019
f024080
Constraints: Layout for constraints is now called in doUpdateLayout
ConnorObrian Jun 13, 2019
2063ec7
Layout for Constraints is called in createModel
Drakae Jun 13, 2019
5839b7b
added comments
Drakae Jun 17, 2019
ec2d0bd
checking the interactiveLayout property
Drakae Jun 17, 2019
c88c686
Constraints: Added layerID and positionID to KlighD for KGraphs
ConnorObrian Jun 20, 2019
bb45396
initialLayers-method uses layerID of the nodes
Drakae Jun 24, 2019
8aecd09
added props as attributes to SKNode
Drakae Jun 27, 2019
e6e7ae3
Constraints: Delete implemented into LSP + Comments
ConnorObrian Jun 27, 2019
7828a3a
Merge remote-tracking branch 'origin/jet_cos/constraints' into jet_co…
ConnorObrian Jun 27, 2019
d9ef1c1
Constraints: Bugfix -LayerID,PosID are now correct after setting a cons
ConnorObrian Jun 27, 2019
5efdf10
Merge branch 'master' into keith
NiklasRentzCAU Jun 28, 2019
0717f80
Constraints: StaticConstraint created and first reevaluation methods
ConnorObrian Jul 1, 2019
8c5e1a8
added positionId to SKNode
Drakae Jul 4, 2019
76111ff
Merge branch 'jet_cos/constraints' into jet_cos/Reevaluation
ConnorObrian Jul 4, 2019
9ce3f6a
Merge remote-tracking branch 'origin/master' into keith
NiklasRentzCAU Jul 9, 2019
cc74bd9
SKNodes have interactiveLayout property
Drakae Jul 10, 2019
cef09dc
Constraints: offsetPositionConstraints-method created
ConnorObrian Jul 10, 2019
361b189
Merge branch 'jet_cos/constraints' into jet_cos/Reevaluation
ConnorObrian Jul 10, 2019
2eb0711
Constraints: revaluation small improvements
ConnorObrian Jul 13, 2019
518a699
Constraints: SetStaticConstraint declared , refreshLayout for snap
ConnorObrian Jul 13, 2019
2911f1e
Constraints: StaticConstraint class added
ConnorObrian Jul 13, 2019
91d30ba
Merge branch 'jet_cos/constraints' into jet_cos/Reevaluation
ConnorObrian Jul 13, 2019
ac39b6e
Constraints: Implements setStaticConstraint. Fixes StaticConstraint.
ConnorObrian Jul 15, 2019
4bc5e8b
Merge branch 'jet_cos/constraints' into jet_cos/Reevaluation
ConnorObrian Jul 15, 2019
c10f869
Constraints: Improves after shift reevaluation
ConnorObrian Jul 16, 2019
26498c7
Constraints: Feature delete for pos and layer constraints
ConnorObrian Jul 16, 2019
2c66f56
Constraints: Feature DeleteStaticConstraint
ConnorObrian Jul 16, 2019
662b914
Merge branch 'jet_cos/constraints' into jet_cos/Reevaluation
ConnorObrian Jul 16, 2019
284b1a1
Constraints: Small cleanup
ConnorObrian Jul 16, 2019
e821696
Merge branch 'jet_cos/constraints' into jet_cos/Reevaluation
ConnorObrian Jul 16, 2019
328c3ee
klighd.lsp: Added methods to do layout and redraw diagram.
soerendomroes Jul 18, 2019
9f03e1f
Constraints: Implements ReevaluateAfterEmptyingALayer
ConnorObrian Jul 22, 2019
dfa4742
Constraints: Adds methods for optional checks, improves other methods
ConnorObrian Jul 22, 2019
f6770ce
fixed interactive property of SKNodes
Drakae Jul 22, 2019
9fb0637
Merge remote-tracking branch 'origin/jet_cos/constraints' into jet_co…
Drakae Jul 22, 2019
5205422
Constraints: Restructures Language Server and adds further Util methods
ConnorObrian Jul 22, 2019
c7b5f87
Merge branch 'jet_cos/constraints' into jet_cos/Reevaluation
ConnorObrian Jul 22, 2019
a56e8f9
Constraints: Specializes Offset, better reval for pos cons, start of …
ConnorObrian Jul 23, 2019
7a7b9af
Constraints: Fixes branch
ConnorObrian Jul 23, 2019
9ee1444
Constraints: getNodesOfLayer changed and optimized
ConnorObrian Jul 23, 2019
195704d
Merge branch 'keith' into jet_cos/constraints
ConnorObrian Jul 23, 2019
450a874
Constraints: Adds general support for constraints in hierarchical graphs
ConnorObrian Jul 25, 2019
f1e8c3f
Merge branch 'jet_cos/constraints' into jet_cos/Reevaluation
ConnorObrian Jul 25, 2019
4ce68ca
edges on the client side know their source and target
Drakae Jul 25, 2019
2e76f3a
Merge branch 'jet_cos/constraints' into jet_cos/Reevaluation
ConnorObrian Jul 25, 2019
18cb08a
constraints: Implements reval for node insertion, implements one reva…
ConnorObrian Jul 31, 2019
ef303f3
constraints: Another fix of getNodesOfLayer(), deletes unused methods
ConnorObrian Jul 31, 2019
8cc8c64
Merge branch 'jet_cos/constraints' into jet_cos/Reevaluation
ConnorObrian Jul 31, 2019
16554bf
constraints: emptyLayer & node pos reeval for out of bounds constraints
ConnorObrian Aug 5, 2019
eb6ee99
constraints: Fix for Reeval, Changes reval, adds setCoordDepthFirst
ConnorObrian Aug 6, 2019
98bd9b8
fixed interactiveLayout property of SKNode
Drakae Aug 7, 2019
27d045e
constraints: Restructures code based on recent client changes
ConnorObrian Aug 7, 2019
63f8357
Merge remote-tracking branch 'origin/jet_cos/constraints' into jet_co…
Drakae Aug 7, 2019
36ab3b4
fixed hierarchical layout
Drakae Aug 8, 2019
901a430
Merge remote-tracking branch 'origin/master' into keith
NiklasRentzCAU Aug 12, 2019
dfeaf95
constraints: Deletes not needed code, Fixes bug in shifting reeval
ConnorObrian Aug 14, 2019
83994bb
Merge remote-tracking branch 'origin/jet_cos/constraints' into jet_co…
ConnorObrian Aug 14, 2019
c32c0cc
Merge remote-tracking branch 'origin/master' into keith
NiklasRentzCAU Sep 11, 2019
664f50c
cnstraintLayout: fixed edge routing and layout changes
Drakae Sep 12, 2019
3e5176f
constraints: Workaround + cleanup
ConnorObrian Sep 15, 2019
4ea19fc
Merge remote-tracking branch 'origin/jet_cos/constraints' into jet_co…
ConnorObrian Sep 15, 2019
a21c5b0
klighd-lsp: removed unneeded dependency to incremental
NiklasRentzCAU Sep 19, 2019
47ed147
klighd-lsp: adapted to new decorator placement import
NiklasRentzCAU Sep 23, 2019
d8ae5d8
Merge branch 'nre/decoratorPlacementUtilMove' into keith
NiklasRentzCAU Sep 23, 2019
c8c06fc
klighd-lsp: removed dependency to piccolo.
NiklasRentzCAU Sep 23, 2019
13ec652
interactiveLayout: corrected spelling mistake
Drakae Sep 26, 2019
492657e
ConstraintsLSExt: removed unused notifications
Drakae Sep 26, 2019
3642dc3
added javadocs
Drakae Sep 26, 2019
82709b3
klighd.lsp: added functionality to draw KImages.
NiklasRentzCAU Oct 15, 2019
f938b56
klighd.lsp: send tooltip information to the client.
NiklasRentzCAU Oct 22, 2019
5416797
Merge remote-tracking branch 'origin/keith' into jet_cos/constraints
soerendomroes Oct 23, 2019
8cc95e3
klighd.lsp: Added year to copyright.
soerendomroes Oct 23, 2019
e4731f0
klighd.sprotty: updated to sprotty-0.7.0.
NiklasRentzCAU Oct 23, 2019
55e605a
klighd.lsp: Added brackets to fix mvn build.
soerendomroes Oct 23, 2019
842ae04
klighd.lsp: hacked in java-9 java.io.InputStream functionality to fix
NiklasRentzCAU Oct 23, 2019
ced49fa
klighd.lsp: resolved InputStream hack with google.guava solution.
NiklasRentzCAU Oct 24, 2019
a33b543
Merge remote-tracking branch 'origin/keith' into jet_cos/constraints
soerendomroes Oct 24, 2019
b8e890b
klighd.lsp: Removed ternary operator.
soerendomroes Oct 24, 2019
7c9b7ba
Merge remote-tracking branch 'origin/master' into keith
NiklasRentzCAU Oct 25, 2019
cf5afcf
Merge remote-tracking branch 'origin/keith' into jet_cos/constraints
soerendomroes Oct 25, 2019
d3c8a84
build: dependent version numbers, made sprotty have a .qualifier version
NiklasRentzCAU Oct 25, 2019
6243b42
kgraph.language.server: implemented standalone pragmatics language
NiklasRentzCAU Oct 28, 2019
396d9d1
build: changed kgraph.language.server to depend on versions in the
NiklasRentzCAU Oct 28, 2019
1f95408
build: fixed xtend dependency
NiklasRentzCAU Oct 29, 2019
bc704b2
Merge remote-tracking branch 'origin/keith' into jet_cos/constraints
soerendomroes Oct 29, 2019
25bbdb4
klighd.lsp: diagrams now also work with non-XText model files.
NiklasRentzCAU Nov 5, 2019
f53fdeb
klighd.incremental: better error handling
NiklasRentzCAU Nov 5, 2019
bb0382a
klighd.krendering: Updated KNodeExtensions to allow for a node existance
NiklasRentzCAU Nov 5, 2019
b6daf43
Merge branch 'nre/master2' into nre/master
NiklasRentzCAU Nov 5, 2019
9bd027c
krendering.extensions: unified create methods.
NiklasRentzCAU Nov 6, 2019
5e2d742
Unified KEdge, KNode and KPort extensions
NiklasRentzCAU Nov 6, 2019
ff99a18
klighd.lsp: adapted to ILayoutRecorder change
NiklasRentzCAU Nov 6, 2019
d8b9615
kgraph.language.server: loosened some required version numbers
NiklasRentzCAU Nov 6, 2019
de6b712
Merge branch 'nre/master' into keith
NiklasRentzCAU Nov 6, 2019
f3dbdf8
klighd.lsp: implemented boolean layout option
NiklasRentzCAU Nov 7, 2019
9004d21
klighd.lsp: allow the server to change the client selection.
NiklasRentzCAU Nov 12, 2019
b075088
klighd.lsp: removed most xtend warnings
NiklasRentzCAU Nov 13, 2019
0247c07
Merge branch 'master' into nre/master
NiklasRentzCAU Nov 14, 2019
f173888
klighd.lsp.constraints: Refactored contraints to data classes.
soerendomroes Nov 18, 2019
b7fa393
klighd.lsp.constraints: Refactored lsp messages for constraints to
soerendomroes Nov 19, 2019
bdb334a
klighd.lsp: text widths and -heights for each line in multiline texts.
NiklasRentzCAU Nov 26, 2019
5e0f138
Merge remote-tracking branch 'origin/master' into nre/master
NiklasRentzCAU Nov 27, 2019
07b6606
Layer and Position constraints work for all fixed directions.
soerendomroes Dec 13, 2019
cd37baf
Handle undefined same as right.
soerendomroes Dec 13, 2019
7df2182
klighd.lsp: Reworked setting of constraints.
soerendomroes Dec 17, 2019
27df047
klighd.lsp: Added delete constraint actions.
soerendomroes Dec 17, 2019
9d51ddc
klighd lsp: Fixed delete constraint actions.
soerendomroes Dec 17, 2019
ebad87a
Merge remote-tracking branch 'origin/master' into nre/master
NiklasRentzCAU Dec 17, 2019
290006d
klighd.lsp: fixed NPE for edges without a source/target
NiklasRentzCAU Dec 17, 2019
d5ca87a
klighd.lsp.interactive: Initial layout should be done without
soerendomroes Dec 18, 2019
aab655a
Merge remote-tracking branch 'origin/master' into keith
NiklasRentzCAU Feb 5, 2020
311d5b7
Merge remote-tracking branch 'origin/master' into keith
NiklasRentzCAU Feb 5, 2020
35e8b12
language-server: register SprottyViewer programmatically
NiklasRentzCAU Feb 7, 2020
365b532
Migrated changes in pragmatic to klighd.
soerendomroes Feb 20, 2020
a1774ff
Merge remote-tracking branch 'origin/keith' into jet_cos/constraints
soerendomroes Feb 20, 2020
469916a
language.server: Added interactive LSExtensions.
soerendomroes Feb 21, 2020
0a12fb1
klighd.lsp: Fixed rect packing id change.
soerendomroes Mar 24, 2020
f62b083
klighd.lsp: RectPacking id change.
soerendomroes Mar 25, 2020
212c46b
Merge branch 'master' into keith
NiklasRentzCAU Mar 26, 2020
312c957
build: include language server stuff in build.
NiklasRentzCAU Mar 26, 2020
3e74d1d
build: added language server bundles to repos category.xml
NiklasRentzCAU Mar 26, 2020
2b7d02a
lighd.lsp: Interactive: Worked on nre remarks.
soerendomroes Mar 27, 2020
e667242
Reverted whitespace change.
soerendomroes Mar 27, 2020
ac20b08
klighd.lsp: Interactive: Worked on nre remarks.
soerendomroes Mar 27, 2020
151191a
Merge pull request #2 from kieler/jet_cos/constraints
NiklasRentzCAU Mar 27, 2020
0d05064
Added id to SynthesisOptions.
soerendomroes Apr 8, 2020
fc50a46
klighd.lsp: Added refresh layout action.
soerendomroes Apr 8, 2020
94b15d4
Merge remote-tracking branch 'origin/master' into keith
NiklasRentzCAU Apr 14, 2020
6a20b38
keith: incremented version numbers to '1.1.1.qualifier'
NiklasRentzCAU Apr 14, 2020
92fc4ae
klighd.lsp: changed code compability to the here-used xtend 2.16 comp…
NiklasRentzCAU Apr 14, 2020
c16ab5e
Use name as default id for synthesis option.
soerendomroes Apr 14, 2020
7c1335d
klighd.lsp: Interactive layered: Reload diagram if nothing changed.
soerendomroes Apr 15, 2020
cf9657c
Fixed check for interactive layout for SCCharts.
soerendomroes Apr 16, 2020
1ee66f4
Added server client notification to display messages.
soerendomroes Apr 21, 2020
3b323a5
simulation.ide: LS: Send error to client on exception.
soerendomroes Apr 21, 2020
a73f837
klighd.lsp: remove performance-heavy tracing support for now.
NiklasRentzCAU Apr 29, 2020
b527b9a
Merge remote-tracking branch 'origin/master' into keith
NiklasRentzCAU May 7, 2020
94e382f
klighd.lsp: generate ports and labels for collapsed nodes
NiklasRentzCAU May 13, 2020
bd84746
klighd: Add interactive layout configurator.
soerendomroes May 18, 2020
54e9924
KLighd: Interactive: Convert LayerConstraint to LayerChoiceConstraint.
soerendomroes May 18, 2020
2cd70c2
KLighd: Interactive: Layered: Updated comments.
soerendomroes May 18, 2020
46b0f81
Klighd: interactive: More documentation.
soerendomroes May 18, 2020
2ed24e3
KLighd: Interactive: Layered: Fixed node shifting.
soerendomroes May 19, 2020
5246f6e
KLighd: Interactive: Fixed unmodifiable list.
soerendomroes May 19, 2020
4bdc847
Klighd.lsp: Added cause to UpdateModelAction.
soerendomroes May 25, 2020
240fb91
klighd.lsp: Do not send erroneous diagram to client.
soerendomroes May 25, 2020
328882f
klighd.lsp: Make utils accessible.
soerendomroes May 26, 2020
2d7ee10
klighd.lsp: Set language client for lsp extensions.
soerendomroes Jun 3, 2020
e954fa9
klighd.lsp: Add message to replace content in file.
soerendomroes Jun 3, 2020
b6995e7
klighd.lsp: Update file in interactive scenario.
soerendomroes Jun 3, 2020
3db76d6
Merge branch 'keith' into sdo/unifyInteractiveLayout
soerendomroes Jun 3, 2020
d5dd2e5
KEITH edges with invalid target quickfix.
soerendomroes Jun 4, 2020
8a15e0b
klighd.lsp: Count lines of string in a java 8 way.
soerendomroes Jun 5, 2020
790351b
kgraph.language.server: fixed class cast exception during startup
NiklasRentzCAU Jun 5, 2020
3213378
klighd: Configure interactive layout run in AbstactDiagramSynthesis.
soerendomroes Jun 10, 2020
3570d12
klighd: Create new CompoundGraphVisitor for interactive layout run.
soerendomroes Jun 12, 2020
2a57fb6
Moved interactive graph visitors.
soerendomroes Jun 15, 2020
3c3ab6e
Updated to conform with Elk nightly changes.
soerendomroes Jun 24, 2020
bdb6aec
Target: Let keith depend on elk nightly.
soerendomroes Jun 24, 2020
abc2b6d
klighd, klighd.lsp: Conform with elk nightly changes.
soerendomroes Jul 1, 2020
c218559
klighd: Add viewContext and viewModel to get additonal layout configs.
soerendomroes Jul 1, 2020
23d0a16
Merged master into sdo/unifyInteractiveLayout
soerendomroes Jul 1, 2020
765bb1e
klighd: Removed unnecessary layout configurators.
soerendomroes Jul 9, 2020
6c5d515
Cleanup and documentation.
soerendomroes Jul 9, 2020
3f7111c
klighd: Generate synthesis id using class name.
soerendomroes Jul 13, 2020
ab308ce
klighd: Removed debugging output from SynthesisOptions.
soerendomroes Jul 13, 2020
478435a
klighd: Unintroduce unnecessarily introduced dependencies.
soerendomroes Jul 14, 2020
c65383d
Merge pull request #39 from kieler/sdo/unifyInteractiveLayout
soerendomroes Jul 14, 2020
a40bd7b
Merge remote-tracking branch 'origin/master' into keith
NiklasRentzCAU Jul 14, 2020
80f1894
fixed merge master->keith
NiklasRentzCAU Jul 14, 2020
ae8ae65
updated new bundle versions to 1.1.2.qualifier
NiklasRentzCAU Jul 14, 2020
30df28b
klighd: Do not delete interactive properties from kgraph during
soerendomroes Jul 15, 2020
4da94d0
all: declare KLighD extensions for Java ServiceLoader
NiklasRentzCAU Jul 16, 2020
307c8f6
klighd, klighd.standalone: allow to register more extensions via
NiklasRentzCAU Jul 16, 2020
ee6b0cc
kgraph.language.server, klighd.lsp: Start the KGraph language server as
NiklasRentzCAU Jul 16, 2020
d393885
Merge branch 'keith' of [email protected]:kieler/KLighD.git into keith
NiklasRentzCAU Jul 16, 2020
3c32ea6
klighd.ui.view: fixed build path
NiklasRentzCAU Jul 16, 2020
78518e7
build, lsp: adapted to Sprotty 0.8.0
NiklasRentzCAU Jul 21, 2020
f7c66ec
lsp, kgraph.language.server: code cleanup.
NiklasRentzCAU Jul 23, 2020
b9104ea
klighd, klighd.kgraph: adapted to ELK change for EdgeLabelPlacement.
NiklasRentzCAU Jul 24, 2020
9c6e8c9
lsp: fixed image loading in non-platform case.
NiklasRentzCAU Jul 24, 2020
0973d98
lsp: small fix for layout options in sidebar.
NiklasRentzCAU Jul 24, 2020
f4f5e2d
lsp: Forward exceptions to the client.
NiklasRentzCAU Jul 28, 2020
b58a9b6
lsp: reactivated slow element tracing support, bound to the client
NiklasRentzCAU Jul 28, 2020
e808ae3
lsp: added mapping from generated ID back to the KGraphElement it was
NiklasRentzCAU Jul 30, 2020
56823b3
lsp: removed old, already solved TODO
NiklasRentzCAU Jul 30, 2020
d45aee7
klighd: Make sure calling getDelegate() in
NiklasRentzCAU Jul 30, 2020
67c1045
lsp: add functionality for special renderings: images and texts from
NiklasRentzCAU Jul 30, 2020
26bc4af
build: adapted to ELK 0.7.0 release
NiklasRentzCAU Jul 31, 2020
90f4a68
lsp: changed diagram option requests to notfications, improved error
NiklasRentzCAU Jul 31, 2020
4a84a0c
lsp: check diagram revision when receiving text bounds
NiklasRentzCAU Jul 31, 2020
f782c91
lsp: removed non-erroneous exception for empty KTexts.
NiklasRentzCAU Jul 31, 2020
46e4f0e
Merge remote-tracking branch 'origin/master' into keith
NiklasRentzCAU Jul 31, 2020
d3061ef
klighd.lsp: Interactive rectpacking: use primitive data type.
soerendomroes Aug 3, 2020
b7bcc6e
lsp: ID Gen: remember the root ID as well.
NiklasRentzCAU Aug 3, 2020
55733d7
lsp: fixed resource handling of interactive layout.
NiklasRentzCAU Aug 3, 2020
9ea740e
Merge branch 'keith' of [email protected]:kieler/KLighD.git into keith
NiklasRentzCAU Aug 3, 2020
06f28ff
klighd.lps: Interactive rectpacking: Corrected resource access.
soerendomroes Aug 4, 2020
f20c85c
lsp: fixed ID in text-only graph, added error message for multiple root
NiklasRentzCAU Aug 4, 2020
c8100f2
klighd.lsp: Register preserved interactive options via ServiceLoader and
soerendomroes Aug 4, 2020
002a072
lsp: log missed exception handling in diagram updater on client and
NiklasRentzCAU Aug 4, 2020
8c8a95b
Merge branch 'keith' of [email protected]:kieler/KLighD.git into keith
NiklasRentzCAU Aug 4, 2020
e11825a
klighd: Use KlighdDataManager to access extension point/ service loader.
soerendomroes Aug 4, 2020
efb4ecc
klighd: Register preserved properties correctly.
soerendomroes Aug 4, 2020
aed80d9
build: added klighd.standalone as bundle to P2 update site
NiklasRentzCAU Aug 4, 2020
f1f43ad
klighd.lsp: Map preserved properties from Knode to SNode.
soerendomroes Aug 5, 2020
4da240a
klighd.lsp: Do not save created models that were cancelled.
soerendomroes Aug 5, 2020
3a1b271
incremental: improved robustness for graphs with parent-less referenced
NiklasRentzCAU Aug 5, 2020
1407515
Merge branch 'keith' of [email protected]:kieler/KLighD.git into keith
NiklasRentzCAU Aug 5, 2020
4816710
Merge remote-tracking branch 'origin/master' into keith
NiklasRentzCAU Aug 5, 2020
7d8c50f
klighd.lsp: Interactive: Trim inserted code to prevent whitespace
soerendomroes Aug 6, 2020
cdfd37b
lsp: allow connected elements with no containment in ID generation.
NiklasRentzCAU Aug 6, 2020
b51c770
klighd.lsp: Prevent NPE on RenderingRef with null id.
soerendomroes Aug 6, 2020
126d1bc
klighd.lsp: Check revision for PerformActionAction.
soerendomroes Aug 6, 2020
bf20382
incremental: allow dangling elements.
NiklasRentzCAU Aug 6, 2020
a8c439c
Merge branch 'keith' of [email protected]:kieler/KLighD.git into keith
NiklasRentzCAU Aug 6, 2020
6fd544c
kgraph.language.server: removed.
NiklasRentzCAU Aug 7, 2020
27e2b70
lsp: added package containing abstract code to launch LS with diagrams.
NiklasRentzCAU Aug 7, 2020
a2b14ab
klighd.lsp: unique rendering IDs have an own property.
NiklasRentzCAU Aug 10, 2020
bfe0a58
lsp: removed KImage from reflective validation for the CheckImageAction.
NiklasRentzCAU Aug 11, 2020
2a33650
lsp: register SprottyViewer programatically.
NiklasRentzCAU Aug 17, 2020
5ca065c
klighd: default status manager also prints stack trace on error.
NiklasRentzCAU Aug 18, 2020
c32530a
klighd: added startup hook extension point/interface for service loader.
NiklasRentzCAU Aug 18, 2020
a50b86a
lsp: decode all URIs coming from the client first.
NiklasRentzCAU Aug 18, 2020
3857c9c
klighd.lsp: Added main thread queue for SWT and AWT calls.
soerendomroes Aug 18, 2020
9edb76e
lsp: Improved diagram handling for files with no Resource.
NiklasRentzCAU Aug 20, 2020
2773010
all: merged the preservedProperties extension point into KLighD's
NiklasRentzCAU Aug 20, 2020
4beb7bf
Use Consumer instead of Function.
soerendomroes Aug 20, 2020
3ba6b74
klighd.lsp: Organized imports.
soerendomroes Aug 20, 2020
7596d70
Merge pull request #66 from kieler/mainThreadQueue
soerendomroes Aug 20, 2020
588a149
merged startup extension into KLighD's main extension.
NiklasRentzCAU Aug 20, 2020
926dff3
Merge branch 'keith' of [email protected]:kieler/KLighD.git into keith
NiklasRentzCAU Aug 20, 2020
2bef347
klighd.lsp: Renamed interactive LS extensions #67.
soerendomroes Aug 20, 2020
86657ea
build: adapted to Xtext 2.22 and Sprotty 0.9
NiklasRentzCAU Sep 8, 2020
2aaaf31
lsp: handle exceptions in the main thread queue
NiklasRentzCAU Sep 9, 2020
b451840
klighd: Corrected IGraphElementVisitor related javadoc and imports.
soerendomroes Sep 10, 2020
c2b22c5
klghd: some code cleanup
NiklasRentzCAU Sep 10, 2020
a86714e
klighd.test, klighd.piccolo.test: registered PiccoloViewer.Provider
NiklasRentzCAU Sep 11, 2020
8988bee
klighd: Made IPreservedProperties extend Iterable and extended its
NiklasRentzCAU Sep 11, 2020
4345e92
Merge remote-tracking branch 'origin/master' into keith
NiklasRentzCAU Sep 11, 2020
742fa13
build: incremented tycho and xtext versions in maven build
NiklasRentzCAU Sep 11, 2020
4b61323
lsp: made resource loading thread-safe by synchronizing
NiklasRentzCAU Sep 14, 2020
1db75b0
Merge remote-tracking branch 'origin/master' into keith
NiklasRentzCAU Sep 18, 2020
4822e95
standalone: corrected imports
NiklasRentzCAU Sep 18, 2020
1239195
piccolo.test: adapted to ELK 0.7.0 changes
NiklasRentzCAU Sep 18, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
klighd-lsp: updateLayout is now always called during diagram generation.
  • Loading branch information
NiklasRentzCAU committed Jun 12, 2019
commit 048984978529f1208df1cca05ff527b3241a5ca9
Original file line number Diff line number Diff line change
Expand Up @@ -91,10 +91,11 @@ class KGraphDiagramUpdater extends DiagramUpdater {
viewContext = diagramState.getKGraphContext(id)
}

return diagramServer -> doCreateModel(viewContext, id, context.cancelChecker)
return diagramServer -> createModel(viewContext, id, context.cancelChecker)
].thenAccept [
key.requestTextSizesAndUpdateModel(value)
].exceptionally [ throwable |
println("ERROR: " + throwable)
return null
]
}
Expand All @@ -113,23 +114,24 @@ class KGraphDiagramUpdater extends DiagramUpdater {
} else {
snapshotModel
}
val cancelChecker = context.cancelChecker

return (diagramServers as List<KGraphDiagramServer>).map [ server |
server -> {
createModel(server, model, path, cancelChecker)
}
(diagramServers as List<KGraphDiagramServer>).forEach [ server |
prepareModel(server, model, path)
updateLayout(server)
]
].thenAccept [ resultList |
// Call the text size estimation on the diagram server for which a new diagram got created.
resultList.filter[value !== null].forEach[key.requestTextSizesAndUpdateModel(value)]
].exceptionally [ throwable |
println("ERROR: " + throwable)
return null
]
}

synchronized def createModel(KGraphDiagramServer server, Object model, String id, CancelIndicator cancelChecker) {
/**
* Prepares the DiagramState and the diagram server to generate an SGraph for the given model the next time the
* createModel is called.
*
* @param server The diagramServer for that the diagram state should be updated.
* @param model The new model that should be shown for the server.
* @param key The key to access the diagram state maps.
*/
synchronized def void prepareModel(KGraphDiagramServer server, Object model, String key) {
NiklasRentzCAU marked this conversation as resolved.
Show resolved Hide resolved

val properties = new KlighdSynthesisProperties()
var SprottyViewer viewer = null
Expand All @@ -140,7 +142,7 @@ class KGraphDiagramUpdater extends DiagramUpdater {
viewer = iViewer
}

synthesisId = diagramState.getSynthesisId(id)
synthesisId = diagramState.getSynthesisId(key)
}

// Set properties.
Expand Down Expand Up @@ -195,15 +197,12 @@ class KGraphDiagramUpdater extends DiagramUpdater {
}

synchronized (diagramState) {
diagramState.putURIString(server.clientId, id)
diagramState.putKGraphContext(id, viewContext)
diagramState.putURIString(server.clientId, key)
diagramState.putKGraphContext(key, viewContext)
if (viewer !== null) {
diagramState.putViewer(viewer)
}
}

// Finally, match the diagram server with the generated SGraph by returning the SGraph.
return doCreateModel(viewContext, id, cancelChecker)
}

/**
Expand All @@ -216,7 +215,7 @@ class KGraphDiagramUpdater extends DiagramUpdater {
* relevant data in the {@link KGraphDiagramState}.
* @param cancelChecker The {@link CancelIndicator} used to tell the diagram translation to stop.
*/
protected def SGraph doCreateModel(ViewContext viewContext, String id, CancelIndicator cancelChecker) {
synchronized def SGraph createModel(ViewContext viewContext, String id, CancelIndicator cancelChecker) {
// Generate the SGraph model from the KGraph model and store every later relevant part in the
// diagram state.
val diagramGenerator = diagramGeneratorProvider.get
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -408,16 +408,13 @@ class KGraphLanguageServerExtension extends SyncDiagramLanguageServer
// With that new diagram server, do a similar procedure to generate a diagram as for usual diagrams (except,
// use the 'model' as its model.
if (diagramUpdater instanceof KGraphDiagramUpdater) {
val sGraph = (diagramUpdater as KGraphDiagramUpdater).createModel(diagramServer, model, uri, cancelIndicator)
if (sGraph !== null) {
diagramServer.requestTextSizesAndUpdateModel(sGraph)

// Also, update the syntheses available for the given diagram.
if (!update) {
val availableSynthesesData = getAvailableSynthesesData(model.class)

diagramServer.dispatch(new SetSynthesesAction(availableSynthesesData))
}
(diagramUpdater as KGraphDiagramUpdater).prepareModel(diagramServer, model, uri)
(diagramUpdater as KGraphDiagramUpdater).updateLayout(diagramServer)
// Also, update the syntheses available for the given diagram.
if (!update) {
val availableSynthesesData = getAvailableSynthesesData(model.class)

diagramServer.dispatch(new SetSynthesesAction(availableSynthesesData))
}
return "OK"
}
Expand Down