forked from JabRef/jabref
-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Double click on citation opens LaTeX editor (JabRef#12044)
* First version of the double click issue * First version to use double click to open TeXstudio * change the click count to two * I set the GitHub page for the test * Replace exec() with ProcessBuilder and printStackTrace() with LOGGER * change some useless functions * I solve the csl-styles submodel problem * Solve the avvrv.jabref.org conflict * The double click function works fine for the emacs external program * The double click function works fine for the TeXworks external program * I changed the required code. I also delete some useless comment. I make TeXworks works for this feature * finished texWorks and delete some comments * delete some comments * solve untrack files * I make Sublime Text works for this feature * I make WinEdt works for this feature * delete some command and change jumpString to jumpToLineCommandlineArguments * Fix csl-styles Please enter the commit message for your changes. Lines starting * Fix abbrv.jabref.org submodules * I make Vim works for this feature * I rewrite jumpToLine for TexShop. But I don't hava a Mac OS machine. I hope it's working. * Delete the JumpToLine in TeXshop and a comment line in TeXstudio * Fix submodules (and wrong file) * Fix empty lines * Default should be TeXstudio * Remvoe "Integer.format" (and add test) * Fix PushToVim * Cleanup PushToLyx * Refactor PushToVim * Add CHANGELOG.md entry --------- Co-authored-by: Oliver Kopp <[email protected]>
- Loading branch information
Showing
14 changed files
with
188 additions
and
9 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
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
package org.jabref.gui.push; | ||
|
||
import java.nio.file.Path; | ||
|
||
import org.jabref.gui.DialogService; | ||
import org.jabref.gui.preferences.GuiPreferences; | ||
|
||
import org.junit.jupiter.api.BeforeEach; | ||
import org.junit.jupiter.api.Test; | ||
import org.mockito.Answers; | ||
|
||
import static org.junit.jupiter.api.Assertions.assertNotNull; | ||
import static org.mockito.Mockito.mock; | ||
|
||
class PushToWinEdtTest { | ||
|
||
private DialogService dialogService; | ||
private GuiPreferences preferences; | ||
|
||
@BeforeEach | ||
void setup() { | ||
dialogService = mock(DialogService.class, Answers.RETURNS_DEEP_STUBS); | ||
preferences = mock(GuiPreferences.class); | ||
} | ||
|
||
@Test | ||
void jumpToLineCommandlineArguments() { | ||
assertNotNull(new PushToWinEdt(dialogService, preferences).jumpToLineCommandlineArguments(Path.of("test.tex"), 1, 5)); | ||
} | ||
} |