mirror of
https://github.com/geometer/FBReaderJ.git
synced 2025-10-05 02:39:23 +02:00
formatting cleanup
This commit is contained in:
parent
1ea1a486c5
commit
e9f966489a
1 changed files with 4 additions and 4 deletions
|
@ -35,7 +35,7 @@ public class PluginCollection {
|
||||||
public ZLStringOption DefaultLanguageOption;
|
public ZLStringOption DefaultLanguageOption;
|
||||||
public ZLStringOption DefaultEncodingOption;
|
public ZLStringOption DefaultEncodingOption;
|
||||||
public ZLBooleanOption LanguageAutoDetectOption;
|
public ZLBooleanOption LanguageAutoDetectOption;
|
||||||
|
|
||||||
public static PluginCollection Instance() {
|
public static PluginCollection Instance() {
|
||||||
if (ourInstance == null) {
|
if (ourInstance == null) {
|
||||||
ourInstance = new PluginCollection();
|
ourInstance = new PluginCollection();
|
||||||
|
@ -55,7 +55,7 @@ public class PluginCollection {
|
||||||
}
|
}
|
||||||
return ourInstance;
|
return ourInstance;
|
||||||
}
|
}
|
||||||
|
|
||||||
public static void deleteInstance() {
|
public static void deleteInstance() {
|
||||||
if (ourInstance != null) {
|
if (ourInstance != null) {
|
||||||
ourInstance = null;
|
ourInstance = null;
|
||||||
|
@ -64,10 +64,10 @@ public class PluginCollection {
|
||||||
|
|
||||||
private PluginCollection() {
|
private PluginCollection() {
|
||||||
LanguageAutoDetectOption = new ZLBooleanOption("Format", "AutoDetect", true);
|
LanguageAutoDetectOption = new ZLBooleanOption("Format", "AutoDetect", true);
|
||||||
DefaultLanguageOption = new ZLStringOption("Format", "DefaultLanguage", "en");
|
DefaultLanguageOption = new ZLStringOption("Format", "DefaultLanguage", "en");
|
||||||
DefaultEncodingOption = new ZLStringOption("Format", "DefaultEncoding", "windows-1252");
|
DefaultEncodingOption = new ZLStringOption("Format", "DefaultEncoding", "windows-1252");
|
||||||
}
|
}
|
||||||
|
|
||||||
public FormatPlugin getPlugin(ZLFile file) {
|
public FormatPlugin getPlugin(ZLFile file) {
|
||||||
for (FormatPlugin plugin : myPlugins) {
|
for (FormatPlugin plugin : myPlugins) {
|
||||||
if (plugin.acceptsFile(file)) {
|
if (plugin.acceptsFile(file)) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue