Opening XML Schema file in my view [message #203218] |
Sat, 27 October 2007 19:14 |
Eclipse User |
|
|
|
Originally posted by: sursubra.cisco.com
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.XMLMultiPageEditor Part "
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
|
|
|
Re: Opening XML Schema file in my view [message #203227 is a reply to message #203218] |
Sat, 27 October 2007 19:34 |
Eclipse User |
|
|
|
Originally posted by: valentinbaciu.hotmail.com
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@cisco.com> wrote in message
news:fg02m0$96v$1@build.eclipse.org...
> 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.XMLMultiPageEditor Part "
>
> 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
>
>
|
|
|
Re: Opening XML Schema file in my view [message #203252 is a reply to message #203227] |
Sat, 27 October 2007 21:04 |
Eclipse User |
|
|
|
Originally posted by: sursubra.cisco.com
Thanks Valentin, Is there a work around for this.
Suresh Subramanian
"Valentin" <valentinbaciu@hotmail.com> wrote in message
news:fg03su$g14$1@build.eclipse.org...
> 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@cisco.com> wrote in message
> news:fg02m0$96v$1@build.eclipse.org...
>> 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.XMLMultiPageEditor Part "
>>
>> 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
>>
>>
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.03103 seconds