📄 uifunctionsimpl.java
字号:
return;
}
mainWindow.switchToAdvancedTab();
uiFunctions.openPluginView(sParentID, sViewID, l, dataSource, bSetFocus);
} catch (Exception e) {
Logger.log(new LogEvent(LOGID, "openPluginView", e));
}
}
// @see com.aelitis.azureus.ui.swt.UIFunctionsSWT#openPluginView(org.gudy.azureus2.ui.swt.plugins.UISWTPluginView)
public void openPluginView(UISWTPluginView view) {
try {
UIFunctionsSWT uiFunctions = mainWindow.getOldUIFunctions(true);
if (uiFunctions == null) {
return;
}
mainWindow.switchToAdvancedTab();
uiFunctions.openPluginView(view);
} catch (Exception e) {
Logger.log(new LogEvent(LOGID, "openPluginView", e));
}
}
// @see com.aelitis.azureus.ui.UIFunctions#refreshIconBar()
public void refreshIconBar() {
try {
UIFunctionsSWT uiFunctions = mainWindow.getOldUIFunctions(true);
if (uiFunctions == null) {
return;
}
uiFunctions.refreshIconBar();
} catch (Exception e) {
Logger.log(new LogEvent(LOGID, "refreshIconBar", e));
}
}
// @see com.aelitis.azureus.ui.UIFunctions#refreshLanguage()
public void refreshLanguage() {
try {
UIFunctionsSWT uiFunctions = mainWindow.getOldUIFunctions(true);
if (uiFunctions == null) {
return;
}
uiFunctions.refreshLanguage();
} catch (Exception e) {
Logger.log(new LogEvent(LOGID, "refreshLanguage", e));
}
}
// @see com.aelitis.azureus.ui.UIFunctions#removeManagerView(org.gudy.azureus2.core3.download.DownloadManager)
public void removeManagerView(DownloadManager dm) {
try {
UIFunctionsSWT uiFunctions = mainWindow.getOldUIFunctions(true);
if (uiFunctions == null) {
return;
}
uiFunctions.removeManagerView(dm);
} catch (Exception e) {
Logger.log(new LogEvent(LOGID, "removeManagerView", e));
}
}
// @see com.aelitis.azureus.ui.swt.UIFunctionsSWT#removePluginView(java.lang.String)
public void removePluginView(String viewID) {
try {
UIFunctionsSWT uiFunctions = mainWindow.getOldUIFunctions(true);
if (uiFunctions == null) {
pluginViews_mon.enter();
try {
mapPluginViews.remove(viewID);
} finally {
pluginViews_mon.exit();
}
return;
}
uiFunctions.removePluginView(viewID);
} catch (Exception e) {
Logger.log(new LogEvent(LOGID, "removePluginView", e));
}
}
// @see com.aelitis.azureus.ui.swt.UIFunctionsSWT#removePluginView(org.gudy.azureus2.ui.swt.plugins.UISWTPluginView)
public void removePluginView(UISWTPluginView view) {
try {
UIFunctionsSWT uiFunctions = mainWindow.getOldUIFunctions(true);
if (uiFunctions == null) {
pluginViews_mon.enter();
try {
mapPluginViews.remove(view);
} finally {
pluginViews_mon.exit();
}
return;
}
uiFunctions.removePluginView(view);
} catch (Exception e) {
Logger.log(new LogEvent(LOGID, "removePluginView", e));
}
}
// @see com.aelitis.azureus.ui.UIFunctions#requestShutdown()
public boolean requestShutdown() {
try {
UIFunctionsSWT uiFunctions = mainWindow.getOldUIFunctions(true);
if (uiFunctions == null) {
return true;
}
return uiFunctions.requestShutdown();
} catch (Exception e) {
Logger.log(new LogEvent(LOGID, "requestShutdown", e));
}
return false;
}
// @see com.aelitis.azureus.ui.UIFunctions#setStatusText(java.lang.String)
public void setStatusText(String string) {
// TODO Auto-generated method stub
// XXX Don't use oldMainWindow, status bar is global and oldMainWindow
// shouldn't need to be initialized
}
// @see com.aelitis.azureus.ui.UIFunctions#showConfig(java.lang.String)
public boolean showConfig(String string) {
try {
UIFunctionsSWT uiFunctions = mainWindow.getOldUIFunctions(true);
if (uiFunctions == null) {
return false;
}
mainWindow.switchToAdvancedTab();
return uiFunctions.showConfig(string);
} catch (Exception e) {
Logger.log(new LogEvent(LOGID, "showConfig", e));
}
return false;
}
// @see com.aelitis.azureus.ui.UIFunctions#showMyShares()
public void showMyShares() {
try {
UIFunctionsSWT uiFunctions = mainWindow.getOldUIFunctions(true);
if (uiFunctions == null) {
return;
}
mainWindow.switchToAdvancedTab();
uiFunctions.showMyShares();
} catch (Exception e) {
Logger.log(new LogEvent(LOGID, "showMyShares", e));
}
}
// @see com.aelitis.azureus.ui.UIFunctions#showMyTorrents()
public void showMyTorrents() {
try {
UIFunctionsSWT uiFunctions = mainWindow.getOldUIFunctions(true);
if (uiFunctions == null) {
return;
}
mainWindow.switchToAdvancedTab();
uiFunctions.showMyTorrents();
} catch (Exception e) {
Logger.log(new LogEvent(LOGID, "showMyTorrents", e));
}
}
// @see com.aelitis.azureus.ui.UIFunctions#showMyTracker()
public void showMyTracker() {
try {
UIFunctionsSWT uiFunctions = mainWindow.getOldUIFunctions(true);
if (uiFunctions == null) {
return;
}
mainWindow.switchToAdvancedTab();
uiFunctions.showMyTracker();
} catch (Exception e) {
Logger.log(new LogEvent(LOGID, "showMyTracker", e));
}
}
// @see com.aelitis.azureus.ui.UIFunctions#showStats()
public void showStats() {
try {
UIFunctionsSWT uiFunctions = mainWindow.getOldUIFunctions(true);
if (uiFunctions == null) {
return;
}
mainWindow.switchToAdvancedTab();
uiFunctions.showStats();
} catch (Exception e) {
Logger.log(new LogEvent(LOGID, "showStats", e));
}
}
// @see com.aelitis.azureus.ui.UIFunctions#showStatsDHT()
public void showStatsDHT() {
try {
UIFunctionsSWT uiFunctions = mainWindow.getOldUIFunctions(true);
if (uiFunctions == null) {
return;
}
mainWindow.switchToAdvancedTab();
uiFunctions.showStatsDHT();
} catch (Exception e) {
Logger.log(new LogEvent(LOGID, "showStatsDHT", e));
}
}
// @see com.aelitis.azureus.ui.UIFunctions#showStatsTransfers()
public void showStatsTransfers() {
try {
UIFunctionsSWT uiFunctions = mainWindow.getOldUIFunctions(true);
if (uiFunctions == null) {
return;
}
mainWindow.switchToAdvancedTab();
uiFunctions.showStatsTransfers();
} catch (Exception e) {
Logger.log(new LogEvent(LOGID, "", e));
}
}
// @see com.aelitis.azureus.ui.UIFunctions#showConsole()
public void showConsole() {
try {
UIFunctionsSWT uiFunctions = mainWindow.getOldUIFunctions(true);
if (uiFunctions == null) {
return;
}
mainWindow.switchToAdvancedTab();
uiFunctions.showConsole();
} catch (Exception e) {
Logger.log(new LogEvent(LOGID, "ShowConsole", e));
}
}
public UISWTInstance getUISWTInstance() {
return mainWindow.getUISWTInstanceImpl();
}
public boolean viewURL(final String url, final String target, final int w,
final int h, final boolean allowResize) {
mainWindow.shell.getDisplay().syncExec(new AERunnable() {
public void runSupport() {
if (target == null) {
BrowserWindow window = new BrowserWindow(mainWindow.shell, url, w, h,
allowResize);
window.waitUntilClosed();
} else {
mainWindow.showURL(url, target);
}
}
});
return true;
}
protected void oldMainWindowInitialized(MainWindow oldMainWindow) {
UIFunctionsSWT uiFunctions = mainWindow.getOldUIFunctions(true);
if (uiFunctions == null) {
return;
}
pluginViews_mon.enter();
try {
for (Iterator iterator = mapPluginViews.keySet().iterator(); iterator.hasNext();) {
Object key = iterator.next();
if (key instanceof PluginView) {
uiFunctions.addPluginView((PluginView) key);
} else if (key instanceof UISWTPluginView) {
uiFunctions.addPluginView((UISWTPluginView) key);
} else if (key instanceof String) {
UISWTViewEventListener value = (UISWTViewEventListener) mapPluginViews.get(key);
uiFunctions.addPluginView((String) key,
(UISWTViewEventListener) value);
}
}
mapPluginViews.clear();
} finally {
pluginViews_mon.exit();
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -