mirror of
https://github.com/dmolony/DiskBrowser.git
synced 2024-06-20 05:29:35 +00:00
removed com.apple.eawt references
This commit is contained in:
parent
527497d848
commit
058da1da91
|
@ -33,8 +33,8 @@ class DiskLayoutPanel extends JPanel
|
|||
private static final int SIZE = 15; // basic unit of a display block
|
||||
// private static final String PREFS_RETINA = "retina";
|
||||
|
||||
private final Preferences prefs;
|
||||
private final MenuHandler mh;
|
||||
// private final Preferences prefs;
|
||||
// private final MenuHandler mh;
|
||||
|
||||
private final DiskLayoutImage diskLayoutImage;
|
||||
private final ScrollRuler verticalRuler;
|
||||
|
@ -47,8 +47,8 @@ class DiskLayoutPanel extends JPanel
|
|||
{
|
||||
super (new BorderLayout ());
|
||||
|
||||
this.prefs = prefs;
|
||||
this.mh = mh;
|
||||
// this.prefs = prefs;
|
||||
// this.mh = mh;
|
||||
|
||||
diskLayoutImage = new DiskLayoutImage ();
|
||||
verticalRuler = new ScrollRuler (diskLayoutImage, ScrollRuler.VERTICAL);
|
||||
|
|
|
@ -11,8 +11,6 @@ import javax.swing.*;
|
|||
|
||||
import com.bytezone.common.EnvironmentAction;
|
||||
import com.bytezone.common.FontAction;
|
||||
import com.bytezone.common.OSXAdapter;
|
||||
import com.bytezone.common.Platform;
|
||||
import com.bytezone.common.QuitAction.QuitListener;
|
||||
import com.bytezone.diskbrowser.applefile.HiResImage;
|
||||
import com.bytezone.diskbrowser.applefile.Palette;
|
||||
|
@ -152,26 +150,26 @@ public class MenuHandler
|
|||
|
||||
void addHelpMenuAction (Action action, String functionName)
|
||||
{
|
||||
if (Platform.MAC)
|
||||
{
|
||||
try
|
||||
{
|
||||
if (functionName.equals ("about"))
|
||||
OSXAdapter.setAboutHandler (action,
|
||||
action.getClass ().getDeclaredMethod (functionName, (Class[]) null));
|
||||
else if (functionName.equals ("prefs"))
|
||||
OSXAdapter.setPreferencesHandler (action,
|
||||
action.getClass ().getDeclaredMethod (functionName, (Class[]) null));
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
e.printStackTrace ();
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
helpMenu.add (new JMenuItem (action));
|
||||
}
|
||||
// if (Platform.MAC)
|
||||
// {
|
||||
// try
|
||||
// {
|
||||
// if (functionName.equals ("about"))
|
||||
// OSXAdapter.setAboutHandler (action,
|
||||
// action.getClass ().getDeclaredMethod (functionName, (Class[]) null));
|
||||
// else if (functionName.equals ("prefs"))
|
||||
// OSXAdapter.setPreferencesHandler (action,
|
||||
// action.getClass ().getDeclaredMethod (functionName, (Class[]) null));
|
||||
// }
|
||||
// catch (Exception e)
|
||||
// {
|
||||
// e.printStackTrace ();
|
||||
// }
|
||||
// }
|
||||
// else
|
||||
// {
|
||||
helpMenu.add (new JMenuItem (action));
|
||||
// }
|
||||
}
|
||||
|
||||
private void addLauncherMenu ()
|
||||
|
|
Loading…
Reference in New Issue
Block a user