Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » [SOLVED] How to getSelectionCount from a CCombo control?
[SOLVED] How to getSelectionCount from a CCombo control? [message #720607] Tue, 30 August 2011 19:01 Go to next message
Marco Lopes is currently offline Marco Lopes
Messages: 56
Registered: September 2010
Member
From a TEXT i can do it through:
((Text)control).getSelectionCount();

But, how can i access it on a CCombo?
((CCombo)control).getSelectionCount(); is not implemented...

Thanks.

[Updated on: Thu, 01 September 2011 17:04]

Report message to a moderator

Re: [SOLVED] How to getSelectionCount from a CCombo control? [message #721476 is a reply to message #720607] Thu, 01 September 2011 17:05 Go to previous message
Marco Lopes is currently offline Marco Lopes
Messages: 56
Registered: September 2010
Member
Looking at the implementation of Text.getSelectionCount() it's trivial to do:

Point selection = myCCombo.getSelection();
int selectionCount = selection.y - selection.x;
Previous Topic:(no subject)
Next Topic:Extension editor appears to be broken
Goto Forum:
  


Current Time: Thu Jul 31 07:29:03 EDT 2014

Powered by FUDForum. Page generated in 0.01570 seconds