swt

16:53:24.635 INFO  jd.cli.Main - Decompiling swt.jar
package org.eclipse.swt;

import org.eclipse.swt.internal.Compatibility;
import org.eclipse.swt.internal.Library;

public class SWT
{
  public static final int None = 0;
  public static final int KeyDown = 1;
  public static final int KeyUp = 2;
  public static final int MouseDown = 3;
  public static final int MouseUp = 4;
  public static final int MouseMove = 5;
  public static final int MouseEnter = 6;
  public static final int MouseExit = 7;
  public static final int MouseDoubleClick = 8;
  public static final int Paint = 9;
  public static final int Move = 10;
  public static final int Resize = 11;
  public static final int Dispose = 12;
  public static final int Selection = 13;
  public static final int DefaultSelection = 14;
  public static final int FocusIn = 15;
  public static final int FocusOut = 16;
  public static final int Expand = 17;
  public static final int Collapse = 18;
  public static final int Iconify = 19;
  public static final int Deiconify = 20;
  public static final int Close = 21;
  public static final int Show = 22;
  public static final int Hide = 23;
  public static final int Modify = 24;
  public static final int Verify = 25;
  public static final int Activate = 26;
  public static final int Deactivate = 27;
  public static final int Help = 28;
  public static final int DragDetect = 29;
  public static final int Arm = 30;
  public static final int Traverse = 31;
  public static final int MouseHover = 32;
  public static final int HardKeyDown = 33;
  public static final int HardKeyUp = 34;
  public static final int MenuDetect = 35;
  public static final int SetData = 36;
  public static final int MouseWheel = 37;
  public static final int Settings = 39;
  public static final int EraseItem = 40;
  public static final int MeasureItem = 41;
  public static final int PaintItem = 42;
  public static final int ImeComposition = 43;
  public static final int COMPOSITION_CHANGED = 1;
  public static final int COMPOSITION_OFFSET = 2;
  public static final int COMPOSITION_SELECTION = 3;
  public static final int DRAG = 1;
  public static final int SELECTED = 2;
  public static final int FOCUSED = 4;
  public static final int BACKGROUND = 8;
  public static final int FOREGROUND = 16;
  public static final int HOT = 32;
  public static final int TRAVERSE_NONE = 0;
  public static final int TRAVERSE_ESCAPE = 2;
  public static final int TRAVERSE_RETURN = 4;
  public static final int TRAVERSE_TAB_PREVIOUS = 8;
  public static final int TRAVERSE_TAB_NEXT = 16;
  public static final int TRAVERSE_ARROW_PREVIOUS = 32;
  public static final int TRAVERSE_ARROW_NEXT = 64;
  public static final int TRAVERSE_MNEMONIC = 128;
  public static final int TRAVERSE_PAGE_PREVIOUS = 256;
  public static final int TRAVERSE_PAGE_NEXT = 512;
  public static final int NONE = 0;
  public static final int NULL = 0;
  public static final int DEFAULT = -1;
  public static final int OFF = 0;
  public static final int ON = 1;
  public static final int LOW = 1;
  public static final int HIGH = 2;
  public static final int BAR = 2;
  public static final int DROP_DOWN = 4;
  public static final int POP_UP = 8;
  public static final int SEPARATOR = 2;
  public static final int TOGGLE = 2;
  public static final int ARROW = 4;
  public static final int PUSH = 8;
  public static final int RADIO = 16;
  public static final int CHECK = 32;
  public static final int CASCADE = 64;
  public static final int MULTI = 2;
  public static final int SINGLE = 4;
  public static final int READ_ONLY = 8;
  public static final int WRAP = 64;
  public static final int SEARCH = 128;
  public static final int SIMPLE = 64;
  public static final int PASSWORD = 4194304;
  public static final int SHADOW_IN = 4;
  public static final int SHADOW_OUT = 8;
  public static final int SHADOW_ETCHED_IN = 16;
  public static final int SHADOW_ETCHED_OUT = 64;
  public static final int SHADOW_NONE = 32;
  public static final int INDETERMINATE = 2;
  public static final int TOOL = 4;
  public static final int NO_TRIM = 8;
  public static final int RESIZE = 16;
  public static final int TITLE = 32;
  public static final int CLOSE = 64;
  public static final int MENU = 64;
  public static final int MIN = 128;
  public static final int MAX = 1024;
  public static final int H_SCROLL = 256;
  public static final int V_SCROLL = 512;
  public static final int NO_SCROLL = 16;
  public static final int BORDER = 2048;
  public static final int CLIP_CHILDREN = 4096;
  public static final int CLIP_SIBLINGS = 8192;
  public static final int ON_TOP = 16384;
  public static final int SHEET = 268435456;
  public static final int SHELL_TRIM = 1264;
  public static final int DIALOG_TRIM = 2144;
  public static final int MODELESS = 0;
  public static final int PRIMARY_MODAL = 32768;
  public static final int APPLICATION_MODAL = 65536;
  public static final int SYSTEM_MODAL = 131072;
  public static final int HIDE_SELECTION = 32768;
  public static final int FULL_SELECTION = 65536;
  public static final int FLAT = 8388608;
  public static final int SMOOTH = 65536;
  public static final int NO_BACKGROUND = 262144;
  public static final int NO_FOCUS = 524288;
  public static final int NO_REDRAW_RESIZE = 1048576;
  public static final int NO_MERGE_PAINTS = 2097152;
  public static final int NO_RADIO_GROUP = 4194304;
  public static final int LEFT_TO_RIGHT = 33554432;
  public static final int RIGHT_TO_LEFT = 67108864;
  public static final int MIRRORED = 134217728;
  public static final int EMBEDDED = 16777216;
  public static final int VIRTUAL = 268435456;
  public static final int DOUBLE_BUFFERED = 536870912;
  public static final int TRANSPARENT = 1073741824;
  public static final int UP = 128;
  public static final int UNDERLINE_SINGLE = 0;
  public static final int UNDERLINE_DOUBLE = 1;
  public static final int UNDERLINE_ERROR = 2;
  public static final int UNDERLINE_SQUIGGLE = 3;
  public static final int UNDERLINE_LINK = 4;
  public static final int BORDER_SOLID = 1;
  public static final int BORDER_DASH = 2;
  public static final int BORDER_DOT = 4;
  public static final int TOP = 128;
  public static final int DOWN = 1024;
  public static final int BOTTOM = 1024;
  public static final int LEAD = 16384;
  public static final int LEFT = 16384;
  public static final int TRAIL = 131072;
  public static final int RIGHT = 131072;
  public static final int CENTER = 16777216;
  public static final int HORIZONTAL = 256;
  public static final int VERTICAL = 512;
  public static final int DATE = 32;
  public static final int TIME = 128;
  public static final int CALENDAR = 1024;
  public static final int SHORT = 32768;
  public static final int MEDIUM = 65536;
  public static final int LONG = 268435456;
  public static final int MOZILLA = 32768;
  public static final int BALLOON = 4096;
  public static final int BEGINNING = 1;
  public static final int FILL = 4;
  public static final int DBCS = 2;
  public static final int ALPHA = 4;
  public static final int NATIVE = 8;
  public static final int PHONETIC = 16;
  public static final int ROMAN = 32;
  public static final char BS = '\b';
  public static final char CR = '\r';
  public static final char DEL = '';
  public static final char ESC = '\033';
  public static final char LF = '\n';
  public static final char TAB = '\t';
  public static final int ALT = 65536;
  public static final int SHIFT = 131072;
  public static final int CTRL = 262144;
  public static final int CONTROL = 262144;
  public static final int COMMAND = 4194304;
  public static final int MODIFIER_MASK;
  public static final int BUTTON1 = 524288;
  public static final int BUTTON2 = 1048576;
  public static final int BUTTON3 = 2097152;
  public static final int BUTTON4 = 8388608;
  public static final int BUTTON5 = 33554432;
  public static final int BUTTON_MASK = 45613056;
  public static final int MOD1;
  public static final int MOD2;
  public static final int MOD3;
  public static final int MOD4;
  public static final int SCROLL_LINE = 1;
  public static final int SCROLL_PAGE = 2;
  public static final int KEYCODE_BIT = 16777216;
  public static final int KEY_MASK = 16842751;
  public static final int ARROW_UP = 16777217;
  public static final int ARROW_DOWN = 16777218;
  public static final int ARROW_LEFT = 16777219;
  public static final int ARROW_RIGHT = 16777220;
  public static final int PAGE_UP = 16777221;
  public static final int PAGE_DOWN = 16777222;
  public static final int HOME = 16777223;
  public static final int END = 16777224;
  public static final int INSERT = 16777225;
  public static final int F1 = 16777226;
  public static final int F2 = 16777227;
  public static final int F3 = 16777228;
  public static final int F4 = 16777229;
  public static final int F5 = 16777230;
  public static final int F6 = 16777231;
  public static final int F7 = 16777232;
  public static final int F8 = 16777233;
  public static final int F9 = 16777234;
  public static final int F10 = 16777235;
  public static final int F11 = 16777236;
  public static final int F12 = 16777237;
  public static final int F13 = 16777238;
  public static final int F14 = 16777239;
  public static final int F15 = 16777240;
  public static final int KEYPAD_MULTIPLY = 16777258;
  public static final int KEYPAD_ADD = 16777259;
  public static final int KEYPAD_SUBTRACT = 16777261;
  public static final int KEYPAD_DECIMAL = 16777262;
  public static final int KEYPAD_DIVIDE = 16777263;
  public static final int KEYPAD_0 = 16777264;
  public static final int KEYPAD_1 = 16777265;
  public static final int KEYPAD_2 = 16777266;
  public static final int KEYPAD_3 = 16777267;
  public static final int KEYPAD_4 = 16777268;
  public static final int KEYPAD_5 = 16777269;
  public static final int KEYPAD_6 = 16777270;
  public static final int KEYPAD_7 = 16777271;
  public static final int KEYPAD_8 = 16777272;
  public static final int KEYPAD_9 = 16777273;
  public static final int KEYPAD_EQUAL = 16777277;
  public static final int KEYPAD_CR = 16777296;
  public static final int HELP = 16777297;
  public static final int CAPS_LOCK = 16777298;
  public static final int NUM_LOCK = 16777299;
  public static final int SCROLL_LOCK = 16777300;
  public static final int PAUSE = 16777301;
  public static final int BREAK = 16777302;
  public static final int PRINT_SCREEN = 16777303;
  public static final int ICON_ERROR = 1;
  public static final int ICON_INFORMATION = 2;
  public static final int ICON_QUESTION = 4;
  public static final int ICON_WARNING = 8;
  public static final int ICON_WORKING = 16;
  public static final int ICON_SEARCH = 512;
  public static final int ICON_CANCEL = 256;
  public static final int OK = 32;
  public static final int YES = 64;
  public static final int NO = 128;
  public static final int CANCEL = 256;
  public static final int ABORT = 512;
  public static final int RETRY = 1024;
  public static final int IGNORE = 2048;
  public static final int OPEN = 4096;
  public static final int SAVE = 8192;
  public static final int INHERIT_NONE = 0;
  public static final int INHERIT_DEFAULT = 1;
  public static final int INHERIT_FORCE = 2;
  public static final int COLOR_WHITE = 1;
  public static final int COLOR_BLACK = 2;
  public static final int COLOR_RED = 3;
  public static final int COLOR_DARK_RED = 4;
  public static final int COLOR_GREEN = 5;
  public static final int COLOR_DARK_GREEN = 6;
  public static final int COLOR_YELLOW = 7;
  public static final int COLOR_DARK_YELLOW = 8;
  public static final int COLOR_BLUE = 9;
  public static final int COLOR_DARK_BLUE = 10;
  public static final int COLOR_MAGENTA = 11;
  public static final int COLOR_DARK_MAGENTA = 12;
  public static final int COLOR_CYAN = 13;
  public static final int COLOR_DARK_CYAN = 14;
  public static final int COLOR_GRAY = 15;
  public static final int COLOR_DARK_GRAY = 16;
  public static final int COLOR_WIDGET_DARK_SHADOW = 17;
  public static final int COLOR_WIDGET_NORMAL_SHADOW = 18;
  public static final int COLOR_WIDGET_LIGHT_SHADOW = 19;
  public static final int COLOR_WIDGET_HIGHLIGHT_SHADOW = 20;
  public static final int COLOR_WIDGET_FOREGROUND = 21;
  public static final int COLOR_WIDGET_BACKGROUND = 22;
  public static final int COLOR_WIDGET_BORDER = 23;
  public static final int COLOR_LIST_FOREGROUND = 24;
  public static final int COLOR_LIST_BACKGROUND = 25;
  public static final int COLOR_LIST_SELECTION = 26;
  public static final int COLOR_LIST_SELECTION_TEXT = 27;
  public static final int COLOR_INFO_FOREGROUND = 28;
  public static final int COLOR_INFO_BACKGROUND = 29;
  public static final int COLOR_TITLE_FOREGROUND = 30;
  public static final int COLOR_TITLE_BACKGROUND = 31;
  public static final int COLOR_TITLE_BACKGROUND_GRADIENT = 32;
  public static final int COLOR_TITLE_INACTIVE_FOREGROUND = 33;
  public static final int COLOR_TITLE_INACTIVE_BACKGROUND = 34;
  public static final int COLOR_TITLE_INACTIVE_BACKGROUND_GRADIENT = 35;
  public static final int DRAW_TRANSPARENT = 1;
  public static final int DRAW_DELIMITER = 2;
  public static final int DRAW_TAB = 4;
  public static final int DRAW_MNEMONIC = 8;
  public static final int DELIMITER_SELECTION = 131072;
  public static final int LAST_LINE_SELECTION = 1048576;
  public static final int ERROR_UNSPECIFIED = 1;
  public static final int ERROR_NO_HANDLES = 2;
  public static final int ERROR_NO_MORE_CALLBACKS = 3;
  public static final int ERROR_NULL_ARGUMENT = 4;
  public static final int ERROR_INVALID_ARGUMENT = 5;
  public static final int ERROR_INVALID_RANGE = 6;
  public static final int ERROR_CANNOT_BE_ZERO = 7;
  public static final int ERROR_CANNOT_GET_ITEM = 8;
  public static final int ERROR_CANNOT_GET_SELECTION = 9;
  public static final int ERROR_CANNOT_INVERT_MATRIX = 10;
  public static final int ERROR_CANNOT_GET_ITEM_HEIGHT = 11;
  public static final int ERROR_CANNOT_GET_TEXT = 12;
  public static final int ERROR_CANNOT_SET_TEXT = 13;
  public static final int ERROR_ITEM_NOT_ADDED = 14;
  public static final int ERROR_ITEM_NOT_REMOVED = 15;
  public static final int ERROR_NO_GRAPHICS_LIBRARY = 16;
  public static final int ERROR_NOT_IMPLEMENTED = 20;
  public static final int ERROR_MENU_NOT_DROP_DOWN = 21;
  public static final int ERROR_THREAD_INVALID_ACCESS = 22;
  public static final int ERROR_WIDGET_DISPOSED = 24;
  public static final int ERROR_MENUITEM_NOT_CASCADE = 27;
  public static final int ERROR_CANNOT_SET_SELECTION = 28;
  public static final int ERROR_CANNOT_SET_MENU = 29;
  public static final int ERROR_CANNOT_SET_ENABLED = 30;
  public static final int ERROR_CANNOT_GET_ENABLED = 31;
  public static final int ERROR_INVALID_PARENT = 32;
  public static final int ERROR_MENU_NOT_BAR = 33;
  public static final int ERROR_CANNOT_GET_COUNT = 36;
  public static final int ERROR_MENU_NOT_POP_UP = 37;
  public static final int ERROR_UNSUPPORTED_DEPTH = 38;
  public static final int ERROR_IO = 39;
  public static final int ERROR_INVALID_IMAGE = 40;
  public static final int ERROR_UNSUPPORTED_FORMAT = 42;
  public static final int ERROR_INVALID_SUBCLASS = 43;
  public static final int ERROR_GRAPHIC_DISPOSED = 44;
  public static final int ERROR_DEVICE_DISPOSED = 45;
  public static final int ERROR_FAILED_EXEC = 46;
  public static final int ERROR_FAILED_LOAD_LIBRARY = 47;
  public static final int ERROR_INVALID_FONT = 48;
  public static final int ERROR_FUNCTION_DISPOSED = 49;
  public static final int ERROR_FAILED_EVALUATE = 50;
  public static final int ERROR_INVALID_RETURN_VALUE = 51;
  public static final int BITMAP = 0;
  public static final int ICON = 1;
  public static final int IMAGE_COPY = 0;
  public static final int IMAGE_DISABLE = 1;
  public static final int IMAGE_GRAY = 2;
  public static final int ERROR = 1;
  public static final int PAUSED = 4;
  public static final int NORMAL = 0;
  public static final int BOLD = 1;
  public static final int ITALIC = 2;
  public static final int CURSOR_ARROW = 0;
  public static final int CURSOR_WAIT = 1;
  public static final int CURSOR_CROSS = 2;
  public static final int CURSOR_APPSTARTING = 3;
  public static final int CURSOR_HELP = 4;
  public static final int CURSOR_SIZEALL = 5;
  public static final int CURSOR_SIZENESW = 6;
  public static final int CURSOR_SIZENS = 7;
  public static final int CURSOR_SIZENWSE = 8;
  public static final int CURSOR_SIZEWE = 9;
  public static final int CURSOR_SIZEN = 10;
  public static final int CURSOR_SIZES = 11;
  public static final int CURSOR_SIZEE = 12;
  public static final int CURSOR_SIZEW = 13;
  public static final int CURSOR_SIZENE = 14;
  public static final int CURSOR_SIZESE = 15;
  public static final int CURSOR_SIZESW = 16;
  public static final int CURSOR_SIZENW = 17;
  public static final int CURSOR_UPARROW = 18;
  public static final int CURSOR_IBEAM = 19;
  public static final int CURSOR_NO = 20;
  public static final int CURSOR_HAND = 21;
  public static final int CAP_FLAT = 1;
  public static final int CAP_ROUND = 2;
  public static final int CAP_SQUARE = 3;
  public static final int JOIN_MITER = 1;
  public static final int JOIN_ROUND = 2;
  public static final int JOIN_BEVEL = 3;
  public static final int LINE_SOLID = 1;
  public static final int LINE_DASH = 2;
  public static final int LINE_DOT = 3;
  public static final int LINE_DASHDOT = 4;
  public static final int LINE_DASHDOTDOT = 5;
  public static final int LINE_CUSTOM = 6;
  public static final int PATH_MOVE_TO = 1;
  public static final int PATH_LINE_TO = 2;
  public static final int PATH_QUAD_TO = 3;
  public static final int PATH_CUBIC_TO = 4;
  public static final int PATH_CLOSE = 5;
  public static final int FILL_EVEN_ODD = 1;
  public static final int FILL_WINDING = 2;
  public static final int IMAGE_UNDEFINED = -1;
  public static final int IMAGE_BMP = 0;
  public static final int IMAGE_BMP_RLE = 1;
  public static final int IMAGE_GIF = 2;
  public static final int IMAGE_ICO = 3;
  public static final int IMAGE_JPEG = 4;
  public static final int IMAGE_PNG = 5;
  public static final int IMAGE_TIFF = 6;
  public static final int IMAGE_OS2_BMP = 7;
  public static final int DM_UNSPECIFIED = 0;
  public static final int DM_FILL_NONE = 1;
  public static final int DM_FILL_BACKGROUND = 2;
  public static final int DM_FILL_PREVIOUS = 3;
  public static final int TRANSPARENCY_NONE = 0;
  public static final int TRANSPARENCY_ALPHA = 1;
  public static final int TRANSPARENCY_MASK = 2;
  public static final int TRANSPARENCY_PIXEL = 4;
  public static final int MOVEMENT_CHAR = 1;
  public static final int MOVEMENT_CLUSTER = 2;
  public static final int MOVEMENT_WORD = 4;
  public static final int MOVEMENT_WORD_END = 8;
  public static final int MOVEMENT_WORD_START = 16;
  
