Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [ice-dev] Project Generation Templating

Andrew,

My only thought is that we somehow need to register a locale. You should post this question on the Eclipse Forums or to a more specific list.

Jay

On Dec 8, 2015 8:14 PM, "Andrew Bennett" <bennett.andr@xxxxxxxxx> wrote:
I've updated a lot of the templating work and have hit a roadblock that I've not been able to move for a bit.  In org.eclipse.ice.projectgeneration.templates.ICEItemTemplate.getPluginResourceBundle()
 I am getting exceptions when trying to generate files from templates.  The error I get is: "Resource bundle not found for locale: null".  The first couple lines of the stack trace are pretty helpful:

java.util.MissingResourceException: Resource bundle not found for locale: null
    at org.eclipse.core.internal.runtime.Activator.getLocalization(Activator.java:245)
    at org.eclipse.core.internal.runtime.ResourceTranslator.getResourceBundle(ResourceTranslator.java:70)
    at org.eclipse.core.internal.runtime.ResourceTranslator.getResourceBundle(ResourceTranslator.java:62)
    at org.eclipse.core.internal.runtime.InternalPlatform.getResourceBundle(InternalPlatform.java:487)
    at org.eclipse.core.runtime.Platform.getResourceBundle(Platform.java:1040)
    at org.eclipse.ice.projectgeneration.templates.ICEItemTemplate.getPluginResourceBundle(ICEItemTemplate.java:160)
    at org.eclipse.pde.ui.templates.AbstractTemplateSection.getPluginResourceString(AbstractTemplateSection.java:161)

Does anyone have any advice for setting the locale/getting a resource bundle?  I have tried externalizing all strings, but got the same error.

Andrew

On Thu, Dec 3, 2015 at 4:53 PM, Billings, Jay Jay <billingsjj@xxxxxxxx> wrote:

Andrew,


Nice! I'll check it out.


Torkild said look in the org.dawnsci.dde bundles here:


https://github.com/DawnScience/dawn-ui


I imagine that it will take some combination of Googling and comparison with Eclipse documentation to figure out.


Jay


Jay Jay Billings
Oak Ridge National Laboratory
Twitter Handle: @jayjaybillings

From: ice-dev-bounces@xxxxxxxxxxx <ice-dev-bounces@xxxxxxxxxxx> on behalf of Andrew Bennett <bennett.andr@xxxxxxxxx>
Sent: Thursday, December 03, 2015 5:43 PM
To: ice developer discussions
Subject: [ice-dev] Project Generation Templating
 
I have a rudimentary setup created for creating new Item projects in the ProjectSupport branch.  If anyone would like to play with it they can create a run configuration for org.eclipse.ice.projectgeneration and launch a new Eclipse applicaiton with it.  To see what's currently hooked up you can go `New... -> Other -> New ICE Item Project` and it will create a plugin project with the ICE item nature.

Jay, you had mentioned some resources for generating our item classes, could you point me to those?  I'd like to get the model builder and job launcher wizards customized next, but would like to see what the templating can do before I get too deep.

Andrew

_______________________________________________
ice-dev mailing list
ice-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/ice-dev


_______________________________________________
ice-dev mailing list
ice-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/ice-dev

Back to the top