Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com

How To Guides
Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Windows
Problem Solutions
Privacy Policy

  




 

 


Eclipse Platform
Release 3.5

org.eclipse.ui.presentations
Class AbstractPresentationFactory

java.lang.Object
  extended by 
org.eclipse.ui.presentations.AbstractPresentationFactory
Direct Known Subclasses:
WorkbenchPresentationFactory

public abstract class AbstractPresentationFactory
extends Object

This is a factory for presentation objects that control the appearance of editors, views and other components in the workbench.

Since:
3.0

Field Summary
static int SASHORIENTATION_HORIZONTAL
          Bit value for the createSash method's 'style' parameter.
static int SASHORIENTATION_VERTICAL
          Bit value for the createSash method's 'style' parameter.
static int SASHTYPE_FLOATING
          Bit value for the createSash method's 'style' parameter.
static int SASHTYPE_NORMAL
          Bit value for the createSash method's 'style' parameter.
 
Constructor Summary
AbstractPresentationFactory ()
           
 
Method Summary
abstract   StackPresentation createEditorPresentation ( Composite parent, IStackPresentationSite site)
          Creates an editor presentation for presenting editors.
  Sash createSash ( Composite parent, int style)
          Creates the Sash control that is used to separate view and editor parts.
abstract   StackPresentation createStandaloneViewPresentation ( Composite parent, IStackPresentationSite site, boolean showTitle)
          Creates a standalone stack presentation for presenting a standalone view.
  Control createStatusLineControl ( IStatusLineManager statusLine, Composite parent)
          Creates the control for the window's status line.
  IStatusLineManager createStatusLineManager ()
          Creates the status line manager for the window.
abstract   StackPresentation createViewPresentation ( Composite parent, IStackPresentationSite site)
          Creates a stack presentation for presenting regular docked views.
  String getId ()
          Returns a globally unique identifier for this type of presentation factory.
 int getSashSize (int style)
          Returns the size of the Sash control that is used to separate view and editor parts.
 
Methods inherited from class java.lang. Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SASHTYPE_NORMAL

public static int SASHTYPE_NORMAL
Bit value for the createSash method's 'style' parameter.

Since:
3.4

SASHTYPE_FLOATING

public static int SASHTYPE_FLOATING
Bit value for the createSash method's 'style' parameter.

Since:
3.4

SASHORIENTATION_HORIZONTAL

public static int SASHORIENTATION_HORIZONTAL
Bit value for the createSash method's 'style' parameter.

Since:
3.4

SASHORIENTATION_VERTICAL

public static int SASHORIENTATION_VERTICAL
Bit value for the createSash method's 'style' parameter.

Since:
3.4
Constructor Detail

AbstractPresentationFactory

public AbstractPresentationFactory()
Method Detail

createEditorPresentation

public abstract 
StackPresentation createEditorPresentation(
Composite parent,
                                                           
IStackPresentationSite site)
Creates an editor presentation for presenting editors.

The presentation creates its controls under the given parent composite.

Parameters:
parent - the parent composite to use for the presentation's controls
site - the site used for communication between the presentation and the workbench
Returns:
a newly created part presentation

createViewPresentation

public abstract 
StackPresentation createViewPresentation(
Composite parent,
                                                         
IStackPresentationSite site)
Creates a stack presentation for presenting regular docked views.

The presentation creates its controls under the given parent composite.

Parameters:
parent - the parent composite to use for the presentation's controls
site - the site used for communication between the presentation and the workbench
Returns:
a newly created part presentation

createStandaloneViewPresentation

public abstract 
StackPresentation createStandaloneViewPresentation(
Composite parent,
                                                                   
IStackPresentationSite site,
                                                                   boolean showTitle)
Creates a standalone stack presentation for presenting a standalone view. A standalone view cannot be docked together with other views. The title of a standalone view may be hidden.

The presentation creates its controls under the given parent composite.

Parameters:
parent - the parent composite to use for the presentation's controls
site - the site used for communication between the presentation and the workbench
showTitle - true to show the title for the view, false to hide it
Returns:
a newly created part presentation

createStatusLineManager

public 
IStatusLineManager createStatusLineManager()
Creates the status line manager for the window. Subclasses may override.

Returns:
the window's status line manager

createStatusLineControl

public 
Control createStatusLineControl(
IStatusLineManager statusLine,
                                       
Composite parent)
Creates the control for the window's status line. Subclasses may override.

Parameters:
statusLine - the window's status line manager
parent - the parent composite
Returns:
the window's status line control

getId

public 
String getId()
Returns a globally unique identifier for this type of presentation factory. This is used to ensure that one presentation is not restored from mementos saved by a different presentation.

Returns:
a globally unique identifier for this type of presentation factory.

createSash

public 
Sash createSash(
Composite parent,
                       int style)
Creates the Sash control that is used to separate view and editor parts.

Parameters:
parent - the parent composite
style - A bit set giving both the 'type' of the desired sash and its orientation (i.e. one 'SASHTYPE' value and one "SASHORIENTATION" value).
Returns:
the sash control
Since:
3.4

getSashSize

public int getSashSize(int style)
Returns the size of the Sash control that is used to separate view and editor parts.

Parameters:
style - A bit set giving both the 'type' of the desired sash and its orientation.
Returns:
the sash size
Since:
3.4

Eclipse Platform
Release 3.5

Guidelines for using Eclipse APIs.

Copyright (c) Eclipse contributors and others 2000, 2008. All rights reserved.


 
 
  Published under the terms of the Eclipse Public License Version 1.0 ("EPL") Design by Interspire