NOTICE! This is a static HTML version of a legacy Fiji BugZilla bug.

The Fiji project now uses GitHub Issues for issue tracking.

Please file all new issues there.

Bug 859 - Always_on_Top.js is not working anymore
Always_on_Top.js is not working anymore
Status: RESOLVED WONTFIX
Product: Fiji
Classification: Unclassified
Component: Plugins
unspecified
PC Windows
: P4 normal
Assigned To: ImageJ Bugs Mailing List
Depends on:
Blocks:
 
Reported: 2014-07-17 06:44 CDT by CARL
Modified: 2014-07-17 10:21 CDT
3 users (show)

See Also:

Description CARL 2014-07-17 06:44:01 CDT
to whom it may concern,
The Always_on_Top.js (http://imagej.nih.gov/ij/macros/js/Always_on_Top.js) javascript macro isn't wroking anymore in Fiji as it is still working within the vanilla ImageJ.
This problen has been introduced by a quite recent update of Fiji as ithe coded was still working 1-2 months ago.
My best regards,
Philippe

Information about your version of Java:

  os.arch => amd64
  os.name => Windows 7
  os.version => 6.1
  java.version => 1.6.0_24
  java.vendor => Sun Microsystems Inc.
  java.runtime.name => Java(TM) SE Runtime Environment
  java.runtime.version => 1.6.0_24-b07
  java.vm.name => Java HotSpot(TM) 64-Bit Server VM
  java.vm.version => 19.1-b02
  java.vm.vendor => Sun Microsystems Inc.
  java.vm.info => mixed mode
  java.awt.graphicsenv => sun.awt.Win32GraphicsEnvironment
  java.specification.name => Java Platform API Specification
  java.specification.version => 1.6
  sun.cpu.endian => little
  sun.desktop => windows
  file.separator => \

The up-to-date check says: UP_TO_DATE

Information relevant to JAVA_HOME related problems:

  JAVA_HOME is set to: C:\Work\SOFTWA~1\Fiji/java/win64/jdk1.6.0_24//jre
  imagej.dir => C:\Work\SOFTWA~1\Fiji

Information about the version of each plugin:

Activated update sites:
ImageJ: http://update.imagej.net/ (last check:20140712000647)
Fiji: http://fiji.sc/update/ (last check:20140715020940)

Files not up-to-date:
  b3b7b80e (MODIFIED) 20140715085234 jars/ij-1.49d.jar
  1c354c8b (LOCAL_ONLY) 20000413165800 luts/S_Pet.lut
  07c05d23 (LOCAL_ONLY) 20121217160354 luts/multitxt.lut
  bf66597a (LOCAL_ONLY) 20121218140114 luts/physicsmodtxt.lut
  6e6ad239 (LOCAL_ONLY) 20121217155828 luts/physicstxt.lut
  7433440a (LOCAL_ONLY) 20130204161151 plugins/Image Stabilizer/Image_Stabilizer.class
  03be9b84 (LOCAL_ONLY) 20130204161218 plugins/Image Stabilizer/Image_Stabilizer_Log_Applier.class
  0b664aa2 (LOCAL_ONLY) 20140717133048 plugins/Misc/Always_on_Top.js
  1fa356e0 (LOCAL_ONLY) 20140506160726 plugins/Misc/Close_All....ijm
  056fa179 (LOCAL_ONLY) 20130206163024 plugins/Misc/Close_All2.ijm
  043423e7 (LOCAL_ONLY) 20140218154016 plugins/Misc/Create_folder.ijm
  22a8509f (LOCAL_ONLY) 20131108164053 plugins/Misc/Extract_coordinates.ijm
  b4553899 (LOCAL_ONLY) 20131127144746 plugins/Misc/Extract_coordinates2.ijm
  24d728bb (LOCAL_ONLY) 20131119161132 plugins/Misc/Fast/Reduce_Dimensionality2.ijm
  8394d53b (LOCAL_ONLY) 20131119152640 plugins/Misc/Fast/Set_slice_and_contrast.ijm
  fbce402a (LOCAL_ONLY) 20140717121256 plugins/Misc/Fiji_always_on_top.js
  75e795c8 (LOCAL_ONLY) 20140717121305 plugins/Misc/Fiji_always_on_top_end.js
  ab5483f7 (LOCAL_ONLY) 20140220161413 plugins/Misc/Filter_Images.ijm
  3e89de31 (LOCAL_ONLY) 20140704110222 plugins/Misc/Maximum_Finder_Mod_Ext.class
  6e754726 (LOCAL_ONLY) 20130424162624 plugins/Misc/Measure_ROI_values.ijm
  4938887e (LOCAL_ONLY) 20121213101213 plugins/Misc/Microscope_Scale_iMIC.class
  3be1534e (LOCAL_ONLY) 20121218094342 plugins/Misc/Open_Recent_File_0.class
  31041ee4 (LOCAL_ONLY) 20121218094751 plugins/Misc/Open_Recent_File_1.class
  cecfc89a (LOCAL_ONLY) 20121218094721 plugins/Misc/Open_Recent_File_2.class
  4f38fb08 (LOCAL_ONLY) 20140414135258 plugins/Misc/Particle_Tracker_PIV_Inputs.jar
  ec5d825c (LOCAL_ONLY) 20131004145906 plugins/Misc/Reduce_Dimensionality.ijm
  0b1bcd70 (LOCAL_ONLY) 20130528171542 plugins/Misc/Resize_and_Save_as_TIFF_and_Close.ijm
  256ed647 (LOCAL_ONLY) 20140218154016 plugins/Misc/Save_FTTC_Pictures_Full_Experiment.ijm
  277f6b4b (LOCAL_ONLY) 20130924104247 plugins/Misc/Save_JPG_Traction.ijm
  3691476d (LOCAL_ONLY) 20140218154016 plugins/Misc/Save_JPG_Traction_Full_Experiment.ijm
  146eaefc (LOCAL_ONLY) 20140218154016 plugins/Misc/Save_PIV_FTTC_JPG_Full_Experiment.ijm
  0d9148c0 (LOCAL_ONLY) 20140217095124 plugins/Misc/Save_PIV_Pictures.ijm
  187f0c9e (LOCAL_ONLY) 20140217092614 plugins/Misc/Save_PIV_Pictures_Full_Experiment.ijm
  9e64aeaa (LOCAL_ONLY) 20121108104349 plugins/Misc/Save_SCFS_Data.ijm
  d2967ab3 (LOCAL_ONLY) 20140207144548 plugins/Misc/Save_SCFS_Data_new.ijm
  7e3a4d18 (LOCAL_ONLY) 20130118143346 plugins/Misc/Save_as_TIFF_and_Close.ijm
  4e079620 (LOCAL_ONLY) 20140610102635 plugins/Misc/SegFA_PseudoTIRF.ijm
  fa71c604 (LOCAL_ONLY) 20121212114323 plugins/Misc/Shift_latéral.ijm
  267d730d (LOCAL_ONLY) 20130311151957 plugins/Misc/Stack_to_Hyperstack.ijm
  65bf857c (LOCAL_ONLY) 20140425094242 plugins/Misc/Translation_Alignment.class
  15638c2e (LOCAL_ONLY) 20140213093043 plugins/Radial2/Radial_Profile_Angle_Ext.jar
  99308836 (LOCAL_ONLY) 20131217165922 plugins/Traction Force 2/FTTC_.jar
  ec703275 (LOCAL_ONLY) 20140416161333 plugins/Traction Force 2/PIV_.jar
  7d5b3965 (LOCAL_ONLY) 20120711154540 plugins/Traction Force 2/javacv.jar
  90915f54 (LOCAL_ONLY) 20120711154548 plugins/Traction Force 2/jna.jar
  9e276f37 (LOCAL_ONLY) 20140610135439 plugins/Traction Force/Traction_Force_Calculation_with_FRAP.class
  1a4c5bdf (LOCAL_ONLY) 20121129112014 plugins/X Shifter/X_Shifter.class
  d198e2f0 (LOCAL_ONLY) 20140702170514 plugins/arf/SegFA_PseudoTIRF_Dialog.ijm
  bfe37a40 (LOCAL_ONLY) 20140707150526 plugins/gy/Orientation_cellulaire_4.0.ijm
Comment 1 Johannes Schindelin 2014-07-17 08:41:51 CDT
*How* is it not "wroking anymore in Fiji"? What are the symptoms? Is there some console output?
Comment 2 CARL 2014-07-17 09:17:51 CDT
Dear Johannes,
The problem is that I have found the solution for this bug about 15-30 minutes after having submitted the bug report.
And when I was actually launching the macro from the plugin menu I got absolutely no error message shown, even worse Fiji was saying that it had excecuted the macro but the window didn't stay on top of the other windows as expected.
I only received an error message which helped me to solve the issue after launching the macro from the script window, but unfortunately it was after I had sent the bug report.
My best regards,
Philippe

---------------------------------------------------------------------------

Dear all/Johannes,
Some minutes ago I have submitted a Fiji bug (bug 859 <http://fiji.sc/bugzilla/﷒0﷓> ) about the fact that the Always_on_Top.js macro is not working anymore in Fiji as it is still working within the vanilla ImageJ.
In the meantime I have found the solution which is that some of the classes
(ij.* in this case) are not anymore imported by default in Fiji as they should (see http://rsbweb.nih.gov/ij/macros/js/AA_README.txt).
And this "bug" can thus be solved by simply adding the line:
"importPackage(Packages.ij);" before the "IJ.getInstance().setAlwaysOnTop(true);" one.
I don’t really know how or where I should report the solution for this reported bug and apologize if this list isn’t the most appropriate place.
My best regards,
Philippe
Comment 3 Curtis Rueden 2014-07-17 10:21:47 CDT
Actually, I supposed this is a "wontfix" rather than an "invalid".

We decided that the auto-import feature of the scripting languages caused more harm than good, since there are often name clashes. I am updating the ImageJ wiki with a thorough explanation now which will be available soon on the Scripting pages (http://imagej.net/Scripting).

But suffice to say it is always better to explicitly import all your classes (and not entire packages) using e.g.

    importClass(Packages.java.io.File)