fiji/Volume_Viewer

show stack name

orena1 opened this issue · 2 comments

It would be great to see the name of the stack for which the volume is presented.

On the ImageJ mailing list, Hidenao Iwai wrote:

I can solve the issue#1 on GitHub (show stack name)
Add two lines as follows in Volume_Viewer.java,

public void run(String args) {
        ...
        imp = WindowManager.getCurrentImage();
        String stackName = imp.getTitle(); // <--- added
        if (imp == null  || !(imp.getStackSize() > 1)) {
        ...
        else {
                frame = new JFrame("Volume Viewer " +  version + " (" + stackName + ")");  // <--- modified
                frame.setLocation(control.xloc,control.yloc);
        ...

@orena1 If you would care to file a PR, I would merge and release a new Volume Viewer.

Done -#4
Did not test, but looks reasonable. Thanks!!