[Title] Add logging code
authoryongsung1.kim <yongsung1.kim@samsung.com>
Thu, 13 Jun 2013 10:54:08 +0000 (19:54 +0900)
committeryongsung1.kim <yongsung1.kim@samsung.com>
Thu, 13 Jun 2013 10:54:08 +0000 (19:54 +0900)
[Desc.]
[Issue]

Change-Id: Ia93afef6098f12b695c167ec463e23b072626565

InstallManager_java/src/org/tizen/installmanager/core/Options.java
InstallManager_java/src/org/tizen/installmanager/ui/InstallManagerWindow.java
InstallManager_java/src/org/tizen/installmanager/ui/model/ItemLabelProvider.java
InstallManager_java/src/org/tizen/installmanager/ui/page/UninstallingPage.java
os_stubs/linux/installer_stub
package/pkginfo.manifest

index f60129a..8c93200 100644 (file)
@@ -188,7 +188,7 @@ public class Options {
                        } else if(arg.equals("-path")) {
                                if (iter.hasNext()) {
                                        executablePath = iter.next();
-                                       System.out.println("path : " + executablePath);
+                                       Log.log("executable path : " + executablePath);
                                }
                        } else if(arg.equals("-install")) {
                                if (iter.hasNext()) {
index f521995..6046bae 100644 (file)
@@ -236,6 +236,11 @@ public class InstallManagerWindow extends ApplicationWindow {
                controller = new ViewController();
                
                if (controller.init()) {
+                       if (Config.isSupportMultiSDK()) {
+                               Log.log("Multi SDK installation.");
+                       } else {
+                               Log.log("Single SDK installation.");
+                       }
                        return true;
                } else {
                        Log.err("InstallManager init fail.");
index a32f407..1cfb5ca 100644 (file)
@@ -120,8 +120,6 @@ public class ItemLabelProvider extends ColumnLabelProvider {
                        
                        if (item.getInstallState() == InstallState.UPDATE || item.getInstallState() == InstallState.UNINSTALL) {
                                cell.setForeground(Display.getCurrent().getSystemColor(SWT.COLOR_GRAY));
-                       } else {
-                               cell.setForeground(Display.getCurrent().getSystemColor(SWT.COLOR_BLACK));
                        }
                }
        }
index e6b2306..da7cc94 100644 (file)
@@ -37,19 +37,16 @@ import org.eclipse.swt.widgets.Composite;
 import org.eclipse.swt.widgets.Display;
 import org.eclipse.swt.widgets.Label;
 import org.eclipse.swt.widgets.ProgressBar;
-import org.tizen.installmanager.core.Config;
 import org.tizen.installmanager.core.IMFatalException;
 import org.tizen.installmanager.core.InstallManager;
 import org.tizen.installmanager.lib.ErrorController;
 import org.tizen.installmanager.lib.IIMProgressMonitor;
 import org.tizen.installmanager.lib.Log;
 import org.tizen.installmanager.lib.ProgramController;
-import org.tizen.installmanager.lib.Registry;
 import org.tizen.installmanager.pkg.model.PackageSet;
 import org.tizen.installmanager.ui.InstallManagerWindow;
 import org.tizen.installmanager.ui.dialog.MessageBoxDlg;
 import org.tizen.installmanager.ui.dialog.MessageBoxDlg.DialogType;
-import org.tizen.installmanager.ui.page.WelcomePage.RADIO_ACTION;
 import org.tizen.installmanager.pkg.model.Package;
 
 /**
@@ -176,9 +173,8 @@ public class UninstallingPage extends PageTemplate {
         * After check selected package list size, start to uninstall.
         * @param monitor
         */
-       public void uninstallProcess(IIMProgressMonitor monitor) {
-               boolean result = false;
-
+       public void uninstallProcess(IIMProgressMonitor monitor) { boolean result = false;
+               Log.log("****** Uninstall SDK ******");
                PackageSet pkgs = InstallManager.getInstance().getPackageManager().getInstalledPackages();
                List<String> installedList = new ArrayList<String>();
                for (Package pkg : pkgs) {
@@ -188,6 +184,7 @@ public class UninstallingPage extends PageTemplate {
                if (installedList.size() <= 0) {
                        return;
                } else {
+                       Log.log("Uninstalling SDK : " + viewController.getInstalledPath());
                        result = viewController.uninstall(installedList, monitor);
                }
 
index 38c398a..7a79fff 100755 (executable)
@@ -132,8 +132,6 @@ SCRIPT_PATH="${BASH_SOURCE[0]}";
 cd "`dirname "${SCRIPT_PATH}"`" > /dev/null
 SCRIPT_PATH="`pwd`";
 popd  > /dev/null
-echo "script=[${SCRIPT_PATH}]"
-echo "pwd   =[`pwd`]"
 
 cd $OUT_PATH
 ./InstallManager.sh $* -path "$SCRIPT_PATH"
index 3981a70..b08e874 100644 (file)
@@ -1,5 +1,5 @@
 Source: install-manager
-Version: 2.1.19
+Version: 2.1.20
 Maintainer: Shihyun Kim<shihyun.kim@samsung.com>, Yongsung Kim<yongsung1.kim@samsung.com>
 
 Package: install-manager