Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 319494 - InstalledModuleProjectHandle.getName() returns the wrong value
Summary: InstalledModuleProjectHandle.getName() returns the wrong value
Status: CLOSED WONTFIX
Alias: None
Product: Tigerstripe
Classification: Technology
Component: Core (show other bugs)
Version: unspecified   Edit
Hardware: PC Mac OS X - Carbon (unsup.)
: P3 normal (vote)
Target Milestone: 0.5M0   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-07-11 19:56 EDT by Navid Mehregani CLA
Modified: 2010-07-12 05:40 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 Navid Mehregani CLA 2010-07-11 19:56:43 EDT
Build Identifier: 

Currently there is no way to get the name of an installed module without using deprecated API.

ProjectDetails.getName() has been deprecated with a note indicating that IAbstractTigerstripeProject.getName() should be used instead.  This is how I invoke this API:

ITigerstripeModuleProject installedModule = InstalledModule.makeModuleProject();
String projectName = installedModule.getName();   

However, installedModule.getName() returns the model ID as opposed to the project name.  This is because InstalledModuleProjectHandle.getName() returns the model ID.  If I use the deprecated API 
 
String projectName = ProjectDetail.getName() it correctly returns the project name and not the model ID.

Reproducible: Always

Steps to Reproduce:
N/A
Comment 1 Richard Craddock CLA 2010-07-12 05:40:26 EDT
Installed modules are always referenced by ModelId.

(We have conflicts with "name" and "label" in teh pas - especally when refacoring is used).

This is why the getName() method is deprecated. I will update the patch to use modelID.


RC