/** * 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); }
/** * Specifies the data types that can be transferred to this DropTarget. If data is * being dragged that does not match one of these types, the drop target will be notified of * the drag and drop operation but the currentDataType will be null and the operation * will be DND.NONE. * * @param transferAgents a list of Transfer objects which define the types of data that can be * dropped on this target * * @exception IllegalArgumentException <ul> * <li>ERROR_NULL_ARGUMENT - if transferAgents is null</li> * </ul> */ public void setTransfer(Transfer[] transferAgents){ if (transferAgents == null) DND.error(SWT.ERROR_NULL_ARGUMENT); this.transferAgents = transferAgents; } }
/** * Specifies the data types that can be transferred to this DropTarget. If data is * being dragged that does not match one of these types, the drop target will be notified of * the drag and drop operation but the currentDataType will be null and the operation * will be DND.NONE. * * @param transferAgents a list of Transfer objects which define the types of data that can be * dropped on this target * * @exception IllegalArgumentException <ul> * <li>ERROR_NULL_ARGUMENT - if transferAgents is null</li> * </ul> */ public void setTransfer( Transfer[] transferAgents ) { if( transferAgents == null ) { DND.error( SWT.ERROR_NULL_ARGUMENT ); } this.transferAgents = transferAgents; }
@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); } }