Skip to content

Commit

Permalink
a6.8.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Mararsh committed Apr 17, 2024
1 parent 651ac43 commit fee34d7
Show file tree
Hide file tree
Showing 26 changed files with 129 additions and 385 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -272,19 +272,16 @@ protected boolean handle() {

@Override
protected void whenSucceeded() {
outputData();
if (rightPane != null) {
rightPane.setDisable(false);
}
}

@Override
protected void finalAction() {
super.finalAction();
data2D.stopTask();
closeTask();
if (ok) {
outputData();
if (rightPane != null) {
rightPane.setDisable(false);
}
}
}

};
Expand Down Expand Up @@ -450,20 +447,17 @@ protected boolean handle() {

@Override
protected void whenSucceeded() {
loadChartData();
playController.play(framesNumber);
if (rightPane != null) {
rightPane.setDisable(false);
}
}

@Override
protected void finalAction() {
super.finalAction();
data2D.stopTask();
closeTask();
if (ok) {
loadChartData();
playController.play(framesNumber);
if (rightPane != null) {
rightPane.setDisable(false);
}
}
}

};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -875,6 +875,14 @@ public void cloneOptions(BaseData2DTaskController controller) {
scaleSelector.getSelectionModel().select(controller.scale + "");
}

@Override
public void closeTask() {
if (data2D != null) {
data2D.stopTask();
}
super.closeTask();
}

@Override
public void cleanPane() {
try {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -153,20 +153,15 @@ protected boolean handle() {
protected void whenSucceeded() {
popDone();
writer.showResult();
if (targetController != null) {
targetController.refreshControls();
}
}

@Override
protected void finalAction() {
super.finalAction();
data2D.stopTask();
closeTask();
if (ok) {
if (closeAfterCheck != null && closeAfterCheck.isSelected()) {
close();
} else if (targetController != null) {
targetController.refreshControls();
}
}
}

};
Expand Down Expand Up @@ -198,16 +193,13 @@ protected boolean handle() {

@Override
protected void whenSucceeded() {
ouputRows();
}

@Override
protected void finalAction() {
super.finalAction();
data2D.stopTask();
closeTask();
if (ok) {
ouputRows();
}
}

};
Expand Down Expand Up @@ -276,9 +268,7 @@ public boolean updateTable() {
dataController.tableChanged(true);
dataController.requestMouse();
dataController.popDone();
if (closeAfterCheck != null && closeAfterCheck.isSelected()) {
close();
} else if (targetController != null) {
if (targetController != null) {
targetController.refreshControls();
}
return true;
Expand Down Expand Up @@ -344,11 +334,7 @@ protected void whenSucceeded() {
@Override
protected void finalAction() {
super.finalAction();
data2D.stopTask();
closeTask();
if (ok && closeAfterCheck != null && closeAfterCheck.isSelected()) {
close();
}
}

};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,9 @@ public void closeTask() {
updateLogs(message("Completed") + " " + message("Cost")
+ " " + DateTools.datetimeMsDuration(endTime, startTime), true);
}
if (task != null) {
successed = task.isOk();
}
afterTask();
}

Expand All @@ -186,6 +189,9 @@ public void afterTask() {
if (openCheck != null && openCheck.isSelected()) {
openTarget();
}
if (successed && closeAfterCheck != null && closeAfterCheck.isSelected()) {
close();
}
}

public void cancelTask() {
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -255,21 +255,14 @@ protected boolean handle() {

@Override
protected void whenSucceeded() {
browse(chartFile);
browse(chartFile.getParentFile());
}

@Override
protected void finalAction() {
super.finalAction();
data2D.stopTask();
closeTask();
if (!ok) {
return;
}
browse(chartFile);
browse(chartFile.getParentFile());
if (closeAfterCheck.isSelected()) {
close();
}
}

};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ protected void whenSucceeded() {
dataController.requestMouse();
dataController.alertInformation(message("DeletedRowsNumber") + ": " + filteredRowsIndices.size());
sourceController.selectedRowsIndices = null;
tabPane.getSelectionModel().select(sourceTab);
} catch (Exception e) {
MyBoxLog.error(e);
}
Expand All @@ -110,15 +111,7 @@ protected void whenSucceeded() {
@Override
protected void finalAction() {
super.finalAction();
data2D.stopTask();
closeTask();
if (ok) {
if (closeAfterCheck.isSelected()) {
close();
} else {
tabPane.getSelectionModel().select(sourceTab);
}
}
}

};
Expand Down Expand Up @@ -171,7 +164,6 @@ protected void whenSucceeded() {
@Override
protected void finalAction() {
super.finalAction();
data2D.stopTask();
closeTask();
}

Expand Down
Loading

0 comments on commit fee34d7

Please sign in to comment.