本文整理汇总了Java中com.aelitis.azureus.core.util.AZ3Functions类的典型用法代码示例。如果您正苦于以下问题:Java AZ3Functions类的具体用法?Java AZ3Functions怎么用?Java AZ3Functions使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
AZ3Functions类属于com.aelitis.azureus.core.util包,在下文中一共展示了AZ3Functions类的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: subscribeToCategory
import com.aelitis.azureus.core.util.AZ3Functions; //导入依赖的package包/类
public void
subscribeToCategory(
String cat )
throws BuddyPluginException
{
AZ3Functions.provider az3 = AZ3Functions.getProvider();
if ( az3 == null ){
throw( new BuddyPluginException( "AZ3 subsystem not available" ));
}
try{
az3.subscribeToRSS(
getName() + ": " + cat,
getSubscriptionURL(cat),
15,
false,
getPublicKey() + ":" + cat );
}catch( Throwable e ){
throw( new BuddyPluginException( "Failed to add subscription", e ));
}
}
示例2: addLocalActivity
import com.aelitis.azureus.core.util.AZ3Functions; //导入依赖的package包/类
public static void
addLocalActivity(
String uid,
String icon_id,
String name,
String[] actions,
Class<? extends AZ3Functions.provider.LocalActivityCallback> callback,
Map<String,String> callback_data )
{
}
示例3: run
import com.aelitis.azureus.core.util.AZ3Functions; //导入依赖的package包/类
public static void run( final DownloadManager dm) {
if(dm != null) {
LaunchManager launch_manager = LaunchManager.getManager();
LaunchManager.LaunchTarget target = launch_manager.createTarget( dm );
launch_manager.launchRequest(
target,
new LaunchManager.LaunchAction()
{
public void
actionAllowed()
{
AZ3Functions.provider prov = AZ3Functions.getProvider();
if ( prov != null ){
prov.setOpened( dm, true );
}
Utils.execSWTThread(
new Runnable()
{
public void
run()
{
if (run != null) {
run.run(dm);
} else {
Utils.launch(dm.getSaveLocation().toString());
}
}
});
}
public void
actionDenied(
Throwable reason )
{
Debug.out( "Launch request denied", reason );
}
});
}
}
示例4: defaultSelected
import com.aelitis.azureus.core.util.AZ3Functions; //导入依赖的package包/类
public void defaultSelected(TableRowCore[] rows, int stateMask) {
DiskManagerFileInfo fileInfo = (DiskManagerFileInfo) tv.getFirstSelectedDataSource();
if ( fileInfo == null ){
return;
}
String mode = COConfigurationManager.getStringParameter("list.dm.dblclick");
if ( mode.equals("2")){
boolean openMode = COConfigurationManager.getBooleanParameter("MyTorrentsView.menu.show_parent_folder_enabled");
ManagerUtils.open( fileInfo, openMode) ;
}else if ( mode.equals( "3" )){
if ( fileInfo.getAccessMode() == DiskManagerFileInfo.READ ){
Utils.launch(fileInfo);
}
}else{
AZ3Functions.provider az3 = AZ3Functions.getProvider();
if ( az3 != null ){
DownloadManager dm = fileInfo.getDownloadManager();
if ( az3.canPlay(dm, fileInfo.getIndex()) || (stateMask & SWT.CONTROL) != 0 ){
az3.play( dm, fileInfo.getIndex() );
return;
}
}
if ( fileInfo.getAccessMode() == DiskManagerFileInfo.READ ){
Utils.launch(fileInfo);
}
}
}