Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.eclipse.ui.internal
Class EditorPane  view EditorPane download EditorPane.java

java.lang.Object
  extended byorg.eclipse.ui.internal.LayoutPart
      extended byorg.eclipse.ui.internal.PartPane
          extended byorg.eclipse.ui.internal.EditorPane
All Implemented Interfaces:
org.eclipse.swt.widgets.Listener
Direct Known Subclasses:
MultiEditorInnerPane, MultiEditorOuterPane

public class EditorPane
extends PartPane

An EditorPane is a subclass of PartPane offering extended behavior for workbench editors.


Nested Class Summary
 
Nested classes inherited from class org.eclipse.ui.internal.PartPane
PartPane.Sashes
 
Field Summary
private  EditorStack workbook
           
 
Fields inherited from class org.eclipse.ui.internal.PartPane
control, page, partReference, presentableAdapter, PROP_ZOOMED
 
Fields inherited from class org.eclipse.ui.internal.LayoutPart
container, id, PROP_VISIBILITY
 
Constructor Summary
EditorPane(org.eclipse.ui.IEditorReference ref, WorkbenchPage page, EditorStack workbook)
          Constructs an editor pane for an editor part.
 
Method Summary
protected  void addPinEditorItem(org.eclipse.swt.widgets.Menu parent)
          Add the pin menu item on the editor system menu
protected  org.eclipse.ui.IWorkbenchPart createErrorPart(org.eclipse.ui.IWorkbenchPart oldPart)
           
protected  void createTitleBar()
          Editor panes do not need a title bar.
 void doHide()
          User has requested to close the pane.
 org.eclipse.ui.IEditorReference getEditorReference()
          Answer the editor part child.
 java.lang.String getName()
           
(package private)  int getStyle()
          Answer the SWT widget style.
 org.eclipse.swt.widgets.Control getToolBar()
           
 EditorStack getWorkbook()
          Answer the editor workbook container
protected  void requestActivation()
          Notify the workbook page that the part pane has been activated by the user.
 void setFocus()
          Sets focus to this part.
 void setWorkbook(EditorStack editorWorkbook)
          Set the editor workbook container
(package private)  void shellActivated()
          Informs the pane that it's window shell has been activated.
(package private)  void shellDeactivated()
          Informs the pane that it's window shell has been deactivated.
 void showFocus(boolean inFocus)
          Indicate focus in part.
 void testInvariants()
          Tests the integrity of this object.
 void updateTitles()
          Update the title attributes for the pane.
 
Methods inherited from class org.eclipse.ui.internal.PartPane
addSizeItem, addSizeItems, addSizeMenuItem, createChildControl, createControl, dispose, doDock, doZoom, findSashes, getBounds, getControl, getMinimumHeight, getPage, getPartReference, getPresentablePart, getStack, handleEvent, hasViewMenu, isBusy, isZoomed, moveAbove, moveSash, moveSash, reparent, setBusy, setContainer, setVisible, setWorkbenchPage, setZoomed, showHighlight, showPaneMenu, showViewMenu, showViewMenu, targetPartFor
 
Methods inherited from class org.eclipse.ui.internal.LayoutPart
addPropertyChangeListener, describeLayout, getCompoundId, getContainer, getID, getMinimumWidth, getPart, getPlaceHolderId, getPropertyListeners, getShellActivated, getSize, getWindow, getWorkbenchWindow, isCompressible, isVisible, removePropertyChangeListener, resizesVertically, setBounds, setID
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

workbook

private EditorStack workbook
Constructor Detail

EditorPane

public EditorPane(org.eclipse.ui.IEditorReference ref,
                  WorkbenchPage page,
                  EditorStack workbook)
Constructs an editor pane for an editor part.

Method Detail

createErrorPart

protected org.eclipse.ui.IWorkbenchPart createErrorPart(org.eclipse.ui.IWorkbenchPart oldPart)
Specified by:
createErrorPart in class PartPane

createTitleBar

protected void createTitleBar()
Editor panes do not need a title bar. The editor title and close icon are part of the tab containing the editor. Tools and menus are added directly into the workbench toolbar and menu bar.

Specified by:
createTitleBar in class PartPane

doHide

public void doHide()
Description copied from class: PartPane
User has requested to close the pane. Take appropriate action depending on type.

Specified by:
doHide in class PartPane

getEditorReference

public org.eclipse.ui.IEditorReference getEditorReference()
Answer the editor part child.


getStyle

int getStyle()
Answer the SWT widget style.


getWorkbook

public EditorStack getWorkbook()
Answer the editor workbook container


requestActivation

protected void requestActivation()
Notify the workbook page that the part pane has been activated by the user.

Overrides:
requestActivation in class PartPane

setWorkbook

public void setWorkbook(EditorStack editorWorkbook)
Set the editor workbook container


shellActivated

void shellActivated()
Description copied from class: PartPane
Informs the pane that it's window shell has been activated.

Specified by:
shellActivated in class PartPane

shellDeactivated

void shellDeactivated()
Description copied from class: PartPane
Informs the pane that it's window shell has been deactivated.

Specified by:
shellDeactivated in class PartPane

setFocus

public void setFocus()
Description copied from class: PartPane
Sets focus to this part.

Overrides:
setFocus in class PartPane

showFocus

public void showFocus(boolean inFocus)
Indicate focus in part.

Specified by:
showFocus in class PartPane

addPinEditorItem

protected void addPinEditorItem(org.eclipse.swt.widgets.Menu parent)
Add the pin menu item on the editor system menu


updateTitles

public void updateTitles()
Update the title attributes for the pane.


testInvariants

public void testInvariants()
Description copied from class: LayoutPart
Tests the integrity of this object. Throws an exception if the object's state is not internally consistent. For use in test suites.

Overrides:
testInvariants in class LayoutPart

getName

public java.lang.String getName()

getToolBar

public org.eclipse.swt.widgets.Control getToolBar()
Specified by:
getToolBar in class PartPane