Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
naotsugu committed Jan 12, 2024
1 parent 27e9af6 commit 8e3a051
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ class FindSpecImplTest {

@Test void match() {

var target = new FindSpecImpl("abc", true);
var target = new FindSpecImpl("abc", true, true);

assertEquals(0, target.match("abx").length);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@

import com.mammb.code.editor.ui.app.control.UiBasicDialog;
import javafx.scene.control.ButtonType;
import javafx.scene.control.DialogPane;
import javafx.stage.Window;

/**
Expand All @@ -31,10 +32,10 @@ public class AboutDialog extends UiBasicDialog {
*/
public AboutDialog(Window owner) {
super(owner);
var pane = getDialogPane();
setTitle("About");
DialogPane pane = getDialogPane();
pane.setContentText(String.join(" ", Version.appName, Version.value));
pane.getButtonTypes().addAll(ButtonType.CLOSE);
setTitle("About");
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ public class UiBasicDialog extends Dialog<ButtonType> {
* Constructor.
*/
public UiBasicDialog(Window owner) {
ThemeCss.rootOf().into(getDialogPane());
if (owner != null) {
initOwner(owner);
} else {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,10 @@ public UiIcon smaller() {
return this;
}


/**
* Accentuate.
* @param accentuate accentuate
*/
public void accentuate(boolean accentuate) {
pseudoClassStateChanged(PseudoClass.getPseudoClass("accentuate"), accentuate);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,10 @@ private void handleTextChanged(ObservableValue<? extends String> ob, String o, S
}
}

/**
* Set accentuate the prompt.
* @param accentuate accentuate
*/
public void setPromptAccentuate(boolean accentuate) {
text.setPromptAccentuate(accentuate);
}
Expand Down

0 comments on commit 8e3a051

Please sign in to comment.