From: heeyoung Date: Thu, 23 Oct 2014 07:04:56 +0000 (+0900) Subject: Merge remote-tracking branch 'origin/tizen' into mw X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F43%2F29243%2F1;p=sdk%2Ftools%2Fdynamic-analyzer.git Merge remote-tracking branch 'origin/tizen' into mw Conflicts: org.tizen.dynamicanalyzer/src/org/tizen/dynamicanalyzer/ui/toolbar/setting/SettingDialog.java Change-Id: I2041f7249e9c2229e781f9a4369b1dd9bace5d05 Signed-off-by: heeyoung --- 6346e445b32b8fb2259186bf4d81ac50c680e82c diff --cc org.tizen.dynamicanalyzer/src/org/tizen/dynamicanalyzer/ui/toolbar/setting/SettingDialog.java index 1ef5645,07c53c7..dc2528e --- a/org.tizen.dynamicanalyzer/src/org/tizen/dynamicanalyzer/ui/toolbar/setting/SettingDialog.java +++ b/org.tizen.dynamicanalyzer/src/org/tizen/dynamicanalyzer/ui/toolbar/setting/SettingDialog.java @@@ -209,14 -214,13 +214,14 @@@ public class SettingDialog extends DAMe SettingDialogManager.getInstance().setConfigDlg(this); - SettingDialogOptionPage settingPage = new SettingDialogOptionPage( + optionPage = new SettingDialogOptionPage( tabView.getContentComposite(), SWT.NONE); - tabView.addView(settingPage, false); + tabView.addView(optionPage, false); - DABaseComposite binarySettings = new SettingDialogBinarySettingsPage( - tabView.getContentComposite(), SWT.NONE); - tabView.addView(binarySettings, false); +// comment : HIDDEN BINARY SETTING PAGE +// DABaseComposite binarySettings = new SettingDialogBinarySettingsPage( +// tabView.getContentComposite(), SWT.NONE); +// tabView.addView(binarySettings, false); // button composite buttonContentsComp = new Composite(shell, SWT.NONE); @@@ -241,41 -245,51 +246,52 @@@ e.gc.drawLine(0, 1, rect.width-1, 1); } }); - - // comment : HIDDEN BINARY SETTING PAGE + + optionPage.addListener(SWT.Hide, new Listener() { + + @Override + public void handleEvent(Event event) { + Logger.debug("options page hide"); + if (!optionPage.isValidInputValue()) { + doWarningMessage(); + optionPage.revertInputValue(); + } + } + }); + - // binarySettings tab is selected, the close button will be shown. - // ok and cancel button is hidden - binarySettings.addListener(SWT.Show, new Listener() { - - @Override - public void handleEvent(Event event) { - Logger.debug("binary settings show"); - cancelButton.setText(WidgetLabels.CLOSE); - FormData data = (FormData) okButton.getLayoutData(); - data.width = 0; - - buttonContentsComp.layout(); - } - }); - - binarySettings.addListener(SWT.Hide, new Listener() { - - @Override - public void handleEvent(Event event) { - Logger.debug("binary settings hide"); - cancelButton.setText(WidgetLabels.CANCEL); - FormData data = (FormData) okButton.getLayoutData(); - data.width = 100; - - buttonContentsComp.layout(); - } - }); ++//comment : HIDDEN BINARY SETTING PAGE ++// // binarySettings tab is selected, the close button will be shown. ++// // ok and cancel button is hidden +// binarySettings.addListener(SWT.Show, new Listener() { +// +// @Override +// public void handleEvent(Event event) { - // FormData data = (FormData) applyButton.getLayoutData(); - // data.width = 0; - // - // data = (FormData) revertButton.getLayoutData(); ++// Logger.debug("binary settings show"); ++// cancelButton.setText(WidgetLabels.CLOSE); ++// FormData data = (FormData) okButton.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; - // - // data = (FormData) revertButton.getLayoutData(); ++// Logger.debug("binary settings hide"); ++// cancelButton.setText(WidgetLabels.CANCEL); ++// FormData data = (FormData) okButton.getLayoutData(); +// data.width = 100; +// +// buttonContentsComp.layout(); +// } +// }); - - closeButton = new DAButton(buttonContentsComp, SWT.NONE); - closeButton.addClickListener(closeButtonListener); - closeButton.setText(WidgetLabels.CLOSE); - closeButton.setButtonFont(FontResources.DIALOG_BUTTON_FONT); + cancelButton = new DAButton(buttonContentsComp, SWT.NONE); + cancelButton.addClickListener(cancelButtonListener); + cancelButton.setText(WidgetLabels.CANCEL); + cancelButton.setButtonFont(FontResources.DIALOG_BUTTON_FONT); FormData buttonData = new FormData(); buttonData.right = new FormAttachment(100, -9); buttonData.top = new FormAttachment(0, 11);