forked from JabRef/jabref
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add TeXworks (Icon needs fixing) (JabRef#3197)
Co-Authored-By: JohannBiorck <85625348+johannbiorck@users.noreply.github.com>
- Loading branch information
1 parent
9bce374
commit 87bbea2
Showing
3 changed files
with
36 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
package org.jabref.gui.push; | ||
|
||
import org.jabref.gui.DialogService; | ||
import org.jabref.gui.icon.IconTheme; | ||
import org.jabref.gui.icon.JabRefIcon; | ||
import org.jabref.preferences.PreferencesService; | ||
|
||
public class PushToTeXworks extends AbstractPushToApplication { | ||
|
||
public static final String NAME = PushToApplications.TEXWORKS; | ||
|
||
public PushToTeXworks(DialogService dialogService, PreferencesService preferencesService) { | ||
super(dialogService, preferencesService); | ||
} | ||
|
||
@Override | ||
public String getDisplayName() { | ||
return NAME; | ||
} | ||
|
||
@Override | ||
public JabRefIcon getApplicationIcon() { | ||
return IconTheme.JabRefIcons.APPLICATION_TEXSTUDIO; // Temporary Icon that needs to be changed | ||
} | ||
|
||
@Override | ||
protected String[] getCommandLine(String keyString) { | ||
return new String[] {commandPath, "--insert-text", "%s%s%s".formatted(getCitePrefix(), keyString, getCiteSuffix())}; | ||
} | ||
} |
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