Bug 391523 - Revise getSelectionInfo...()

* added new methods for bendpoint colors

Change-Id: I54100f1969b8cfe00abf0514a96ee2d1ca9a6e06
diff --git a/plugins/org.eclipse.graphiti/src/org/eclipse/graphiti/tb/ConnectionSelectionInfoImpl.java b/plugins/org.eclipse.graphiti/src/org/eclipse/graphiti/tb/ConnectionSelectionInfoImpl.java
index 6332d33..28a0e4a 100644
--- a/plugins/org.eclipse.graphiti/src/org/eclipse/graphiti/tb/ConnectionSelectionInfoImpl.java
+++ b/plugins/org.eclipse.graphiti/src/org/eclipse/graphiti/tb/ConnectionSelectionInfoImpl.java
@@ -16,9 +16,48 @@
  *******************************************************************************/

 package org.eclipse.graphiti.tb;

 

+import org.eclipse.graphiti.util.IColorConstant;

+

 /**

  * @since 0.10

  */

 public class ConnectionSelectionInfoImpl extends SelectionInfoImpl implements IConnectionSelectionInfo {

 

+	private IColorConstant primarySelectionBendpointForegroundColor;

+	private IColorConstant primarySelectionBendpointBackgroundColor;

+	private IColorConstant secondarySelectionBendpointForegroundColor;

+	private IColorConstant secondarySelectionBendpointBackgroundColor;

+

+	public IColorConstant getPrimarySelectionBendpointForegroundColor() {

+		return primarySelectionBendpointForegroundColor;

+	}

+

+	public IColorConstant getPrimarySelectionBendpointBackgroundColor() {

+		return primarySelectionBendpointBackgroundColor;

+	}

+

+	public IColorConstant getSecondarySelectionBendpointForegroundColor() {

+		return secondarySelectionBendpointForegroundColor;

+	}

+

+	public IColorConstant getSecondarySelectionBendpointBackgroundColor() {

+		return secondarySelectionBendpointBackgroundColor;

+	}

+

+	public void setPrimarySelectionBendpointForegroundColor(IColorConstant color) {

+		primarySelectionBendpointForegroundColor = color;

+	}

+

+	public void setPrimarySelectionBendpointBackgroundColor(IColorConstant color) {

+		primarySelectionBendpointBackgroundColor = color;

+	}

+

+	public void setSecondarySelectionBendpointForegroundColor(IColorConstant color) {

+		secondarySelectionBendpointForegroundColor = color;

+	}

+

+	public void setSecondarySelectionBendpointBackgroundColor(IColorConstant color) {

+		secondarySelectionBendpointBackgroundColor = color;

+	}

+

 }

diff --git a/plugins/org.eclipse.graphiti/src/org/eclipse/graphiti/tb/IConnectionSelectionInfo.java b/plugins/org.eclipse.graphiti/src/org/eclipse/graphiti/tb/IConnectionSelectionInfo.java
index a9cd97e..2450e7a 100644
--- a/plugins/org.eclipse.graphiti/src/org/eclipse/graphiti/tb/IConnectionSelectionInfo.java
+++ b/plugins/org.eclipse.graphiti/src/org/eclipse/graphiti/tb/IConnectionSelectionInfo.java
@@ -16,6 +16,8 @@
  *******************************************************************************/

 package org.eclipse.graphiti.tb;

 

+import org.eclipse.graphiti.util.IColorConstant;

+

 /**

  * The Interface IConnectionSelectionInfo.

  * 

@@ -26,4 +28,64 @@
  */

 public interface IConnectionSelectionInfo extends ISelectionInfo {

 

+	/**

+	 * Gets the primary selection foreground color for the bendpoint.

+	 * 

+	 * @return the foreground color

+	 */

+	IColorConstant getPrimarySelectionBendpointForegroundColor();

+

+	/**

+	 * Gets the primary selection background color for the bendpoint.

+	 * 

+	 * @return the background color

+	 */

+	IColorConstant getPrimarySelectionBendpointBackgroundColor();

+

+	/**

+	 * Gets the secondary selection foreground color for the bendpoint.

+	 * 

+	 * @return the foreground color

+	 */

+	IColorConstant getSecondarySelectionBendpointForegroundColor();

+

+	/**

+	 * Gets the secondary selection background color for the bendpoint.

+	 * 

+	 * @return the background color

+	 */

+	IColorConstant getSecondarySelectionBendpointBackgroundColor();

+

+	/**

+	 * Sets the primary selection foreground color for the bendpoint.

+	 * 

+	 * @param color

+	 *            the color

+	 */

+	void setPrimarySelectionBendpointForegroundColor(IColorConstant color);

+

+	/**

+	 * Sets the primary selection background color for the bendpoint.

+	 * 

+	 * @param color

+	 *            the color

+	 */

+	void setPrimarySelectionBendpointBackgroundColor(IColorConstant color);

+

+	/**

+	 * Sets the secondary selection foreground color for the bendpoint.

+	 * 

+	 * @param color

+	 *            the color

+	 */

+	void setSecondarySelectionBendpointForegroundColor(IColorConstant color);

+

+	/**

+	 * Sets the secondary selection background color for the bendpoint.

+	 * 

+	 * @param color

+	 *            the color

+	 */

+	void setSecondarySelectionBendpointBackgroundColor(IColorConstant color);

+

 }