Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » WindowBuilder » Using alternate resource manager for images, fonts, and colors(Resource management)
Using alternate resource manager for images, fonts, and colors [message #675503] Tue, 31 May 2011 17:28 Go to next message
Jim Mayer is currently offline Jim Mayer
Messages: 18
Registered: July 2009
Junior Member
Is there a way to configure WindowBuilder to use a resource manager other than SWTResourceManager? We'd like to use a customized version of JFace's LocalResourceManager (org.eclipse.jface.resource.LocalResourceManager, org.eclipse.jface.resource.DeviceResourceManager) for image, font, and color resource allocation.

Our application runs in a constrained environment and uses a large number of images, so leaving them in memory (and letting the VM subsystem handle things) is not a good option for us.

We have looked at the configurable options in WindowBuilder (0.9.0.r36x201102111130), but the only options seem to be to use the generated SWTResourceManager or to use no resource manager at all.

We've considered modifying the generated SWTResourceManager, but the methods are called with the class of the composite, not the instance, so we can't easily delegate to a per-instance resource manager.

Any ideas?

-- Jim
Re: Using alternate resource manager for images, fonts, and colors [message #675506 is a reply to message #675503] Tue, 31 May 2011 17:39 Go to previous messageGo to next message
Konstantin Scheglov is currently offline Konstantin Scheglov
Messages: 554
Registered: July 2009
Senior Member
No, right now there are no support for using custom resource managers.
You can try to contribute this feature.


Konstantin Scheglov,
Google, Inc.
Re: Using alternate resource manager for images, fonts, and colors [message #675572 is a reply to message #675506] Tue, 31 May 2011 21:37 Go to previous messageGo to next message
Jim Mayer is currently offline Jim Mayer
Messages: 18
Registered: July 2009
Junior Member
I'm game to at least look at contributing such a feature. I see where the SVN respository is located, and I've joined wb-dev and wb-rcp-dev.

What's involved in building the system? Is there a "how to" page anywhere?

I understand from a recent note by Mark Russell (http://www.eclipse.org/forums/index.php/t/209582/) that you currently use a custom build system, but are looking at moving to a more standard one. Is there anything special that I need to know?

Thanks.

-- Jim
Re: Using alternate resource manager for images, fonts, and colors [message #675606 is a reply to message #675572] Wed, 01 June 2011 01:04 Go to previous message
Eric Clayberg is currently online Eric Clayberg
Messages: 860
Registered: July 2009
Location: Boston, MA
Senior Member
Currently. the builds are being done in-house at Google, but one of our major priorities for the Juno cycle is to move the build completely onto Eclipse infrastructure. We are hoping that will happen fairly soon.

In the mean time, the best approach would be to just load the code up and run it in an Eclipse runtime workbench. That would allow you to make changes and test them without needing to do a full build (which you can't do yet anyway). Once you have a patch that you like, you can then submit it to Bugzilla (Tools > WindowBuilder), and we (the committer team) will integrate it into the main build. Contribute some high quality enhancements and/or bug fixes and we would be happy to have you join the committer team.

We aren't doing much in the DB space (aside from bug fixing), so it is a green field for anyone who wants to jump in and make improvements.

Feel free to post WB dev related questions eiher here or on the wb-dev mailing list.
Previous Topic:Binding to custom SWT widget properties
Next Topic:Cannot seem to use WindowBuilder after installation
Goto Forum:
  


Current Time: Sat Sep 20 02:05:01 GMT 2014

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

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