⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 uifunctionsimpl.java

📁 java 文件下载器。可自定义
💻 JAVA
📖 第 1 页 / 共 2 页
字号:
// Decompiled by Jad v1.5.8e2. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://kpdus.tripod.com/jad.html
// Decompiler options: packimports(3) fieldsfirst ansi space 
// Source File Name:   UIFunctionsImpl.java

package org.gudy.azureus2.ui.swt.mainwindow;

import com.aelitis.azureus.ui.UIFunctionsUserPrompter;
import com.aelitis.azureus.ui.UIStatusTextClickListener;
import com.aelitis.azureus.ui.common.updater.UIUpdater;
import com.aelitis.azureus.ui.swt.UIFunctionsSWT;
import com.aelitis.azureus.ui.swt.uiupdater.UIUpdaterSWT;
import org.eclipse.swt.widgets.Menu;
import org.eclipse.swt.widgets.Shell;
import org.gudy.azureus2.core3.download.DownloadManager;
import org.gudy.azureus2.core3.util.AERunnable;
import org.gudy.azureus2.plugins.PluginView;
import org.gudy.azureus2.ui.swt.Utils;
import org.gudy.azureus2.ui.swt.minibar.AllTransfersBar;
import org.gudy.azureus2.ui.swt.minibar.MiniBarManager;
import org.gudy.azureus2.ui.swt.plugins.*;
import org.gudy.azureus2.ui.swt.pluginsimpl.UISWTInstanceImpl;
import org.gudy.azureus2.ui.swt.shells.MessageBoxShell;
import org.gudy.azureus2.ui.swt.shells.SimpleBrowserWindow;
import org.gudy.azureus2.ui.swt.views.AbstractIView;
import org.gudy.azureus2.ui.swt.views.IView;

// Referenced classes of package org.gudy.azureus2.ui.swt.mainwindow:
//			MainMenu, MainWindow, MainStatusBar, IMainMenu, 
//			IMainWindow, PluginsMenuHelper

