This repository has been archived by the owner on Jul 16, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add copyright header and remove unused interface
Signed-off-by: Hiroshi Miura <miurahr@linux.com>
- Loading branch information
Showing
14 changed files
with
238 additions
and
29 deletions.
There are no files selected for viewing
18 changes: 18 additions & 0 deletions
18
src/main/java/io/github/eb4j/ebview/gui/EBViewerModel.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
This file was deleted.
Oops, something went wrong.
18 changes: 18 additions & 0 deletions
18
src/main/java/io/github/eb4j/ebview/gui/LinkActionListener.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
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
54 changes: 54 additions & 0 deletions
54
src/main/java/io/github/eb4j/ebview/utils/IPreferences.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,54 @@ | ||
/* | ||
* EBViewer, a dictionary viewer application. | ||
* Copyright (C) 2022 Hiroshi Miura. | ||
* Copyright (C) 2000-2006 Keith Godfrey, Maxym Mykhalchuk, and Henry Pijffers | ||
* 2007 Zoltan Bartko | ||
* 2008-2009 Didier Briel | ||
* 2010 Wildrich Fourie, Antonio Vilei, Didier Briel | ||
* 2011 John Moran, Didier Briel | ||
* 2012 Martin Fleurke, Wildrich Fourie, Didier Briel, Thomas Cordonnier, | ||
* Aaron Madlon-Kay | ||
* 2013 Aaron Madlon-Kay, Zoltan Bartko | ||
* 2014 Piotr Kulik, Aaron Madlon-Kay | ||
* 2015 Aaron Madlon-Kay, Yu Tang, Didier Briel, Hiroshi Miura | ||
* 2016 Aaron Madlon-Kay* | ||
* This program is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License as published by | ||
* the Free Software Foundation, either version 3 of the License, or | ||
* (at your option) any later version. | ||
* | ||
* This program is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU General Public License | ||
* along with this program. If not, see <https://www.gnu.org/licenses/>. | ||
*/ | ||
|
||
package io.github.eb4j.ebview.utils; | ||
|
||
import java.io.IOException; | ||
|
||
public interface IPreferences { | ||
String getPreference(String key); | ||
|
||
boolean existsPreference(String key); | ||
|
||
boolean isPreference(String key); | ||
|
||
boolean isPreferenceDefault(String key, boolean defaultValue); | ||
|
||
String getPreferenceDefault(String key, String value); | ||
|
||
<T extends Enum<T>> T getPreferenceEnumDefault(String key, T defaultValue); | ||
|
||
int getPreferenceDefault(String key, int defaultValue); | ||
|
||
/** | ||
* Return the old value, or null if not set | ||
*/ | ||
Object setPreference(String key, Object value) throws Exception; | ||
|
||
void save() throws IOException; | ||
} |
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
19 changes: 19 additions & 0 deletions
19
src/main/java/io/github/eb4j/ebview/utils/WordIterator.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