Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
View | Details | Raw Unified | Return to bug 213171
Collapse All | Expand All

(-)src/org/eclipse/gef/RequestConstants.java (+4 lines)
Lines 142-146 Link Here
142
 * Indicates selection hover Requests.
142
 * Indicates selection hover Requests.
143
 */
143
 */
144
String REQ_SELECTION_HOVER = "selection hover"; //$NON-NLS-1$
144
String REQ_SELECTION_HOVER = "selection hover"; //$NON-NLS-1$
145
/**
146
 * constants for set all connection bendpoint request
147
 */
148
String REQ_SET_ALL_BENDPOINT = "set_all_connection_bendpoint";     //$NON-NLS-1$ 
145
149
146
}
150
}
(-)src/org/eclipse/gef/requests/SetAllBendpointRequest.java (+79 lines)
Added Link Here
1
/******************************************************************************
2
 * Copyright (c) 2002, 2003 IBM Corporation and others.
3
 * All rights reserved. This program and the accompanying materials
4
 * are made available under the terms of the Eclipse Public License v1.0
5
 * which accompanies this distribution, and is available at
6
 * http://www.eclipse.org/legal/epl-v10.html
7
 *
8
 * Contributors:
9
 *    IBM Corporation - initial API and implementation 
10
 ****************************************************************************/
11
12
package org.eclipse.gef.requests;
13
14
import org.eclipse.draw2d.geometry.Point;
15
import org.eclipse.draw2d.geometry.PointList;
16
import org.eclipse.gef.Request;
17
18
/**
19
 * A Request to set the bend points of {@link org.eclipse.draw2d.Connection}
20
 * 
21
 */
22
public class SetAllBendpointRequest extends Request {
23
	private PointList points;
24
	private Point ptSourceRef = null;
25
	private Point ptTargetRef = null;
26
	
27
	/**
28
	 * Method SetAllBendPointsRequest.
29
	 * @param sz
30
	 * @param points
31
	 */
32
	public SetAllBendpointRequest(String sz, PointList points) {
33
		super(sz);
34
		this.points = points;
35
	}
36
	
37
	/**
38
	 * Method SetAllBendPointsRequest.
39
	 * @param sz
40
	 * @param points
41
	 * @param ptSourceRef
42
	 * @param ptTargetRef
43
	 */
44
	public SetAllBendpointRequest(String sz, PointList points, Point ptSourceRef, Point ptTargetRef) {
45
		super(sz);
46
		this.points = points;
47
		this.ptSourceRef = ptSourceRef;
48
		this.ptTargetRef = ptTargetRef;
49
	}
50
	
51
	/**
52
	 * Method setPoints.
53
	 * @param points
54
	 */
55
	public void setPoints(PointList points) {
56
		this.points = points;
57
	}
58
	
59
	/**
60
	 * Method getPoints.
61
	 * @return PointList
62
	 */
63
	public PointList getPoints() {
64
		return points;
65
	}
66
	
67
	/**
68
	 * @return Returns the ptRef1.
69
	 */
70
	public Point getSourceReference() {
71
		return ptSourceRef;
72
	}
73
	/**
74
	 * @return Returns the ptRef2.
75
	 */
76
	public Point getTargetReference() {
77
		return ptTargetRef;
78
	}
79
}

Return to bug 213171