private static final String IDE_DA_COMMUNICATION_TYPE_3 = "SOURCE";//$NON-NLS-1$
private static final String IDE_DA_COMMUNICATION_TYPE_1_RECORD = "record";//$NON-NLS-1$
private static final String IDE_DA_COMMUNICATION_TYPE_1_STOP = "stop";//$NON-NLS-1$
-
+
private final String IDE_DA_COMMUNICATION_PROJECT_TYPE_NATIVE = "native";
private final String IDE_DA_COMMUNICATION_PROJECT_TYPE_PLATFORM = "platform";
private static Socket nativeIdeSocket = null;
private static ArrayList<Socket> ideClientSocketArray = new ArrayList<Socket>();
private int serverPort = 0;
-
+
+ private static boolean isFeatureOK = false;
+
public void run() {
daServerSocket = setServePort(); // Server Bind
if (daServerSocket != null) {
public void run() {
if (Toolbar.INSTANCE.setDevice(deviceName)) {
if (Toolbar.INSTANCE.setApplication(appLabel)) {
- CommandAction.startTrace(true);
+ if(isFeatureOK){
+ CommandAction.startTrace(true);
+ }
} else {
Logger.warning("Failed to set application to toolbar");
}
}
return setFileLock;
}
+
+ public static void setIsFeatureOK(boolean isOK){
+ isFeatureOK = isOK;
+ }
}
@Override
public void handleClickEvent(DACustomButton button) {
Shell shell = WorkbenchUtil.getWorkbenchWindow().getShell();
- SettingDialog dialog = new SettingDialog(shell);
- dialog.open();
- //FlatFeatureDialog featureDialog = new FlatFeatureDialog(shell); // FIXME
- //featureDialog.open();
+ //SettingDialog dialog = new SettingDialog(shell);
+ //dialog.open();
+ FlatFeatureDialog featureDialog = new FlatFeatureDialog(shell); // FIXME
+ featureDialog.open();
}
});