Java 类org.eclipse.gef.SharedCursors 实例源码

项目:DarwinSPL    文件:DwThemedNonResizableEditPolicy.java   
/**
 * Create selection handles in the style as predefined in DeltaEcore
 * @see DEGraphicalEditorTheme
 */
@Override
protected List<Object> createSelectionHandles() {
    List<Object> list = new ArrayList<Object>();

    MoveHandle moveHandle = new MoveHandle((GraphicalEditPart) getHost());
    moveHandle.setDragTracker(getDragTracker());        

    if (isDragAllowed()) {
        moveHandle.setCursor(Cursors.SIZEALL);
    } else {
        moveHandle.setCursor(SharedCursors.ARROW);
    }

    // set line style to meet the predefined theme
    DEGraphicalEditorTheme theme = DEGraphicalEditor.getTheme();
    LineBorder border = new LineBorder();
    border.setColor(theme.getSelectionSecondaryColor());
    border.setWidth(theme.getLineWidth());
    moveHandle.setBorder(border);

    list.add(moveHandle);

    return list;
}
项目:birt    文件:ReportElementNonResizablePolicy.java   
protected List createSelectionHandles( )
{
    List list = new ArrayList( );
    if ( isDragAllowed( ) )
    {
        ReportNonResizableHandleKit.addHandles( (GraphicalEditPart) getHost( ),
                list );
    }
    else
    {
        ReportNonResizableHandleKit.addHandles( (GraphicalEditPart) getHost( ),
                list,
                new SelectEditPartTracker( getHost( ) ),
                SharedCursors.ARROW );
    }
    return list;
}
项目:birt    文件:LabelEditManager.java   
/**
 * Creates the cell editor on the given composite. The cell editor is
 * created by instantiating the cell editor type passed into this
 * DirectEditManager's constuctor.
 * 
 * @param composite
 *            the composite to create the cell editor on
 * @return the newly created cell editor
 */
protected CellEditor createCellEditorOn( Composite composite )
{
    int style = this.applyBidiStyle( SWT.MULTI | SWT.WRAP ); // bidi_hcg

    LabelCellEditor editor = new LabelCellEditor( composite, style );
        //new LabelCellEditor( composite, SWT.MULTI | SWT.WRAP );
    final Control c = editor.getControl( );
    c.addMouseTrackListener( new MouseTrackAdapter( )
    {

        public void mouseEnter( MouseEvent e )
        {
            c.setCursor( SharedCursors.IBEAM );
        }

    } );
    return editor;
}
项目:NEXCORE-UML-Modeler    文件:SequenceBendpointCreationHandle.java   
/**
 * Creates and returns a new {@link ConnectionBendpointTracker}.
 * @return the new ConnectionBendpointTracker
 */
protected DragTracker createDragTracker() {
    ConnectionBendpointTracker tracker;
    tracker = new ConnectionBendpointTracker(
        (ConnectionEditPart)getOwner(),
        getIndex());
    tracker.setType(RequestConstants.REQ_CREATE_BENDPOINT);
    tracker.setDefaultCursor(getCursor());
    //DisabledCursor를 설정해준다.
    tracker.setDisabledCursor(SharedCursors.NO);
    return tracker;
}
项目:NEXCORE-UML-Modeler    文件:SequenceLineResizableEditPolicy.java   
/**
 * @see org.eclipse.gef.editpolicies.NonResizableEditPolicy#createSelectionHandles()
 */
@Override
protected List createSelectionHandles() {

    List list = new ArrayList();
    if (isDragAllowed())
        SequenceLineNonResizableHandleKit.addHandles((GraphicalEditPart)getHost(), list);
    else
        SequenceLineNonResizableHandleKit.addHandles((GraphicalEditPart)getHost(), list, 
                new SelectEditPartTracker(getHost()), SharedCursors.ARROW);
    return list;
}
项目:PDFReporter-Studio    文件:NotMovablePartDragTracker.java   
/**
 * @see org.eclipse.gef.Tool#setViewer(org.eclipse.gef.EditPartViewer)
 */
@Override
public void setViewer(EditPartViewer viewer) {
    if (viewer == getCurrentViewer())
        return;
    super.setViewer(viewer);
    if (viewer instanceof GraphicalViewer)
        setDefaultCursor(SharedCursors.CROSS);
    else
        setDefaultCursor(SharedCursors.NO);
}
项目:PDFReporter-Studio    文件:ElementResizableEditPolicy.java   
protected void createMoveHandle(List handles) {
    if (isDragAllowed()) {
        // display 'move' handle to allow dragging
        ResizableHandleKit.addMoveHandle((GraphicalEditPart) getHost(), handles, getDragTracker(), Cursors.SIZEALL);
    } else {
        // display 'move' handle only to indicate selection
        ResizableHandleKit.addMoveHandle((GraphicalEditPart) getHost(), handles, getSelectTracker(), SharedCursors.ARROW);
    }
}
项目:PDFReporter-Studio    文件:ElementResizableEditPolicy.java   
protected void createDragHandle(List handles, int direction) {
    if (isDragAllowed()) {
        // display 'resize' handles to allow dragging (drag tracker)
        NonResizableHandleKit.addHandle((GraphicalEditPart) getHost(), handles, direction, getDragTracker(),
                SharedCursors.SIZEALL);
    } else {
        // display 'resize' handles to indicate selection only (selection
        // tracker)
        NonResizableHandleKit.addHandle((GraphicalEditPart) getHost(), handles, direction, getSelectTracker(),
                SharedCursors.ARROW);
    }
}
项目:PDFReporter-Studio    文件:JDRulerDragTracker.java   
protected Cursor getDefaultCursor() {
    if (isDelete())
        return super.getDefaultCursor();
    else if (isCreationValid())
        return source.isHorizontal() ? SharedCursors.SIZEE : SharedCursors.SIZEN;
    else
        return SharedCursors.NO;
}
项目:gef-gwt    文件:NonResizableEditPolicy.java   
/**
 * Creates a 'resize'/'drag' handle, which uses a
 * {@link DragEditPartsTracker} in case {@link #isDragAllowed()} returns
 * true, and a {@link SelectEditPartTracker} otherwise.
 * 
 * @param handles
 *            The list of handles to add the resize handle to
 * @param direction
 *            A position constant indicating the direction to create the
 *            handle for
 * @since 3.7
 */
protected void createDragHandle(List handles, int direction) {
    if (isDragAllowed()) {
        // display 'resize' handles to allow dragging (drag tracker)
        NonResizableHandleKit
                .addHandle((GraphicalEditPart) getHost(), handles,
                        direction, getDragTracker(), SharedCursors.SIZEALL);
    } else {
        // display 'resize' handles to indicate selection only (selection
        // tracker)
        NonResizableHandleKit
                .addHandle((GraphicalEditPart) getHost(), handles,
                        direction, getSelectTracker(), SharedCursors.ARROW);
    }
}
项目:gef-gwt    文件:NonResizableEditPolicy.java   
/**
 * Creates a 'move' handle, which uses a {@link DragEditPartsTracker} in
 * case {@link #isDragAllowed()} returns true, and a
 * {@link SelectEditPartTracker} otherwise.
 * 
 * @param handles
 *            The list of handles to add the move handle to.
 * @since 3.7
 */
protected void createMoveHandle(List handles) {
    if (isDragAllowed()) {
        // display 'move' handle to allow dragging
        ResizableHandleKit.addMoveHandle((GraphicalEditPart) getHost(),
                handles, getDragTracker(), Cursors.SIZEALL);
    } else {
        // display 'move' handle only to indicate selection
        ResizableHandleKit.addMoveHandle((GraphicalEditPart) getHost(),
                handles, getSelectTracker(), SharedCursors.ARROW);
    }
}
项目:gef-gwt    文件:FlyoutPaletteComposite.java   
public void run() {
    final Tracker tracker = new Tracker(FlyoutPaletteComposite.this,
            SWT.RIGHT | SWT.LEFT);
    Rectangle[] rects = new Rectangle[1];
    rects[0] = sash.getBounds();
    tracker.setCursor(SharedCursors.SIZEE);
    tracker.setRectangles(rects);
    if (tracker.open()) {
        int deltaX = sash.getBounds().x - tracker.getRectangles()[0].x;
        if (dock == PositionConstants.WEST)
            deltaX = -deltaX;
        setPaletteWidth(paletteContainer.getBounds().width + deltaX);
    }
    tracker.dispose();
}
项目:gef-gwt    文件:FlyoutPaletteComposite.java   
private void init() {
    setCursor(SharedCursors.ARROW);
    lws = new LightweightSystem();
    lws.setControl(this);
    final ArrowButton b = new ArrowButton(getArrowDirection());
    b.setRolloverEnabled(true);
    b.setBorder(new ButtonBorder(ButtonBorder.SCHEMES.TOOLBAR));
    b.addActionListener(new ActionListener() {
        public void actionPerformed(ActionEvent event) {
            transferFocus = true;
            if (isInState(STATE_COLLAPSED))
                setState(STATE_PINNED_OPEN);
            else
                setState(STATE_COLLAPSED);
        }
    });
    listeners.addPropertyChangeListener(new PropertyChangeListener() {
        public void propertyChange(PropertyChangeEvent evt) {
            if (evt.getPropertyName().equals(PROPERTY_STATE)) {
                b.setDirection(getArrowDirection());
                setToolTipText(getButtonTooltipText());
            } else if (evt.getPropertyName().equals(
                    PROPERTY_DOCK_LOCATION))
                b.setDirection(getArrowDirection());
        }
    });
    lws.setContents(b);
}
项目:gef-gwt    文件:GuideFigure.java   
public GuideFigure(boolean isHorizontal) {
    horizontal = isHorizontal;
    setBackgroundColor(ColorConstants.button);
    if (horizontal) {
        setCursor(SharedCursors.SIZENS);
    } else {
        setCursor(SharedCursors.SIZEWE);
    }
}
项目:gef-gwt    文件:RulerDragTracker.java   
protected Cursor getDefaultCursor() {
    if (isDelete())
        return super.getDefaultCursor();
    else if (isCreationValid())
        return source.isHorizontal() ? SharedCursors.SIZEE
                : SharedCursors.SIZEN;
    else
        return SharedCursors.NO;
}
项目:gef-gwt    文件:DragEditPartsTracker.java   
/**
 * Constructs a new DragEditPartsTracker with the given source edit part.
 * 
 * @param sourceEditPart
 *            the source edit part
 */
public DragEditPartsTracker(EditPart sourceEditPart) {
    super(sourceEditPart);

    cloneActive = false;
    setDisabledCursor(SharedCursors.NO);
}
项目:gef-gwt    文件:MarqueeSelectionTool.java   
/**
 * @see org.eclipse.gef.Tool#setViewer(org.eclipse.gef.EditPartViewer)
 */
public void setViewer(EditPartViewer viewer) {
    if (viewer == getCurrentViewer())
        return;
    super.setViewer(viewer);
    if (viewer instanceof GraphicalViewer)
        setDefaultCursor(SharedCursors.CROSS);
    else
        setDefaultCursor(SharedCursors.NO);
}
项目:birt    文件:CrosstabHandleKit.java   
/**
 * @param owner
 * @return
 */
static Handle createHandle( CrosstabCellEditPart owner )
{

    CrosstabTableEditPart part = (CrosstabTableEditPart) owner.getParent( );
    Rectangle rect = part.getSelectBounds( );

    TableSelectionHandle handle = new TableSelectionHandle( owner, rect );
    handle.setCursor( SharedCursors.SIZEALL );

    return handle;
}
项目:birt    文件:EditorGuideFigure.java   
public EditorGuideFigure( boolean isHorizontal )
{
    horizontal = isHorizontal;
    setBackgroundColor( ColorConstants.button );
    if ( horizontal )
    {
        setCursor( SharedCursors.SIZENS );
    }
    else
    {
        setCursor( SharedCursors.SIZEWE );
    }
}
项目:birt    文件:TableHandleKit.java   
static Handle createHandle( TableCellEditPart owner )
{

    TableEditPart part = (TableEditPart) owner.getParent( );
    Rectangle rect = part.getSelectBounds( );

    TableSelectionHandle handle = new TableSelectionHandle( owner, rect );
    handle.setCursor( SharedCursors.SIZEALL );

    return handle;
}
项目:birt    文件:ReportNonResizableHandleKit.java   
static Handle createHandle( GraphicalEditPart owner, int direction )
{
    ReportResizeHandle handle = new ReportResizeHandle( owner, direction );
    handle.setCursor( SharedCursors.SIZEALL );
    handle.setDragTracker( new DragEditPartsTracker( owner ) );
    return handle;
}
项目:birt    文件:TableSelectionGuideTracker.java   
/**
 * Constructor
 * @param sourceEditPart
 */
public TableSelectionGuideTracker( TableEditPart sourceEditPart, int number )
{
    super( sourceEditPart );
    this.number = number;
    setDefaultCursor( SharedCursors.ARROW );
    setUnloadWhenFinished( false );
}
项目:birt    文件:CellDragTracker.java   
/**
 * Creates a new CellTracker, with the CROSS cursor
 * 
 * @param sourceEditPart
 */
public CellDragTracker( EditPart sourceEditPart )
{
    super( sourceEditPart );
    setDefaultCursor( SharedCursors.CROSS );
    setUnloadWhenFinished( false );
}
项目:birt    文件:CellDragTracker.java   
/**
 * @see org.eclipse.gef.Tool#setViewer(org.eclipse.gef.EditPartViewer)
 */
public void setViewer( EditPartViewer viewer )
{
    if ( viewer == getCurrentViewer( ) )
        return;
    super.setViewer( viewer );
    if ( viewer instanceof GraphicalViewer )
        setDefaultCursor( SharedCursors.CROSS );
    else
        setDefaultCursor( SharedCursors.NO );
}
项目:birt    文件:RootDragTracker.java   
/**
 * @see org.eclipse.gef.Tool#setViewer(org.eclipse.gef.EditPartViewer)
 */
public void setViewer( EditPartViewer viewer )
{
    if ( viewer == getCurrentViewer( ) )
        return;
    super.setViewer( viewer );
    if ( viewer instanceof GraphicalViewer )
        setDefaultCursor( SharedCursors.CROSS );
    else
        setDefaultCursor( SharedCursors.NO );
}
项目:NEXCORE-UML-Modeler    文件:AttributeEditPart.java   
public UMLDragTracker(EditPart sourceEditPart) {
    super(sourceEditPart);
    setDisabledCursor(SharedCursors.ARROW);
    this.sourceEditPart = sourceEditPart;
}
项目:NEXCORE-UML-Modeler    文件:EnumerationLiteralEditPart.java   
public UMLDragTracker(EditPart sourceEditPart) {
    super(sourceEditPart);
    setDisabledCursor(SharedCursors.ARROW);
    this.sourceEditPart = sourceEditPart;
}
项目:NEXCORE-UML-Modeler    文件:OperationEditPart.java   
public UMLDragTracker(EditPart sourceEditPart) {
    super(sourceEditPart);
    setDisabledCursor(SharedCursors.ARROW);
    this.sourceEditPart = sourceEditPart;
}
项目:PDFReporter-Studio    文件:NotMovablePartDragTracker.java   
/**
 * Creates a new Marquee Selection Tool of default type {@link #BEHAVIOR_NODES_CONTAINED}.
 * The no param constructor is necessary to have the JDMarqueeToolEntry working
 */
