org.eclipse.gef.ConnectionEditPart Java Examples

The following examples show how to use org.eclipse.gef.ConnectionEditPart. 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: NodeElementEditPart.java    From ermasterr with Apache License 2.0 6 votes vote down vote up
/**
 * {@inheritDoc}
 */
@Override
public ConnectionAnchor getTargetConnectionAnchor(final ConnectionEditPart editPart) {
    // if (!(editPart instanceof RelationEditPart)) {
    // return new ChopboxAnchor(this.getFigure());
    // }

    final ConnectionElement connection = (ConnectionElement) editPart.getModel();

    final XYChopboxAnchor anchor = new XYChopboxAnchor(getFigure());

    final Rectangle bounds = getFigure().getBounds();

    if (connection.getTargetXp() != -1 && connection.getTargetYp() != -1) {
        anchor.setLocation(new Point(bounds.x + (bounds.width * connection.getTargetXp() / 100), bounds.y + (bounds.height * connection.getTargetYp() / 100)));
    }

    return anchor;
}
 
Example #2
Source File: DefaultLineAction.java    From erflute with Apache License 2.0 6 votes vote down vote up
@Override
protected boolean calculateEnabled() {
    final GraphicalViewer viewer = getGraphicalViewer();

    for (final Object object : viewer.getSelectedEditParts()) {
        if (object instanceof ConnectionEditPart) {
            return true;

        } else if (object instanceof DiagramWalkerEditPart) {
            final DiagramWalkerEditPart nodeElementEditPart = (DiagramWalkerEditPart) object;

            if (!nodeElementEditPart.getSourceConnections().isEmpty()) {
                return true;
            }
        }
    }

    return false;
}
 
Example #3
Source File: DefaultLineAction.java    From ermaster-b with Apache License 2.0 6 votes vote down vote up
@Override
protected boolean calculateEnabled() {
	GraphicalViewer viewer = this.getGraphicalViewer();

	for (Object object : viewer.getSelectedEditParts()) {
		if (object instanceof ConnectionEditPart) {
			return true;

		} else if (object instanceof NodeElementEditPart) {
			NodeElementEditPart nodeElementEditPart = (NodeElementEditPart) object;

			if (!nodeElementEditPart.getSourceConnections().isEmpty()) {
				return true;
			}
		}
	}

	return false;
}
 
Example #4
Source File: RightAngleLineAction.java    From ermaster-b with Apache License 2.0 6 votes vote down vote up
/**
 * {@inheritDoc}
 */
@Override
protected boolean calculateEnabled() {
	GraphicalViewer viewer = this.getGraphicalViewer();

	for (Object object : viewer.getSelectedEditParts()) {
		if (object instanceof ConnectionEditPart) {
			return true;

		} else if (object instanceof NodeElementEditPart) {
			NodeElementEditPart nodeElementEditPart = (NodeElementEditPart) object;

			if (!nodeElementEditPart.getSourceConnections().isEmpty()) {
				return true;
			}
		}
	}

	return false;
}
 
Example #5
Source File: TableViewEditPart.java    From ermaster-b with Apache License 2.0 6 votes vote down vote up
/**
 * {@inheritDoc}
 */
@Override
public ConnectionAnchor getTargetConnectionAnchor(
		ConnectionEditPart editPart) {
	if (!(editPart instanceof RelationEditPart)) {
		return super.getTargetConnectionAnchor(editPart);
	}

	Relation relation = (Relation) editPart.getModel();

	XYChopboxAnchor anchor = new XYChopboxAnchor(this.getFigure());

	Rectangle bounds = this.getFigure().getBounds();

	if (relation.getTargetXp() != -1 && relation.getTargetYp() != -1) {
		anchor.setLocation(new Point(bounds.x
				+ (bounds.width * relation.getTargetXp() / 100), bounds.y
				+ (bounds.height * relation.getTargetYp() / 100)));
	}

	return anchor;
}
 
Example #6
Source File: RelationBendpointEditPolicy.java    From erflute with Apache License 2.0 6 votes vote down vote up
@Override
protected List<?> createSelectionHandles() {
    final Relationship relation = (Relationship) getHost().getModel();
    if (relation.getSourceWalker() == relation.getTargetWalker()) {
        showSelectedLine();

        if (getHost().getRoot().getContents() instanceof ERDiagramEditPart) {
            // TODO ymd ここを通るケースを確認できず。消すかもしれない。
            final ERDiagramEditPart diagramEditPart = (ERDiagramEditPart) getHost().getRoot().getContents();
            diagramEditPart.refreshVisuals();
        }

        final List<BendpointMoveHandle> list = new ArrayList<>();
        list.add(new BendpointMoveHandle((ConnectionEditPart) getHost(), 1, 2));
        return list;
    }

    return super.createSelectionHandles();
}
 
Example #7
Source File: TableViewEditPart.java    From erflute with Apache License 2.0 6 votes vote down vote up
@Override
public ConnectionAnchor getSourceConnectionAnchor(ConnectionEditPart editPart) {
    if (!(editPart instanceof RelationEditPart)) {
        return super.getSourceConnectionAnchor(editPart);
    }

    final Relationship relation = (Relationship) editPart.getModel();
    final Rectangle bounds = getFigure().getBounds();
    final XYChopboxAnchor anchor = new XYChopboxAnchor(getFigure());
    if (relation.getSourceXp() != -1 && relation.getSourceYp() != -1) {
        anchor.setLocation(new Point(bounds.x + (bounds.width * relation.getSourceXp() / 100),
                bounds.y + (bounds.height * relation.getSourceYp() / 100)));
    }

    return anchor;
}
 
Example #8
Source File: TableViewEditPart.java    From ermaster-b with Apache License 2.0 6 votes vote down vote up
/**
 * {@inheritDoc}
 */
@Override
public ConnectionAnchor getSourceConnectionAnchor(
		ConnectionEditPart editPart) {
	if (!(editPart instanceof RelationEditPart)) {
		return super.getSourceConnectionAnchor(editPart);
	}

	Relation relation = (Relation) editPart.getModel();

	Rectangle bounds = this.getFigure().getBounds();

	XYChopboxAnchor anchor = new XYChopboxAnchor(this.getFigure());

	if (relation.getSourceXp() != -1 && relation.getSourceYp() != -1) {
		anchor.setLocation(new Point(bounds.x
				+ (bounds.width * relation.getSourceXp() / 100), bounds.y
				+ (bounds.height * relation.getSourceYp() / 100)));
	}

	return anchor;
}
 
Example #9
Source File: TableViewEditPart.java    From erflute with Apache License 2.0 6 votes vote down vote up
@Override
public ConnectionAnchor getTargetConnectionAnchor(ConnectionEditPart editPart) {
    if (!(editPart instanceof RelationEditPart)) {
        return super.getTargetConnectionAnchor(editPart);
    }

    final Relationship relation = (Relationship) editPart.getModel();
    final XYChopboxAnchor anchor = new XYChopboxAnchor(getFigure());
    final Rectangle bounds = getFigure().getBounds();
    if (relation.getTargetXp() != -1 && relation.getTargetYp() != -1) {
        anchor.setLocation(new Point(bounds.x + (bounds.width * relation.getTargetXp() / 100),
                bounds.y + (bounds.height * relation.getTargetYp() / 100)));
    }

    return anchor;
}
 
Example #10
Source File: NormalColumnEditPart.java    From ermaster-b with Apache License 2.0 6 votes vote down vote up
private List<NormalColumn> getSelectedForeignKeyColulmnList() {
	List<NormalColumn> foreignKeyColulmnList = new ArrayList<NormalColumn>();

	TableViewEditPart parent = (TableViewEditPart) this.getParent();

	for (Object object : parent.getTargetConnections()) {
		ConnectionEditPart connectionEditPart = (ConnectionEditPart) object;

		int selected = connectionEditPart.getSelected();

		if (selected == EditPart.SELECTED
				|| selected == EditPart.SELECTED_PRIMARY) {
			ConnectionElement connectionElement = (ConnectionElement) connectionEditPart
					.getModel();

			if (connectionElement instanceof Relation) {
				Relation relation = (Relation) connectionElement;

				foreignKeyColulmnList.addAll(relation
						.getForeignKeyColumns());
			}
		}
	}

	return foreignKeyColulmnList;
}
 
Example #11
Source File: TableCellKeyDelegate.java    From birt with Eclipse Public License 1.0 6 votes vote down vote up
/**
 * Given a connection on a node, this method finds the next (or the
 * previous) connection of that node.
 * 
 * @param node
 *            The EditPart whose connections are being traversed
 * @param current
 *            The connection relative to which the next connection has to be
 *            found
 * @param forward
 *            <code>true</code> if the next connection has to be found;
 *            false otherwise
 */
ConnectionEditPart findConnection( GraphicalEditPart node,
		ConnectionEditPart current, boolean forward )
{
	List connections = new ArrayList( node.getSourceConnections( ) );
	connections.addAll( node.getTargetConnections( ) );
	if ( connections.isEmpty( ) )
		return null;
	if ( forward )
		counter++;
	else
		counter--;
	while ( counter < 0 )
		counter += connections.size( );
	counter %= connections.size( );
	return (ConnectionEditPart) connections.get( counter
			% connections.size( ) );
}
 
Example #12
Source File: NormalColumnEditPart.java    From erflute with Apache License 2.0 6 votes vote down vote up
private List<NormalColumn> getSelectedForeignKeyColulmnList() {
    final List<NormalColumn> foreignKeyColulmnList = new ArrayList<>();
    final TableViewEditPart parent = (TableViewEditPart) getParent();
    for (final Object object : parent.getTargetConnections()) {
        final ConnectionEditPart connectionEditPart = (ConnectionEditPart) object;
        final int selected = connectionEditPart.getSelected();
        if (selected == EditPart.SELECTED || selected == EditPart.SELECTED_PRIMARY) {
            final WalkerConnection connectionElement = (WalkerConnection) connectionEditPart.getModel();
            if (connectionElement instanceof Relationship) {
                final Relationship relation = (Relationship) connectionElement;
                foreignKeyColulmnList.addAll(relation.getForeignKeyColumns());
            }
        }
    }
    return foreignKeyColulmnList;
}
 
Example #13
Source File: NodeElementEditPart.java    From ermasterr with Apache License 2.0 6 votes vote down vote up
/**
 * {@inheritDoc}
 */
@Override
public ConnectionAnchor getSourceConnectionAnchor(final ConnectionEditPart editPart) {
    // if (!(editPart instanceof RelationEditPart)) {
    // return super.getSourceConnectionAnchor(editPart);
    // }

    final ConnectionElement connection = (ConnectionElement) editPart.getModel();

    final Rectangle bounds = getFigure().getBounds();

    final XYChopboxAnchor anchor = new XYChopboxAnchor(getFigure());

    if (connection.getSourceXp() != -1 && connection.getSourceYp() != -1) {
        anchor.setLocation(new Point(bounds.x + (bounds.width * connection.getSourceXp() / 100), bounds.y + (bounds.height * connection.getSourceYp() / 100)));
    }

    return anchor;
}
 
Example #14
Source File: NormalColumnEditPart.java    From ermasterr with Apache License 2.0 6 votes vote down vote up
private List<NormalColumn> getSelectedForeignKeyColulmnList() {
    final List<NormalColumn> foreignKeyColulmnList = new ArrayList<NormalColumn>();

    final TableViewEditPart parent = (TableViewEditPart) getParent();

    for (final Object object : parent.getTargetConnections()) {
        final ConnectionEditPart connectionEditPart = (ConnectionEditPart) object;

        final int selected = connectionEditPart.getSelected();

        if (selected == EditPart.SELECTED || selected == EditPart.SELECTED_PRIMARY) {
            final ConnectionElement connectionElement = (ConnectionElement) connectionEditPart.getModel();

            if (connectionElement instanceof Relation) {
                final Relation relation = (Relation) connectionElement;

                foreignKeyColulmnList.addAll(relation.getForeignKeyColumns());
            }
        }
    }

    return foreignKeyColulmnList;
}
 
Example #15
Source File: RightAngleLineAction.java    From ermasterr with Apache License 2.0 6 votes vote down vote up
/**
 * {@inheritDoc}
 */
@Override
protected boolean calculateEnabled() {
    final GraphicalViewer viewer = getGraphicalViewer();

    for (final Object object : viewer.getSelectedEditParts()) {
        if (object instanceof ConnectionEditPart) {
            return true;

        } else if (object instanceof NodeElementEditPart) {
            final NodeElementEditPart nodeElementEditPart = (NodeElementEditPart) object;

            if (!nodeElementEditPart.getSourceConnections().isEmpty()) {
                return true;
            }
        }
    }

    return false;
}
 
