Community
Participate
Working Groups
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.
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