Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Web Tools Project (WTP) » SSE editor content
SSE editor content [message #226002] Tue, 06 January 2009 17:07 Go to next message
Siarhei Navatski is currently offline Siarhei NavatskiFriend
Messages: 14
Registered: July 2009
Junior Member
Hi All.
Is it possible that the SSE editor displays the content, which is
different from his document?

example:
the file contains that text:
<tag></tag>
SSE editor displays:
<tag>
bla-bla-bla
</tag>
and when I open this file in the other editor I see:
<tag></tag>
Re: SSE editor content [message #226022 is a reply to message #226002] Tue, 06 January 2009 17:52 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: dcarver.starstandard.org

A sample file might help and what is the other editor?

You haven't given us enough information in order to help diagnose what
is happening.

Dave

Navatski Siarhei wrote:
> Hi All.
> Is it possible that the SSE editor displays the content, which is
> different from his document?
>
> example:
> the file contains that text:
> <tag></tag>
> SSE editor displays:
> <tag>
> bla-bla-bla
> </tag>
> and when I open this file in the other editor I see:
> <tag></tag>
Re: SSE editor content [message #226090 is a reply to message #226002] Tue, 06 January 2009 23:42 Go to previous messageGo to next message
Nitin Dahyabhai is currently offline Nitin DahyabhaiFriend
Messages: 2342
Registered: July 2009
Senior Member
Navatski Siarhei wrote:
> Hi All.
> Is it possible that the SSE editor displays the content, which is
> different from his document?
>
> example:
> the file contains that text:
> <tag></tag>
> SSE editor displays:
> <tag>
> bla-bla-bla
> </tag>
> and when I open this file in the other editor I see:
> <tag></tag>

Not unless you have code folding enabled in that other editor. You
should see the full text if you open the file with the Text Editor
while it's open in the SSE editor.

--
---
Nitin Dahyabhai
Eclipse WTP Source Editing
IBM Rational


---
Nitin Dahyabhai
Eclipse WTP, IBM
Re: SSE editor content [message #226196 is a reply to message #226022] Thu, 08 January 2009 09:16 Go to previous messageGo to next message
Siarhei Navatski is currently offline Siarhei NavatskiFriend
Messages: 14
Registered: July 2009
Junior Member
The other editor is Text Editor for example.

It is no problem, it is feature which I want to realize. For example,
depending on the name tag, I want to show a some comment in my editor
after the tag. But this comment should not be kept in the file
(document) and not be display in other editor.

David Carver пишет:
> A sample file might help and what is the other editor?
>
> You haven't given us enough information in order to help diagnose what
> is happening.
>
> Dave
>
> Navatski Siarhei wrote:
>> Hi All.
>> Is it possible that the SSE editor displays the content, which is
>> different from his document?
>>
>> example:
>> the file contains that text:
>> <tag></tag>
>> SSE editor displays:
>> <tag>
>> bla-bla-bla
>> </tag>
>> and when I open this file in the other editor I see:
>> <tag></tag>
Re: SSE editor content [message #226215 is a reply to message #226196] Thu, 08 January 2009 15:33 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: dcarver.starstandard.org

As Nitin said, it sounds like code folding. Which you just need to turn
on for the SSE Editor, by default all the tags will be open, even with
code folding enabled. This is under
Preferences->General->Editor->Structured Text Editor

Dave

Navatski Siarhei wrote:
> The other editor is Text Editor for example.
>
> It is no problem, it is feature which I want to realize. For example,
> depending on the name tag, I want to show a some comment in my editor
> after the tag. But this comment should not be kept in the file
> (document) and not be display in other editor.
>
> David Carver пишет:
>> A sample file might help and what is the other editor?
>>
>> You haven't given us enough information in order to help diagnose what
>> is happening.
>>
>> Dave
>>
>> Navatski Siarhei wrote:
>>> Hi All.
>>> Is it possible that the SSE editor displays the content, which is
>>> different from his document?
>>>
>>> example:
>>> the file contains that text:
>>> <tag></tag>
>>> SSE editor displays:
>>> <tag>
>>> bla-bla-bla
>>> </tag>
>>> and when I open this file in the other editor I see:
>>> <tag></tag>
Re: SSE editor content [message #226257 is a reply to message #226196] Thu, 08 January 2009 21:30 Go to previous messageGo to next message
Nick Sandonato is currently offline Nick SandonatoFriend
Messages: 126
Registered: July 2009
Senior Member
If I'm understanding this correctly, I think you want the editor to
display text that is not in the Document or in the file backing the
Document. Instead, some text would be inferred based on the tag name,
and show in the XML editor as if it were a text node of the element.

Is this right?


Navatski Siarhei wrote:
> The other editor is Text Editor for example.
>
> It is no problem, it is feature which I want to realize. For example,
> depending on the name tag, I want to show a some comment in my editor
> after the tag. But this comment should not be kept in the file
> (document) and not be display in other editor.
>
> David Carver пишет:
>> A sample file might help and what is the other editor?
>>
>> You haven't given us enough information in order to help diagnose what
>> is happening.
>>
>> Dave
>>
>> Navatski Siarhei wrote:
>>> Hi All.
>>> Is it possible that the SSE editor displays the content, which is
>>> different from his document?
>>>
>>> example:
>>> the file contains that text:
>>> <tag></tag>
>>> SSE editor displays:
>>> <tag>
>>> bla-bla-bla
>>> </tag>
>>> and when I open this file in the other editor I see:
>>> <tag></tag>
Re: SSE editor content [message #226290 is a reply to message #226257] Fri, 09 January 2009 08:47 Go to previous message
Siarhei Navatski is currently offline Siarhei NavatskiFriend
Messages: 14
Registered: July 2009
Junior Member
Yes, you understand me correctly.

Nick Sandonato пишет:
> If I'm understanding this correctly, I think you want the editor to
> display text that is not in the Document or in the file backing the
> Document. Instead, some text would be inferred based on the tag name,
> and show in the XML editor as if it were a text node of the element.
>
> Is this right?
>
>
> Navatski Siarhei wrote:
>> The other editor is Text Editor for example.
>>
>> It is no problem, it is feature which I want to realize. For example,
>> depending on the name tag, I want to show a some comment in my editor
>> after the tag. But this comment should not be kept in the file
>> (document) and not be display in other editor.
>>
>> David Carver пишет:
>>> A sample file might help and what is the other editor?
>>>
>>> You haven't given us enough information in order to help diagnose
>>> what is happening.
>>>
>>> Dave
>>>
>>> Navatski Siarhei wrote:
>>>> Hi All.
>>>> Is it possible that the SSE editor displays the content, which is
>>>> different from his document?
>>>>
>>>> example:
>>>> the file contains that text:
>>>> <tag></tag>
>>>> SSE editor displays:
>>>> <tag>
>>>> bla-bla-bla
>>>> </tag>
>>>> and when I open this file in the other editor I see:
>>>> <tag></tag>
Previous Topic:Adding an item to Design View's context menu via extension point?
Next Topic:How to show my own object tree structure in package explorer
Goto Forum:
  


Current Time: Sat Dec 20 21:35:55 GMT 2014

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

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