Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » SWT.VIRTUAL
SWT.VIRTUAL [message #840718] Tue, 10 April 2012 12:38 Go to next message
Jesper Eskilson is currently offline Jesper EskilsonFriend
Messages: 134
Registered: July 2009
Senior Member
Hi,

Is it possible to display a EMF model in a SWT TableViewer with the
SWT.VIRTUAL flag set? I tried a few quick google searches but didn't
come up with anything useful.

--
/Jesper
Re: SWT.VIRTUAL [message #840730 is a reply to message #840718] Tue, 10 April 2012 12:53 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33142
Registered: July 2009
Senior Member
Jesper,

We've never looked into how to support that (via some type of lazy
content provider)...


On 10/04/2012 2:38 PM, Jesper Eskilson wrote:
>
> Hi,
>
> Is it possible to display a EMF model in a SWT TableViewer with the
> SWT.VIRTUAL flag set? I tried a few quick google searches but didn't
> come up with anything useful.
>
> --
> /Jesper


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: SWT.VIRTUAL [message #840807 is a reply to message #840718] Tue, 10 April 2012 14:29 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
Registered: July 2009
Senior Member
Well because EMF-Lists (beside we are talking about CDO) are fully
populated all the time and you simply want the UI to get up faster you
can simply add the SWT.VIRTUAL flag and the TableItem creation is
deferred until the item is scrolled into view.

See http://wiki.eclipse.org/JFaceSnippets#Snippet029VirtualTableViewer
for an example.

But be aware that there are some known bugs in Virtual-JFace-Controls
which are not fixed and unless someone steps up and fixes them they are
very likely unfixed even after 4.2, 4.3, ... .

Tom

Am 10.04.12 14:38, schrieb Jesper Eskilson:
>
> Hi,
>
> Is it possible to display a EMF model in a SWT TableViewer with the
> SWT.VIRTUAL flag set? I tried a few quick google searches but didn't
> come up with anything useful.
>
> --
> /Jesper
Re: SWT.VIRTUAL [message #841505 is a reply to message #840807] Wed, 11 April 2012 11:58 Go to previous message
Jesper Eskilson is currently offline Jesper EskilsonFriend
Messages: 134
Registered: July 2009
Senior Member
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
On 04/10/2012 04:29 PM, Tom Schindl wrote:
<blockquote cite="mid:jm1g54$sp3$1@xxxxxxxxe.org" type="cite">
<pre wrap="">Well because EMF-Lists (beside we are talking about CDO) are fully
populated all the time and you simply want the UI to get up faster you
can simply add the SWT.VIRTUAL flag and the TableItem creation is
deferred until the item is scrolled into view.
</pre>
</blockquote>
Ok, thanks. <br>
<br>
<div class="moz-signature">-- <br>
<p>
<span style="color: #a6a6a6; font-family:
arial,helvetica,sans-serif; font-size: 10pt;"><strong>Jesper
Eskilson</strong></span>
<span style="color: #fdb913; font-family:
arial,helvetica,sans-serif; font-size: 10pt;"><em>Development
Engineer</em></span><br>
<span style="color: #808080; font-family:
arial,helvetica,sans-serif; font-size: 10pt;">IAR Systems AB<br>
Box 23051, Strandbodgatan 1<br>
SE-750 23 Uppsala, SWEDEN<br>
Phone: +46 18 16 78 00<br>
E-mail: <a href="mailto:jesper.eskilson@xxxxxxxx">
<span style="color: #808080; font-family:
arial,helvetica,sans-serif; font-size: 10pt;">jesper.eskilson@xxxxxxxx</span></a>
Website: <a href="http://www.iar.com">
<span style="color: #808080; font-family:
arial,helvetica,sans-serif; font-size: 10pt;">www.iar.com<br>
</span></a>
Twitter: <a href="http://www.twitter.com/iarsystems">
<span style="color: #808080; font-family:
arial,helvetica,sans-serif; font-size: 10pt;">www.twitter.com/iarsystems</span></a>
</span>
</p>
</div>
</body>
</html>
Previous Topic:How to prevent TreeViewer collapse on add/delete of model entities
Next Topic:How to set Model dirty
Goto Forum:
  


Current Time: Sat Apr 27 00:36:35 GMT 2024

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

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

Back to the top