-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Redesign "Manage field names & content" dialog (#8892)
- Loading branch information
1 parent
41edd28
commit 9701e35
Showing
27 changed files
with
1,080 additions
and
305 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
42 changes: 0 additions & 42 deletions
42
src/main/java/org/jabref/gui/edit/MassSetFieldsAction.java
This file was deleted.
Oops, something went wrong.
245 changes: 0 additions & 245 deletions
245
src/main/java/org/jabref/gui/edit/MassSetFieldsDialog.java
This file was deleted.
Oops, something went wrong.
11 changes: 11 additions & 0 deletions
11
...ain/java/org/jabref/gui/edit/automaticfiededitor/AbstractAutomaticFieldEditorTabView.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
package org.jabref.gui.edit.automaticfiededitor; | ||
|
||
import javafx.scene.layout.AnchorPane; | ||
|
||
public abstract class AbstractAutomaticFieldEditorTabView extends AnchorPane implements AutomaticFieldEditorTab { | ||
|
||
@Override | ||
public AnchorPane getContent() { | ||
return this; | ||
} | ||
} |
26 changes: 26 additions & 0 deletions
26
src/main/java/org/jabref/gui/edit/automaticfiededitor/AutomaticFieldEditorAction.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
package org.jabref.gui.edit.automaticfiededitor; | ||
|
||
import org.jabref.gui.DialogService; | ||
import org.jabref.gui.StateManager; | ||
import org.jabref.gui.actions.SimpleCommand; | ||
|
||
import static org.jabref.gui.actions.ActionHelper.needsDatabase; | ||
import static org.jabref.gui.actions.ActionHelper.needsEntriesSelected; | ||
|
||
public class AutomaticFieldEditorAction extends SimpleCommand { | ||
private final StateManager stateManager; | ||
private final DialogService dialogService; | ||
|
||
public AutomaticFieldEditorAction(StateManager stateManager, DialogService dialogService) { | ||
this.stateManager = stateManager; | ||
this.dialogService = dialogService; | ||
|
||
this.executable.bind(needsDatabase(stateManager).and(needsEntriesSelected(stateManager))); | ||
} | ||
|
||
@Override | ||
public void execute() { | ||
dialogService.showCustomDialogAndWait(new AutomaticFieldEditorDialog(stateManager.getSelectedEntries(), | ||
stateManager.getActiveDatabase().orElseThrow())); | ||
} | ||
} |
15 changes: 15 additions & 0 deletions
15
src/main/java/org/jabref/gui/edit/automaticfiededitor/AutomaticFieldEditorDialog.fxml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
|
||
<?import javafx.scene.control.ButtonType?> | ||
<?import javafx.scene.control.DialogPane?> | ||
<?import javafx.scene.control.TabPane?> | ||
<DialogPane xmlns="http://javafx.com/javafx" xmlns:fx="http://javafx.com/fxml" | ||
fx:controller="org.jabref.gui.edit.automaticfiededitor.AutomaticFieldEditorDialog" | ||
prefHeight="400.0" prefWidth="600.0"> | ||
<content> | ||
<TabPane fx:id="tabPane" tabClosingPolicy="UNAVAILABLE"/> | ||
</content> | ||
<ButtonType fx:id="saveButton" text="Keep Modifications" buttonData="OK_DONE"/> | ||
<ButtonType fx:id="cancelButton" | ||
text="Revert" buttonData="CANCEL_CLOSE"/> | ||
</DialogPane> |
Oops, something went wrong.