List View: delete base image combo box from list view
authorjihye424.kim <jihye424.kim@samsung.com>
Thu, 14 May 2015 04:04:27 +0000 (13:04 +0900)
committerJiHye Kim <jihye424.kim@samsung.com>
Thu, 14 May 2015 04:57:24 +0000 (13:57 +0900)
Change-Id: I070eae5f115c587b5131c4a98f58d3adb0efa01b
Signed-off-by: jihye424.kim <jihye424.kim@samsung.com>
common-project/src/org/tizen/emulator/manager/ui/VMsListView.java

index 8d4bbd5..2d4d032 100644 (file)
@@ -47,7 +47,6 @@ import org.tizen.emulator.manager.ui.list.ExtendTreeListView;
 import org.tizen.emulator.manager.ui.list.ItemListVew;
 import org.tizen.emulator.manager.ui.list.TreeListView;
 import org.tizen.emulator.manager.ui.widgets.ImageButton;
-import org.tizen.emulator.manager.ui.widgets.ImageCombo;
 
 public class VMsListView {
        private Composite parent        = null;
@@ -90,7 +89,6 @@ public class VMsListView {
                return mainView;
        }
 
-       private ImageCombo imageCombo   = null;
        private ImageButton itemButton = null;
        private ImageButton treeButton = null;
 
@@ -99,7 +97,6 @@ public class VMsListView {
                mainView.setLayout(new FormLayout());
                mainView.setSize(width, height);
 
-               makeComboButton();
                makeRadioButton();
 
                listView = new Composite(mainView, SWT.NONE);
@@ -110,11 +107,6 @@ public class VMsListView {
                //
 
                FormData data = new FormData();
-               data.left       = new FormAttachment(0, 10);
-               data.top        = new FormAttachment(0, 10);
-               data.width      = COMBO_WIDTH;
-               data.height     = COMBO_HEIGHT;
-               imageCombo.setLayoutData(data);
 
                data = new FormData();
                data.top = new FormAttachment(0, 14);
@@ -128,7 +120,7 @@ public class VMsListView {
 
                data = new FormData();
                data.left       = new FormAttachment(0, 10);
-               data.top        = new FormAttachment(imageCombo, 5);
+               data.top        = new FormAttachment(treeButton, 5);
                data.right      = new FormAttachment(100, 0);
                data.bottom  = new FormAttachment(100, -10);
                listView.setLayoutData(data);
@@ -204,42 +196,12 @@ public class VMsListView {
                stackLayout.topControl = TopListView.getComposite();
        }
 
-       private static int COMBO_WIDTH  = 145;
-       private static int COMBO_HEIGHT = 24;
-       private void makeComboButton() {
-               imageCombo = new ImageCombo(mainView, SWT.NONE);
-               imageCombo.setEnabled(true);
-               imageCombo.setItemHeight(COMBO_HEIGHT);
-               imageCombo.select(0);
-
-               imageCombo.addSelectionListener(new SelectionListener() {
-
-                       @Override
-                       public void widgetSelected(SelectionEvent e) {
-                               int index = imageCombo.getSelectionIndex();
-                               VMsMainView.getInstance().setCurrentProperty(null);
-                               VMsMainView.getInstance().drawVMList(index);
-                       }
-
-                       @Override
-                       public void widgetDefaultSelected(SelectionEvent e) {
-                               int index = imageCombo.getSelectionIndex();
-                               VMsMainView.getInstance().setCurrentProperty(null);
-                               VMsMainView.getInstance().drawVMList(index);
-                       }
-                       
-               });
-       }
-
        public void drawProfile(Profile profile, boolean isRefresh) {
                if (profile.getName().equals(StringResources.TOTAL_PROFILE)) { // TODO
                        if (!isRefresh) {
                                itemButton.setEnabled(false);
                                selectRadioButton(true);
                        }
-                       imageCombo.removeAll();
-                       imageCombo.setEnabled(false);
-                       imageCombo.layout();
                } else {
                        if (!isRefresh) {
                                itemButton.setEnabled(true);
@@ -279,7 +241,6 @@ public class VMsListView {
        public void close() {
                itemButton.dispose();
                treeButton.dispose();
-               imageCombo.dispose();
                imageListView.close();
                treeListView.close();
                listView.dispose();