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

Bug 360550

Summary: Issue with the "Name Attribute" of the FileClient Service API
Product: [ECD] Orion Reporter: Pradyut Sarma <pradyutksarma>
Component: ClientAssignee: Project Inbox <orion.client-inbox>
Status: RESOLVED WONTFIX QA Contact:
Severity: major    
Priority: P3    
Version: 0.3   
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard:

Description Pradyut Sarma CLA 2011-10-11 10:43:56 EDT
Hi,

I have contributed some content to the Orion Navigator. Refer to the Bug https://bugs.eclipse.org/bugs/show_bug.cgi?id=360482 which contains the details of the way I have contributed it.

The issue here is, the Client API requires the JSON response in the format as below,

{Children:[
	{
		Directory: false,
		Location: "/web/content/Modus",
		Name: "Modus.mtd"
	},
	{
		Directory: false,
		Location: "/web/content/Slang",
		Name: "Slang.mtd"
	},

	]
}

where, the Name field is the label of the object that appears in the Navigator. The question here is, Is it a good idea to make it compulsory for me to provide the extension of the file along with the Name field itself. For example, as shown above why can't I provide the Name as "Slang" and not "Slang.mtd". If I just provide Slang, it is not able to relate it to the editor concerned since it does not know the extension probably. The reason why I say this is, the file may not be a physical entity in the orion server but a logical entity whose content may be streamed via a response. The extension .mtd is just to link it to the editor. Otherwise the  .mtd extension does not hold any meaning and I wouldn't want my users to see it.

I am looking for a way to decouple the label that appears in the tree from the file extension. A similar discussion also happened here https://bugs.eclipse.org/bugs/show_bug.cgi?id=349802, where John proposes a solution to a separate problem which could be enhanced to take care of this as well.

Thanks and Regards,
Pradyut.
Comment 1 John Arthorne CLA 2015-05-05 14:53:09 EDT
Closing as part of a mass clean up of inactive bugs. Please reopen if this problem still occurs or is relevant to you. For more details see:

https://dev.eclipse.org/mhonarc/lists/orion-dev/msg03444.html