  static
  {
    MODIFIER_MASK = 4653056;
    String str = getPlatform();
    if (("carbon".equals(str)) || ("cocoa".equals(str)))
    {
      MOD1 = 4194304;
      MOD2 = 131072;
      MOD3 = 65536;
      MOD4 = 262144;
    }
    else
    {
      MOD1 = 262144;
      MOD2 = 131072;
      MOD3 = 65536;
      MOD4 = 0;
    }
  }
  
  static String findErrorText(int paramInt)
  {
    switch (paramInt)
    {
    case 1: 
      return "Unspecified error";
    case 2: 
      return "No more handles";
    case 3: 
      return "No more callbacks";
    case 4: 
      return "Argument cannot be null";
    case 5: 
      return "Argument not valid";
    case 51: 
      return "Return value not valid";
    case 6: 
      return "Index out of bounds";
    case 7: 
      return "Argument cannot be zero";
    case 8: 
      return "Cannot get item";
    case 9: 
      return "Cannot get selection";
    case 11: 
      return "Cannot get item height";
    case 12: 
      return "Cannot get text";
    case 13: 
      return "Cannot set text";
    case 14: 
      return "Item not added";
    case 15: 
      return "Item not removed";
    case 20: 
      return "Not implemented";
    case 21: 
      return "Menu must be a drop down";
    case 22: 
      return "Invalid thread access";
    case 24: 
      return "Widget is disposed";
    case 27: 
      return "Menu item is not a CASCADE";
    case 28: 
      return "Cannot set selection";
    case 29: 
      return "Cannot set menu";
    case 30: 
      return "Cannot set the enabled state";
    case 31: 
      return "Cannot get the enabled state";
    case 32: 
      return "Widget has the wrong parent";
    case 33: 
      return "Menu is not a BAR";
    case 36: 
      return "Cannot get count";
    case 37: 
      return "Menu is not a POP_UP";
    case 38: 
      return "Unsupported color depth";
    case 39: 
      return "i/o error";
    case 40: 
      return "Invalid image";
    case 42: 
      return "Unsupported or unrecognized format";
    case 43: 
      return "Subclassing not allowed";
    case 44: 
      return "Graphic is disposed";
    case 45: 
      return "Device is disposed";
    case 49: 
      return "BrowserFunction is disposed";
    case 46: 
      return "Failed to execute runnable";
    case 50: 
      return "Failed to evaluate javascript expression";
    case 47: 
      return "Unable to load library";
    case 10: 
      return "Cannot invert matrix";
    case 16: 
      return "Unable to load graphics library";
    case 48: 
      return "Font not valid";
    }
    return "Unknown error";
  }
  
  public static String getMessage(String paramString)
  {
    return Compatibility.getMessage(paramString);
  }
  
  public static String getPlatform()
  {
    return "win32";
  }
  
  public static int getVersion()
  {
    return Library.SWT_VERSION;
  }
  
  public static void error(int paramInt)
  {
    error(paramInt, null);
  }
  
  public static void error(int paramInt, Throwable paramThrowable)
  {
    error(paramInt, paramThrowable, null);
  }
  
  public static void error(int paramInt, Throwable paramThrowable, String paramString)
  {
    if (paramInt != 46)
    {
      if ((paramThrowable instanceof SWTError)) {
        throw ((SWTError)paramThrowable);
      }
      if ((paramThrowable instanceof SWTException)) {
        throw ((SWTException)paramThrowable);
      }
    }
    String str = findErrorText(paramInt);
    if (paramString != null) {
      str = str + paramString;
    }
    switch (paramInt)
    {
    case 4: 
    case 5: 
    case 6: 
    case 7: 
    case 21: 
    case 27: 
    case 32: 
    case 33: 
    case 37: 
      throw new IllegalArgumentException(str);
    case 10: 
    case 16: 
    case 22: 
    case 24: 
    case 38: 
    case 39: 
    case 40: 
    case 42: 
    case 43: 
    case 44: 
    case 45: 
    case 46: 
    case 49: 
    case 50: 
    case 51: 
      localObject = new SWTException(paramInt, str);
      throwable = paramThrowable;
      throw ((Throwable)localObject);
    case 1: 
    case 2: 
    case 3: 
    case 8: 
    case 9: 
    case 11: 
    case 12: 
    case 13: 
    case 14: 
    case 15: 
    case 20: 
    case 28: 
    case 29: 
    case 30: 
    case 31: 
    case 36: 
    case 47: 
      localObject = new SWTError(paramInt, str);
      throwable = paramThrowable;
      throw ((Throwable)localObject);
    }
    Object localObject = new SWTError(paramInt, str);
    throwable = paramThrowable;
    throw ((Throwable)localObject);
  }
}

