Results 1 to 3 of 3
  1. #1
    dragonwitch is offline Member
    Join Date
    Sep 2008
    Posts
    5
    Rep Power
    0

    Default 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?

  2. #2
    Norm's Avatar
    Norm is offline Moderator
    Join Date
    Jun 2008
    Location
    SW Missouri
    Posts
    17,308
    Rep Power
    25

    Default

    What classes are you working with? I don't see setMaximized() in the java 1.6 API doc.

  3. #3
    dragonwitch is offline Member
    Join Date
    Sep 2008
    Posts
    5
    Rep Power
    0

    Default

    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

  1. Got Trouble with JSlider
    By hungleon88 in forum Advanced Java
    Replies: 6
    Last Post: 08-30-2008, 05:02 PM
  2. having some trouble
    By Unknown1369 in forum New To Java
    Replies: 13
    Last Post: 07-21-2008, 11:52 PM
  3. Trouble in Runing
    By kavithaprabhaker in forum New To Java
    Replies: 5
    Last Post: 05-13-2008, 05:59 AM
  4. Compile Trouble
    By adelgado0723 in forum New To Java
    Replies: 5
    Last Post: 04-21-2008, 02:02 AM
  5. JFrame maximizing
    By Java Tip in forum Java Tip
    Replies: 0
    Last Post: 03-12-2008, 11:19 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •