import org.eclipse.swt.widgets.Label;
import org.tizen.dynamicanalyzer.common.AnalyzerConstants;
import org.tizen.dynamicanalyzer.common.AnalyzerManager;
+import org.tizen.dynamicanalyzer.communicator.DACommunicator;
import org.tizen.dynamicanalyzer.constant.CommonConstants;
import org.tizen.dynamicanalyzer.nl.AnalyzerLabels;
import org.tizen.dynamicanalyzer.nl.ConfigureLabels;
detailSettingComp.layout(true);
}
+ if (DACommunicator.isRunning()) {
+ if (null != detailSettingCheckBox) {
+ detailSettingCheckBox.setEnabled(false);
+ }
+ if (null != textBox) {
+ textBox.getControl().setEnabled(false);
+ }
+ if (null != textBoxLabel) {
+ textBoxLabel.setEnabled(false);
+ }
+
+ if (null != descriptionLabel) {
+ descriptionLabel.setEnabled(false);
+ }
+ }
}
public static boolean isInteger(String str) {
import org.eclipse.swt.SWT;
import org.eclipse.swt.graphics.Point;
import org.eclipse.swt.widgets.Composite;
+import org.eclipse.swt.widgets.Display;
import org.eclipse.swt.widgets.Event;
import org.eclipse.swt.widgets.Listener;
+import org.tizen.common.Shell;
+import org.tizen.dynamicanalyzer.communicator.DACommunicator;
import org.tizen.dynamicanalyzer.constant.CommonConstants;
import org.tizen.dynamicanalyzer.model.TreeInput;
import org.tizen.dynamicanalyzer.nl.ConfigureLabels;
import org.tizen.dynamicanalyzer.ui.widgets.table.DATableDataFormat;
import org.tizen.dynamicanalyzer.ui.widgets.table.DATableHeaderRenderer;
import org.tizen.dynamicanalyzer.ui.widgets.table.DATreeComposite;
+import org.tizen.dynamicanalyzer.util.WorkbenchUtil;
+import org.tizen.dynamicanalyzer.widgets.da.base.DADialog;
public class ConfigurationDialogFeaturesTable extends DATreeComposite {
private final int tableTextOptionColumnIndex = 1;
case SWT.MouseDown:
switch (event.button) {
case MOUSE_LEFT: {
- if (isClickCheckBox(item, event)) {
- updateCheckBox(item, event);
- updateChildCheckBoxByParent(item, event);
- updateParentCheckBoxByChild(item, event);
- setConfigurationDialogDataManager(item, event);
+ if (DACommunicator.isRunning()) {
+ Display.getDefault().asyncExec(new Runnable() {
+ @Override
+ public void run() {
+ final org.eclipse.swt.widgets.Shell shell = WorkbenchUtil
+ .getWorkbenchWindow().getShell();
+ DADialog dialog = new DADialog(shell, SWT.NONE,
+ 550, 153);
+ dialog.setIcon(ImageResources.DIALOG_WARNING_ICON);
+ dialog.setMessage("You can not change the setting during trace");
+ dialog.open();
+ }
+ });
+ } else {
+ if (isClickCheckBox(item, event)) {
+ updateCheckBox(item, event);
+ updateChildCheckBoxByParent(item, event);
+ updateParentCheckBoxByChild(item, event);
+ setConfigurationDialogDataManager(item, event);
+ }
}
+
break;
}
case MOUSE_RIGHT: {