projectviewer.importer
Class AutoReimporter.Options

java.lang.Object
  extended by org.gjt.sp.util.PropertiesBean
      extended by projectviewer.importer.AutoReimporter.Options
Enclosing class:
AutoReimporter

public static class AutoReimporter.Options
extends org.gjt.sp.util.PropertiesBean

Class that encapsulates the auto-reimport options.


Constructor Summary
AutoReimporter.Options(VPTProject p)
           
 
Method Summary
 ImporterFileFilter _getFilter()
          Returns the file filter to use during reimport.
 void _setFilter(ImporterFileFilter filter)
          Sets the filter to use during reimport.
 void clean(java.util.Properties p)
          Cleans the config options related to this object.
 boolean getAddHiddenFiles()
          Returns whether to import hidden files.
 boolean getCurrentOnly()
          Returns whether to only look at current directories.
 boolean getEnabled()
          Returns the enabled flag.
 int getPeriod()
          Returns the periodicity of reimports, in minutes.
 void load(java.util.Properties p)
          Loads the information, including the filter info.
 void load(java.util.Properties p, java.util.List<ImporterFileFilter> filters)
          Loads the information, using the given list of filters as a base for the filter search.
 void save(java.util.Properties p)
          Saves the information, including the filter info.
 void setAddHiddenFiles(boolean b)
          Sets whether to import hidden files.
 void setCurrentOnly(boolean b)
          Sets whether the auto-reimport will only check existing directories in the project.
 void setEnabled(boolean p)
          Set the enabled flag.
 void setPeriod(int p)
          Set the periodicity of the auto-reimport, in minutes.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AutoReimporter.Options

public AutoReimporter.Options(VPTProject p)
Method Detail

setEnabled

public void setEnabled(boolean p)
Set the enabled flag.


getEnabled

public boolean getEnabled()
Returns the enabled flag.


setPeriod

public void setPeriod(int p)
Set the periodicity of the auto-reimport, in minutes.


getPeriod

public int getPeriod()
Returns the periodicity of reimports, in minutes.


setCurrentOnly

public void setCurrentOnly(boolean b)
Sets whether the auto-reimport will only check existing directories in the project. Any new directories found during the scan will be ignored.


getCurrentOnly

public boolean getCurrentOnly()
Returns whether to only look at current directories.


setAddHiddenFiles

public void setAddHiddenFiles(boolean b)
Sets whether to import hidden files.

Since:
PV 3.0.1

getAddHiddenFiles

public boolean getAddHiddenFiles()
Returns whether to import hidden files.

Since:
PV 3.0.1

_setFilter

public void _setFilter(ImporterFileFilter filter)
Sets the filter to use during reimport. The underscore is to avoid the super class to treat it as a java bean property.


_getFilter

public ImporterFileFilter _getFilter()
Returns the file filter to use during reimport. The underscore is to avoid the super class to treat it as a java bean property.


save

public void save(java.util.Properties p)
Saves the information, including the filter info.

Overrides:
save in class org.gjt.sp.util.PropertiesBean
Parameters:
p - Properties object.

load

public void load(java.util.Properties p)
Loads the information, including the filter info.

Overrides:
load in class org.gjt.sp.util.PropertiesBean
Parameters:
p - Properties object.

load

public void load(java.util.Properties p,
                 java.util.List<ImporterFileFilter> filters)
Loads the information, using the given list of filters as a base for the filter search.

Parameters:
p - Properties object.
filters - List of ImporterFileFilter.

clean

public void clean(java.util.Properties p)
Cleans the config options related to this object.

Overrides:
clean in class org.gjt.sp.util.PropertiesBean
Parameters:
p - Properties object.