Tabnine Logo
FileWrapper.exists
Code IndexAdd Tabnine to your IDE (free)

How to use
exists
method
in
net.sourceforge.squirrel_sql.fw.util.FileWrapper

Best Java code snippets using net.sourceforge.squirrel_sql.fw.util.FileWrapper.exists (Showing top 20 results out of 315)

origin: net.sf.squirrel-sql.plugins/hibernate

public static XMLBeanReader createHibernateConfigsReader(HibernatePlugin plugin)
   throws IOException, XMLException
{
 XMLBeanReader reader = new XMLBeanReader();
 FileWrapper pluginUserSettingsFolder = plugin.getPluginUserSettingsFolder();
 FileWrapper xmlFile = getXmlFile(pluginUserSettingsFolder);
 if (false == xmlFile.exists())
 {
   return null;
 }
 reader.load(xmlFile, plugin.getClass().getClassLoader());
 return reader;
}
origin: net.sf.squirrel-sql.plugins/sqlbookmark

/**
* Load the stored bookmarks.
*/
protected void load() throws IOException
{
 try
 {
   XMLBeanReader xmlin = new XMLBeanReader();
   if (bookmarkFile.exists())
   {
    xmlin.load(bookmarkFile, getClass().getClassLoader());
    for (Iterator<?> i = xmlin.iterator(); i.hasNext();)
    {
      Object bean = i.next();
      if (bean instanceof Bookmark)
      {
       add((Bookmark) bean);
      }
    }
   }
 }
 catch (XMLException e)
 {
   throw new RuntimeException(e);
 }
}
origin: net.sf.squirrel-sql.plugins/sqlbookmark

FileWrapper boomarkPropsFile = fileWrapperFactory.create(usf, BOOKMARKS_PROPS_FILE);
if(false == boomarkPropsFile.exists())
origin: net.sf.squirrel-sql.plugins/codecompletion

private void loadPrefs()
{
  try
  {
    _newSessionPrefs = new CodeCompletionPreferences();
    FileWrapper prefsFile = fileWrapperFactory.create(getPluginUserSettingsFolder(), PREFS_FILE_NAME);
    if(prefsFile.exists())
    {
      XMLBeanReader reader = new XMLBeanReader();
      reader.load(prefsFile, getClass().getClassLoader());
      Iterator<?> it = reader.iterator();
      if (it.hasNext())
      {
        _newSessionPrefs = (CodeCompletionPreferences) it.next();
      }
    }
  }
  catch (Exception e)
  {
    throw new RuntimeException(e);
  }
}
origin: net.sf.squirrel-sql.plugins/syntax

public AutoCorrectData getAutoCorrectData()
{
  try
  {
    if (null == _autoCorrectData)
    {
      XMLBeanReader br = new XMLBeanReader();
      FileWrapper path =
        _fileWrapperFactory.create(_pluginUserSettingsFolder, AUTO_CORRECT_DATA_FILE_NAME);
      if (path.exists())
      {
        br.load(path, this.getClass().getClassLoader());
        _autoCorrectData = (AutoCorrectData) br.iterator().next();
      }
      else
      {
        _autoCorrectData = getDefaultAutoCorrectData();
      }
    }
    return _autoCorrectData;
  }
  catch (Exception e)
  {
    throw new RuntimeException(e);
  }
}
origin: realXuJiang/bigtable-sql

/**
 * @see net.sourceforge.squirrel_sql.client.update.UpdateUtil#checkDir(FileWrapper, java.lang.String)
 */
public FileWrapper checkDir(FileWrapper parent, String child)
{
  FileWrapper dir = _fileWrapperFactory.create(parent, child);
  if (!dir.exists() && !dir.mkdir())
  {
    s_log.error("checkDir: Failed to mkdir - " + dir.getAbsolutePath());
  }
  return dir;
}
origin: net.sf.squirrel-sql/squirrel-sql

/**
 * @see net.sourceforge.squirrel_sql.client.update.UpdateUtil#checkDir(FileWrapper, java.lang.String)
 */
public FileWrapper checkDir(FileWrapper parent, String child)
{
  FileWrapper dir = _fileWrapperFactory.create(parent, child);
  if (!dir.exists() && !dir.mkdir())
  {
    s_log.error("checkDir: Failed to mkdir - " + dir.getAbsolutePath());
  }
  return dir;
}
origin: realXuJiang/bigtable-sql

if (!file.exists())
origin: net.sf.squirrel-sql/squirrel-sql

if (!file.exists())
origin: net.sf.squirrel-sql/squirrel-sql

try
  if (changeListFile.exists())
origin: net.sf.squirrel-sql/squirrel-sql

