Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [nebula-dev] ControlEditor Widgets Project are you interested with that?

Hi Angelo,

It's great that this simple approach works out of the box in your RAP
application. However, I don't think that it can be recommended as a
general solution, at least not for RAP. The tree editors override
alternating row colors, hover effect, and selection. Since the editors
are updated from the server, they are always updated with a delay when
you scoll. This makes a very sluggish user interface, and when the
server connection is slow, it can even create misleading results
because items are still displayed on the wrong row. And creating a lot
of additional widgets will also affect the performance of your
application.

There may be an easy alternative that avoids these problems in RAP:
with the new markup support, it may be possible to display progress
bars with CSS magic. The markup support lets you use simple HTML
markup in your table cells. You could use images or background colors
to display the bars. This solution would be lightweight and
responsive.

Even for SWT, I'm not sure whether using table editors is preferable
over the usual owner draw approach. Creating a table editor on almost
every cell will also use up additional handles and since there is no
editing, it feels a bit wrong to me - but I'm not sure about that.

So I think a quality solution would require different render code for
SWT and RAP.


Best regards, Ralf


On Mon, Aug 13, 2012 at 3:28 AM, Angelo zerr <angelo.zerr@xxxxxxxxx> wrote:
> Hi Wim,
>
> Many thank's for your answer. I have created the bug
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=387087 in the Core Nebula
> Project.
>
> Hope it was your idea.
>
> Regards Angelo
>
>
>
> 2012/8/12 Wim Jongman <wim.jongman@xxxxxxxxx>
>>
>> Hi Angelo,
>>
>> Please file a bug to track this new contribution. We could consider a
>> JFace extension project for stuff like this.
>>
>> Met vriendelijke groet,
>>
>> Wim
>>
>> On 10 aug. 2012, at 17:44, Angelo zerr <angelo.zerr@xxxxxxxxx> wrote:
>>
>> Hi Nebula Team,
>>
>> For MongoDB IDE I needed to display stats of databases/collection Mongo
>> and I have display a blue progressbar (with gradiant) for each cell to see
>> the percent of the cell value compared with another cell (see attached
>> screen).
>>
>> To manage the blue progressbar (with gradiant) I have created an instance
>> of TreeEditor for each cell which defines a progressbar. I have created the
>> ControlEditorColumnLabelProvider class which extends ColumnLabelProvider and
>> which creates an instance of
>> TreeEditor for the current cell if needed. After you can set any SWT
>> Control in the cell. I have created GradientProgressBarColumnLabelProvider
>> which extends ControlEditorColumnLabelProvider to set my progressbar
>> (GradientProgressBar which is created with GC to manage gradiant).
>>
>> It works too with RAP, you can see it on the RAP online demo at
>> http://mongodb-ide.opensagres.cloudbees.net/mongodb-ide
>>
>> Are you interested by this project? If you are, I could create a new
>> Nebula Project.
>>
>> Many thank's for your answer.
>>
>> Regards Angelo
>>
>> <DatabaseEditorStatsPage.png>
>>
>> _______________________________________________
>> nebula-dev mailing list
>> nebula-dev@xxxxxxxxxxx
>> https://dev.eclipse.org/mailman/listinfo/nebula-dev
>>
>>
>> _______________________________________________
>> nebula-dev mailing list
>> nebula-dev@xxxxxxxxxxx
>> https://dev.eclipse.org/mailman/listinfo/nebula-dev
>>
>
>
> _______________________________________________
> nebula-dev mailing list
> nebula-dev@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/nebula-dev
>


Back to the top