public NotMovablePartDragTracker() {
    super(null);
    setDefaultCursor(SharedCursors.CROSS);
    setUnloadWhenFinished(false);
}
项目:PDFReporter-Studio    文件:JDDragGuidePolicy.java   
public void showSourceFeedback(Request request) {
    if (!dragInProgress) {
        dragInProgress = true;
        // add the placeholder guide figure to the ruler
        getHostFigure().getParent().add(getDummyGuideFigure(), 0);
        ((GraphicalEditPart) getHost().getParent()).setLayoutConstraint(getHost(), getDummyGuideFigure(), new Integer(
                getGuideEditPart().getZoomedPosition()));
        getDummyGuideFigure().setBounds(getHostFigure().getBounds());
        // add the invisible placeholder line figure to the primary viewer
        getGuideEditPart().getGuideLayer().add(getDummyLineFigure(), 0);
        getGuideEditPart().getGuideLayer().setConstraint(getDummyLineFigure(),
                new Boolean(getGuideEditPart().isHorizontal()));
        getDummyLineFigure().setBounds(getGuideEditPart().getGuideLineFigure().getBounds());
        // move the guide being dragged to the last index so that it's drawn
        // on
        // top of other guides
        List<IFigure> children = getHostFigure().getParent().getChildren();
        children.remove(getHostFigure());
        children.add(getHostFigure());
    }
    ChangeBoundsRequest req = (ChangeBoundsRequest) request;
    if (isDeleteRequest(req)) {
        getHostFigure().setVisible(false);
        getGuideEditPart().getGuideLineFigure().setVisible(false);
        getGuideEditPart().setCurrentCursor(SharedCursors.ARROW);
        eraseAttachedPartsFeedback(request);
    } else {
        int newPosition;
        if (getGuideEditPart().isHorizontal()) {
            newPosition = getGuideEditPart().getZoomedPosition() + req.getMoveDelta().y;
        } else {
            newPosition = getGuideEditPart().getZoomedPosition() + req.getMoveDelta().x;
        }
        getHostFigure().setVisible(true);
        getGuideEditPart().getGuideLineFigure().setVisible(true);
        if (isMoveValid(newPosition)) {
            getGuideEditPart().setCurrentCursor(null);
            getGuideEditPart().updateLocationOfFigures(newPosition);
            showAttachedPartsFeedback(req);
        } else {
            getGuideEditPart().setCurrentCursor(SharedCursors.NO);
            getGuideEditPart().updateLocationOfFigures(getGuideEditPart().getZoomedPosition());
            eraseAttachedPartsFeedback(request);
        }
    }
}
项目:gef-gwt    文件:NonResizableHandleKit.java   
static Handle createHandle(GraphicalEditPart owner, int direction) {
    ResizeHandle handle = new ResizeHandle(owner, direction);
    handle.setCursor(SharedCursors.SIZEALL);
    handle.setDragTracker(new DragEditPartsTracker(owner));
    return handle;
}
项目:gef-gwt    文件:FlyoutPaletteComposite.java   
private void updateState() {
    setCursor(isInState(STATE_EXPANDED | STATE_PINNED_OPEN) ? SharedCursors.SIZEWE
            : null);
}
项目:gef-gwt    文件:DragGuidePolicy.java   
public void showSourceFeedback(Request request) {
    if (!dragInProgress) {
        dragInProgress = true;
        // add the placeholder guide figure to the ruler
        getHostFigure().getParent().add(getDummyGuideFigure(), 0);
        ((GraphicalEditPart) getHost().getParent()).setLayoutConstraint(
                getHost(), getDummyGuideFigure(), new Integer(
                        getGuideEditPart().getZoomedPosition()));
        getDummyGuideFigure().setBounds(getHostFigure().getBounds());
        // add the invisible placeholder line figure to the primary viewer
        getGuideEditPart().getGuideLayer().add(getDummyLineFigure(), 0);
        getGuideEditPart().getGuideLayer().setConstraint(
                getDummyLineFigure(),
                new Boolean(getGuideEditPart().isHorizontal()));
        getDummyLineFigure().setBounds(
                getGuideEditPart().getGuideLineFigure().getBounds());
        // move the guide being dragged to the last index so that it's drawn
        // on
        // top of other guides
        List children = getHostFigure().getParent().getChildren();
        children.remove(getHostFigure());
        children.add(getHostFigure());
    }
    ChangeBoundsRequest req = (ChangeBoundsRequest) request;
    if (isDeleteRequest(req)) {
        getHostFigure().setVisible(false);
        getGuideEditPart().getGuideLineFigure().setVisible(false);
        getGuideEditPart().setCurrentCursor(SharedCursors.ARROW);
        eraseAttachedPartsFeedback(request);
    } else {
        int newPosition;
        if (getGuideEditPart().isHorizontal()) {
            newPosition = getGuideEditPart().getZoomedPosition()
                    + req.getMoveDelta().y;
        } else {
            newPosition = getGuideEditPart().getZoomedPosition()
                    + req.getMoveDelta().x;
        }
        getHostFigure().setVisible(true);
        getGuideEditPart().getGuideLineFigure().setVisible(true);
        if (isMoveValid(newPosition)) {
            getGuideEditPart().setCurrentCursor(null);
            getGuideEditPart().updateLocationOfFigures(newPosition);
            showAttachedPartsFeedback(req);
        } else {
            getGuideEditPart().setCurrentCursor(SharedCursors.NO);
            getGuideEditPart().updateLocationOfFigures(
                    getGuideEditPart().getZoomedPosition());
            eraseAttachedPartsFeedback(request);
        }
    }
}
项目:gef-gwt    文件:ResizeTracker.java   
/**
 * @see org.eclipse.gef.tools.AbstractTool#getDefaultCursor()
 */
protected Cursor getDefaultCursor() {
    return SharedCursors.getDirectionalCursor(direction,
            getTargetEditPart().getFigure().isMirrored());
}
项目:gef-gwt    文件:CreationTool.java   
/**
 * Default constructor. Sets the default and disabled cursors.
 */
public CreationTool() {
    setDefaultCursor(SharedCursors.CURSOR_TREE_ADD);
    setDisabledCursor(SharedCursors.NO);
}
项目:gef-gwt    文件:MarqueeSelectionTool.java   
/**
 * Creates a new MarqueeSelectionTool of default type
 * {@link #BEHAVIOR_NODES_CONTAINED}.
 */