/* Location:
 * Qualified Name:     org.eclipse.swt.SWT
 * Java Class Version: 1.2 (46.0)
 * JD-Core Version:    0.7.1
 */
package org.eclipse.swt;

import java.io.PrintStream;
import org.eclipse.swt.internal.Library;

public class SWTError
  extends Error
{
  public int code;
  public Throwable throwable;
  static final long serialVersionUID = 3833467327105808433L;
  
  public SWTError()
  {
    this(1);
  }
  
  public SWTError(String paramString)
  {
    this(1, paramString);
  }
  
  public SWTError(int paramInt)
  {
    this(paramInt, SWT.findErrorText(paramInt));
  }
  
  public SWTError(int paramInt, String paramString)
  {
    super(paramString);
    code = paramInt;
  }
  
  public Throwable getCause()
  {
    return throwable;
  }
  
  public String getMessage()
  {
    if (throwable == null) {
      return super.getMessage();
    }
    return super.getMessage() + " (" + throwable.toString() + ")";
  }
  
  public void printStackTrace()
  {
    super.printStackTrace();
    if ((Library.JAVA_VERSION < Library.JAVA_VERSION(1, 4, 0)) && (throwable != null))
    {
      System.err.println("*** Stack trace of contained error ***");
      throwable.printStackTrace();
    }
  }
}

