📄 uifunctionsimpl.java
字号:
super();
}
});
}
public UISWTView[] getPluginViews()
{
return mainwindow.getPluginViews();
}
public void openPluginView(final String sParentID, final String sViewID, final UISWTViewEventListener l, final Object dataSource, final boolean bSetFocus)
{
Utils.execSWTThreadLater(0, new AERunnable() {
final String val$sParentID;
final String val$sViewID;
final UISWTViewEventListener val$l;
final Object val$dataSource;
final boolean val$bSetFocus;
final UIFunctionsImpl this$0;
public void runSupport()
{
mainwindow.openPluginView(sParentID, sViewID, l, dataSource, bSetFocus, false);
}
{
this$0 = UIFunctionsImpl.this;
sParentID = s;
sViewID = s1;
l = uiswtvieweventlistener;
dataSource = obj;
bSetFocus = flag;
super();
}
});
}
public void removePluginView(final String viewID)
{
Utils.execSWTThreadLater(0, new AERunnable() {
final String val$viewID;
final UIFunctionsImpl this$0;
public void runSupport()
{
PluginsMenuHelper.getInstance().removePluginViews(viewID);
}
{
this$0 = UIFunctionsImpl.this;
viewID = s;
super();
}
});
}
public void setStatusText(final String string)
{
Utils.execSWTThreadLater(0, new AERunnable() {
final String val$string;
final UIFunctionsImpl this$0;
public void runSupport()
{
mainwindow.setStatusText(string);
}
{
this$0 = UIFunctionsImpl.this;
string = s;
super();
}
});
}
public void setStatusText(final int statustype, final String string, final UIStatusTextClickListener l)
{
Utils.execSWTThreadLater(0, new AERunnable() {
final int val$statustype;
final String val$string;
final UIStatusTextClickListener val$l;
final UIFunctionsImpl this$0;
public void runSupport()
{
mainwindow.setStatusText(statustype, string, l);
}
{
this$0 = UIFunctionsImpl.this;
statustype = i;
string = s;
l = uistatustextclicklistener;
super();
}
});
}
public boolean dispose(boolean for_restart, boolean close_already_in_progress)
{
return mainwindow.dispose(for_restart, close_already_in_progress);
}
public Menu getMenu(int id)
{
if (mainwindow.getMenu() != null)
return mainwindow.getMenu().getMenu(id);
else
return null;
}
public void closePluginViews(final String sViewID)
{
Utils.execSWTThreadLater(0, new AERunnable() {
final String val$sViewID;
final UIFunctionsImpl this$0;
public void runSupport()
{
mainwindow.closePluginViews(sViewID);
}
{
this$0 = UIFunctionsImpl.this;
sViewID = s;
super();
}
});
}
public void openPluginView(final AbstractIView view, final String name)
{
Utils.execSWTThreadLater(0, new AERunnable() {
final AbstractIView val$view;
final String val$name;
final UIFunctionsImpl this$0;
public void runSupport()
{
mainwindow.openPluginView(view, name);
}
{
this$0 = UIFunctionsImpl.this;
view = abstractiview;
name = s;
super();
}
});
}
private void showMyShares()
{
Utils.execSWTThreadLater(0, new AERunnable() {
final UIFunctionsImpl this$0;
public void runSupport()
{
mainwindow.showMyShares();
}
{
this$0 = UIFunctionsImpl.this;
super();
}
});
}
private void showMyTorrents()
{
Utils.execSWTThreadLater(0, new AERunnable() {
final UIFunctionsImpl this$0;
public void runSupport()
{
mainwindow.showMyTorrents();
}
{
this$0 = UIFunctionsImpl.this;
super();
}
});
}
private void showDetailedListView()
{
Utils.execSWTThreadLater(0, new AERunnable() {
final UIFunctionsImpl this$0;
public void runSupport()
{
mainwindow.showDetailedListView();
}
{
this$0 = UIFunctionsImpl.this;
super();
}
});
}
private void showAllPeersView()
{
Utils.execSWTThreadLater(0, new AERunnable() {
final UIFunctionsImpl this$0;
public void runSupport()
{
mainwindow.showAllPeersView();
}
{
this$0 = UIFunctionsImpl.this;
super();
}
});
}
private void showMultiOptionsView(final DownloadManager dms[])
{
Utils.execSWTThreadLater(0, new AERunnable() {
final DownloadManager val$dms[];
final UIFunctionsImpl this$0;
public void runSupport()
{
mainwindow.showMultiOptionsView(dms);
}
{
this$0 = UIFunctionsImpl.this;
dms = adownloadmanager;
super();
}
});
}
private void showConsole()
{
Utils.execSWTThreadLater(0, new AERunnable() {
final UIFunctionsImpl this$0;
public void runSupport()
{
mainwindow.showConsole();
}
{
this$0 = UIFunctionsImpl.this;
super();
}
});
}
public UISWTInstance getUISWTInstance()
{
return mainwindow.getUISWTInstanceImpl();
}
public void viewURL(String url, String target, String sourceRef)
{
viewURL(url, target, 0.90000000000000002D, 0.90000000000000002D, true, false);
}
public boolean viewURL(final String url, String target, final int w, final int h, final boolean allowResize, final boolean isModal)
{
Utils.execSWTThreadLater(0, new AERunnable() {
final String val$url;
final int val$w;
final int val$h;
final boolean val$allowResize;
final boolean val$isModal;
final UIFunctionsImpl this$0;
public void runSupport()
{
SimpleBrowserWindow window = new SimpleBrowserWindow(mainwindow.getShell(), url, w, h, allowResize, isModal);
window.waitUntilClosed();
}
{
this$0 = UIFunctionsImpl.this;
url = s;
w = i;
h = j;
allowResize = flag;
isModal = flag1;
super();
}
});
return true;
}
public boolean viewURL(final String url, String target, final double w, final double h, final boolean allowResize,
final boolean isModal)
{
Utils.execSWTThreadLater(0, new AERunnable() {
final String val$url;
final double val$w;
final double val$h;
final boolean val$allowResize;
final boolean val$isModal;
final UIFunctionsImpl this$0;
public void runSupport()
{
SimpleBrowserWindow window = new SimpleBrowserWindow(mainwindow.getShell(), url, w, h, allowResize, isModal);
window.waitUntilClosed();
}
{
this$0 = UIFunctionsImpl.this;
url = s;
w = d;
h = d1;
allowResize = flag;
isModal = flag1;
super();
}
});
return true;
}
public int promptUser(String title, String text, String buttons[], int defaultOption, String rememberID, String rememberText, boolean rememberByDefault,
int autoCloseInMS)
{
return MessageBoxShell.open(getMainShell(), title, text, buttons, defaultOption, rememberID, rememberText, rememberByDefault, autoCloseInMS);
}
public UIFunctionsUserPrompter getUserPrompter(String title, String text, String buttons[], int defaultOption)
{
MessageBoxShell mb = new MessageBoxShell(getMainShell(), title, text, buttons, defaultOption);
return mb;
}
public void refreshTorrentMenu()
{
mainwindow.refreshTorrentMenu();
}
public MainStatusBar getMainStatusBar()
{
return mainwindow.getMainStatusBar();
}
public IMainMenu createMainMenu(Shell shell)
{
return new MainMenu(shell);
}
public IMainWindow getMainWindow()
{
return mainwindow;
}
public UIUpdater getUIUpdater()
{
return UIUpdaterSWT.getInstance();
}
public void closeAllDetails()
{
mainwindow.closeAllDetails();
}
public boolean hasDetailViews()
{
return mainwindow.hasDetailViews();
}
public void openView(int viewID, Object datasource)
{
switch (viewID)
{
case 2: // '\002'
case 3: // '\003'
default:
break;
case 0: // '\0'
showConsole();
break;
case 10: // '\n'
showAllPeersView();
break;
case 4: // '\004'
showConfig((datasource instanceof String) ? (String)datasource : null);
break;
case 5: // '\005'
if (datasource instanceof DownloadManager)
openManagerView((DownloadManager)datasource);
break;
case 6: // '\006'
if (datasource instanceof DownloadManager[])
{
DownloadManager dms[] = (DownloadManager[])(DownloadManager[])datasource;
showMultiOptionsView(dms);
}
break;
case 7: // '\007'
showMyShares();
break;
case 8: // '\b'
showMyTorrents();
break;
case 9: // '\t'
showMyTracker();
break;
case 1: // '\001'
if ("dht".equals(datasource))
{
showStatsDHT();
break;
}
if ("transfers".equals(datasource))
showStatsTransfers();
else
showStats();
break;
case 11: // '\013'
showDetailedListView();
break;
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -