org.eclipse.jface.viewers.ViewerDropAdapter Java Examples
The following examples show how to use
org.eclipse.jface.viewers.ViewerDropAdapter.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: InsertAggregationAction.java From birt with Eclipse Public License 1.0 | 5 votes |
public void run( ) { DNDService.getInstance( ).performDrop( TYPE, ( (IStructuredSelection) getSelection( ) ).getFirstElement( ), DND.DROP_DEFAULT, new DNDLocation( ViewerDropAdapter.LOCATION_ON ) ); }
Example #2
Source File: InsertAggregationAction.java From birt with Eclipse Public License 1.0 | 5 votes |
protected boolean calculateEnabled( ) { if ( getSelection( ) instanceof IStructuredSelection ) return DNDService.getInstance( ) .validDrop( TYPE, ( (IStructuredSelection) getSelection( ) ).getFirstElement( ), DND.DROP_DEFAULT, new DNDLocation( ViewerDropAdapter.LOCATION_ON ) ); return false; }
Example #3
Source File: InsertRelativeTimePeriodAction.java From birt with Eclipse Public License 1.0 | 5 votes |
public void run( ) { DNDService.getInstance( ).performDrop( TYPE, ( (IStructuredSelection) getSelection( ) ).getFirstElement( ), DND.DROP_DEFAULT, new DNDLocation( ViewerDropAdapter.LOCATION_ON ) ); }
Example #4
Source File: InsertRelativeTimePeriodAction.java From birt with Eclipse Public License 1.0 | 5 votes |
protected boolean calculateEnabled( ) { if ( getSelection( ) instanceof IStructuredSelection ) return DNDService.getInstance( ) .validDrop( TYPE, ( (IStructuredSelection) getSelection( ) ).getFirstElement( ), DND.DROP_DEFAULT, new DNDLocation( ViewerDropAdapter.LOCATION_ON ) ); return false; }