本文整理了Java中net.sourceforge.squirrel_sql.client.Version.getApplicationName()
方法的一些代码示例,展示了Version.getApplicationName()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Version.getApplicationName()
方法的具体详情如下:
包路径:net.sourceforge.squirrel_sql.client.Version
类名称:Version
方法名:getApplicationName
暂无
代码示例来源:origin: net.sf.squirrel-sql/squirrel-sql
/**
* Load from preferences file.
*/
private void loadPrefs()
{
try
{
XMLBeanReader doc = new XMLBeanReader();
FileWrapper prefFile = PreferenceUtil.getPreferenceFileToReadFrom(plugin);
doc.load(prefFile, _prefs.getClass().getClassLoader());
Iterator<Object> it = doc.iterator();
if (it.hasNext())
{
_prefs = (IQueryTokenizerPreferenceBean) it.next();
}
}
catch (FileNotFoundException ignore)
{
s_log.info(USER_PREFS_FILE_NAME + " not found - will be created");
}
catch (Exception ex)
{
s_log.error("Error occured reading from preferences file: " + USER_PREFS_FILE_NAME, ex);
}
_prefs.setClientName(Version.getApplicationName() + "/" + plugin.getDescriptiveName());
_prefs.setClientVersion(Version.getShortVersion() + "/" + plugin.getVersion());
}
代码示例来源:origin: realXuJiang/bigtable-sql
/**
* Load from preferences file.
*/
private void loadPrefs()
{
try
{
XMLBeanReader doc = new XMLBeanReader();
FileWrapper prefFile = PreferenceUtil.getPreferenceFileToReadFrom(plugin);
doc.load(prefFile, _prefs.getClass().getClassLoader());
Iterator<Object> it = doc.iterator();
if (it.hasNext())
{
_prefs = (IQueryTokenizerPreferenceBean) it.next();
}
}
catch (FileNotFoundException ignore)
{
s_log.info(USER_PREFS_FILE_NAME + " not found - will be created");
}
catch (Exception ex)
{
s_log.error("Error occured reading from preferences file: " + USER_PREFS_FILE_NAME, ex);
}
_prefs.setClientName(Version.getApplicationName() + "/" + plugin.getDescriptiveName());
_prefs.setClientVersion(Version.getShortVersion() + "/" + plugin.getVersion());
}
代码示例来源:origin: net.sf.squirrel-sql.plugins/sqlval
_prefs.setClientName(Version.getApplicationName() + "/" + getDescriptiveName());
_prefs.setClientVersion(Version.getShortVersion() + "/" + getVersion());
代码示例来源:origin: net.sf.squirrel-sql.plugins/sqlscript
_prefs.setClientName(Version.getApplicationName() + "/" + plugin.getDescriptiveName());
_prefs.setClientVersion(Version.getShortVersion() + "/" + plugin.getVersion());
代码示例来源:origin: net.sf.squirrel-sql.plugins/mssql
_prefs.setClientName(Version.getApplicationName() + "/" + plugin.getDescriptiveName());
_prefs.setClientVersion(Version.getShortVersion() + "/" + plugin.getVersion());
代码示例来源:origin: net.sf.squirrel-sql.plugins/refactoring
_prefs.setClientName(Version.getApplicationName() + "/" + plugin.getDescriptiveName());
_prefs.setClientVersion(Version.getShortVersion() + "/" + plugin.getVersion());
代码示例来源:origin: net.sf.squirrel-sql.plugins/dbcopy
_prefs.setClientName(Version.getApplicationName() + "/" + plugin.getDescriptiveName());
_prefs.setClientVersion(Version.getShortVersion() + "/" + plugin.getVersion());
代码示例来源:origin: net.sf.squirrel-sql.plugins/dbdiff
_prefs.setClientName(Version.getApplicationName() + "/" + plugin.getDescriptiveName());
_prefs.setClientVersion(Version.getShortVersion() + "/" + plugin.getVersion());
内容来源于网络,如有侵权,请联系作者删除!