Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 343498

Summary: [M2x IDE Integration] Add org.eclipse.sphinx.xpand.util.XtendXpandUtil utility class and use it
Product: [Automotive] Sphinx Reporter: Idrissa Dieng <idydieng>
Component: CoreAssignee: Stephan Eberle <stephaneberle9>
Status: CLOSED FIXED QA Contact:
Severity: enhancement    
Priority: P3 CC: ali.akar82, idydieng, yannick7777
Version: 0.7.0   
Target Milestone: 0.7.0   
Hardware: All   
OS: All   
Whiteboard:
Attachments:
Description Flags
Add org.eclipse.sphinx.xpand.util.XtendXpandUtil utility class and use it idydieng: iplog+

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