Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Web Tools Project (WTP) » Opening XML Schema file in my view
Opening XML Schema file in my view [message #203218] Sat, 27 October 2007 19:14 Go to next message
Eclipse UserFriend
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 Go to previous messageGo to next message
Eclipse UserFriend
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 Go to previous message
Eclipse UserFriend
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
>>
>>
>
>
Previous Topic:J2EE module dependency on classes
Next Topic:Facet install delegate child facet mechanism
Goto Forum:
  


Current Time: Wed Dec 17 19:54:21 GMT 2014

Powered by FUDForum. Page generated in 0.02565 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software