Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 360550 - Issue with the "Name Attribute" of the FileClient Service API
Summary: Issue with the "Name Attribute" of the FileClient Service API
Status: RESOLVED WONTFIX
Alias: None
Product: Orion
Classification: ECD
Component: Client (show other bugs)
Version: 0.3   Edit
Hardware: PC Windows 7
: P3 major (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-10-11 10:43 EDT by Pradyut Sarma CLA
Modified: 2015-05-05 14:53 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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