/* Location:
 * Qualified Name:     org.eclipse.swt.SWTError
 * Java Class Version: 1.2 (46.0)
 * JD-Core Version:    0.7.1
 */
package org.eclipse.swt;

import java.io.PrintStream;
import org.eclipse.swt.internal.Library;

public class SWTException
  extends RuntimeException
{
  public int code;
  public Throwable throwable;
  static final long serialVersionUID = 3257282552304842547L;
  
  public SWTException()
  {
    this(1);
  }
  
  public SWTException(String paramString)
  {
    this(1, paramString);
  }
  
  public SWTException(int paramInt)
  {
    this(paramInt, SWT.findErrorText(paramInt));
  }
  
  public SWTException(int paramInt, String paramString)
  {
    super(paramString);
    code = paramInt;
  }
  
  public Throwable getCause()
  {
    return throwable;
  }
  
  public String getMessage()
  {
    if (throwable == null) {
      return super.getMessage();
    }
    return super.getMessage() + " (" + throwable.toString() + ")";
  }
  
  public void printStackTrace()
  {
    super.printStackTrace();
    if ((Library.JAVA_VERSION < Library.JAVA_VERSION(1, 4, 0)) && (throwable != null))
    {
      System.err.println("*** Stack trace of contained exception ***");
      throwable.printStackTrace();
    }
  }
}

/* Location:
 * Qualified Name:     org.eclipse.swt.SWTException
 * Java Class Version: 1.2 (46.0)
 * JD-Core Version:    0.7.1
 */
package org.eclipse.swt.accessibility;

