Results 1 to 3 of 3
Thread: Trouble maximizing tab
- 09-11-2008, 08:41 PM #1
Member
- Join Date
- Sep 2008
- Posts
- 5
- Rep Power
- 0
Trouble maximizing tab
I'm using java in eclipse working on a tabs within perspectives type of GUI.
I am trying to get a tab that is within another window to maximize when certain options are chosen.
PlatformUI.getWorkbench().getDisplay().getActiveSh ell().setMaximized(true);
looked as though it would work when put inside the listener and when I run the program the line definately gets hit but nothing happens. I read that the shell concerns the main window in the app, so I know I'm hitting way to high, how do I get at the components inside. There doesn't seem to be a set max accessable through the 3 or 4 classes involved in the page.
The page I'm trying to display is part of a presenter. I thought it would be part of a Tabfolder but I see no reference to one of those.
Unfortunately the person who wrote the code has moved on and cannot explain what was actually used. Does anyone have any hints of what I should be looking for?
- 09-11-2008, 09:05 PM #2
What classes are you working with? I don't see setMaximized() in the java 1.6 API doc.
- 09-12-2008, 06:24 PM #3
Member
- Join Date
- Sep 2008
- Posts
- 5
- Rep Power
- 0
The classes I'm using are eclipse specific, I think, ISearchResult, IWorkbenchPart, IPageLayout. IPageLayout seems to be the key location for building the tab that i want to maximize. But the tab class doesn't seem to be used. The layout simply places the specified components on the bottom half of the screen.
Similar Threads
-
Got Trouble with JSlider
By hungleon88 in forum Advanced JavaReplies: 6Last Post: 08-30-2008, 05:02 PM -
having some trouble
By Unknown1369 in forum New To JavaReplies: 13Last Post: 07-21-2008, 11:52 PM -
Trouble in Runing
By kavithaprabhaker in forum New To JavaReplies: 5Last Post: 05-13-2008, 05:59 AM -
Compile Trouble
By adelgado0723 in forum New To JavaReplies: 5Last Post: 04-21-2008, 02:02 AM -
JFrame maximizing
By Java Tip in forum Java TipReplies: 0Last Post: 03-12-2008, 11:19 AM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks