import org.eclipse.swt.widgets.Label;
import org.eclipse.swt.widgets.Listener;
import org.eclipse.swt.widgets.Shell;
+import org.tizen.dynamicanalyzer.common.Global;
import org.tizen.dynamicanalyzer.communicator.DACommunicator;
import org.tizen.dynamicanalyzer.nl.AnalyzerLabels;
import org.tizen.dynamicanalyzer.nl.ConfigureLabels;
tabView.getContentComposite(), SWT.NONE);
tabView.addView(optionPage, false);
- DABaseComposite binarySettings = new SettingDialogBinarySettingsPage(
- tabView.getContentComposite(), SWT.NONE);
- tabView.addView(binarySettings, false);
+ // check platform SDK (show binary setting page)
+ if (Global.isPlatformSDK()) {
+ createBinarySettingPage();
+ }
// button composite
buttonContentsComp = new Composite(shell, SWT.NONE);
}
});
- // 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();
- }
- });
-
cancelButton = new DAButton(buttonContentsComp, SWT.NONE);
cancelButton.addClickListener(cancelButtonListener);
cancelButton.setText(WidgetLabels.CANCEL);
shell.open();
return true;
}
+
+ private void createBinarySettingPage() {
+ DABaseComposite binarySettings = new SettingDialogBinarySettingsPage(
+ tabView.getContentComposite(), SWT.NONE);
+ tabView.addView(binarySettings, false);
+
+
+ // 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();
+ }
+ });
+ }
private ShellListener shellListener = new ShellListener() {