public class UIFunctionsImpl
	implements UIFunctionsSWT
{

	private final MainWindow mainwindow;

	public UIFunctionsImpl(MainWindow mainwindow)
	{
		this.mainwindow = mainwindow;
	}

	public void bringToFront()
	{
		bringToFront(true);
	}

	public void bringToFront(final boolean tryTricks)
	{
		Utils.execSWTThreadLater(0, new AERunnable() {

			final boolean val$tryTricks;
			final UIFunctionsImpl this$0;

			public void runSupport()
			{
				mainwindow.setVisible(true, tryTricks);
			}

			
			{
				this$0 = UIFunctionsImpl.this;
				tryTricks = flag;
				super();
			}
		});
	}

	public void addPluginView(final PluginView view)
	{
		Utils.execSWTThreadLater(0, new AERunnable() {

			final PluginView val$view;
			final UIFunctionsImpl this$0;

			public void runSupport()
			{
				PluginsMenuHelper.getInstance().addPluginView(view, view.getPluginViewName());
			}

			
			{
				this$0 = UIFunctionsImpl.this;
				view = pluginview;
				super();
			}
		});
	}

	public void openPluginView(final PluginView view)
	{
		Utils.execSWTThreadLater(0, new AERunnable() {

			final PluginView val$view;
			final UIFunctionsImpl this$0;

			public void runSupport()
			{
				mainwindow.openPluginView(view, view.getPluginViewName());
			}

			
			{
				this$0 = UIFunctionsImpl.this;
				view = pluginview;
				super();
			}
		});
	}

	public void removePluginView(final PluginView view)
	{
		Utils.execSWTThreadLater(0, new AERunnable() {

			final PluginView val$view;
			final UIFunctionsImpl this$0;

			public void runSupport()
			{
				PluginsMenuHelper.getInstance().removePluginView(view, view.getPluginViewName());
			}

			
			{
				this$0 = UIFunctionsImpl.this;
				view = pluginview;
				super();
			}
		});
	}

	private void showStats()
	{
		Utils.execSWTThreadLater(0, new AERunnable() {

			final UIFunctionsImpl this$0;

			public void runSupport()
			{
				mainwindow.showStats();
			}

			
			{
				this$0 = UIFunctionsImpl.this;
				super();
			}
		});
	}

	private void showStatsDHT()
	{
		Utils.execSWTThreadLater(0, new AERunnable() {

			final UIFunctionsImpl this$0;

			public void runSupport()
			{
				mainwindow.showStatsDHT();
			}

			
			{
				this$0 = UIFunctionsImpl.this;
				super();
			}
		});
	}

	private void showStatsTransfers()
	{
		Utils.execSWTThreadLater(0, new AERunnable() {

			final UIFunctionsImpl this$0;

			public void runSupport()
			{
				mainwindow.showStatsTransfers();
			}

			
			{
				this$0 = UIFunctionsImpl.this;
				super();
			}
		});
	}

	public Shell getMainShell()
	{
		return mainwindow.getShell();
	}

	public void addPluginView(final UISWTPluginView view)
	{
		Utils.execSWTThreadLater(0, new AERunnable() {

			final UISWTPluginView val$view;
			final UIFunctionsImpl this$0;

			public void runSupport()
			{
				PluginsMenuHelper.getInstance().addPluginView(view, view.getPluginViewName());
			}

			
			{
				this$0 = UIFunctionsImpl.this;
				view = uiswtpluginview;
				super();
			}
		});
	}

	public void openPluginView(final UISWTPluginView view)
	{
		Utils.execSWTThreadLater(0, new AERunnable() {

			final UISWTPluginView val$view;
			final UIFunctionsImpl this$0;

			public void runSupport()
			{
				mainwindow.openPluginView(view, view.getPluginViewName());
			}

			
			{
				this$0 = UIFunctionsImpl.this;
				view = uiswtpluginview;
				super();
			}
		});
	}

	public void removePluginView(final UISWTPluginView view)
	{
		Utils.execSWTThreadLater(0, new AERunnable() {

			final UISWTPluginView val$view;
			final UIFunctionsImpl this$0;

			public void runSupport()
			{
				PluginsMenuHelper.getInstance().removePluginView(view, view.getPluginViewName());
			}

			
			{
				this$0 = UIFunctionsImpl.this;
				view = uiswtpluginview;
				super();
			}
		});
	}

	public boolean showConfig(String string)
	{
		return mainwindow.showConfig(string);
	}

	public void addPluginView(final String viewID, final UISWTViewEventListener l)
	{
		Utils.execSWTThreadLater(0, new AERunnable() {

			final String val$viewID;
			final UISWTViewEventListener val$l;
			final UIFunctionsImpl this$0;

			public void runSupport()
			{
				PluginsMenuHelper.getInstance().addPluginView(viewID, l);
			}

			
			{
				this$0 = UIFunctionsImpl.this;
				viewID = s;
				l = uiswtvieweventlistener;
				super();
			}
		});
	}

	public void refreshLanguage()
	{
		Utils.execSWTThreadLater(0, new AERunnable() {

			final UIFunctionsImpl this$0;

			public void runSupport()
			{
				mainwindow.setSelectedLanguageItem();
			}

			
			{
				this$0 = UIFunctionsImpl.this;
				super();
			}
		});
	}

	public void closeDownloadBars()
	{
		Utils.execSWTThreadLater(0, new AERunnable() {

			final UIFunctionsImpl this$0;

			public void runSupport()
			{
				MiniBarManager.getManager().closeAll();
			}

			
			{
				this$0 = UIFunctionsImpl.this;
				super();
			}
		});
	}

	public boolean isGlobalTransferBarShown()
	{
		return AllTransfersBar.getManager().isOpen(mainwindow.getGlobalManager());
	}

	public void showGlobalTransferBar()
	{
		Utils.execSWTThreadLater(0, new AERunnable() {

			final UIFunctionsImpl this$0;

			public void runSupport()
			{
				AllTransfersBar.open(mainwindow.getGlobalManager(), mainwindow.getShell());
			}

			
			{
				this$0 = UIFunctionsImpl.this;
				super();
			}
		});
	}

	public void closeGlobalTransferBar()
	{
		Utils.execSWTThreadLater(0, new AERunnable() {

			final UIFunctionsImpl this$0;

			public void runSupport()
			{
				AllTransfersBar.close(mainwindow.getGlobalManager());
			}

			
			{
				this$0 = UIFunctionsImpl.this;
				super();
			}
		});
	}

	public UISWTInstanceImpl getSWTPluginInstanceImpl()
	{
		return mainwindow.getUISWTInstanceImpl();
	}

	public void openManagerView(final DownloadManager dm)
	{
		Utils.execSWTThreadLater(0, new AERunnable() {

			final DownloadManager val$dm;
			final UIFunctionsImpl this$0;

			public void runSupport()
			{
				mainwindow.openManagerView(dm);
			}

			
			{
				this$0 = UIFunctionsImpl.this;
				dm = downloadmanager;
				super();
			}
		});
	}

	public void refreshIconBar()
	{
		Utils.execSWTThreadLater(0, new AERunnable() {

			final UIFunctionsImpl this$0;

			public void runSupport()
			{
				mainwindow.refreshIconBar();
			}

			
			{
				this$0 = UIFunctionsImpl.this;
				super();
			}
		});
	}

	public void removeManagerView(final DownloadManager dm)
	{
		Utils.execSWTThreadLater(0, new AERunnable() {

			final DownloadManager val$dm;
			final UIFunctionsImpl this$0;

			public void runSupport()
			{
				mainwindow.removeManagerView(dm);
			}

			
			{
				this$0 = UIFunctionsImpl.this;
				dm = downloadmanager;
				super();
			}
		});
	}

	private void showMyTracker()
	{
		Utils.execSWTThreadLater(0, new AERunnable() {

			final UIFunctionsImpl this$0;

			public void runSupport()
			{
				mainwindow.showMyTracker();
			}

			
			{
				this$0 = UIFunctionsImpl.this;
				super();
			}
		});
	}

	public void closePluginView(final IView view)
	{
		Utils.execSWTThreadLater(0, new AERunnable() {

			final IView val$view;
			final UIFunctionsImpl this$0;

			public void runSupport()
			{
				mainwindow.closePluginView(view);
			}

			
			{
				this$0 = UIFunctionsImpl.this;
				view = iview;

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -