📄 uimessageimpl.java
字号:
// 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: UIMessageImpl.java
package org.gudy.azureus2.ui.swt.pluginsimpl;
import org.gudy.azureus2.pluginsimpl.local.ui.AbstractUIMessage;
import org.gudy.azureus2.ui.swt.Utils;
import org.gudy.azureus2.ui.swt.components.shell.ShellFactory;
public class UIMessageImpl extends AbstractUIMessage
{
public UIMessageImpl()
{
}
public int ask()
{
final int result[] = new int[1];
Utils.execSWTThread(new Runnable() {
final int val$result[];
final UIMessageImpl this$0;
public void run()
{
result[0] = ask0();
}
{
this$0 = UIMessageImpl.this;
result = ai;
super();
}
}, false);
return result[0];
}
private int ask0()
{
org.eclipse.swt.widgets.Shell shell = ShellFactory.createShell(Utils.findAnyShell(), 0x10860);
Utils.setShellIcon(shell);
int style = 0;
switch (input_type)
{
case 1: // '\001'
style |= 0x100;
// fall through
case 0: // '\0'
style |= 0x20;
break;
case 5: // '\005'
style |= 0x800;
// fall through
case 4: // '\004'
style |= 0x400;
style |= 0x100;
break;
case 3: // '\003'
style |= 0x100;
// fall through
case 2: // '\002'
style |= 0x40;
style |= 0x80;
break;
}
switch (message_type)
{
case 1: // '\001'
style |= 1;
break;
case 2: // '\002'
style |= 2;
break;
case 4: // '\004'
style |= 4;
break;
case 3: // '\003'
style |= 8;
break;
case 5: // '\005'
style |= 0x10;
break;
}
int result = Utils.openMessageBox(shell, style, title, messagesAsString());
switch (result)
{
case 32: // ' '
return 0;
case 64: // '@'
return 2;
case 128:
return 3;
case 512:
return 1;
case 1024:
return 4;
case 2048:
return 5;
}
return 1;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -