private static int getOperations( final DragSource dragSource, final DropTarget dropTarget ) { return dragSource.getStyle() & dropTarget.getStyle(); }
public void renderInitialization( final Widget widget ) throws IOException { DropTarget dropTarget = ( DropTarget )widget; JSWriter writer = JSWriter.getWriterFor( dropTarget ); String[] operations = DNDLCAUtil.convertOperations( dropTarget.getStyle() ); Object[] args = new Object[]{ dropTarget.getControl(), operations }; writer.callStatic( JSFUNC_REGISTER, args ); }
@Override public void renderInitialization( DropTarget dropTarget ) throws IOException { RemoteObject remoteObject = createRemoteObject( dropTarget, TYPE ); remoteObject.setHandler( new DropTargetOperationHandler( dropTarget ) ); remoteObject.set( "control", getId( dropTarget.getControl() ) ); remoteObject.set( "style", convertOperations( dropTarget.getStyle() ) ); }
int style = getStyle(); int operations = osOpToOp(actions) & style; if (operations == DND.DROP_NONE) return false;
int style = getStyle(); int operations = osOpToOp(actions) & style; if (operations == DND.DROP_NONE) return false;
int style = getStyle(); int operations = osOpToOp(actions) & style; if (operations == DND.DROP_NONE) return false;
int actions = opToOsOp(getStyle()); if (control instanceof Combo) { if ((control.getStyle() & SWT.READ_ONLY) == 0) {
int actions = opToOsOp(getStyle()); if (control instanceof Combo) { if ((control.getStyle() & SWT.READ_ONLY) == 0) {
int style = getStyle(); long /*int*/ allowedActions = draggingState.draggingSourceOperationMask(); int operations = osOpToOp(allowedActions) & style;
int actions = opToOsOp(getStyle()); if (control instanceof Combo) { if ((control.getStyle() & SWT.READ_ONLY) == 0) {
int style = getStyle(); int[] operations = new int[1]; OS.MoveMemory(operations, pdwEffect, 4);