private static int getOperations( final DragSource dragSource, final DropTarget dropTarget ) { return dragSource.getStyle() & dropTarget.getStyle(); }
private static int getOperations( DragSource dragSource, DropTarget dropTarget ) { if( dragSource == null ) { return dropTarget.getStyle(); } return( dragSource.getStyle() & dropTarget.getStyle() ); }
public void renderInitialization( Widget widget ) throws IOException { DragSource dragSource = ( DragSource )widget; JSWriter writer = JSWriter.getWriterFor( dragSource ); String[] operations = DNDLCAUtil.convertOperations( dragSource.getStyle() ); Object[] args = new Object[]{ dragSource.getControl(), operations }; writer.callStatic( JSFUNC_REGISTER, args ); }
@Override public void renderInitialization( DragSource dragSource ) throws IOException { RemoteObject remoteObject = createRemoteObject( dragSource, TYPE ); remoteObject.setHandler( new DragSourceOperationHandler( dragSource ) ); remoteObject.set( "control", getId( dragSource.getControl() ) ); remoteObject.set( "style", convertOperations( dragSource.getStyle() ) ); }
dragOperations = opToOsOp(getStyle());
if (targetList == 0) return; int actions = opToOsOp(getStyle()); Image image = event.image; long /*int*/ context;
if (targetList == 0) return; int actions = opToOsOp(getStyle()); Image image = event.image; int /*long*/ context;
if (targetList == 0) return; int actions = opToOsOp(getStyle()); Image image = event.image; int /*long*/ context;
int operations = opToOs(getStyle()); Display display = control.getDisplay(); String key = "org.eclipse.swt.internal.win32.runMessagesInIdle"; //$NON-NLS-1$