public class ACC
{
  public static final int STATE_NORMAL = 0;
  public static final int STATE_SELECTED = 2;
  public static final int STATE_SELECTABLE = 2097152;
  public static final int STATE_MULTISELECTABLE = 16777216;
  public static final int STATE_FOCUSED = 4;
  public static final int STATE_FOCUSABLE = 1048576;
  public static final int STATE_PRESSED = 8;
  public static final int STATE_CHECKED = 16;
  public static final int STATE_EXPANDED = 512;
  public static final int STATE_COLLAPSED = 1024;
  public static final int STATE_HOTTRACKED = 128;
  public static final int STATE_BUSY = 2048;
  public static final int STATE_READONLY = 64;
  public static final int STATE_INVISIBLE = 32768;
  public static final int STATE_OFFSCREEN = 65536;
  public static final int STATE_SIZEABLE = 131072;
  public static final int STATE_LINKED = 4194304;
  public static final int ROLE_CLIENT_AREA = 10;
  public static final int ROLE_WINDOW = 9;
  public static final int ROLE_MENUBAR = 2;
  public static final int ROLE_MENU = 11;
  public static final int ROLE_MENUITEM = 12;
  public static final int ROLE_SEPARATOR = 21;
  public static final int ROLE_TOOLTIP = 13;
  public static final int ROLE_SCROLLBAR = 3;
  public static final int ROLE_DIALOG = 18;
  public static final int ROLE_LABEL = 41;
  public static final int ROLE_PUSHBUTTON = 43;
  public static final int ROLE_CHECKBUTTON = 44;
  public static final int ROLE_RADIOBUTTON = 45;
  public static final int ROLE_SPLITBUTTON = 62;
  public static final int ROLE_COMBOBOX = 46;
  public static final int ROLE_TEXT = 42;
  public static final int ROLE_TOOLBAR = 22;
  public static final int ROLE_LIST = 33;
  public static final int ROLE_LISTITEM = 34;
  public static final int ROLE_TABLE = 24;
  public static final int ROLE_TABLECELL = 29;
  public static final int ROLE_TABLECOLUMNHEADER = 25;
  /**
   * @deprecated
   */
  public static final int ROLE_TABLECOLUMN = 25;
  public static final int ROLE_TABLEROWHEADER = 26;
  public static final int ROLE_TREE = 35;
  public static final int ROLE_TREEITEM = 36;
  public static final int ROLE_TABFOLDER = 60;
  public static final int ROLE_TABITEM = 37;
  public static final int ROLE_PROGRESSBAR = 48;
  public static final int ROLE_SLIDER = 51;
  public static final int ROLE_LINK = 30;
  public static final int CHILDID_SELF = -1;
  public static final int CHILDID_NONE = -2;
  public static final int CHILDID_MULTIPLE = -3;
  public static final int TEXT_INSERT = 0;
  public static final int TEXT_DELETE = 1;
}

/* Location:
 * Qualified Name:     org.eclipse.swt.accessibility.ACC
 * Java Class Version: 1.2 (46.0)
 * JD-Core Version:    0.7.1
 */
package org.eclipse.swt.accessibility;

import org.eclipse.swt.internal.ole.win32.COMObject;

class Accessible$1
  extends COMObject
{
  final Accessible this$0;
  
  Accessible$1(Accessible paramAccessible, int[] paramArrayOfInt)
  {
    super(paramArrayOfInt);
    this$0 = paramAccessible;
  }
  
  public long method0(long[] paramArrayOfLong)
  {
    return this$0.QueryInterface(paramArrayOfLong[0], paramArrayOfLong[1]);
  }
  
  public long method1(long[] paramArrayOfLong)
  {
    return this$0.AddRef();
  }
  
  public long method2(long[] paramArrayOfLong)
  {
    return this$0.Release();
  }
  
  public long method7(long[] paramArrayOfLong)
  {
    return this$0.get_accParent(paramArrayOfLong[0]);
  }
  
  public long method8(long[] paramArrayOfLong)
  {
    return this$0.get_accChildCount(paramArrayOfLong[0]);
  }
  
  public long method9(long[] paramArrayOfLong)
  {
    return this$0.get_accChild(paramArrayOfLong[0], paramArrayOfLong[1]);
  }
  
  public long method10(long[] paramArrayOfLong)
  {
    return this$0.get_accName(paramArrayOfLong[0], paramArrayOfLong[1]);
  }
  
  public long method11(long[] paramArrayOfLong)
  {
    return this$0.get_accValue(paramArrayOfLong[0], paramArrayOfLong[1]);
  }
  
  public long method12(long[] paramArrayOfLong)
  {
    return this$0.get_accDescription(paramArrayOfLong[0], paramArrayOfLong[1]);
  }
  
  public long method13(long[] paramArrayOfLong)
  {
    return this$0.get_accRole(paramArrayOfLong[0], paramArrayOfLong[1]);
  }
  
  public long method14(long[] paramArrayOfLong)
  {
    return this$0.get_accState(paramArrayOfLong[0], paramArrayOfLong[1]);
  }
  
  public long method15(long[] paramArrayOfLong)
  {
    return this$0.get_accHelp(paramArrayOfLong[0], paramArrayOfLong[1]);
  }
  
  public long method16(long[] paramArrayOfLong)
  {
    return this$0.get_accHelpTopic(paramArrayOfLong[0], paramArrayOfLong[1], paramArrayOfLong[2]);
  }
  
  public long method17(long[] paramArrayOfLong)
  {
    return this$0.get_accKeyboardShortcut(paramArrayOfLong[0], paramArrayOfLong[1]);
  }
  
  public long method18(long[] paramArrayOfLong)
  {
    return this$0.get_accFocus(paramArrayOfLong[0]);
  }
  
  public long method19(long[] paramArrayOfLong)
  {
    return this$0.get_accSelection(paramArrayOfLong[0]);
  }
  
  public long method20(long[] paramArrayOfLong)
  {
    return this$0.get_accDefaultAction(paramArrayOfLong[0], paramArrayOfLong[1]);
  }
  
  public long method21(long[] paramArrayOfLong)
  {
    return this$0.accSelect((int)paramArrayOfLong[0], paramArrayOfLong[1]);
  }
  
  public long method22(long[] paramArrayOfLong)
  {
    return this$0.accLocation(paramArrayOfLong[0], paramArrayOfLong[1], paramArrayOfLong[2], paramArrayOfLong[3], paramArrayOfLong[4]);
  }
  
  public long method23(long[] paramArrayOfLong)
  {
    return this$0.accNavigate((int)paramArrayOfLong[0], paramArrayOfLong[1], paramArrayOfLong[2]);
  }
  
  public long method24(long[] paramArrayOfLong)
  {
    return this$0.accHitTest((int)paramArrayOfLong[0], (int)paramArrayOfLong[1], paramArrayOfLong[2]);
  }
  
  public long method25(long[] paramArrayOfLong)
  {
    return this$0.accDoDefaultAction(paramArrayOfLong[0]);
  }
  
  public long method26(long[] paramArrayOfLong)
  {
    return this$0.put_accName(paramArrayOfLong[0], paramArrayOfLong[1]);
  }
  
  public long method27(long[] paramArrayOfLong)
  {
    return this$0.put_accValue(paramArrayOfLong[0], paramArrayOfLong[1]);
  }
}

