From 23b1a4d0544f2435e4e65e3fe16398502863c330 Mon Sep 17 00:00:00 2001 From: "munkyu.im" Date: Sat, 26 Jan 2013 21:18:28 +0900 Subject: [PATCH] emulator-manager: change menu name change SWT to Emulator Manager Signed-off-by: munkyu.im --- src/org/tizen/emulator/manager/EmulatorManager.java | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/src/org/tizen/emulator/manager/EmulatorManager.java b/src/org/tizen/emulator/manager/EmulatorManager.java index aafebbc..ce7f781 100755 --- a/src/org/tizen/emulator/manager/EmulatorManager.java +++ b/src/org/tizen/emulator/manager/EmulatorManager.java @@ -29,7 +29,6 @@ */ package org.tizen.emulator.manager; - import java.io.File; import java.io.IOException; import java.io.RandomAccessFile; @@ -51,6 +50,8 @@ import org.tizen.emulator.manager.ui.MainDialog; import org.tizen.emulator.manager.ui.MessageDialog; import org.tizen.emulator.manager.vms.EmulatorVMs; + + public class EmulatorManager { private static EmulatorManager instance = null; @@ -188,8 +189,16 @@ public class EmulatorManager { } public static void main(String[] args) { - try{ - checkConsoleMode(args); + + if (System.getProperty("os.name").toLowerCase().indexOf("mac") > -1) { + //TODO: event handling of about menu + System.setProperty("apple.laf.useScreenMenuBar", "true"); + System.setProperty("com.apple.mrj.application.apple.menu.about.name", "Emulator Manager"); + } + + try{ + + checkConsoleMode(args); randomAccessFile = new RandomAccessFile(new File(FilePath.getInstance().getBinPath() + File.separator + "." +System.getProperty("user.name"))+ ".lock", @@ -232,6 +241,7 @@ public class EmulatorManager { parseArgs(args); } + instance = new EmulatorManager(isInhoseMode ? ManagerModeType.INHOUSE_MODE : ManagerModeType.PUBLIC_MODE); -- 2.7.4