Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: 91f87e441c87be711222da10a2d45d5a21d36ee2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
package org.eclipse.papyrus.diagram.common.groups.core.ui;

import org.eclipse.emf.transaction.TransactionalEditingDomain;
import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
import org.eclipse.gmf.runtime.draw2d.ui.figures.FigureUtilities;
import org.eclipse.gmf.runtime.notation.View;
import org.eclipse.swt.events.MouseEvent;
import org.eclipse.swt.events.MouseTrackListener;
import org.eclipse.swt.graphics.RGB;


public class CheckboxIGraphicalFocusListenner implements MouseTrackListener {


	private int oldColor, newColor;

	private View parentView;

	private TransactionalEditingDomain editingDomain;


	public CheckboxIGraphicalFocusListenner(IGraphicalEditPart parent) {
		super();
		this.parentView = (View)parent.getModel();
		newColor = FigureUtilities.RGBToInteger(new RGB(255, 0, 0));

	}


	public void mouseEnter(MouseEvent arg0) {

		//		SetPropertyCommand changeColor = new SetPropertyCommand( editingDomain,"blabla",parentView,NotationPackage.Literals.LINE_STYLE,newColor);
	}

	public void mouseExit(MouseEvent arg0) {
		//		LineStyle lineStyle = (LineStyle)parentView.getStyle(NotationPackage.Literals.LINE_STYLE);
		//		if(lineStyle != null) {
		//			// line color
		//			//RGB lineRGB = PreferenceConverter.getColor(store, preferenceLineColorName);
		//			newColor = lineStyle.getLineColor();
		//			lineStyle.setLineColor(oldColor);
		//		}


	}

	public void mouseHover(MouseEvent arg0) {
		// TODO Auto-generated method stub

	}

}

Back to the top