Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » Set selection on focus an element
Set selection on focus an element [message #508750] Wed, 20 January 2010 07:27
Thomas is currently offline ThomasFriend
Messages: 79
Registered: October 2009
Member
hi,

i have found some methods in Figure#
	@Override
		public void handleFocusGained(FocusEvent event) {
		}

		@Override
		public boolean hasFocus() {
		}

		@Override
		public void handleFocusLost(FocusEvent event) {
		}


to select an element, when getting a focus. But they do not work! I need to add some Attributes at the selection.

A method XXXEditPart#isSelectable() is nearly what i need.

Should i use SelectionTool? What does SelectionTool do?

Thanks

[Updated on: Wed, 20 January 2010 07:30]

Report message to a moderator

Previous Topic:Editing a Label: set the selection when press F2
Next Topic:About adding child node?
Goto Forum:
  


Current Time: Wed Apr 14 13:44:41 GMT 2021

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

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

Back to the top