Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » Change Zomm ComboBox width in my GEF editor
Change Zomm ComboBox width in my GEF editor [message #244541] Thu, 24 July 2008 17:34 Go to next message
Lisete  is currently offline Lisete Friend
Messages: 8
Registered: July 2009
Junior Member
Hi.
Finally!!, I reach how to add Zoom support to my GEF editor :)
Now I've a problem: after adding the Combo box in the Editor's toolbar
with the percentages:

toolBarManager.add(new ZoomComboContributionItem(getPage()))

I need to change its size (to increase its width)? Is it possible? Can
anyone give me a help??
Re: Change Zomm ComboBox width in my GEF editor [message #245326 is a reply to message #244541] Wed, 03 September 2008 10:35 Go to previous messageGo to next message
Lisete  is currently offline Lisete Friend
Messages: 8
Registered: July 2009
Junior Member
Hi,
can anyone help?
Re: Change Zomm ComboBox width in my GEF editor [message #514697 is a reply to message #245326] Tue, 16 February 2010 11:35 Go to previous messageGo to next message
Ben Wecker is currently offline Ben WeckerFriend
Messages: 4
Registered: February 2010
Junior Member
Hello,

I also would like to increase the witdth of the combo box that is created by ZoomComboContributionItem. Regularly it only displays about 6 characters. I would like to increase in order to display Strings such as "Zoom Level 1".

Any hint?
Re: Change Zomm ComboBox width in my GEF editor [message #514700 is a reply to message #514697] Tue, 16 February 2010 11:49 Go to previous messageGo to next message
Vijay RajFriend
Messages: 608
Registered: July 2009
Senior Member
Use the other constructor...

String zoomlevels=new String[]{"Zoom Level 1"};
toolBarManager.add(new ZoomComboContributionItem(getPage(),zoomlevels))

even better use

ZoomComboContributionItem(IPartService partService, String initString)

and pass
"8888*" any no of 8 's according to the width wanted...


---------------------
why, mr. Anderson, why, why do you persist?
Because I Choose To.
Regards,
Vijay

[Updated on: Tue, 16 February 2010 11:53]

Report message to a moderator

Re: Change Zomm ComboBox width in my GEF editor [message #514748 is a reply to message #514700] Tue, 16 February 2010 14:32 Go to previous message
Ben Wecker is currently offline Ben WeckerFriend
Messages: 4
Registered: February 2010
Junior Member
Well, it works, thanks! But this is definitly not the way, one would think it works...
Previous Topic:Custom Zooming
Next Topic:Grab location on edit part
Goto Forum:
  


Current Time: Fri Mar 29 01:14:23 GMT 2024

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

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

Back to the top