-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix "Manage journal abbreviations" dialog #4263
Merged
Merged
Changes from 1 commit
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
74 changes: 34 additions & 40 deletions
74
src/main/java/org/jabref/gui/journals/ManageJournalAbbreviations.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 |
---|---|---|
@@ -1,65 +1,59 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
|
||
<?import javafx.scene.control.Button?> | ||
<?import javafx.scene.control.ButtonBar?> | ||
<?import javafx.scene.control.ButtonType?> | ||
<?import javafx.scene.control.ComboBox?> | ||
<?import javafx.scene.control.DialogPane?> | ||
<?import javafx.scene.control.Label?> | ||
<?import javafx.scene.control.ProgressIndicator?> | ||
<?import javafx.scene.control.TableColumn?> | ||
<?import javafx.scene.control.TableView?> | ||
<?import javafx.scene.control.Tooltip?> | ||
<?import javafx.scene.layout.BorderPane?> | ||
<?import javafx.scene.layout.HBox?> | ||
<?import javafx.scene.layout.Pane?> | ||
<DialogPane xmlns:fx="http://javafx.com/fxml/1" prefHeight="400.0" prefWidth="600.0" | ||
xmlns="http://javafx.com/javafx/8.0.65" | ||
fx:controller="org.jabref.gui.journals.ManageJournalAbbreviationsView"> | ||
<content> | ||
<BorderPane prefHeight="200.0" prefWidth="200.0"> | ||
<center> | ||
<TableView fx:id="journalAbbreviationsTable" editable="true" styleClass="abbreviations-table" BorderPane.alignment="CENTER"> | ||
<TableView fx:id="journalAbbreviationsTable" editable="true" styleClass="abbreviations-table"> | ||
<columns> | ||
<TableColumn fx:id="journalTableNameColumn" prefWidth="200.0" text="%Full journal name" /> | ||
<TableColumn fx:id="journalTableAbbreviationColumn" prefWidth="200.0" text="%Abbreviation name" /> | ||
<TableColumn fx:id="journalTableEditColumn" maxWidth="40" minWidth="40.0" prefWidth="40.0" /> | ||
<TableColumn fx:id="journalTableDeleteColumn" maxWidth="40" minWidth="40.0" prefWidth="40.0" /> | ||
<TableColumn fx:id="journalTableNameColumn" prefWidth="200.0" text="%Full journal name"/> | ||
<TableColumn fx:id="journalTableAbbreviationColumn" prefWidth="200.0" text="%Abbreviation name"/> | ||
<TableColumn fx:id="journalTableEditColumn" maxWidth="40" minWidth="40.0" prefWidth="40.0"/> | ||
<TableColumn fx:id="journalTableDeleteColumn" maxWidth="40" minWidth="40.0" prefWidth="40.0"/> | ||
</columns> | ||
<columnResizePolicy> | ||
<TableView fx:constant="CONSTRAINED_RESIZE_POLICY" /> | ||
</columnResizePolicy> | ||
</TableView> | ||
</center> | ||
<bottom> | ||
<ButtonBar prefHeight="40.0" styleClass="custom-buttons" BorderPane.alignment="CENTER"> | ||
<buttons> | ||
<Label fx:id="loadingLabel" maxHeight="30.0" text="%Loading built in lists" ButtonBar.buttonData="LEFT" ButtonBar.buttonUniformSize="false" /> | ||
<ProgressIndicator fx:id="progressIndicator" maxHeight="30.0" opacity="0.4" ButtonBar.buttonData="LEFT" ButtonBar.buttonUniformSize="false" /> | ||
<Button fx:id="cancelButton" cancelButton="true" mnemonicParsing="false" onAction="#closeDialog" text="%Cancel" ButtonBar.buttonData="CANCEL_CLOSE" /> | ||
<Button fx:id="saveButton" defaultButton="true" mnemonicParsing="false" onAction="#saveAbbreviationsAndCloseDialog" text="%Save changes" ButtonBar.buttonData="OK_DONE" /> | ||
</buttons> | ||
</ButtonBar> | ||
</bottom> | ||
</BorderPane> | ||
<columnResizePolicy> | ||
<TableView fx:constant="CONSTRAINED_RESIZE_POLICY"/> | ||
</columnResizePolicy> | ||
<placeholder> | ||
<Label fx:id="loadingLabel" maxHeight="30.0" text="%Loading built in lists"/> | ||
<ProgressIndicator fx:id="progressIndicator" maxHeight="30.0" opacity="0.4"/> | ||
</placeholder> | ||
</TableView> | ||
</content> | ||
<header> | ||
<HBox spacing="10.0" styleClass="custom-header"> | ||
<children> | ||
<ComboBox fx:id="journalFilesBox" minWidth="200.0" promptText="%No abbreviation files loaded" styleClass="journal-lists" HBox.hgrow="ALWAYS" /> | ||
<Pane HBox.hgrow="ALWAYS" /> | ||
<Button fx:id="addNewJournalFileButton" mnemonicParsing="false" onAction="#addNewFile" styleClass="icon"> | ||
<HBox spacing="10.0" styleClass="custom-header"> | ||
<ComboBox fx:id="journalFilesBox" minWidth="200.0" promptText="%No abbreviation files loaded" | ||
HBox.hgrow="ALWAYS"/> | ||
<Pane HBox.hgrow="ALWAYS"/> | ||
<Button fx:id="addNewJournalFileButton" mnemonicParsing="false" onAction="#addNewFile" styleClass="icon"> | ||
<tooltip> | ||
<Tooltip autoHide="true" text="%Create new list" /> | ||
</tooltip></Button> | ||
<Button fx:id="addJournalFileButton" mnemonicParsing="false" onAction="#openFile" styleClass="icon"> | ||
<Tooltip autoHide="true" text="%Create new list"/> | ||
</tooltip> | ||
</Button> | ||
<Button fx:id="addJournalFileButton" mnemonicParsing="false" onAction="#openFile" styleClass="icon"> | ||
<tooltip> | ||
<Tooltip autoHide="true" text="%Add existing file" /> | ||
</tooltip></Button> | ||
<Button fx:id="removeJournalAbbreviationsButton" mnemonicParsing="false" onAction="#removeList" styleClass="icon"> | ||
<Tooltip autoHide="true" text="%Add existing file"/> | ||
</tooltip> | ||
</Button> | ||
<Button fx:id="removeJournalAbbreviationsButton" mnemonicParsing="false" onAction="#removeList" | ||
styleClass="icon"> | ||
<tooltip> | ||
<Tooltip autoHide="true" text="%Remove list" /> | ||
</tooltip></Button> | ||
</children> | ||
</HBox> | ||
<Tooltip autoHide="true" text="%Remove list"/> | ||
</tooltip> | ||
</Button> | ||
</HBox> | ||
</header> | ||
<ButtonType fx:id="saveButton" text="%Save changes" buttonData="OK_DONE"/> | ||
<ButtonType fx:constant="CANCEL"/> | ||
</DialogPane> |
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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
DO we really need it to execute on a new thread or can't we reuse one of ours from the thread pools?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good observation. Fixed.