Example #16
Source File: DefaultLineAction.java    From ermasterr with Apache License 2.0 6 votes vote down vote up
@Override
protected boolean calculateEnabled() {
    final GraphicalViewer viewer = getGraphicalViewer();

    for (final Object object : viewer.getSelectedEditParts()) {
        if (object instanceof ConnectionEditPart) {
            return true;

        } else if (object instanceof NodeElementEditPart) {
            final NodeElementEditPart nodeElementEditPart = (NodeElementEditPart) object;

            if (!nodeElementEditPart.getSourceConnections().isEmpty()) {
                return true;
            }
        }
    }

    return false;
}
 
Example #17
Source File: AbstractNodeEditPart.java    From olca-app with Mozilla Public License 2.0 5 votes vote down vote up
@Override
public ConnectionAnchor getTargetConnectionAnchor(ConnectionEditPart con) {
	Link link = (Link) con.getModel();
	ProcessNode process = link.inputNode;
	ExchangeNode input = process.getInput(link.processLink);
	return LinkAnchor.forInput(process, input);
}
 
Example #18
Source File: NormalColumnEditPart.java    From ermaster-b with Apache License 2.0 5 votes vote down vote up
private List<NormalColumn> getSelectedReferencedColulmnList() {
	List<NormalColumn> referencedColulmnList = new ArrayList<NormalColumn>();

	TableViewEditPart parent = (TableViewEditPart) this.getParent();
	TableView tableView = (TableView) parent.getModel();

	for (Object object : parent.getSourceConnections()) {
		ConnectionEditPart connectionEditPart = (ConnectionEditPart) object;

		int selected = connectionEditPart.getSelected();

		if (selected == EditPart.SELECTED
				|| selected == EditPart.SELECTED_PRIMARY) {
			ConnectionElement connectionElement = (ConnectionElement) connectionEditPart
					.getModel();

			if (connectionElement instanceof Relation) {
				Relation relation = (Relation) connectionElement;

				if (relation.isReferenceForPK()) {
					referencedColulmnList.addAll(((ERTable) tableView)
							.getPrimaryKeys());

				} else if (relation.getReferencedComplexUniqueKey() != null) {
					referencedColulmnList.addAll(relation
							.getReferencedComplexUniqueKey()
							.getColumnList());

				} else {
					referencedColulmnList.add(relation
							.getReferencedColumn());
				}
			}
		}

	}
	return referencedColulmnList;
}
 
Example #19
Source File: NormalColumnEditPart.java    From ermasterr with Apache License 2.0 5 votes vote down vote up
private List<NormalColumn> getSelectedReferencedColulmnList() {
    final List<NormalColumn> referencedColulmnList = new ArrayList<NormalColumn>();

    final TableViewEditPart parent = (TableViewEditPart) getParent();
    final TableView tableView = (TableView) parent.getModel();

    for (final Object object : parent.getSourceConnections()) {
        final ConnectionEditPart connectionEditPart = (ConnectionEditPart) object;

        final int selected = connectionEditPart.getSelected();

        if (selected == EditPart.SELECTED || selected == EditPart.SELECTED_PRIMARY) {
            final ConnectionElement connectionElement = (ConnectionElement) connectionEditPart.getModel();

            if (connectionElement instanceof Relation) {
                final Relation relation = (Relation) connectionElement;

                if (relation.isReferenceForPK()) {
                    referencedColulmnList.addAll(((ERTable) tableView).getPrimaryKeys());

                } else if (relation.getReferencedComplexUniqueKey() != null) {
                    referencedColulmnList.addAll(relation.getReferencedComplexUniqueKey().getColumnList());

                } else {
                    referencedColulmnList.add(relation.getReferencedColumn());
                }
            }
        }

    }
    return referencedColulmnList;
}
 
