Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 343498 - [M2x IDE Integration] Add org.eclipse.sphinx.xpand.util.XtendXpandUtil utility class and use it
Summary: [M2x IDE Integration] Add org.eclipse.sphinx.xpand.util.XtendXpandUtil utilit...
Status: CLOSED FIXED
Alias: None
Product: Sphinx
Classification: Automotive
Component: Core (show other bugs)
Version: 0.7.0   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: 0.7.0   Edit
Assignee: Stephan Eberle CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-04-21 05:33 EDT by Idrissa Dieng CLA
Modified: 2021-07-14 02:15 EDT (History)
3 users (show)

See Also:


Attachments
Add org.eclipse.sphinx.xpand.util.XtendXpandUtil utility class and use it (25.10 KB, patch)
2011-04-21 10:08 EDT, Idrissa Dieng CLA
idydieng: iplog+
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Idrissa Dieng CLA 2011-04-21 05:33:39 EDT
Build Identifier: 20110218-0911

Add org.eclipse.sphinx.xpand.util.XtendXpandUtil utility class and use it.

- Move org.eclipse.sphinx.emf.mwe.resources.IWorkspaceResourceLoader#getQualifiedName() and org.eclipse.sphinx.emf.mwe.resources.IWorkspaceResourceLoader#getUnderlyingFile() from IWorkspaceResourceLoader/BasicWorkspaceResourceLoader to XtendXpandUtil;

- use XpandXtendUtil in org.eclipse.sphinx.xtendxpand.ui.groups.TemplateGroup#getDefinitionName() and remove redundant method org.eclipse.sphinx.xtendxpand.ui.groups.TemplateGroup#getQualifiedName(IFile, String);


- Use org.eclipse.xpand2.XpandUtil#withoutLastSegment(name) instead org.eclipse.sphinx.xtend.jobs.XtendJob#getExtensionFileBaseName(String);


- Use org.eclipse.xpand2.XpandUtil#getLastSegment(String) instead org.eclipse.sphinx.xtend.jobs.XtendJob#getFunctionName(String);

- Store all relevant metamodel contributor in org.eclipse.xtend.shared.ui.core.preferences.PreferenceConstants.METAMODELCONTRIBUTORS into org.eclipse.sphinx.xtendxpand.ui.jobs.ConvertToXtendXpandEnabledProjectJob.addMetamodelContributor(IProgressMonitor)

Reproducible: Always
Comment 1 Idrissa Dieng CLA 2011-04-21 10:08:18 EDT
Created attachment 193828 [details]
Add org.eclipse.sphinx.xpand.util.XtendXpandUtil utility class and use it
Comment 2 Stephan Eberle CLA 2011-04-22 09:13:25 EDT
Fixed by applying proposed patch. Renamed XtendXpandUtil.getFeatures() to XtendXpandUtil.getApplicableFeatures().
Comment 3 Balazs Grill CLA 2021-07-14 02:15:57 EDT
Mass-closing Resolved tickets