-
-
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.
Convert "Customize importer" dialog to JavaFX (#4608)
* Convert "Customize importer" dialog to JavaFX * Use nio methods to access contents of zip files
- Loading branch information
1 parent
b66fa42
commit 48c5a20
Showing
12 changed files
with
361 additions
and
594 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
10 changes: 2 additions & 8 deletions
10
src/main/java/org/jabref/gui/actions/ManageCustomImportsAction.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 |
---|---|---|
@@ -1,21 +1,15 @@ | ||
package org.jabref.gui.actions; | ||
|
||
import org.jabref.gui.JabRefFrame; | ||
import org.jabref.gui.importer.ImportCustomizationDialog; | ||
|
||
public class ManageCustomImportsAction extends SimpleCommand { | ||
|
||
private final JabRefFrame jabRefFrame; | ||
|
||
public ManageCustomImportsAction(JabRefFrame jabRefFrame) { | ||
this.jabRefFrame = jabRefFrame; | ||
public ManageCustomImportsAction() { | ||
} | ||
|
||
@Override | ||
public void execute() { | ||
ImportCustomizationDialog ecd = new ImportCustomizationDialog(jabRefFrame); | ||
ecd.setVisible(true); | ||
|
||
new ImportCustomizationDialog().showAndWait(); | ||
} | ||
|
||
} |
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
22 changes: 22 additions & 0 deletions
22
src/main/java/org/jabref/gui/importer/ImportCustomizationDialog.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,22 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
|
||
<?import javafx.scene.control.ButtonType?> | ||
<?import javafx.scene.control.DialogPane?> | ||
<?import javafx.scene.control.TableColumn?> | ||
<?import javafx.scene.control.TableView?> | ||
<DialogPane xmlns:fx="http://javafx.com/fxml/1" xmlns="http://javafx.com/javafx/8.0.171" | ||
fx:controller="org.jabref.gui.importer.ImportCustomizationDialog"> | ||
<content> | ||
<TableView fx:id="importerTable"> | ||
<columns> | ||
<TableColumn fx:id="nameColumn" prefWidth="150.0" text="%Import name"/> | ||
<TableColumn fx:id="classColumn" prefWidth="100.0" text="%Importer class"/> | ||
<TableColumn fx:id="basePathColumn" prefWidth="100.0" text="%Contained in"/> | ||
</columns> | ||
</TableView> | ||
</content> | ||
<ButtonType fx:id="addButton" text="%Add"/> | ||
<ButtonType fx:id="removeButton" text="%Remove"/> | ||
<ButtonType fx:id="closeButton" fx:constant="OK"/> | ||
<ButtonType fx:constant="CANCEL"/> | ||
</DialogPane> |
Oops, something went wrong.