Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Sirius » Constant Pool Limit Reached(Siruis ecore and generate all step from Gen model)
Constant Pool Limit Reached [message #1815816] Fri, 11 October 2019 09:58 Go to next message
rajni choudhary is currently offline rajni choudharyFriend
Messages: 6
Registered: September 2019
Junior Member
We have too many UI elements In our sirius project.
When we do "generate all" in gen model after all the codes are generated we get a compile time error in our RootPackage interface it says "Too many constants, the constant pool for RootPackage would exceed 65536 entries".

How do we overcome the above problem while preserving what we have done before (no time for rework) and any steps we may need to follow from now.

Solutions attempted so far :

  1. All elements are currently in the root package. We need to divide it efficiently under other sub packages.
    Problem for the above The sub package is again generated and used as a private static variable in the RootPackage. Its been ineffective so far. We still have the same error
  2. I made two package and inside other package we link our new patern as child and other as super.
    Some how we were able to generate genmodel without any error saying too many constant.
    Problem We made UI but when we try to generate the test cases it throws the exception saying class cast exception no changes in .design module

Re: Constant Pool Limit Reached [message #1815830 is a reply to message #1815816] Fri, 11 October 2019 15:45 Go to previous message
Ed Willink is currently offline Ed WillinkFriend
Messages: 7655
Registered: July 2009
Senior Member
Hi

Too many UI elements probably also means really slow and memory hungry so the problem may not be worth solving in the way you have posed it.

It may be appropriate to use some form of lazy proxy / delegation so that only the small portion of UI elements that your user actually wants to see incur the heavier costs. Other not 'visible' elements use a lightweight / greyed-out 'proxy'.

Regards

Ed Willink
Previous Topic:Tutorial about animation
Next Topic:Question about pinned element layout in Sirius ELK Integeration
Goto Forum:
  


Current Time: Wed Apr 24 14:34:24 GMT 2024

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

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

Back to the top