/**
 * @see net.sourceforge.squirrel_sql.client.update.UpdateUtil#
 *      isPresentInDownloadsDirectory(net.sourceforge.squirrel_sql.client.update.gui.ArtifactStatus)
 */
public boolean isPresentInDownloadsDirectory(ArtifactStatus status)
{
  boolean result = false;
  FileWrapper downloadFile = getDownloadFileLocation(status);
  if (downloadFile.exists())
  {
    long checkSum = getCheckSum(downloadFile);
    if (status.getChecksum() == checkSum)
    {
      if (downloadFile.length() == status.getSize())
      {
        result = true;
      }
    }
  }
  return result;
}
origin: realXuJiang/bigtable-sql

/**
 * @see net.sourceforge.squirrel_sql.client.update.UpdateUtil#
 *      isPresentInDownloadsDirectory(net.sourceforge.squirrel_sql.client.update.gui.ArtifactStatus)
 */
public boolean isPresentInDownloadsDirectory(ArtifactStatus status)
{
  boolean result = false;
  FileWrapper downloadFile = getDownloadFileLocation(status);
  if (downloadFile.exists())
  {
    long checkSum = getCheckSum(downloadFile);
    if (status.getChecksum() == checkSum)
    {
      if (downloadFile.length() == status.getSize())
      {
        result = true;
      }
    }
  }
  return result;
}
origin: net.sf.squirrel-sql/squirrel-sql

if (result.exists())
origin: net.sf.squirrel-sql/squirrel-sql

    proxySettings);
FileWrapper releaseXmlFile = _fileWrapperFactory.create(filename);
if (releaseXmlFile.exists())
origin: realXuJiang/bigtable-sql

    proxySettings);
FileWrapper releaseXmlFile = _fileWrapperFactory.create(filename);
if (releaseXmlFile.exists())
origin: net.sf.squirrel-sql.plugins/dbdiff

/**
 * @see net.sourceforge.squirrel_sql.plugins.dbdiff.IScriptFileManager#cleanupScriptFiles()
 */
public void cleanupScriptFiles()
{
  for (final String scriptFile : scriptFiles)
  {
    final FileWrapper fileWrapper = fileWrapperFactory.create(scriptFile);
    if (fileWrapper.exists())
    {
      if (s_log.isDebugEnabled())
      {
        s_log.debug("Attempting to delete previously created temporary script file: " + scriptFile);
      }
      fileWrapper.delete();
    }
    else
    {
      if (s_log.isDebugEnabled())
      {
        s_log.debug("Previously created temporary script file did not exist: " + scriptFile);
      }
    }
  }
}
origin: net.sf.squirrel-sql.plugins/laf

  fileWrapperFactory.create(plugin.getPluginAppSettingsFolder(), "skinlf-theme-packs");
_prefs.setThemePackDirectory(themePackDir.getAbsolutePath());
if (!themePackDir.exists())
origin: realXuJiang/bigtable-sql

if (fileToRemove.exists())
origin: net.sf.squirrel-sql/squirrel-sql

IOException
if (!from.exists())
    + toFile.getAbsolutePath() + ")");
if (toFile.exists())
origin: net.sf.squirrel-sql/squirrel-sql

if (path.exists())
net.sourceforge.squirrel_sql.fw.utilFileWrapperexists

Popular methods of FileWrapper

  • getAbsolutePath
  • getPath
  • delete
  • getFileWriter
  • isFile
  • list
  • listFiles
  • mkdir
  • mkdirs
  • toURI
  • canRead
  • deleteOnExit
  • canRead,
  • deleteOnExit,
  • getFileInputStream,
  • getName,
  • isDirectory,
  • lastModified,
  • length,
  • createNewFile,
  • getBufferedReader

Popular in Java

  • Creating JSON documents from java classes using gson
  • startActivity (Activity)
  • onRequestPermissionsResult (Fragment)
  • requestLocationUpdates (LocationManager)
  • BigInteger (java.math)
    An immutable arbitrary-precision signed integer.FAST CRYPTOGRAPHY This implementation is efficient f
  • InetAddress (java.net)
    An Internet Protocol (IP) address. This can be either an IPv4 address or an IPv6 address, and in pra
  • SocketTimeoutException (java.net)
    This exception is thrown when a timeout expired on a socket read or accept operation.
  • Date (java.sql)
    A class which can consume and produce dates in SQL Date format. Dates are represented in SQL as yyyy
  • Manifest (java.util.jar)
    The Manifest class is used to obtain attribute information for a JarFile and its entries.
  • Annotation (javassist.bytecode.annotation)
    The annotation structure.An instance of this class is returned bygetAnnotations() in AnnotationsAttr
  • Github Copilot alternatives
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now