Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 353091 - [M2x IDE Integration] org.eclipse.sphinx.xtendxpand.ui.groups.TemplateGroup#loadTemplate(IFile) method return null if template file is under a folder not a PackageJavaElement
Summary: [M2x IDE Integration] org.eclipse.sphinx.xtendxpand.ui.groups.TemplateGroup#l...
Status: CLOSED DUPLICATE of bug 341921
Alias: None
Product: Sphinx
Classification: Automotive
Component: Core (show other bugs)
Version: 0.7.0   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Idrissa Dieng CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-07-26 06:07 EDT by Idrissa Dieng CLA
Modified: 2011-07-26 16:57 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Idrissa Dieng CLA 2011-07-26 06:07:17 EDT
The org.eclipse.sphinx.xtendxpand.ui.groups.TemplateGroup#loadTemplate(IFile) method return null if template file is under a folder not a PackageJavaElement.

The root cause is:

 - The org.eclipse.sphinx.xtendxpand.ui.groups.TemplateGroup#loadTemplate(IFile) method use org.eclipse.xtend.shared.ui.core.IXtendXpandProject#findXtendXpandResource(IStorage) and the last one call org.eclipse.xtend.shared.ui.core.internal.JDTUtil#findXtendXpandResourceID(IJavaProject, IStorage).

- The org.eclipse.xtend.shared.ui.core.internal.JDTUtil#findXtendXpandResourceID(IJavaProject, IStorage) return null as ResourceID because folders are JavaElement
Comment 1 Idrissa Dieng CLA 2011-07-26 16:55:50 EDT

*** This bug has been marked as a duplicate of bug 341921 ***
Comment 2 Idrissa Dieng CLA 2011-07-26 16:56:36 EDT
proposed patch in #Bug 341921 resolve this problem.