Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » Deny access to one TabItem in a TabFolder
Deny access to one TabItem in a TabFolder [message #55897] Fri, 26 October 2007 16:00 Go to next message
Eclipse UserFriend
Originally posted by: joao.nuno.santos.silva.gmail.com

Hi,

Is it possible to deny access to one specific TabItem in a TabFolder. I
tried adding a SelectionListener like this

tabFolder.addSelectionListener(new SelectionAdapter() {
public void widgetSelected(final SelectionEvent event) {
event.doit = false;
}
});

but without success. Thanks in advance!
Regards,
Joao Nuno Silva
Re: Deny access to one TabItem in a TabFolder [message #56105 is a reply to message #55897] Mon, 29 October 2007 10:20 Go to previous message
Stefan   is currently offline Stefan Friend
Messages: 316
Registered: July 2009
Senior Member
Hi,

the problem is that the SelectionListener for TabFolder is only a
notification of a selection change which has already been made in the
Browser. I had the same problem and tried to disable the tab items
without success.

Finally I simply hide the tabItem which should not be accessible by
disposing it and re-create it, if needed again. This has the ugly side
effect, that this page is always in the last position.

If anyone has a better idea on this...
Stefan.

Joao Nuno Silva schrieb:
> Hi,
>
> Is it possible to deny access to one specific TabItem in a TabFolder. I
> tried adding a SelectionListener like this
>
> tabFolder.addSelectionListener(new SelectionAdapter() {
> public void widgetSelected(final SelectionEvent event) {
> event.doit = false;
> }
> });
>
> but without success. Thanks in advance!
> Regards,
> Joao Nuno Silva
Previous Topic:Registry conflict (running org.eclipse.equinox.jsp.jasper.registry)
Next Topic:RAP applications under JDK 5
Goto Forum:
  


Current Time: Tue Apr 23 06:33:24 GMT 2024

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

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

Back to the top