Skip to content

Commit

Permalink
Merge branch 'main' into tryToCreateMergedTrustStore
Browse files Browse the repository at this point in the history
* main:
  prepare adding cite key delimiter and start end chars
  • Loading branch information
Siedlerchr committed Sep 4, 2023
2 parents f6c9bfa + ff84e6a commit 4cf9020
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
<?import javafx.scene.layout.RowConstraints?>
<?import javafx.scene.layout.VBox?>
<?import org.jabref.gui.icon.JabRefIconView?>
<?import javafx.scene.text.Text?>
<fx:root spacing="10.0" type="VBox"
xmlns="http://javafx.com/javafx" xmlns:fx="http://javafx.com/fxml"
fx:controller="org.jabref.gui.preferences.external.ExternalTab">
Expand Down Expand Up @@ -56,6 +57,11 @@
<Label text="%Cite command" GridPane.rowIndex="2"/>
<TextField fx:id="citeCommand"
prefWidth="200.0" GridPane.columnIndex="1" GridPane.rowIndex="2"/>
<Label text="%Start and end character for cite command" GridPane.rowIndex="3"/>
<TextField fx:id="startCharacter" prefWidth="50.0" GridPane.columnIndex="1" GridPane.rowIndex="3"/>
<TextField fx:id="endCharacter" prefWidth="50.0" GridPane.columnIndex="1" GridPane.rowIndex="4"/>
<Label text="%Delimiter" GridPane.rowIndex="4"/>
<TextField fx:id="delimiter" prefWidth="200.0" GridPane.columnIndex="1" GridPane.rowIndex="5"/>
</GridPane>
</HBox>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@ public class ExternalTab extends AbstractPreferenceTabView<ExternalTabViewModel>
@FXML private CheckBox autoOpenAttachedFolders;
@FXML private ComboBox<PushToApplication> pushToApplicationCombo;
@FXML private TextField citeCommand;
@FXML private TextField endCharacter;
@FXML private TextField startCharacter;
@FXML private TextField delimiter;

@FXML private CheckBox useCustomTerminal;
@FXML private TextField customTerminalCommand;
@FXML private Button customTerminalBrowse;
Expand Down Expand Up @@ -58,6 +62,9 @@ public void initialize() {
pushToApplicationCombo.itemsProperty().bind(viewModel.pushToApplicationsListProperty());
pushToApplicationCombo.valueProperty().bindBidirectional(viewModel.selectedPushToApplication());
citeCommand.textProperty().bindBidirectional(viewModel.citeCommandProperty());
startCharacter.textProperty().bindBidirectional(viewModel.startCharacterProperty());
endCharacter.textProperty().bindBidirectional(viewModel.endCharacterProperty());
delimiter.textProperty().bindBidirectional(viewModel.delimiterProperty());

useCustomTerminal.selectedProperty().bindBidirectional(viewModel.useCustomTerminalProperty());
customTerminalCommand.textProperty().bindBidirectional(viewModel.customTerminalCommandProperty());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
import javafx.beans.property.BooleanProperty;
import javafx.beans.property.ListProperty;
import javafx.beans.property.ObjectProperty;
import javafx.beans.property.Property;
import javafx.beans.property.SimpleBooleanProperty;
import javafx.beans.property.SimpleListProperty;
import javafx.beans.property.SimpleObjectProperty;
Expand Down Expand Up @@ -40,6 +41,9 @@ public class ExternalTabViewModel implements PreferenceTabViewModel {
private final ListProperty<PushToApplication> pushToApplicationsListProperty = new SimpleListProperty<>();
private final ObjectProperty<PushToApplication> selectedPushToApplicationProperty = new SimpleObjectProperty<>();
private final StringProperty citeCommandProperty = new SimpleStringProperty("");
private final StringProperty startCharacterProperty = new SimpleStringProperty("");
private final StringProperty endCharacterProperty = new SimpleStringProperty("");
private final StringProperty delimiter = new SimpleStringProperty("");
private final BooleanProperty useCustomTerminalProperty = new SimpleBooleanProperty();
private final StringProperty customTerminalCommandProperty = new SimpleStringProperty("");
private final BooleanProperty useCustomFileBrowserProperty = new SimpleBooleanProperty();
Expand Down Expand Up @@ -210,7 +214,17 @@ public StringProperty citeCommandProperty() {
return this.citeCommandProperty;
}

// Open console
public StringProperty startCharacterProperty() {
return this.endCharacterProperty;
}

public StringProperty endCharacterProperty() {
return this.endCharacterProperty;
}

public StringProperty delimiterProperty() {
return this.delimiter;
}

public BooleanProperty useCustomTerminalProperty() {
return this.useCustomTerminalProperty;
Expand All @@ -229,4 +243,5 @@ public BooleanProperty useCustomFileBrowserProperty() {
public StringProperty customFileBrowserCommandProperty() {
return this.customFileBrowserCommandProperty;
}

}

0 comments on commit 4cf9020

Please sign in to comment.