Example #20
Source File: InitialPointsConnectionBendpointEditPolicy.java    From statecharts with Eclipse Public License 1.0 5 votes vote down vote up
@Override
protected Command getBendpointsChangedCommand(BendpointRequest request) {
	PointList originalPoints = InitialPointsOfRequestDataManager.getOriginalPoints(request);
	Command result = super.getBendpointsChangedCommand(request);
	if (result instanceof ICommandProxy) {
		ICommand iCommand = ((ICommandProxy) result).getICommand();
		if (iCommand instanceof SetConnectionBendpointsAndLabelCommmand) {
			((SetConnectionBendpointsAndLabelCommmand) iCommand).setLabelsToUpdate(
					(org.eclipse.gmf.runtime.diagram.ui.editparts.ConnectionEditPart) getHost(), originalPoints);
		}
	}
	return result;
}
 
Example #21
Source File: NormalColumnEditPart.java    From erflute with Apache License 2.0 5 votes vote down vote up
private List<NormalColumn> getSelectedReferencedColulmnList() {
    final List<NormalColumn> referencedColulmnList = new ArrayList<>();

    final TableViewEditPart parent = (TableViewEditPart) getParent();
    final TableView tableView = (TableView) parent.getModel();

    for (final Object object : parent.getSourceConnections()) {
        final ConnectionEditPart connectionEditPart = (ConnectionEditPart) object;

        final int selected = connectionEditPart.getSelected();

        if (selected == EditPart.SELECTED || selected == EditPart.SELECTED_PRIMARY) {
            final WalkerConnection connectionElement = (WalkerConnection) connectionEditPart.getModel();

            if (connectionElement instanceof Relationship) {
                final Relationship relation = (Relationship) connectionElement;

                if (relation.isReferenceForPK()) {
                    referencedColulmnList.addAll(((ERTable) tableView).getPrimaryKeys());

                } else if (relation.getReferredCompoundUniqueKey() != null) {
                    referencedColulmnList.addAll(relation.getReferredCompoundUniqueKey().getColumnList());

                } else {
                    referencedColulmnList.add(relation.getReferredSimpleUniqueColumn());
                }
            }
        }
    }
    return referencedColulmnList;
}
 
Example #22
Source File: ERDiagramBendpointEditPolicy.java    From erflute with Apache License 2.0 5 votes vote down vote up
@Override
protected Command getMoveBendpointCommand(BendpointRequest bendpointrequest) {
    final ConnectionEditPart editPart = (ConnectionEditPart) getHost();

    final Point point = bendpointrequest.getLocation();
    getConnection().translateToRelative(point);

    final MoveBendpointCommand command = new MoveBendpointCommand(editPart, point.x, point.y, bendpointrequest.getIndex());

    return command;
}
 
Example #23
Source File: SequenceFlowCreationEditPolicy.java    From bonita-studio with GNU General Public License v2.0 5 votes vote down vote up
@Override
public void eraseTargetFeedback(Request request) {
	if(understandsRequest(request) && originalColor != null){
		ConnectionEditPart part =  (ConnectionEditPart) getHost();
		part.getFigure().setForegroundColor(originalColor);
	}else{
		super.showTargetFeedback(request);
	}
}
 
Example #24
Source File: AbstractNodeEditPart.java    From olca-app with Mozilla Public License 2.0 5 votes vote down vote up
@Override
public ConnectionAnchor getSourceConnectionAnchor(ConnectionEditPart con) {
	Link link = (Link) con.getModel();
	ProcessNode process = link.outputNode;
	ExchangeNode output = process.getOutput(link.processLink);
	return LinkAnchor.forOutput(process, output);
}
 
Example #25
Source File: TableCellKeyDelegate.java    From birt with Eclipse Public License 1.0 5 votes vote down vote up
/**
 * @return <code>true</code> if the keys pressed indicate to stop
 *         traversing/selecting connection
 */
boolean acceptLeaveConnection( KeyEvent event )
{
	int key = event.keyCode;
	if ( getFocusEditPart( ) instanceof ConnectionEditPart )
		if ( ( key == SWT.ARROW_UP )
				|| ( key == SWT.ARROW_RIGHT )
				|| ( key == SWT.ARROW_DOWN )
				|| ( key == SWT.ARROW_LEFT ) )
			return true;
	return false;
}
 
Example #26
Source File: TableCellKeyDelegate.java    From birt with Eclipse Public License 1.0 5 votes vote down vote up
/**
 * Navigates to the source or target of the currently focused
 * ConnectionEditPart.
 */
