You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@uima.apache.org by Jörn Kottmann <ko...@gmail.com> on 2011/07/15 12:41:18 UTC

UIMA-2115, SWT/JFace question

Hi all,

the Annotation Editor has a properties page which can be used to
configure the annotation styles.

This page has a TableViewer which contains a list of all types in the
type system.

The problem is now, when the list gets very long, the user needs to 
scroll the
page instead of the list. I would like to have scroll bars on this list 
instead.
If the page get the scroll bars, and a user then clicks on the list to 
select an element
the list "jumps" a little and the click is a few elements off.

I tried a lot but cannot really figure out how to fix that.

It would be nice if someone who has JFace/SWT experience
could have a look at this page.

The class name is: 
org.apache.uima.caseditor.ui.property.AnnotationPropertyPage,
inside the uimaj-ep-cas-editor project.

Thanks,
Jörn



Re: UIMA-2115, SWT/JFace question

Posted by Jörn Kottmann <ko...@gmail.com>.
On 7/15/11 1:27 PM, Thilo Götz wrote:
> Have you tried embedding the TableViewer under a
> ScrolledComposite?  I've never used it myself though.

Thanks, I tried that but it didn't help. Anyway while playing
around with the ScrolledComposite I noticed that setting
the page size with PreferencePage.setSize makes the list scrollable.

I am not sure if hard-coding a minimum page size is the best
way of handling this issue, but at least it seems to work.
The minimum page size causes the page to get scroll bars when
it is smaller than the minimum size, when it is larger the list is
scroll able.

Jörn

Re: UIMA-2115, SWT/JFace question

Posted by Thilo Götz <tw...@gmx.de>.
Have you tried embedding the TableViewer under a
ScrolledComposite?  I've never used it myself though.

--Thilo

On 15/07/11 12:41, Jörn Kottmann wrote:
> Hi all,
> 
> the Annotation Editor has a properties page which can be used to
> configure the annotation styles.
> 
> This page has a TableViewer which contains a list of all types in the
> type system.
> 
> The problem is now, when the list gets very long, the user needs to scroll the
> page instead of the list. I would like to have scroll bars on this list instead.
> If the page get the scroll bars, and a user then clicks on the list to select an
> element
> the list "jumps" a little and the click is a few elements off.
> 
> I tried a lot but cannot really figure out how to fix that.
> 
> It would be nice if someone who has JFace/SWT experience
> could have a look at this page.
> 
> The class name is: org.apache.uima.caseditor.ui.property.AnnotationPropertyPage,
> inside the uimaj-ep-cas-editor project.
> 
> Thanks,
> Jörn
> 
>