This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Summary: | influence from the project type where to create Bundle.properties file | ||
---|---|---|---|
Product: | guibuilder | Reporter: | Milos Kleint <mkleint> |
Component: | Code | Assignee: | Milos Kleint <mkleint> |
Status: | RESOLVED FIXED | ||
Severity: | blocker | CC: | tpavek |
Priority: | P3 | Keywords: | API, API_REVIEW_FAST |
Version: | 6.x | ||
Hardware: | All | ||
OS: | All | ||
Issue Type: | TASK | Exception Reporter: | |
Bug Depends on: | |||
Bug Blocks: | 89008 | ||
Attachments: |
api part of the change
implementation part of the change |
Description
Milos Kleint
2006-11-13 13:34:32 UTC
I think the API should be somewhere else and form would just use it. E.g. if org.netbeans.api.project.Sources defined a standard source group type for resources, we might try to always look for it and create the Bundle file in there if it exists; otherwise in standard sources. Just an idea... yup, that was exactly my line of thinking. I filed against form as it's the only place I know of currently that would use such api.. Created attachment 37817 [details]
api part of the change
Created attachment 37818 [details]
implementation part of the change
tpavek: can you please review my patch before I submit it to apireviews? The API part looks good to me. The impl covers the automatic internationalization. It does not cover migration (if a project is upgraded to start using separate resources root), but that's probably not a real use case. We may need to use the API on more places - e.g. in the Swing Application Framework support which creates properties files for resources. Should file a new issue once the API is integrated. please review this minor change to java projects apis. thanks for review, I will integrate tomorrow. integrated IDE: [2/8/07 9:31 AM] Committing Files started Checking in i18n/form/src/org/netbeans/modules/i18n/form/I18nServiceImpl.java; /cvs/i18n/form/src/org/netbeans/modules/i18n/form/I18nServiceImpl.java,v <-- I18nServiceImpl.java new revision: 1.8; previous revision: 1.7 done Checking in java/project/apichanges.xml; /cvs/java/project/apichanges.xml,v <-- apichanges.xml new revision: 1.16; previous revision: 1.15 done Checking in java/project/manifest.mf; /cvs/java/project/manifest.mf,v <-- manifest.mf new revision: 1.21; previous revision: 1.20 done Checking in i18n/form/nbproject/project.xml; /cvs/i18n/form/nbproject/project.xml,v <-- project.xml new revision: 1.16; previous revision: 1.15 done Checking in java/project/src/org/netbeans/api/java/project/JavaProjectConstants.java; /cvs/java/project/src/org/netbeans/api/java/project/JavaProjectConstants.java,v <-- JavaProjectConstants.java new revision: 1.8; previous revision: 1.7 done IDE: [2/8/07 9:31 AM] Committing Files finished |