void navigateOutOfConnection( KeyEvent event )
{
	GraphicalEditPart cached = getCachedNode( );
	ConnectionEditPart conn = (ConnectionEditPart) getFocusEditPart( );
	if ( cached != null
			&& ( cached == conn.getSource( ) || cached == conn.getTarget( ) ) )
		navigateTo( cached, event );
	else
		navigateTo( conn.getSource( ), event );
}
 
Example #27
Source File: ColorAndFontPropertySection.java    From bonita-studio with GNU General Public License v2.0 5 votes vote down vote up
@Override
public void setInput(IWorkbenchPart part, ISelection selection) {
	super.setInput(part, selection); 
	if(!isReadOnly()){
		if(fontDialogButton != null){
			fontDialogButton.setEnabled(true) ;
		}
		if(styleCombo != null && getSingleInput()!= null && getCurrentDiagramEditPart() != null){
			if(getSingleInput() instanceof ConnectionEditPart){
				styleComposite.setVisible(false);
			}else{
				styleComposite.setVisible(true);
				styleCombo.getCombo().setEnabled(true) ;
				styleCombo.setContentProvider(new StyledObjectContentProvider(getCurrentDiagramEditPart())) ;
				styleCombo.setInput(getSingleInput().resolveSemanticElement()) ;
				styleCombo.getCombo().add(Messages.ChooseFigure,0);
				styleCombo.getCombo().setText(Messages.ChooseFigure);
			}
		}
	}else{
		if(fontDialogButton != null){
			fontDialogButton.setEnabled(false) ;
		}
		if(styleCombo != null){
			styleCombo.getCombo().setEnabled(false) ;
		}
	}
}
 
Example #28
Source File: InsertElementOnSequenceFlowCommand.java    From bonita-studio with GNU General Public License v2.0 5 votes vote down vote up
@Override
protected CommandResult doUndoWithResult(final IProgressMonitor monitor,
        final IAdaptable info) throws ExecutionException {
    if (setBendpointsCmdForOriginalEdge != null) {
        setBendpointsCmdForOriginalEdge.undo(monitor, info);
    }
    if (createConnectionCommand != null) {
        createConnectionCommand.undo(monitor, info);
    }
    if (targetEditPart instanceof ConnectionEditPart && originalTargetEditPart != null) {
        final ReconnectRequest reconnect = new ReconnectRequest(RequestConstants.REQ_RECONNECT_TARGET);
        reconnect.setConnectionEditPart((ConnectionEditPart) targetEditPart);
        reconnect.setTargetEditPart(originalTargetEditPart);
        final CompoundCommand reconnectCommand = (CompoundCommand) originalTargetEditPart.getCommand(reconnect);
        final CompoundCommand ccc = (CompoundCommand) reconnectCommand.getChildren()[1];
        for (final Object proxy : ccc.getChildren()) {
            if (proxy instanceof ICommandProxy) {
                ((ICommandProxy) proxy).getICommand().execute(monitor, info);
            }
        }
    }
    if (correctOffset && correctOffsetCmd != null && correctOffsetCmd.canUndo()) {
        correctOffsetCmd.undo(monitor, info);
    }
    if (creationCommand != null && creationCommand.canUndo()) {
        creationCommand.undo();
        creationCommand.dispose();
    }
    return CommandResult.newOKCommandResult();
}
 
Example #29
Source File: SequenceFlowCreationEditPolicy.java    From bonita-studio with GNU General Public License v2.0 5 votes vote down vote up
@Override
public void showTargetFeedback(Request request) {
	if(understandsRequest(request)){
		ConnectionEditPart part =  (ConnectionEditPart) getHost();
		if(originalColor == null){
			originalColor = part.getFigure().getForegroundColor();
		}
		part.getFigure().setForegroundColor(FEEDBACK_COLOR);
	}else{
		super.showTargetFeedback(request);
	}
}
 
Example #30
Source File: BonitaUnspecifiedTypeCreationTool.java    From bonita-studio with GNU General Public License v2.0 5 votes vote down vote up
@Override
protected boolean handleMove() {
	if (applies()) {
		super.handleMove();
		redrawFeedback();
		if (getTargetEditPart() != null && !(getTargetEditPart() instanceof ConnectionEditPart)) {
			helper = (SnapToHelper) getTargetEditPart().getAdapter(SnapToHelper.class);
		}

		return true;
	} else {
		return super.handleMove();
	}

}