/** * Throws an appropriate exception based on the passed in error code. * * @param code the DND error code */ public static void error (int code) { error (code, 0); }
/** * Throws an appropriate exception based on the passed in error code. * * @param code the DND error code */ public static void error (int code) { error (code, 0); }
/** * Throws an appropriate exception based on the passed in error code. * * @param code the DND error code */ public static void error (int code) { error (code, 0); }
/** * Throws an appropriate exception based on the passed in error code. * * @param code the DND error code */ public static void error (int code) { error (code, 0); }
/** * Throws an appropriate exception based on the passed in error code. * * @param code the DND error code */ public static void error (int code) { error (code, 0); }
/** * Throws an appropriate exception based on the passed in error code. * * @param code the DND error code */ public static void error (int code) { error (code, 0); }
@Override protected void checkSubclass() { String name = getClass().getName(); String validName = DragSource.class.getName(); if( !validName.equals( name ) ) { DND.error( SWT.ERROR_INVALID_SUBCLASS ); } }
@Override protected void checkSubclass () { String name = getClass().getName (); String validName = DropTarget.class.getName(); if (!validName.equals(name)) { DND.error (SWT.ERROR_INVALID_SUBCLASS); } }
@Override protected void checkSubclass () { String name = getClass().getName (); String validName = DragSource.class.getName(); if (!validName.equals(name)) { DND.error (SWT.ERROR_INVALID_SUBCLASS); } }
@Override protected void checkSubclass () { String name = getClass().getName (); String validName = DragSource.class.getName(); if (!validName.equals(name)) { DND.error (SWT.ERROR_INVALID_SUBCLASS); } }
@Override protected void checkSubclass() { String name = getClass().getName(); String validName = DragSource.class.getName(); if (!validName.equals(name)) { DND.error(SWT.ERROR_INVALID_SUBCLASS); } }
@Override protected void checkSubclass () { String name = getClass().getName (); String validName = DragSource.class.getName(); if (!validName.equals(name)) { DND.error (SWT.ERROR_INVALID_SUBCLASS); } }
@Override protected void checkSubclass() { String name = getClass().getName(); String validName = DropTarget.class.getName(); if( !validName.equals( name ) ) { DND.error( SWT.ERROR_INVALID_SUBCLASS ); } }
protected void checkSubclass () { String name = getClass().getName (); String validName = DropTarget.class.getName(); if (!validName.equals(name)) { DND.error (SWT.ERROR_INVALID_SUBCLASS); } }
@Override protected void checkSubclass () { String name = getClass().getName (); String validName = DropTarget.class.getName(); if (!validName.equals(name)) { DND.error (SWT.ERROR_INVALID_SUBCLASS); } }
@Override protected void checkSubclass () { String name = getClass().getName (); String validName = DropTarget.class.getName(); if (!validName.equals(name)) { DND.error (SWT.ERROR_INVALID_SUBCLASS); } }
@Override protected void checkSubclass () { String name = getClass().getName (); String validName = DropTarget.class.getName(); if (!validName.equals(name)) { DND.error (SWT.ERROR_INVALID_SUBCLASS); } }
protected void checkSubclass () { String name = getClass().getName (); String validName = DragSource.class.getName(); if (!validName.equals(name)) { DND.error (SWT.ERROR_INVALID_SUBCLASS); } }
@Override public void javaToNative(Object object, TransferData transferData) { if ( !isSupportedType(transferData) ) { DND.error(DND.ERROR_INVALID_DATA); } FragmentData myType = (FragmentData)object; byte[] bytes = convertToByteArray(myType); if ( bytes != null ) { super.javaToNative(bytes, transferData); } }
/** * This implementation of <code>javaToNative</code> converts plain text * represented by a java <code>String</code> to a platform specific representation. * * @param object a java <code>String</code> containing text * @param transferData an empty <code>TransferData</code> object that will * be filled in on return with the platform specific format of the data * * @see Transfer#nativeToJava */ public void javaToNative (Object object, TransferData transferData) { if (!checkText(object) || !isSupportedType(transferData)) { DND.error(DND.ERROR_INVALID_DATA); } transferData.data = NSString.stringWith((String) object); }