本文整理汇总了Java中org.tigris.subversion.svnclientadapter.javahl.JhlClientAdapterFactory类的典型用法代码示例。如果您正苦于以下问题:Java JhlClientAdapterFactory类的具体用法?Java JhlClientAdapterFactory怎么用?Java JhlClientAdapterFactory使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
JhlClientAdapterFactory类属于org.tigris.subversion.svnclientadapter.javahl包,在下文中一共展示了JhlClientAdapterFactory类的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: isAvailable
import org.tigris.subversion.svnclientadapter.javahl.JhlClientAdapterFactory; //导入依赖的package包/类
@Override
public boolean isAvailable() {
if(!available) {
presetJavahl();
try {
JhlClientAdapterFactory.setup();
} catch (Throwable t) {
if (!"factory for type javahl already registered".equals(t.getMessage())) {
String jhlErorrs = JhlClientAdapterFactory.getLibraryLoadErrors();
LOG.log(Level.INFO, t.getMessage());
LOG.log(Level.WARNING, "{0}\n", jhlErorrs); // NOI18N
return false;
}
}
String version = getVersion();
if(!isSupportedJavahlVersion(version)) {
LOG.log(Level.INFO, "Unsupported version {0} of subversion javahl bindings.", version); // NOI18N
return false;
}
available = JhlClientAdapterFactory.isAvailable();
}
return available;
}
示例2: setup
import org.tigris.subversion.svnclientadapter.javahl.JhlClientAdapterFactory; //导入依赖的package包/类
public void setup() {
try {
JhlClientAdapterFactory.setup();
} catch (SVNClientException e) {
// can't register this factory
}
try {
CmdLineClientAdapterFactory.setup();
} catch (SVNClientException e1) {
// can't register this factory
}
}
示例3: isAvailable
import org.tigris.subversion.svnclientadapter.javahl.JhlClientAdapterFactory; //导入依赖的package包/类
public boolean isAvailable() {
boolean available = JhlClientAdapterFactory.isAvailable();
if (!available && !loadErrorLogged) {
getLog().log(new Status(IStatus.INFO, PLUGIN_ID, 0, getLoadErrors(), null));
loadErrorLogged = true;
org.tigris.subversion.clientadapter.Activator.getDefault().handleLoadErrors(this);
}
return available;
}
示例4: createClient
import org.tigris.subversion.svnclientadapter.javahl.JhlClientAdapterFactory; //导入依赖的package包/类
@Override
public ISVNClientAdapter createClient() {
return JhlClientAdapterFactory.createSVNClient(JhlClientAdapterFactory.JAVAHL_CLIENT);
}
示例5: SVN
import org.tigris.subversion.svnclientadapter.javahl.JhlClientAdapterFactory; //导入依赖的package包/类
public SVN() {
svnClient = SVNClientAdapterFactory.createSVNClient( JhlClientAdapterFactory.JAVAHL_CLIENT );
}
示例6: getAdapterID
import org.tigris.subversion.svnclientadapter.javahl.JhlClientAdapterFactory; //导入依赖的package包/类
public String getAdapterID() {
return JhlClientAdapterFactory.JAVAHL_CLIENT;
}
示例7: getLoadErrors
import org.tigris.subversion.svnclientadapter.javahl.JhlClientAdapterFactory; //导入依赖的package包/类
public String getLoadErrors() {
return JhlClientAdapterFactory.getLibraryLoadErrors();
}