RFR: JDK-8324950: IGV: save the state to a file [v7]
Tobias Holenstein
tholenstein at openjdk.org
Mon Apr 8 09:35:56 UTC 2024
> The current workflow in IGV is the following:
> 1) import an XML file with graphs or send via network
> 2) open or more graphs in a tab
> 3) extract a set of nodes to be displayed in the tab
> 4) close IGV and start from 1) again
>
> The idea of this RFE is to save the important **states** of IGV to a workspace directory:
> - imported graphs (_graphs.xml_)
> - opened graph tabs + extracted nodes (_state.igv_)
>
>
> ### Saving the state of IGV
> - For IGV to save the state it needs a workspace, which can be passed in 3 different ways:
> 1) Using a global variable : `IGV_WORKSPACE=path/to/igv_workspace ./igv.sh`
> 2) Passed as an argument : `./igv.sh path/to/igv_workspace `
> 3) With default location `IdealGraphVisualizer/workspace` : `./igv.sh`
>
> Open IGV with the following example workspace (unzipped) [igv_workspace.zip](https://github.com/openjdk/jdk/files/14311092/igv_workspace.zip) should look something like this:
> 
>
>
> ### Workspace
> A workspace is a directory where IGV saves imported graphs as _graphs.xml_ and opened graph tabs to _state.igv_. A workspace is loaded when IGV is opened. The current workspace is saved when IGV is closed or when the workspace is changed to a different directory. When changing a directory the state of the new workspace is loaded.
> - Click here to select a different workspace directory
> 
>
> - Imports an XML file (group and graphs) into the current workspace
> 
>
> - saves the state of the current workspace
> 
> - imported graphs (_graphs.xml_)
> - opened graph tabs + extracted nodes (_state.igv_)
>
>
> - Export the selected groups to a separate XML file
> 
>
> - Delete the selected groups and graphs
> 
>
> - Clear the workspace and delete all groups and graphs
> 
>
>
>
> ---------
> ### Progress
> - [ ] Change must be properly reviewed (1 review required, with at least 1 [Reviewer](https://openjd...
Tobias Holenstein has updated the pull request incrementally with six additional commits since the last revision:
- Save state in XML
- remove unused
- Printer.exportStates
- saveState flag
- Printer.java copyright
- remove unused InputStream in Printer
-------------
Changes:
- all: https://git.openjdk.org/jdk/pull/17630/files
- new: https://git.openjdk.org/jdk/pull/17630/files/a3fe22a9..4aa3601b
Webrevs:
- full: https://webrevs.openjdk.org/?repo=jdk&pr=17630&range=06
- incr: https://webrevs.openjdk.org/?repo=jdk&pr=17630&range=05-06
Stats: 1072 lines in 22 files changed: 470 ins; 348 del; 254 mod
Patch: https://git.openjdk.org/jdk/pull/17630.diff
Fetch: git fetch https://git.openjdk.org/jdk.git pull/17630/head:pull/17630
PR: https://git.openjdk.org/jdk/pull/17630
More information about the hotspot-compiler-dev
mailing list