/* Location:
 * Qualified Name:     org.eclipse.swt.accessibility.Accessible.1
 * Java Class Version: 1.2 (46.0)
 * JD-Core Version:    0.7.1
 */
package org.eclipse.swt.accessibility;

import org.eclipse.swt.internal.ole.win32.COMObject;

class Accessible$2
  extends COMObject
{
  final Accessible this$0;
  
  Accessible$2(Accessible paramAccessible, int[] paramArrayOfInt)
  {
    super(paramArrayOfInt);
    this$0 = paramAccessible;
  }
  
  public long method0(long[] paramArrayOfLong)
  {
    return this$0.QueryInterface(paramArrayOfLong[0], paramArrayOfLong[1]);
  }
  
  public long method1(long[] paramArrayOfLong)
  {
    return this$0.AddRef();
  }
  
  public long method2(long[] paramArrayOfLong)
  {
    return this$0.Release();
  }
  
  public long method3(long[] paramArrayOfLong)
  {
    return this$0.Next((int)paramArrayOfLong[0], paramArrayOfLong[1], paramArrayOfLong[2]);
  }
  
  public long method4(long[] paramArrayOfLong)
  {
    return this$0.Skip((int)paramArrayOfLong[0]);
  }
  
  public long method5(long[] paramArrayOfLong)
  {
    return this$0.Reset();
  }
  
  public long method6(long[] paramArrayOfLong)
  {
    return this$0.Clone(paramArrayOfLong[0]);
  }
}

/* Location:
 * Qualified Name:     org.eclipse.swt.accessibility.Accessible.2
 * Java Class Version: 1.2 (46.0)
 * JD-Core Version:    0.7.1
 */
package org.eclipse.swt.accessibility;

import java.lang.reflect.Method;
import java.util.Vector;
import org.eclipse.swt.SWT;
import org.eclipse.swt.internal.ole.win32.COM;
import org.eclipse.swt.internal.ole.win32.COMObject;
import org.eclipse.swt.internal.ole.win32.GUID;
import org.eclipse.swt.internal.ole.win32.IAccessible;
import org.eclipse.swt.internal.ole.win32.IEnumVARIANT;
import org.eclipse.swt.internal.ole.win32.VARIANT;
import org.eclipse.swt.internal.win32.OS;
import org.eclipse.swt.internal.win32.TVITEM;
import org.eclipse.swt.ole.win32.OLE;
import org.eclipse.swt.widgets.Control;
import org.eclipse.swt.widgets.Display;
import org.eclipse.swt.widgets.Table;
import org.eclipse.swt.widgets.TableItem;
import org.eclipse.swt.widgets.Tree;
import org.eclipse.swt.widgets.TreeColumn;
import org.eclipse.swt.widgets.TreeItem;
import org.eclipse.swt.widgets.Widget;

public class Accessible
{
  int refCount = 0;
  int enumIndex = 0;
  COMObject objIAccessible;
  COMObject objIEnumVARIANT;
  IAccessible iaccessible;
  Vector accessibleListeners = new Vector();
  Vector accessibleControlListeners = new Vector();
  Vector textListeners = new Vector();
  Object[] variants;
  Control control;
  static String ALTERNATE_ACCESSIBLE_CLASS_NAME = "org.eclipse.swt.accessibility2.Accessible2";
  
  protected Accessible() {}
  
