[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.webtools] Re: Opening XML Schema file in my view

Thanks Valentin, Is there a work around for this.

Suresh Subramanian
"Valentin" <valentinbaciu@xxxxxxxxxxx> wrote in message 
news:fg03su$g14$1@xxxxxxxxxxxxxxxxxxxx
> Suresh, perhaps you're running into this 
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=194935. At least the 
> symptoms seem similar: the file opens in the XML editor instead of the XSD 
> editor.
>
> Valentin
>
> "Suresh Subramanian" <sursubra@xxxxxxxxx> wrote in message 
> news:fg02m0$96v$1@xxxxxxxxxxxxxxxxxxxx
>> Hi,
>>
>> I am Trying to open schema file with the extension .xsd in my View i call 
>> following code in the view
>>
>> String path = "C:" + File.separator + "mySchema.xsd";
>>
>> Path location= new Path(path);
>>
>> IFileStore fileStore = 
>> EFS.getLocalFileSystem().getStore((IPath)location);
>>
>> IDE.openEditorOnFileStore(page, fileStore);
>>
>> I expect this file to be open in the XML Schema editor But it open only 
>> the XML Editor with ID 
>> "org.eclipse.wst.xml.ui.internal.tabletree.XMLMultiPageEditorPart"
>>
>> But the same file i added to my eclipse Project Explorer it opens with 
>> the correct Editor.  I am not sure what i am doing wrong  or what should 
>> i do to get the correct editor.
>>
>>
>>
>> Thanks,
>>
>> Suresh Subramanian
>>
>>
>
>