public MarqueeSelectionTool() {
    setDefaultCursor(SharedCursors.CROSS);
    setUnloadWhenFinished(false);
}
项目:gef-gwt    文件:AbstractConnectionCreationTool.java   
/**
 * The default constructor
 */
public AbstractConnectionCreationTool() {
    setDefaultCursor(SharedCursors.CURSOR_PLUG);
    setDisabledCursor(SharedCursors.CURSOR_PLUG_NOT);
}
项目:birt    文件:EditorDragGuidePolicy.java   
public void showSourceFeedback( Request request )
    {
        ChangeBoundsRequest req = (ChangeBoundsRequest) request;

        // add the placeholder guide figure to the ruler
        getHostFigure( ).getParent( ).add( getDummyGuideFigure( ), 0 );
        ( (GraphicalEditPart) getHost( ).getParent( ) ).setLayoutConstraint(
                getHost( ), getDummyGuideFigure( ), Integer.valueOf(
                        getGuideEditPart( ).getZoomedPosition( ) ) );
        getDummyGuideFigure( ).setBounds( getHostFigure( ).getBounds( ) );
        // add the invisible placeholder line figure to the primary viewer
        getGuideEditPart( ).getGuideLayer( ).add( getDummyLineFigure( ), 0 );
        getGuideEditPart( ).getGuideLayer( ).setConstraint(
                getDummyLineFigure( ),
                Boolean.valueOf( getGuideEditPart( ).isHorizontal( ) ) );
        //          getDummyLineFigure( ).setBounds(
        //                  getGuideEditPart( ).getGuideLineFigure( ).getBounds( ) );
        getDummyLineFigure( ).setBounds( getDummyLineFigureBounds( req ) );
        //add the info label
        getGuideEditPart( ).getGuideLayer( ).add( getInfoLabel( ), 0 );
//      getGuideEditPart( ).getGuideLayer( ).setConstraint(
//              getInfoLabel( ),
//              Boolean.valueOf( getGuideEditPart( ).isHorizontal( ) ) );

        updateInfomation( getShowLable( req ) );

        // move the guide being dragged to the last index so that it's drawn
        // on
        // top of other guides
        List children = getHostFigure( ).getParent( ).getChildren( );
        children.remove( getHostFigure( ) );
        children.add( getHostFigure( ) );

        if ( isDeleteRequest( req ) )
        {
            getHostFigure( ).setVisible( false );
            getGuideEditPart( ).getGuideLineFigure( ).setVisible( false );
            getGuideEditPart( ).setCurrentCursor( SharedCursors.ARROW );
            eraseAttachedPartsFeedback( request );
        }
        else
        {
            int newPosition;
            if ( getGuideEditPart( ).isHorizontal( ) )
            {
                newPosition = getGuideEditPart( ).getZoomedPosition( )
                        + req.getMoveDelta( ).y;
            }
            else
            {
                newPosition = getGuideEditPart( ).getZoomedPosition( )
                        + req.getMoveDelta( ).x;
            }
            getHostFigure( ).setVisible( true );
            getGuideEditPart( ).getGuideLineFigure( ).setVisible( true );
            if ( isMoveValid( newPosition ) )
            {
                getGuideEditPart( ).setCurrentCursor( null );
                getGuideEditPart( ).updateLocationOfFigures( newPosition );
                showAttachedPartsFeedback( req );
            }
            else
            {
                getGuideEditPart( ).setCurrentCursor( SharedCursors.NO );
                getGuideEditPart( ).updateLocationOfFigures(
                        getGuideEditPart( ).getZoomedPosition( ) );
                eraseAttachedPartsFeedback( request );
            }
        }
    }
项目:birt    文件:RootDragTracker.java   
/**
 * Creates a new MarqueeSelectionTool.
 */
public RootDragTracker( )
{
    setDefaultCursor( SharedCursors.CROSS );
    setUnloadWhenFinished( false );
}
项目:NEXCORE-UML-Modeler    文件:SequenceLineNonResizableHandleKit.java   
/**
 * createHandle
 *  
 * @param owner
 * @param direction
 * @return Handle
 */
static Handle createHandle(GraphicalEditPart owner, int direction) {
    ResizeHandle handle = new SequenceLineResizeHandle(owner, direction);
    handle.setCursor(SharedCursors.SIZEALL);
    handle.setDragTracker(new DragEditPartsTracker(owner));
    return handle;
}