Setting : show binary setting tab in setting dialog 83/27983/1
authorheeyoung <heeyoung1008.hwang@samsung.com>
Wed, 24 Sep 2014 02:34:50 +0000 (11:34 +0900)
committerheeyoung <heeyoung1008.hwang@samsung.com>
Wed, 24 Sep 2014 02:34:50 +0000 (11:34 +0900)
Change-Id: I64a53816099cd7794c4a144465d2044e68867967
Signed-off-by: heeyoung <heeyoung1008.hwang@samsung.com>
org.tizen.dynamicanalyzer/src/org/tizen/dynamicanalyzer/ui/toolbar/setting/SettingDialog.java

index 2cf4ce8..202c0c8 100644 (file)
@@ -35,7 +35,9 @@ 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.Event;
 import org.eclipse.swt.widgets.Label;
+import org.eclipse.swt.widgets.Listener;
 import org.eclipse.swt.widgets.Shell;
 import org.tizen.dynamicanalyzer.communicator.DACommunicator;
 import org.tizen.dynamicanalyzer.nl.AnalyzerLabels;
@@ -48,6 +50,7 @@ import org.tizen.dynamicanalyzer.widgets.button.DACustomButton;
 import org.tizen.dynamicanalyzer.widgets.button.DACustomButtonClickEventListener;
 import org.tizen.dynamicanalyzer.widgets.da.base.DAButton;
 import org.tizen.dynamicanalyzer.widgets.da.base.DAMessageBox;
+import org.tizen.dynamicanalyzer.widgets.da.view.DABaseComposite;
 import org.tizen.dynamicanalyzer.widgets.da.view.DATabComposite;
 
 public class SettingDialog extends DAMessageBox {
@@ -205,9 +208,9 @@ public class SettingDialog extends DAMessageBox {
                                tabView.getContentComposite(), SWT.NONE);
                tabView.addView(settingPage, false);
 
-//             DABaseComposite binarySettings = new SettingDialogBinarySettingsPage(
-//                             tabView.getContentComposite(), SWT.NONE);
-//             tabView.addView(binarySettings, false);
+               DABaseComposite binarySettings = new SettingDialogBinarySettingsPage(
+                               tabView.getContentComposite(), SWT.NONE);
+               tabView.addView(binarySettings, false);
                
                // button composite
                buttonContentsComp = new Composite(shell, SWT.NONE);
@@ -233,33 +236,33 @@ public class SettingDialog extends DAMessageBox {
                        }
                });
        
-//             binarySettings.addListener(SWT.Show, new Listener() {
-//
-//                     @Override
-//                     public void handleEvent(Event event) {
-//                             FormData data = (FormData) applyButton.getLayoutData();
-//                             data.width = 0;
-//
+               binarySettings.addListener(SWT.Show, new Listener() {
+
+                       @Override
+                       public void handleEvent(Event event) {
+                               FormData data = (FormData) applyButton.getLayoutData();
+                               data.width = 0;
+
 //                             data = (FormData) revertButton.getLayoutData();
 //                             data.width = 0;
-//
-//                             buttonContentsComp.layout();
-//                     }
-//             });
-//
-//             binarySettings.addListener(SWT.Hide, new Listener() {
-//
-//                     @Override
-//                     public void handleEvent(Event event) {
-//                             FormData data = (FormData) applyButton.getLayoutData();
-//                             data.width = 100;
-//
+
+                               buttonContentsComp.layout();
+                       }
+               });
+
+               binarySettings.addListener(SWT.Hide, new Listener() {
+
+                       @Override
+                       public void handleEvent(Event event) {
+                               FormData data = (FormData) applyButton.getLayoutData();
+                               data.width = 100;
+
 //                             data = (FormData) revertButton.getLayoutData();
 //                             data.width = 100;
-//
-//                             buttonContentsComp.layout();
-//                     }
-//             });
+
+                               buttonContentsComp.layout();
+                       }
+               });
 
                
                closeButton = new DAButton(buttonContentsComp, SWT.NONE);