  Accessible(Control paramControl)
  {
    control = paramControl;
    long[] arrayOfLong1 = new long[1];
    int i = COM.CreateStdAccessibleObject(handle, -4, COM.IIDIAccessible, arrayOfLong1);
    if (arrayOfLong1[0] == 0L) {
      return;
    }
    if (i != 0) {
      OLE.error(1001, i);
    }
    iaccessible = new IAccessible(arrayOfLong1[0]);
    objIAccessible = new COMObject(new int[] { 2, 0, 0, 1, 3, 5, 8, 1, 1, 2, 2, 2, 2, 2, 2, 2, 3, 2, 1, 1, 2, 2, 5, 3, 3, 1, 2, 2 })
    {
      public long method0(long[] paramAnonymousArrayOfLong)
      {
        return QueryInterface(paramAnonymousArrayOfLong[0], paramAnonymousArrayOfLong[1]);
      }
      
      public long method1(long[] paramAnonymousArrayOfLong)
      {
        return AddRef();
      }
      
      public long method2(long[] paramAnonymousArrayOfLong)
      {
        return Release();
      }
      
      public long method7(long[] paramAnonymousArrayOfLong)
      {
        return get_accParent(paramAnonymousArrayOfLong[0]);
      }
      
      public long method8(long[] paramAnonymousArrayOfLong)
      {
        return get_accChildCount(paramAnonymousArrayOfLong[0]);
      }
      
      public long method9(long[] paramAnonymousArrayOfLong)
      {
        return get_accChild(paramAnonymousArrayOfLong[0], paramAnonymousArrayOfLong[1]);
      }
      
      public long method10(long[] paramAnonymousArrayOfLong)
      {
        return get_accName(paramAnonymousArrayOfLong[0], paramAnonymousArrayOfLong[1]);
      }
      
      public long method11(long[] paramAnonymousArrayOfLong)
      {
        return get_accValue(paramAnonymousArrayOfLong[0], paramAnonymousArrayOfLong[1]);
      }
      
      public long method12(long[] paramAnonymousArrayOfLong)
      {
        return get_accDescription(paramAnonymousArrayOfLong[0], paramAnonymousArrayOfLong[1]);
      }
      
      public long method13(long[] paramAnonymousArrayOfLong)
      {
        return get_accRole(paramAnonymousArrayOfLong[0], paramAnonymousArrayOfLong[1]);
      }
      
      public long method14(long[] paramAnonymousArrayOfLong)
      {
        return get_accState(paramAnonymousArrayOfLong[0], paramAnonymousArrayOfLong[1]);
      }
      
      public long method15(long[] paramAnonymousArrayOfLong)
      {
        return get_accHelp(paramAnonymousArrayOfLong[0], paramAnonymousArrayOfLong[1]);
      }
      
      public long method16(long[] paramAnonymousArrayOfLong)
      {
        return get_accHelpTopic(paramAnonymousArrayOfLong[0], paramAnonymousArrayOfLong[1], paramAnonymousArrayOfLong[2]);
      }
      
      public long method17(long[] paramAnonymousArrayOfLong)
      {
        return get_accKeyboardShortcut(paramAnonymousArrayOfLong[0], paramAnonymousArrayOfLong[1]);
      }
      
      public long method18(long[] paramAnonymousArrayOfLong)
      {
        return get_accFocus(paramAnonymousArrayOfLong[0]);
      }
      
      public long method19(long[] paramAnonymousArrayOfLong)
      {
        return get_accSelection(paramAnonymousArrayOfLong[0]);
      }
      
      public long method20(long[] paramAnonymousArrayOfLong)
      {
        return get_accDefaultAction(paramAnonymousArrayOfLong[0], paramAnonymousArrayOfLong[1]);
      }
      
      public long method21(long[] paramAnonymousArrayOfLong)
      {
        return accSelect((int)paramAnonymousArrayOfLong[0], paramAnonymousArrayOfLong[1]);
      }
      
      public long method22(long[] paramAnonymousArrayOfLong)
      {
        return accLocation(paramAnonymousArrayOfLong[0], paramAnonymousArrayOfLong[1], paramAnonymousArrayOfLong[2], paramAnonymousArrayOfLong[3], paramAnonymousArrayOfLong[4]);
      }
      
      public long method23(long[] paramAnonymousArrayOfLong)
      {
        return accNavigate((int)paramAnonymousArrayOfLong[0], paramAnonymousArrayOfLong[1], paramAnonymousArrayOfLong[2]);
      }
      
      public long method24(long[] paramAnonymousArrayOfLong)
      {
        return accHitTest((int)paramAnonymousArrayOfLong[0], (int)paramAnonymousArrayOfLong[1], paramAnonymousArrayOfLong[2]);
      }
      
      public long method25(long[] paramAnonymousArrayOfLong)
      {
        return accDoDefaultAction(paramAnonymousArrayOfLong[0]);
      }
      
      public long method26(long[] paramAnonymousArrayOfLong)
      {
        return put_accName(paramAnonymousArrayOfLong[0], paramAnonymousArrayOfLong[1]);
      }
      
      public long method27(long[] paramAnonymousArrayOfLong)
      {
        return put_accValue(paramAnonymousArrayOfLong[0], paramAnonymousArrayOfLong[1]);
      }
    };
    long l = objIAccessible.ppVtable;
    long[] arrayOfLong2 = new long[1];
    COM.MoveMemory(arrayOfLong2, l, OS.PTR_SIZEOF);
    long[] arrayOfLong3 = new long[28];
    COM.MoveMemory(arrayOfLong3, arrayOfLong2[0], OS.PTR_SIZEOF * arrayOfLong3.length);
    arrayOfLong3[9] = COM.get_accChild_CALLBACK(arrayOfLong3[9]);
    arrayOfLong3[10] = COM.get_accName_CALLBACK(arrayOfLong3[10]);
    arrayOfLong3[11] = COM.get_accValue_CALLBACK(arrayOfLong3[11]);
    arrayOfLong3[12] = COM.get_accDescription_CALLBACK(arrayOfLong3[12]);
    arrayOfLong3[13] = COM.get_accRole_
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133

Further reading...

For more information on Java 1.5 Tiger, you may find Java 1.5 Tiger, A developer's Notebook by D. Flanagan and B. McLaughlin from O'Reilly of interest.

New!JAR listings


Copyright 2006-2017. Infinite Loop Ltd