common: remove the license button in the about dialog
authorHyunJong Park <paulhj.park@samsung.com>
Wed, 9 Mar 2016 05:19:22 +0000 (14:19 +0900)
committerHyunJong Park <paulhj.park@samsung.com>
Wed, 9 Mar 2016 05:23:52 +0000 (14:23 +0900)
Change-Id: I659c03d3d1e9a78060dfd33391fc2e25b11e8d9d
Signed-off-by: HyunJong Park <paulhj.park@samsung.com>
org.tizen.dynamicanalyzer/src/org/tizen/dynamicanalyzer/ui/toolbar/AboutDialog.java

index d608cd2..08bd402 100644 (file)
@@ -60,7 +60,6 @@ import org.tizen.dynamicanalyzer.resources.ImageResources;
 import org.tizen.dynamicanalyzer.shortcut.ShortCutManager;
 import org.tizen.dynamicanalyzer.util.CommonUtil;
 import org.tizen.dynamicanalyzer.util.Logger;
-import org.tizen.dynamicanalyzer.util.WorkbenchUtil;
 import org.tizen.dynamicanalyzer.widgets.button.DACustomButton;
 import org.tizen.dynamicanalyzer.widgets.button.DACustomButtonClickEventListener;
 import org.tizen.dynamicanalyzer.widgets.da.base.DAButton;
@@ -68,7 +67,6 @@ import org.tizen.dynamicanalyzer.widgets.da.base.DAMessageBox;
 
 public class AboutDialog extends DAMessageBox {
        private static boolean opened = false;
-       private DACustomButton licenseButton = null;
        private DACustomButton okButton = null;
 
        private static String ideBuildVersionInfo = CommonConstants.EMPTY;
@@ -95,16 +93,6 @@ public class AboutDialog extends DAMessageBox {
                }
        };
 
-       private DACustomButtonClickEventListener licenseButtonListener = new DACustomButtonClickEventListener() {
-
-               @Override
-               public void handleClickEvent(DACustomButton button) {
-                       Shell shell = WorkbenchUtil.getWorkbenchWindow().getShell();
-                       LicenseDialog dialog = new LicenseDialog(shell);
-                       dialog.open();
-               }
-       };
-
        protected boolean run() {
                if (opened) {
                        return false;
@@ -242,18 +230,6 @@ public class AboutDialog extends DAMessageBox {
                okData.height = DesignConstants.DA_BUTTON_HEIGHT;
                okButton.setLayoutData(okData);
 
-               licenseButton = new DAButton(buttonComp, SWT.NONE);
-               licenseButton.addClickListener(licenseButtonListener);
-               licenseButton.setText(AnalyzerLabels.ABOUT_DIALOG_LICENSE);
-               licenseButton.setButtonFont(FontResources.DIALOG_BUTTON_FONT);
-
-               FormData licenceData = new FormData();
-               licenceData.top = new FormAttachment(0, 9);
-               licenceData.right = new FormAttachment(okButton, -10);
-               licenceData.width = DesignConstants.DA_BUTTON_WIDTH;
-               licenceData.height = DesignConstants.DA_BUTTON_HEIGHT;
-               licenseButton.setLayoutData(licenceData);
-
                opened = true;
                ShortCutManager.getInstance().setEnabled(!opened);