Java Code Examples for org.eclipse.ui.presentations.IStackPresentationSite#STATE_MINIMIZED

The following examples show how to use org.eclipse.ui.presentations.IStackPresentationSite#STATE_MINIMIZED . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: PGroupStackPresentation.java    From nebula with Eclipse Public License 2.0 5 votes vote down vote up
/** 
 * {@inheritDoc}
 */
@Override
public void setState(int state)
{
    if (state == IStackPresentationSite.STATE_MINIMIZED)
    {
        group.setExpanded(false);
    }
    else if(state == IStackPresentationSite.STATE_RESTORED)
    {
        group.setExpanded(true);
    }
}
 
Example 2
Source File: CTabFolderStackPresentation.java    From nebula with Eclipse Public License 2.0 5 votes vote down vote up
/** 
 * {@inheritDoc}
 */
@Override
public void setState(int state)
{
    if (state == IStackPresentationSite.STATE_MAXIMIZED)
        tabFolder.setMaximized(true);
    if (state == IStackPresentationSite.STATE_RESTORED)
    {
        tabFolder.setMaximized(false);
        tabFolder.setMinimized(false);
    }
    if (state == IStackPresentationSite.STATE_MINIMIZED)
        tabFolder.setMinimized(true);
}
 
Example 3
Source File: ExpandBarStandaloneStackPresentation.java    From nebula with Eclipse Public License 2.0 5 votes vote down vote up
/** 
 * {@inheritDoc}
 */
@Override
public void setState(int state)
{
    if (state == IStackPresentationSite.STATE_MINIMIZED)
    {
        eBarItem.setExpanded(false);
    }
    else if(state == IStackPresentationSite.STATE_RESTORED)
    {
        eBarItem.setExpanded(true);
    }
}