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

Bug 319494

Summary: InstalledModuleProjectHandle.getName() returns the wrong value
Product: [Technology] Tigerstripe Reporter: Navid Mehregani <nmehrega>
Component: CoreAssignee: Project Inbox <tigerstripe.core-inbox>
Status: CLOSED WONTFIX QA Contact:
Severity: normal    
Priority: P3 CC: rcraddoc
Version: unspecified   
Target Milestone: 0.5M0   
Hardware: PC   
OS: Mac OS X - Carbon (unsup.)   
Whiteboard:

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