Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » Pop up menu for showing data about link between two component
Pop up menu for showing data about link between two component [message #544090] Thu, 01 July 2010 14:49 Go to next message
Dewas is currently offline DewasFriend
Messages: 21
Registered: March 2010
Location: Toulouse (France)
Junior Member
Hello,

I would like to show on my editor a pop-up window or a ScreenTips showing the information detailed of a link between two components of my diagram when we roll over or select the link with the mouse.

Does anybody know how shown this kind of tooltip?
Does anybody know how to make shown this tooltip only when the link is roll over?

Thanks


DEWAS Albert
Master Degree in the IUP Intelligent Systems
Trainee to Continental Corporation Toulouse
Re: Pop up menu for showing data about link between two component [message #545358 is a reply to message #544090] Wed, 07 July 2010 13:58 Go to previous message
Dewas is currently offline DewasFriend
Messages: 21
Registered: March 2010
Location: Toulouse (France)
Junior Member
Yop, I have found a solution. I use tooltips.
I had in my ConnectorEditPart :

/*
 * @generated NOT
 */
protected Connection createConnectionFigure() {
	Connection result = new PolylineConnectionEx();
	Connector connector = (Connector) this.resolveSemanticElement();
	result.setToolTip(new Label(connector.getShortName()));
	return result;
}

/**
 * @generated NOT
 */
public void refreshVisuals() {
	Connector connector = (Connector) this.resolveSemanticElement();
	getPrimaryShape().setToolTip(new Label(connector.getShortName()));
	super.refreshVisuals();
}

/**
 * @generated NOT
 */
protected void handleNotificationEvent(Notification notification) {
	super.handleNotificationEvent(notification);
	if (MyProject.MyProjectPackage.eINSTANCE.getConnector_ShortName().equals(notification.getFeature())) {
			refreshVisuals();
	}
}


DEWAS Albert
Master Degree in the IUP Intelligent Systems
Trainee to Continental Corporation Toulouse
Previous Topic:Two level validation
Next Topic:Filtering element when opening diagram
Goto Forum:
  


Current Time: Sun May 26 00:44:30 GMT 2024

Powered by FUDForum. Page generated in 0.03152 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top