org.jpedal.pdf.plugins.eclipse.settings
Class PDFSettings

java.lang.Object
  extended by org.jpedal.pdf.plugins.eclipse.settings.PDFSettings

public class PDFSettings
extends java.lang.Object


Field Summary
static int CACHEDFILE
           
static int DESCRIPTION
           
static boolean checkForUpdates
           
static int PATH
          3 types of info stored
static java.lang.String version
           
static java.lang.String versionTested
           
 
Constructor Summary
PDFSettings()
           
 
Method Summary
 void addPDFFile(java.lang.String fileName, java.lang.String fileDescription, java.lang.String cachePath)
           
 boolean deletePDFFile(java.lang.String fileName)
          returns true if match found
 int[] getCategories()
           
 java.lang.String getCategoryName(int id)
           
 int getFileCount()
           
 java.lang.String getValue(int id, int type)
           
static java.lang.String[] getValues(int type)
           
static boolean checkForUpdates(java.lang.String availableVersion)
          returns true if new version found
 void resetValues(java.lang.String[] newFiles, java.lang.String[] newDescription, java.lang.String[] newCache)
           
static void resetValuesToDefaultValues()
           
static void saveValuesInEclipse()
           
 void setValue(int id, java.lang.String newValue, int type)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PATH

public static final int PATH
3 types of info stored

See Also:
Constant Field Values

DESCRIPTION

public static final int DESCRIPTION
See Also:
Constant Field Values

CACHEDFILE

public static final int CACHEDFILE
See Also:
Constant Field Values

checkForUpdates

public static boolean checkForUpdates

versionTested

public static java.lang.String versionTested

version

public static final java.lang.String version
See Also:
Constant Field Values
Constructor Detail

PDFSettings

public PDFSettings()
Method Detail

checkForUpdates

public static boolean checkForUpdates(java.lang.String availableVersion)
returns true if new version found

Parameters:
availableVersion -
Returns:

getFileCount

public int getFileCount()

resetValuesToDefaultValues

public static void resetValuesToDefaultValues()

saveValuesInEclipse

public static void saveValuesInEclipse()

getValue

public java.lang.String getValue(int id,
                                 int type)

getValues

public static java.lang.String[] getValues(int type)

setValue

public void setValue(int id,
                     java.lang.String newValue,
                     int type)

getCategories

public int[] getCategories()

getCategoryName

public java.lang.String getCategoryName(int id)

resetValues

public void resetValues(java.lang.String[] newFiles,
                        java.lang.String[] newDescription,
                        java.lang.String[] newCache)

addPDFFile

public void addPDFFile(java.lang.String fileName,
                       java.lang.String fileDescription,
                       java.lang.String cachePath)

deletePDFFile

public boolean deletePDFFile(java.lang.String fileName)
returns true if match found

Parameters:
fileName -
Returns: