Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Best way to implement lazy multipage editor?
Best way to implement lazy multipage editor? [message #331718] Thu, 18 September 2008 08:45 Go to next message
Thomas Ritter is currently offline Thomas RitterFriend
Messages: 1
Registered: July 2009
Junior Member
Hello,

we are currently working on a multipage editor which allows editing of
five different files. However the files have to be loaded from a backend
server. Therefore we only want to access the backend if the user accesses
the file by clicking a tab in the multipage editor.

How can we implement the multipage editor so that files are only loaded
when the user actually wants to view and edit them?

We discussed various possibilities:

- Render an empty document first and switch to the real document once the
tab gets activated (overwrite the pageChange method in the class
MultiPageEditorPart).
- Render a dummy control first and switch to the editor once the tab gets
activated.

All the solutions we can come up with feel more like hacks then a solid
solution. Does anyone know a clean way of making the multipage editor lazy?

cheers
Thomas
Re: Best way to implement lazy multipage editor? [message #331731 is a reply to message #331718] Thu, 18 September 2008 14:36 Go to previous message
Paul Webster is currently offline Paul WebsterFriend
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

You could either provide the "Loading..." page and have it simply update
to the correct information when available, or have a "Loading..." page
that is removed and replaced with the editor page (if it is hard to have
a read-only bogus document in your editor)

PW


--
Paul Webster
http://wiki.eclipse.org/Platform_Command_Framework
http://wiki.eclipse.org/Command_Core_Expressions
http://wiki.eclipse.org/Menu_Contributions
http://wiki.eclipse.org/Menus_Extension_Mapping
http://help.eclipse.org/ganymede/index.jsp?topic=/org.eclips e.platform.doc.isv/guide/workbench.htm


Previous Topic:Re: Databinding Multiple Items in an Table
Next Topic:AbstractContributionFactory has wrong JavaDoc and Wiki page
Goto Forum:
  


Current Time: Wed Jul 17 16:14:35 GMT 2024

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

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

Back to the top