From: jihye424.kim Date: Wed, 29 Apr 2015 08:05:24 +0000 (+0900) Subject: Refactoring: Remove warning X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=769004f7d897856788969eebf83e16e37a277131;p=sdk%2Femulator%2Femulator-manager.git Refactoring: Remove warning - Delete not used import sentence - Delete not used variable - Modify warning function (OCIList.java) Change-Id: Ibb4d7cbde08676a47a4705bd25e0dd0ba3f5a139 Signed-off-by: jihye424.kim --- diff --git a/common-project/src/org/tizen/emulator/manager/EmulatorManager.java b/common-project/src/org/tizen/emulator/manager/EmulatorManager.java index e584cc0..3240853 100755 --- a/common-project/src/org/tizen/emulator/manager/EmulatorManager.java +++ b/common-project/src/org/tizen/emulator/manager/EmulatorManager.java @@ -44,7 +44,6 @@ import org.tizen.emulator.manager.console.Action; import org.tizen.emulator.manager.console.CommandLineParser; import org.tizen.emulator.manager.logging.EMLogger; import org.tizen.emulator.manager.platform.PlatformList; -import org.tizen.emulator.manager.plugin.EMPluginLoader; import org.tizen.emulator.manager.resources.FilePathResources; import org.tizen.emulator.manager.resources.StringResources; import org.tizen.emulator.manager.tool.About; diff --git a/common-project/src/org/tizen/emulator/manager/console/ActionList.java b/common-project/src/org/tizen/emulator/manager/console/ActionList.java index 4ba4887..cc3958c 100644 --- a/common-project/src/org/tizen/emulator/manager/console/ActionList.java +++ b/common-project/src/org/tizen/emulator/manager/console/ActionList.java @@ -31,7 +31,6 @@ package org.tizen.emulator.manager.console; import java.util.List; import java.util.ArrayList; -import org.tizen.emulator.manager.EmulatorManager; import org.tizen.emulator.manager.resources.FilePathResources; import org.tizen.emulator.manager.resources.StringResources; import org.tizen.emulator.manager.tool.CheckVirtualization; diff --git a/common-project/src/org/tizen/emulator/manager/console/ConsoleProcessor.java b/common-project/src/org/tizen/emulator/manager/console/ConsoleProcessor.java index 41d62af..0f77164 100644 --- a/common-project/src/org/tizen/emulator/manager/console/ConsoleProcessor.java +++ b/common-project/src/org/tizen/emulator/manager/console/ConsoleProcessor.java @@ -39,9 +39,6 @@ import org.tizen.emulator.manager.logging.EMLogger; import org.tizen.emulator.manager.platform.BaseImage; import org.tizen.emulator.manager.platform.Platform; import org.tizen.emulator.manager.platform.PlatformList; -import org.tizen.emulator.manager.plugin.EMPlugin; -import org.tizen.emulator.manager.plugin.ExtensionItem; -import org.tizen.emulator.manager.plugin.PluginStringResources; import org.tizen.emulator.manager.resources.FilePathResources; import org.tizen.emulator.manager.resources.StringResources; import org.tizen.emulator.manager.tool.About; diff --git a/common-project/src/org/tizen/emulator/manager/platform/BaseImage.java b/common-project/src/org/tizen/emulator/manager/platform/BaseImage.java index 35d4e0b..b276dba 100644 --- a/common-project/src/org/tizen/emulator/manager/platform/BaseImage.java +++ b/common-project/src/org/tizen/emulator/manager/platform/BaseImage.java @@ -47,7 +47,6 @@ import org.tizen.emulator.manager.resources.FilePathResources; import org.tizen.emulator.manager.resources.StringResources; import org.tizen.emulator.manager.vms.EmulatorVMList; import org.tizen.emulator.manager.vms.VMProperty; -import org.tizen.emulator.manager.vms.xml.device.DeviceItemList; import org.tizen.emulator.manager.vms.xml.template.ItemList; public class BaseImage { diff --git a/common-project/src/org/tizen/emulator/manager/ui/VMsMainView.java b/common-project/src/org/tizen/emulator/manager/ui/VMsMainView.java index 8575027..494ce1c 100644 --- a/common-project/src/org/tizen/emulator/manager/ui/VMsMainView.java +++ b/common-project/src/org/tizen/emulator/manager/ui/VMsMainView.java @@ -37,7 +37,6 @@ import org.eclipse.swt.layout.FormData; import org.eclipse.swt.layout.FormLayout; import org.eclipse.swt.widgets.Composite; import org.eclipse.swt.widgets.Display; -import org.tizen.emulator.manager.EmulatorManager; import org.tizen.emulator.manager.logging.EMLogger; import org.tizen.emulator.manager.platform.BaseImage; import org.tizen.emulator.manager.platform.Platform; diff --git a/common-project/src/org/tizen/emulator/manager/ui/detail/PInfoViewPage.java b/common-project/src/org/tizen/emulator/manager/ui/detail/PInfoViewPage.java index e2a50ab..1cbc640 100644 --- a/common-project/src/org/tizen/emulator/manager/ui/detail/PInfoViewPage.java +++ b/common-project/src/org/tizen/emulator/manager/ui/detail/PInfoViewPage.java @@ -57,7 +57,6 @@ import org.tizen.emulator.manager.ui.detail.item.IItemListFactory; import org.tizen.emulator.manager.ui.widgets.ImageButton; import org.tizen.emulator.manager.vms.VMProperty; import org.tizen.emulator.manager.vms.VMPropertyValue; -import org.tizen.emulator.manager.vms.xml.device.DeviceItemList; import org.tizen.emulator.manager.vms.xml.template.ItemList; public class PInfoViewPage extends DetailViewPage { diff --git a/common-project/src/org/tizen/emulator/manager/ui/detail/PModifyViewPage.java b/common-project/src/org/tizen/emulator/manager/ui/detail/PModifyViewPage.java index ef22de1..cf098d4 100644 --- a/common-project/src/org/tizen/emulator/manager/ui/detail/PModifyViewPage.java +++ b/common-project/src/org/tizen/emulator/manager/ui/detail/PModifyViewPage.java @@ -61,7 +61,6 @@ import org.tizen.emulator.manager.ui.dialog.MessageDialog; import org.tizen.emulator.manager.ui.widgets.ImageButton; import org.tizen.emulator.manager.vms.VMProperty; import org.tizen.emulator.manager.vms.VMPropertyValue; -import org.tizen.emulator.manager.vms.xml.device.DeviceItemList; import org.tizen.emulator.manager.vms.xml.template.ItemList; public class PModifyViewPage extends DetailViewPage diff --git a/common-project/src/org/tizen/emulator/manager/ui/detail/item/CommonItemListFactory.java b/common-project/src/org/tizen/emulator/manager/ui/detail/item/CommonItemListFactory.java index 406f192..905449d 100644 --- a/common-project/src/org/tizen/emulator/manager/ui/detail/item/CommonItemListFactory.java +++ b/common-project/src/org/tizen/emulator/manager/ui/detail/item/CommonItemListFactory.java @@ -33,7 +33,6 @@ package org.tizen.emulator.manager.ui.detail.item; import java.util.ArrayList; -import java.util.Collections; import java.util.HashSet; import java.util.List; import java.util.Set; @@ -76,6 +75,7 @@ public abstract class CommonItemListFactory implements IItemListFactory{ public void makePropertyItemList(List list, PropertyList propertyList, String profile, boolean isStandard) { if (propertyList != null) { + @SuppressWarnings("unchecked") List itemList = (List)list; List propertyItemList = propertyList.getItem(); LineLabelViewItem currentLineLabel = null; // Top categorizing item @@ -122,6 +122,7 @@ public abstract class CommonItemListFactory implements IItemListFactory{ public void makeDeviceItemList(List list, DeviceList deviceList) { if (deviceList != null) { + @SuppressWarnings("unchecked") List itemList = (List)list; List deviceItemList = deviceList.getItem(); LineLabelViewItem currentLineLabel = null; // Top categorizing item diff --git a/common-project/src/org/tizen/emulator/manager/ui/detail/item/DetailViewItem.java b/common-project/src/org/tizen/emulator/manager/ui/detail/item/DetailViewItem.java index ea46757..8be3483 100644 --- a/common-project/src/org/tizen/emulator/manager/ui/detail/item/DetailViewItem.java +++ b/common-project/src/org/tizen/emulator/manager/ui/detail/item/DetailViewItem.java @@ -46,7 +46,6 @@ import org.eclipse.swt.layout.FormData; import org.eclipse.swt.layout.FormLayout; import org.eclipse.swt.widgets.Canvas; import org.eclipse.swt.widgets.Composite; -import org.eclipse.swt.widgets.Label; import org.tizen.emulator.manager.resources.ColorResources; import org.tizen.emulator.manager.resources.FontResources; import org.tizen.emulator.manager.resources.ImageResources; diff --git a/common-project/src/org/tizen/emulator/manager/ui/detail/item/property/BaseImageViewItem.java b/common-project/src/org/tizen/emulator/manager/ui/detail/item/property/BaseImageViewItem.java index bed13d4..c372384 100644 --- a/common-project/src/org/tizen/emulator/manager/ui/detail/item/property/BaseImageViewItem.java +++ b/common-project/src/org/tizen/emulator/manager/ui/detail/item/property/BaseImageViewItem.java @@ -44,7 +44,6 @@ import org.tizen.emulator.manager.resources.ImageResources; import org.tizen.emulator.manager.resources.PatchImageResources; import org.tizen.emulator.manager.resources.StringResources; import org.tizen.emulator.manager.ui.MainDialog; -import org.tizen.emulator.manager.ui.VMsMainView; import org.tizen.emulator.manager.ui.detail.item.LineLabelViewItem; import org.tizen.emulator.manager.ui.detail.item.template.FileViewItem; import org.tizen.emulator.manager.ui.dialog.MessageDialog; diff --git a/common-project/src/org/tizen/emulator/manager/ui/detail/item/property/MaxTouchViewItem.java b/common-project/src/org/tizen/emulator/manager/ui/detail/item/property/MaxTouchViewItem.java index 1f7db54..4ff67cb 100644 --- a/common-project/src/org/tizen/emulator/manager/ui/detail/item/property/MaxTouchViewItem.java +++ b/common-project/src/org/tizen/emulator/manager/ui/detail/item/property/MaxTouchViewItem.java @@ -31,14 +31,9 @@ package org.tizen.emulator.manager.ui.detail.item.property; -import org.eclipse.swt.SWT; -import org.eclipse.swt.layout.FormAttachment; -import org.eclipse.swt.layout.FormData; import org.tizen.emulator.manager.logging.EMLogger; -import org.tizen.emulator.manager.resources.PatchImageResources; import org.tizen.emulator.manager.ui.detail.item.LineLabelViewItem; import org.tizen.emulator.manager.ui.detail.item.template.TextViewItem; -import org.tizen.emulator.manager.ui.widgets.ImageLabel; import org.tizen.emulator.manager.vms.VMPropertyValue; import org.tizen.emulator.manager.vms.helper.HelperClass; import org.tizen.emulator.manager.vms.xml.template.Item; diff --git a/common-project/src/org/tizen/emulator/manager/ui/detail/item/property/ProcessorViewItem.java b/common-project/src/org/tizen/emulator/manager/ui/detail/item/property/ProcessorViewItem.java index e18a873..da4155d 100644 --- a/common-project/src/org/tizen/emulator/manager/ui/detail/item/property/ProcessorViewItem.java +++ b/common-project/src/org/tizen/emulator/manager/ui/detail/item/property/ProcessorViewItem.java @@ -36,15 +36,11 @@ import java.util.List; import org.eclipse.swt.events.SelectionEvent; import org.eclipse.swt.events.SelectionListener; import org.tizen.emulator.manager.tool.CheckVirtualization; -import org.tizen.emulator.manager.ui.StatusBar; -import org.tizen.emulator.manager.ui.detail.item.AdvancedViewItem; -import org.tizen.emulator.manager.ui.detail.item.CommonItemListFactory; import org.tizen.emulator.manager.ui.detail.item.LineLabelViewItem; import org.tizen.emulator.manager.ui.detail.item.template.ComboViewItem; import org.tizen.emulator.manager.ui.dialog.MessageDialog; import org.tizen.emulator.manager.vms.CPU; import org.tizen.emulator.manager.vms.VMPropertyValue; -import org.tizen.emulator.manager.vms.helper.HelperClass; import org.tizen.emulator.manager.vms.xml.template.Item; import org.tizen.emulator.manager.vms.xml.template.Option; diff --git a/common-project/src/org/tizen/emulator/manager/ui/detail/item/property/VMNameViewItem.java b/common-project/src/org/tizen/emulator/manager/ui/detail/item/property/VMNameViewItem.java index dbe43ea..1277455 100644 --- a/common-project/src/org/tizen/emulator/manager/ui/detail/item/property/VMNameViewItem.java +++ b/common-project/src/org/tizen/emulator/manager/ui/detail/item/property/VMNameViewItem.java @@ -58,8 +58,6 @@ import org.tizen.emulator.manager.vms.xml.template.Item; public class VMNameViewItem extends TextViewItem{ - private boolean isStandard; - public VMNameViewItem(Item template, LineLabelViewItem lineLabelViewItem) { super(template, lineLabelViewItem); } @@ -159,8 +157,6 @@ public class VMNameViewItem extends TextViewItem{ @Override public boolean settingModifyItem(VMPropertyValue value) { newValue = oldValue = value.vmsName; - isStandard = value.isStandard; - if (isCreateMode()) { text.setText(getDefaultVMName(value)); text.selectAll(); diff --git a/common-project/src/org/tizen/emulator/manager/ui/detail/item/template/CheckLabelViewItem.java b/common-project/src/org/tizen/emulator/manager/ui/detail/item/template/CheckLabelViewItem.java index 16b16d3..65a37b5 100644 --- a/common-project/src/org/tizen/emulator/manager/ui/detail/item/template/CheckLabelViewItem.java +++ b/common-project/src/org/tizen/emulator/manager/ui/detail/item/template/CheckLabelViewItem.java @@ -37,8 +37,6 @@ import java.util.List; import org.eclipse.swt.SWT; import org.eclipse.swt.events.SelectionEvent; import org.eclipse.swt.events.SelectionListener; -import org.eclipse.swt.layout.FormAttachment; -import org.eclipse.swt.layout.FormData; import org.tizen.emulator.manager.resources.ImageResources; import org.tizen.emulator.manager.ui.detail.item.ItemType; import org.tizen.emulator.manager.ui.detail.item.LineLabelViewItem; diff --git a/common-project/src/org/tizen/emulator/manager/ui/detail/item/template/ComboSubViewItem.java b/common-project/src/org/tizen/emulator/manager/ui/detail/item/template/ComboSubViewItem.java index 51de136..8ba7129 100644 --- a/common-project/src/org/tizen/emulator/manager/ui/detail/item/template/ComboSubViewItem.java +++ b/common-project/src/org/tizen/emulator/manager/ui/detail/item/template/ComboSubViewItem.java @@ -47,7 +47,6 @@ import org.tizen.emulator.manager.ui.detail.item.OptionType; import org.tizen.emulator.manager.ui.widgets.ImageCombo; import org.tizen.emulator.manager.ui.widgets.WSTATE; import org.tizen.emulator.manager.vms.VMPropertyValue; -import org.tizen.emulator.manager.vms.xml.device.ComboItemType; import org.tizen.emulator.manager.vms.xml.template.Item; import org.tizen.emulator.manager.vms.xml.template.Option; diff --git a/common-project/src/org/tizen/emulator/manager/ui/detail/item/template/ComboViewItem.java b/common-project/src/org/tizen/emulator/manager/ui/detail/item/template/ComboViewItem.java index 5762f75..d1e2d63 100644 --- a/common-project/src/org/tizen/emulator/manager/ui/detail/item/template/ComboViewItem.java +++ b/common-project/src/org/tizen/emulator/manager/ui/detail/item/template/ComboViewItem.java @@ -41,7 +41,6 @@ import org.eclipse.swt.graphics.Image; import org.eclipse.swt.layout.FormAttachment; import org.eclipse.swt.layout.FormData; import org.eclipse.swt.layout.FormLayout; -import org.eclipse.swt.widgets.Text; import org.tizen.emulator.manager.resources.ImageResources; import org.tizen.emulator.manager.resources.PatchImageResources; import org.tizen.emulator.manager.ui.detail.item.AdvancedViewItem; @@ -51,7 +50,6 @@ import org.tizen.emulator.manager.ui.widgets.ImageCombo; import org.tizen.emulator.manager.ui.widgets.ImageLabel; import org.tizen.emulator.manager.ui.widgets.WSTATE; import org.tizen.emulator.manager.vms.VMPropertyValue; -import org.tizen.emulator.manager.vms.xml.device.ComboItemType; import org.tizen.emulator.manager.vms.xml.template.Item; import org.tizen.emulator.manager.vms.xml.template.Option; diff --git a/common-project/src/org/tizen/emulator/manager/ui/detail/item/template/FileViewItem.java b/common-project/src/org/tizen/emulator/manager/ui/detail/item/template/FileViewItem.java index 1430eaa..75535ee 100644 --- a/common-project/src/org/tizen/emulator/manager/ui/detail/item/template/FileViewItem.java +++ b/common-project/src/org/tizen/emulator/manager/ui/detail/item/template/FileViewItem.java @@ -58,7 +58,6 @@ public class FileViewItem extends AdvancedViewItem { protected String name; - private String oldValue; private String newValue; // for Info view diff --git a/common-project/src/org/tizen/emulator/manager/ui/detail/item/template/LabelViewItem.java b/common-project/src/org/tizen/emulator/manager/ui/detail/item/template/LabelViewItem.java index 3c2efa4..210e4a2 100644 --- a/common-project/src/org/tizen/emulator/manager/ui/detail/item/template/LabelViewItem.java +++ b/common-project/src/org/tizen/emulator/manager/ui/detail/item/template/LabelViewItem.java @@ -64,7 +64,6 @@ public class LabelViewItem extends AdvancedViewItem{ if (count == 0) { count = 1; } - this.isDeviceItem = isDeviceItem; this.template = template; parseOption(template.getOption()); diff --git a/common-project/src/org/tizen/emulator/manager/ui/detail/item/template/OnOffViewItem.java b/common-project/src/org/tizen/emulator/manager/ui/detail/item/template/OnOffViewItem.java index edc8d7a..2d531a7 100644 --- a/common-project/src/org/tizen/emulator/manager/ui/detail/item/template/OnOffViewItem.java +++ b/common-project/src/org/tizen/emulator/manager/ui/detail/item/template/OnOffViewItem.java @@ -53,7 +53,6 @@ public class OnOffViewItem extends AdvancedViewItem{ protected String name; - private boolean oldValue; private boolean newValue; public static String VALUE_ON = "on"; diff --git a/common-project/src/org/tizen/emulator/manager/ui/detail/item/template/SpinnerSubViewItem.java b/common-project/src/org/tizen/emulator/manager/ui/detail/item/template/SpinnerSubViewItem.java index 405b37f..49a1d90 100644 --- a/common-project/src/org/tizen/emulator/manager/ui/detail/item/template/SpinnerSubViewItem.java +++ b/common-project/src/org/tizen/emulator/manager/ui/detail/item/template/SpinnerSubViewItem.java @@ -41,7 +41,6 @@ import org.eclipse.swt.layout.FormAttachment; import org.eclipse.swt.layout.FormData; import org.eclipse.swt.layout.FormLayout; import org.eclipse.swt.widgets.Composite; -import org.eclipse.swt.widgets.Spinner; import org.tizen.emulator.manager.resources.ColorResources; import org.tizen.emulator.manager.resources.FontResources; import org.tizen.emulator.manager.resources.PatchImageResources; diff --git a/common-project/src/org/tizen/emulator/manager/ui/dialog/MessageDialog.java b/common-project/src/org/tizen/emulator/manager/ui/dialog/MessageDialog.java index fede2a1..784c441 100644 --- a/common-project/src/org/tizen/emulator/manager/ui/dialog/MessageDialog.java +++ b/common-project/src/org/tizen/emulator/manager/ui/dialog/MessageDialog.java @@ -31,8 +31,6 @@ package org.tizen.emulator.manager.ui.dialog; import org.eclipse.swt.SWT; -import org.eclipse.swt.events.DisposeEvent; -import org.eclipse.swt.events.DisposeListener; import org.eclipse.swt.events.SelectionEvent; import org.eclipse.swt.events.SelectionListener; import org.eclipse.swt.graphics.Point; @@ -41,10 +39,8 @@ import org.eclipse.swt.layout.GridLayout; import org.eclipse.swt.widgets.Button; import org.eclipse.swt.widgets.Composite; import org.eclipse.swt.widgets.Display; -import org.eclipse.swt.widgets.Event; import org.eclipse.swt.widgets.Label; import org.eclipse.swt.widgets.Link; -import org.eclipse.swt.widgets.Listener; import org.eclipse.swt.widgets.Shell; import org.tizen.emulator.manager.resources.StringResources; import org.tizen.emulator.manager.ui.MainDialog; diff --git a/common-project/src/org/tizen/emulator/manager/ui/widgets/CustomSpinner.java b/common-project/src/org/tizen/emulator/manager/ui/widgets/CustomSpinner.java index fb14bd9..b5ebe90 100644 --- a/common-project/src/org/tizen/emulator/manager/ui/widgets/CustomSpinner.java +++ b/common-project/src/org/tizen/emulator/manager/ui/widgets/CustomSpinner.java @@ -47,7 +47,6 @@ import org.eclipse.swt.layout.GridData; import org.eclipse.swt.layout.GridLayout; import org.eclipse.swt.widgets.Canvas; import org.eclipse.swt.widgets.Composite; -import org.eclipse.swt.widgets.Control; import org.eclipse.swt.widgets.Display; import org.eclipse.swt.widgets.Event; import org.eclipse.swt.widgets.Listener; @@ -56,9 +55,6 @@ import org.eclipse.swt.widgets.TypedListener; import org.tizen.emulator.manager.EmulatorManager; import org.tizen.emulator.manager.logging.EMLogger; import org.tizen.emulator.manager.resources.ImageResources; -import org.tizen.emulator.manager.resources.StringResources; -import org.tizen.emulator.manager.ui.VMsMainView; -import org.tizen.emulator.manager.ui.dialog.MessageDialog; public class CustomSpinner extends Composite { @@ -69,7 +65,7 @@ public class CustomSpinner extends Composite { private int selection; private int min; private int max; - private int digits; + //private int digits; private int increment; private int pageIncrement; @@ -145,7 +141,7 @@ public class CustomSpinner extends Composite { this.selection = selection; this.min = min; this.max = max; - this.digits = digits; + //this.digits = digits; this.increment = increment; this.pageIncrement = pageIncrement; } @@ -390,7 +386,7 @@ public class CustomSpinner extends Composite { public void paintControl(PaintEvent e) { // TODO Auto-generated method stub Canvas canvas = (Canvas) e.widget; - int w = canvas.getBounds().width; + //int w = canvas.getBounds().width; int h = canvas.getBounds().height; e.gc.drawImage(arrowUpImage, 0, h @@ -401,9 +397,9 @@ public class CustomSpinner extends Composite { arrowDown.addPaintListener(new PaintListener() { @Override public void paintControl(PaintEvent e) { - Canvas canvas = (Canvas) e.widget; - int w = canvas.getBounds().width; - int h = canvas.getBounds().height; + //Canvas canvas = (Canvas) e.widget; + //int w = canvas.getBounds().width; + //int h = canvas.getBounds().height; e.gc.drawImage(arrowDownImage, 0, 0); diff --git a/common-project/src/org/tizen/emulator/manager/ui/widgets/VMButton.java b/common-project/src/org/tizen/emulator/manager/ui/widgets/VMButton.java index 5ee99ee..1ed8f04 100644 --- a/common-project/src/org/tizen/emulator/manager/ui/widgets/VMButton.java +++ b/common-project/src/org/tizen/emulator/manager/ui/widgets/VMButton.java @@ -49,8 +49,6 @@ import org.eclipse.swt.widgets.Canvas; import org.eclipse.swt.widgets.Composite; import org.eclipse.swt.widgets.Event; import org.eclipse.swt.widgets.Listener; -import org.eclipse.swt.widgets.Menu; -import org.eclipse.swt.widgets.MenuItem; import org.tizen.emulator.manager.logging.EMLogger; import org.tizen.emulator.manager.platform.BaseImage; import org.tizen.emulator.manager.plugin.ExtensionItem; diff --git a/common-project/src/org/tizen/emulator/manager/vms/Creator.java b/common-project/src/org/tizen/emulator/manager/vms/Creator.java index 1ba0f17..b12b3bf 100644 --- a/common-project/src/org/tizen/emulator/manager/vms/Creator.java +++ b/common-project/src/org/tizen/emulator/manager/vms/Creator.java @@ -44,7 +44,6 @@ import org.tizen.emulator.manager.vms.helper.VMCreatorException; import org.tizen.emulator.manager.vms.helper.VMWorkerException; import org.tizen.emulator.manager.vms.helper.WorkerLock; import org.tizen.emulator.manager.vms.xml.EmulatorConfiguration; -import org.tizen.emulator.manager.vms.xml.ExtendedOptionType; import org.tizen.emulator.manager.vms.xml.ObjectFactory; public class Creator { diff --git a/common-project/src/org/tizen/emulator/manager/vms/OCIList.java b/common-project/src/org/tizen/emulator/manager/vms/OCIList.java index 7abcf54..bbe0c45 100644 --- a/common-project/src/org/tizen/emulator/manager/vms/OCIList.java +++ b/common-project/src/org/tizen/emulator/manager/vms/OCIList.java @@ -128,34 +128,41 @@ public class OCIList { public int getOCICount() { int i = 0; if (OCIDeviceList != null) { + i = OCIDeviceList.size(); + /* for (OCI OCI : OCIDeviceList) { // selected OCI divece add i++; } + */ } - return i; } public int getSelectedOCICount() { int i = 0; if (OCISelectDeviceList != null) { + i = OCISelectDeviceList.size(); + /* for (OCI OCI : OCISelectDeviceList) { // selected OCI divece add System.out.println("OCI " + OCISelectDeviceList); i++; } + */ } return i; } public ArrayList findOCIList() { + /* if (OCIDeviceList != null) { for (OCI OCI : OCIDeviceList) { // selected OCI divece add } } + */ return OCISelectDeviceList; } diff --git a/common-project/src/org/tizen/emulator/manager/vms/VMProperty.java b/common-project/src/org/tizen/emulator/manager/vms/VMProperty.java index 90b8e92..7ce7c6e 100644 --- a/common-project/src/org/tizen/emulator/manager/vms/VMProperty.java +++ b/common-project/src/org/tizen/emulator/manager/vms/VMProperty.java @@ -32,7 +32,6 @@ package org.tizen.emulator.manager.vms; import java.io.File; -import org.tizen.emulator.manager.platform.PlatformList; import org.tizen.emulator.manager.plugin.EMPlugin; import org.tizen.emulator.manager.plugin.ExtensionItem; import org.tizen.emulator.manager.plugin.PluginStringResources; diff --git a/common-project/src/org/tizen/emulator/manager/vms/VMPropertyValue.java b/common-project/src/org/tizen/emulator/manager/vms/VMPropertyValue.java index 4090f11..d20c6f3 100644 --- a/common-project/src/org/tizen/emulator/manager/vms/VMPropertyValue.java +++ b/common-project/src/org/tizen/emulator/manager/vms/VMPropertyValue.java @@ -31,7 +31,6 @@ package org.tizen.emulator.manager.vms; import java.io.File; -import java.io.IOException; import java.util.ArrayList; import java.util.List; diff --git a/common-project/src/org/tizen/emulator/manager/vms/helper/HelperClass.java b/common-project/src/org/tizen/emulator/manager/vms/helper/HelperClass.java index a2fa68d..f65293a 100644 --- a/common-project/src/org/tizen/emulator/manager/vms/helper/HelperClass.java +++ b/common-project/src/org/tizen/emulator/manager/vms/helper/HelperClass.java @@ -34,26 +34,15 @@ import java.io.BufferedInputStream; import java.io.BufferedOutputStream; import java.io.File; import java.io.FileInputStream; -import java.io.FileNotFoundException; import java.io.FileOutputStream; import java.io.IOException; -import java.net.ConnectException; -import java.net.Inet4Address; import java.net.Inet6Address; import java.net.InetAddress; -import java.net.InetSocketAddress; -import java.net.InterfaceAddress; import java.net.NetworkInterface; -import java.net.ServerSocket; -import java.net.SocketAddress; import java.net.SocketException; -import java.nio.channels.SocketChannel; -import java.nio.channels.UnresolvedAddressException; -import java.util.ArrayList; import java.util.Arrays; import java.util.Enumeration; import java.util.List; -import java.util.regex.Pattern; import org.tizen.emulator.manager.EmulatorManager; import org.tizen.emulator.manager.logging.EMLogger; diff --git a/common-project/src/org/tizen/emulator/manager/vms/helper/ProcessOutputReader.java b/common-project/src/org/tizen/emulator/manager/vms/helper/ProcessOutputReader.java index 8ef4ec1..68681c7 100644 --- a/common-project/src/org/tizen/emulator/manager/vms/helper/ProcessOutputReader.java +++ b/common-project/src/org/tizen/emulator/manager/vms/helper/ProcessOutputReader.java @@ -41,7 +41,7 @@ import org.tizen.emulator.manager.logging.EMLogger; public class ProcessOutputReader extends Thread { private BufferedReader reader; - private String processName; + //private String processName; private List msgList = new ArrayList(); private boolean readFinished; @@ -51,7 +51,7 @@ public class ProcessOutputReader extends Thread { public ProcessOutputReader(BufferedReader reader, String processName) { this.reader = reader; - this.processName = processName; + //this.processName = processName; this.setDaemon(true); } diff --git a/common-project/src/org/tizen/emulator/manager/vms/helper/VMSocket.java b/common-project/src/org/tizen/emulator/manager/vms/helper/VMSocket.java index add7e4c..2419f79 100644 --- a/common-project/src/org/tizen/emulator/manager/vms/helper/VMSocket.java +++ b/common-project/src/org/tizen/emulator/manager/vms/helper/VMSocket.java @@ -35,7 +35,6 @@ import java.io.IOException; import java.net.InetSocketAddress; import java.nio.ByteBuffer; import java.nio.channels.SelectionKey; -import java.nio.channels.Selector; import java.nio.channels.SocketChannel; import java.util.ArrayList;