Commit f1a06ed4 authored by Tobias Pietzsch's avatar Tobias Pietzsch
Browse files

Set "apple.laf.useScreenMenuBar" if indicated by ij.Prefs.setIJMenuBar==true

parent 9fa720fd
......@@ -53,6 +53,9 @@ public class BigDataBrowserPlugIn implements Command
@Override
public void run()
{
if ( ij.Prefs.setIJMenuBar )
System.setProperty( "apple.laf.useScreenMenuBar", "true" );
BufferedImage image = null;
try
{
......
......@@ -26,6 +26,9 @@ public class BigDataViewerPlugIn implements Command
@Override
public void run()
{
if ( ij.Prefs.setIJMenuBar )
System.setProperty( "apple.laf.useScreenMenuBar", "true" );
File file = null;
if ( Prefs.useJFileChooser )
......
......@@ -70,6 +70,8 @@ public class ExportCellVoyagerPlugIn implements Command
@Override
public void run()
{
if ( ij.Prefs.setIJMenuBar )
System.setProperty( "apple.laf.useScreenMenuBar", "true" );
final Parameters params = getParameters( sourcePath );
if ( params == null )
......
......@@ -67,6 +67,9 @@ public class ExportImagePlusPlugIn implements Command
@Override
public void run()
{
if ( ij.Prefs.setIJMenuBar )
System.setProperty( "apple.laf.useScreenMenuBar", "true" );
// get the current image
final ImagePlus imp = WindowManager.getCurrentImage();
......
......@@ -97,6 +97,9 @@ public class ExportSpimFusionPlugIn implements Command
@Override
public void run()
{
if ( ij.Prefs.setIJMenuBar )
System.setProperty( "apple.laf.useScreenMenuBar", "true" );
final Parameters params = getParameters();
// cancelled
......
......@@ -52,6 +52,9 @@ public class ExportSpimSequencePlugIn implements Command
@Override
public void run()
{
if ( ij.Prefs.setIJMenuBar )
System.setProperty( "apple.laf.useScreenMenuBar", "true" );
final Parameters params = getParameters();
// cancelled
......
......@@ -64,6 +64,9 @@ public class ImportPlugIn implements Command
@Override
public void run()
{
if ( ij.Prefs.setIJMenuBar )
System.setProperty( "apple.laf.useScreenMenuBar", "true" );
final GenericDialogPlus gd = new GenericDialogPlus( "Import from BigDataViewer file" );
gd.addFileField( "xml file", xmlFile );
final TextField tfXmlFile = (TextField) gd.getStringFields().lastElement();
......
......@@ -59,6 +59,9 @@ public class OpenImagePlusPlugIn implements Command
@Override
public void run()
{
if ( ij.Prefs.setIJMenuBar )
System.setProperty( "apple.laf.useScreenMenuBar", "true" );
// get the current image
final ImagePlus imp = WindowManager.getCurrentImage();
......
......@@ -35,6 +35,9 @@ public class OpenImarisPlugIn implements Command
@Override
public void run()
{
if ( ij.Prefs.setIJMenuBar )
System.setProperty( "apple.laf.useScreenMenuBar", "true" );
File file = null;
if ( Prefs.useJFileChooser )
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment