Community
Participate
Working Groups
It would be very handy (I have two use cases right now) if it were possible to disable a TabItem in a TabFolder. This would mean that the text on the tab would be grayed out, and the user could not make a disabled tab the active tab by clicking on it. The API could just be 'TabItem.isEnabled()' and 'TabItem.setEnabled(boolean)'.
.
Will look at this after R2.0.
Post 2.0. Re-opening bug reports for review.
I would need the ability to disable TabItems, too. Is there any special reason why this request is open for so long time? It would be nice if it can be implemented in the near future.
*** This bug has been marked as a duplicate of 75050 ***
(In reply to comment #5) > > *** This bug has been marked as a duplicate of 75050 *** This doesn't seem to be duplicate for Bug 75050. Can you please re-open it?
Bug #75050 is the use case for: tabItem.setVisible(true); tabItem.setEnabled(false); // Greys the tab making it unclickable Bug #12791 is the use case for: tabItem.setVisible(false); // Removes the tab from view and shuffles up Swing appears to have API along the lines of: http://java.sun.com/docs/books/tutorial/uiswing/components/tabbedpane.html javax.swing.JTabbedPane#setVisible(...) javax.swing.JTabbedPane#setEnabled(...) In relation to this SWT appears to be also missing API for dynamic insertion/removal of TabItems: javax.swing.JTabbedPane#insertTab(...) javax.swing.JTabbedPane#addTab(...) javax.swing.JTabbedPane#remove(...) javax.swing.JTabbedPane#removeAll(...)