Skip to main content



      Home
Home » Eclipse Projects » Rich Client Platform (RCP) » View or Editor? - a newbie design question
View or Editor? - a newbie design question [message #459429] Fri, 01 December 2006 04:43 Go to next message
Eclipse UserFriend
Originally posted by: guefeld.spammerslammer.com

Hello to all

As a newbie to the eclipse plattform, it is still hard for me to understand
the underlying concepts of views and editors. Especially how to decide to
put somethin into a view or an editor.

Here's my case:

I want to create a window , which should display the result of database
queries. It will contain 2 sash separated panels. The upper one contains
labels and entry fields for filtering values. The lower one contains a table
viewer to display the query results.
The user should be able to keep several of such windows ant once to make
queries with different filter values.
In a next step the user should be able to load and save the filter values
from a file.

Now: Should such a window be created as an editor or as a view?

Thanx in advance for your kind suggestions.
G
Re: View or Editor? - a newbie design question [message #459433 is a reply to message #459429] Fri, 01 December 2006 06:35 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: tom.seidel.spiritlink.de

Günther Feldzahn schrieb:
> Hello to all
>
> As a newbie to the eclipse plattform, it is still hard for me to understand
> the underlying concepts of views and editors. Especially how to decide to
> put somethin into a view or an editor.
>
> Here's my case:
>
> I want to create a window , which should display the result of database
> queries. It will contain 2 sash separated panels. The upper one contains
> labels and entry fields for filtering values. The lower one contains a table
> viewer to display the query results.
> The user should be able to keep several of such windows ant once to make
> queries with different filter values.
> In a next step the user should be able to load and save the filter values
> from a file.
>
> Now: Should such a window be created as an editor or as a view?
>
> Thanx in advance for your kind suggestions.
> Günther
>
>

Hi Günther,

http://wiki.eclipse.org/index.php/FAQ_What_is_the_difference _between_a_view_and_an_editor%3F
http://www.richclient2.eu/2006_07_25/what-is-the-difference- between-a-view-or-an-editor/

--
Cheerz,
Tom
Re: View or Editor? - a newbie design question [message #459445 is a reply to message #459433] Fri, 01 December 2006 09:03 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: guefeld.spammerslammer.com

"Tom Seidel" <tom.seidel@spiritlink.de> schrieb im Newsbeitrag
news:ekp412$t6u$1@utils.eclipse.org...
> G
Re: View or Editor? - a newbie design question [message #459449 is a reply to message #459445] Fri, 01 December 2006 10:13 Go to previous messageGo to next message
Eclipse UserFriend
You can create fields, etc. for user entry in either editors or views.
Changes in views are immediately saved, while in the editor you have the
opportunity to require explicit save.

A factor that was important to me concerned changing perspectives - editors
remain open but views can be different.

Finally, you can have multiple editors open, on different documents or
queries, at same time, but you cannot have multiple copies of the same view
open. In your application, you intend to be able to look at different
queries, and the results are in the lower sash. If this is a view, you will
not be able to keep multiple copies on the screen (I think).

Good luck. I am semi-newbie so perhaps someone else will correct my errors.

- Mike Dean


On 12/1/06 7:03 AM, in article ekpcj5$fso$1@utils.eclipse.org, "Günther
Feldzahn" <guefeld@spammerslammer.com> wrote:

>
> "Tom Seidel" <tom.seidel@spiritlink.de> schrieb im Newsbeitrag
> news:ekp412$t6u$1@utils.eclipse.org...
>> Günther Feldzahn schrieb:
>>> Hello to all
>>>
>>> As a newbie to the eclipse plattform, it is still hard for me to
>>> understand the underlying concepts of views and editors. Especially how
>>> to decide to put somethin into a view or an editor.
>>>
>>> Here's my case:
>>>
>>> I want to create a window , which should display the result of database
>>> queries. It will contain 2 sash separated panels. The upper one contains
>>> labels and entry fields for filtering values. The lower one contains a
>>> table viewer to display the query results.
>>> The user should be able to keep several of such windows ant once to make
>>> queries with different filter values.
>>> In a next step the user should be able to load and save the filter values
>>> from a file.
>>>
>>> Now: Should such a window be created as an editor or as a view?
>>>
>>> Thanx in advance for your kind suggestions.
>>> Günther
>>
>> Hi Günther,
>>
>> http://wiki.eclipse.org/index.php/FAQ_What_is_the_difference _between_a_view_a
>> nd_an_editor%3F
>> http://www.richclient2.eu/2006_07_25/what-is-the-difference- between-a-view-or
>> -an-editor/
>>
>> --
>> Cheerz,
>> Tom
>
> Tom, Thank you very much for the provided links
>
> After carefully studying the articles ( #1 does not need much care - the
> only statement is "There is currently no text in this page" *LOL*) it seems
> to me that windows for the purpose of analyzation or reporting tasks are
> also more a kind of an editor in the point of view you have stated in your
> very good article.
> Thus let me sum up the conclusions of your article, how to decide if a
> window should incarnate as a view or as an editor:
>
> If it's a kind of top level navigator through documents or types or work
> tasks, it's a view
> If it's a kind of helper window, global output window, tool container, it's
> a view
>
> If it's a kind of document for plain editing, it's an editor
> If it's any kind reporting presentation, it's an editor (htough there is no
> saving or only saving/loading of a filterset, query or whatsoever.)
> If a document is representated as a form, it is still an editor (?)
>
> Have I got it?
>
> Thanks for your reply
>
> Günther
>
>
>
Re: View or Editor? - a newbie design question [message #459455 is a reply to message #459449] Fri, 01 December 2006 11:44 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: tom.seidel.spiritlink.de

J Michael Dean schrieb:
> You can create fields, etc. for user entry in either editors or views.
> Changes in views are immediately saved, while in the editor you have the
> opportunity to require explicit save.
>
> A factor that was important to me concerned changing perspectives - editors
> remain open but views can be different.
>
> Finally, you can have multiple editors open, on different documents or
> queries, at same time, but you cannot have multiple copies of the same view
> open. In your application, you intend to be able to look at different
> queries, and the results are in the lower sash. If this is a view, you will
> not be able to keep multiple copies on the screen (I think).
>
> Good luck. I am semi-newbie so perhaps someone else will correct my errors.
>
> - Mike Dean
>
>
> On 12/1/06 7:03 AM, in article ekpcj5$fso$1@utils.eclipse.org, "Günther
> Feldzahn" <guefeld@spammerslammer.com> wrote:
>
>> "Tom Seidel" <tom.seidel@spiritlink.de> schrieb im Newsbeitrag
>> news:ekp412$t6u$1@utils.eclipse.org...
>>> Günther Feldzahn schrieb:
>>>> Hello to all
>>>>
>>>> As a newbie to the eclipse plattform, it is still hard for me to
>>>> understand the underlying concepts of views and editors. Especially how
>>>> to decide to put somethin into a view or an editor.
>>>>
>>>> Here's my case:
>>>>
>>>> I want to create a window , which should display the result of database
>>>> queries. It will contain 2 sash separated panels. The upper one contains
>>>> labels and entry fields for filtering values. The lower one contains a
>>>> table viewer to display the query results.
>>>> The user should be able to keep several of such windows ant once to make
>>>> queries with different filter values.
>>>> In a next step the user should be able to load and save the filter values
>>>> from a file.
>>>>
>>>> Now: Should such a window be created as an editor or as a view?
>>>>
>>>> Thanx in advance for your kind suggestions.
>>>> Günther
>>> Hi Günther,
>>>
>>> http://wiki.eclipse.org/index.php/FAQ_What_is_the_difference _between_a_view_a
>>> nd_an_editor%3F
>>> http://www.richclient2.eu/2006_07_25/what-is-the-difference- between-a-view-or
>>> -an-editor/
>>>
>>> --
>>> Cheerz,
>>> Tom
>> Tom, Thank you very much for the provided links
>>
>> After carefully studying the articles ( #1 does not need much care - the
>> only statement is "There is currently no text in this page" *LOL*) it seems
>> to me that windows for the purpose of analyzation or reporting tasks are
>> also more a kind of an editor in the point of view you have stated in your
>> very good article.
>> Thus let me sum up the conclusions of your article, how to decide if a
>> window should incarnate as a view or as an editor:
>>
>> If it's a kind of top level navigator through documents or types or work
>> tasks, it's a view
>> If it's a kind of helper window, global output window, tool container, it's
>> a view
>>
>> If it's a kind of document for plain editing, it's an editor
>> If it's any kind reporting presentation, it's an editor (htough there is no
>> saving or only saving/loading of a filterset, query or whatsoever.)
>> If a document is representated as a form, it is still an editor (?)
>>
>> Have I got it?
>>
>> Thanks for your reply
>>
>> Günther
>>
>>
>>
>

@Günther.
Yes, you're right. I would prefer in your special case an editor for
every search query. I would provide a text-feld for your query and under
the sash the result of your query. For your navigation I'd prefer a
view, where all saved or aviable search-queries are presented, by
double-clicking on an item, the editor opens and shows the query with
results.

@Mike
>changing perspectives
The problem is, that perspectives can be used for completely different
issues. E.g. in my RCPs perspectives bundle a seperate bundle of
functions, so all editors will be closed on perspectiveChanged.

--
Cheerz,
Tom
Re: View or Editor? - a newbie design question [message #459456 is a reply to message #459455] Fri, 01 December 2006 13:49 Go to previous message
Eclipse UserFriend
Originally posted by: guefeld.spammerslammer.com

"Tom Seidel" <tom.seidel@spiritlink.de> schrieb im Newsbeitrag
news:ekpm5m$3dj$1@utils.eclipse.org...
>J Michael Dean schrieb:
>> You can create fields, etc. for user entry in either editors or views.
>> Changes in views are immediately saved, while in the editor you have the
>> opportunity to require explicit save.
>>
>> A factor that was important to me concerned changing perspectives -
>> editors
>> remain open but views can be different.
>>
>> Finally, you can have multiple editors open, on different documents or
>> queries, at same time, but you cannot have multiple copies of the same
>> view
>> open. In your application, you intend to be able to look at different
>> queries, and the results are in the lower sash. If this is a view, you
>> will
>> not be able to keep multiple copies on the screen (I think).
>>
>> Good luck. I am semi-newbie so perhaps someone else will correct my
>> errors.
>>
>> - Mike Dean
>>
>>
>> On 12/1/06 7:03 AM, in article ekpcj5$fso$1@utils.eclipse.org, "G
Previous Topic:Headless build problem
Next Topic:RCP and Sleak
Goto Forum:
  


Current Time: Sat Mar 15 11:11:02 EDT 2025

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

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

Back to the top