Java Doc for WorkbenchPage.java in  » IDE-Eclipse » ui-workbench » org » eclipse » ui » internal » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » IDE Eclipse » ui workbench » org.eclipse.ui.internal 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.eclipse.ui.internal.CompatibleWorkbenchPage
      org.eclipse.ui.internal.WorkbenchPage

WorkbenchPage
public class WorkbenchPage extends CompatibleWorkbenchPage implements IWorkbenchPage(Code)
A collection of views and editors in a workbench.



Constructor Summary
public  WorkbenchPage(WorkbenchWindow w, String layoutID, IAdaptable input)
     Constructs a new page with a given perspective and input.
public  WorkbenchPage(WorkbenchWindow w, IAdaptable input)
     Constructs a page.

Method Summary
public  voidactivate(IWorkbenchPart part)
     Activates a part.
public  voidaddFastView(IViewReference ref)
     Add a fast view.
public  voidaddPartListener(IPartListener l)
     Adds an IPartListener to the part service.
public  voidaddPartListener(IPartListener2 l)
     Adds an IPartListener to the part service.
protected  voidaddPerspective(Perspective persp)
    
public  voidaddPostSelectionListener(ISelectionListener listener)
    
public  voidaddPostSelectionListener(String partId, ISelectionListener listener)
    
public  voidaddPropertyChangeListener(IPropertyChangeListener listener)
    
public  voidaddSelectionListener(ISelectionListener listener)
    
public  voidaddSelectionListener(String partId, ISelectionListener listener)
    
public  voidattachView(IViewReference ref)
     Removes a detachedwindow.
public  voidbringToTop(IWorkbenchPart part)
     Moves a part forward in the Z order of a perspective so it is visible.
public  booleanclose()
     Closes the perspective.
public  booleancloseAllEditors(boolean save)
    
public  voidcloseAllPerspectives(boolean saveEditors, boolean closePage)
    
public  booleancloseAllSavedEditors()
    
public  booleancloseEditor(IEditorReference editorRef, boolean save)
    
public  booleancloseEditor(IEditorPart editor, boolean save)
    
public  booleancloseEditors(IEditorReference[] refArray, boolean save)
    
public  voidclosePerspective(IPerspectiveDescriptor desc, boolean saveParts, boolean closePage)
    
 voidclosePerspective(Perspective persp, boolean saveParts, boolean closePage)
     Closes the specified perspective.
public  voiddetachView(IViewReference ref)
     Detaches a view from the WorkbenchWindow.
public  voiddispose()
     Cleanup.
public  booleaneditActionSets()
     Edits the action sets.
public  IEditorPartfindEditor(IEditorInput input)
     See IWorkbenchPage.
public  IEditorReference[]findEditors(IEditorInput input, String editorId, int matchFlags)
     See IWorkbenchPage.
public  PerspectivefindPerspective(IPerspectiveDescriptor desc)
     Returns the first view manager with given ID.
public  IViewPartfindView(String id)
     See IWorkbenchPage@findView.
public  IViewReferencefindViewReference(String viewId)
    
public  IViewReferencefindViewReference(String viewId, String secondaryId)
    
public  IActionBarsgetActionBars()
    
public  IActionSetDescriptor[]getActionSets()
     Returns an array of the visible action sets.
public  IEditorPartgetActiveEditor()
    
public  IEditorReferencegetActiveEditorReference()
     Returns the reference for the active editor, or null if there is no active editor.
public  IViewReferencegetActiveFastView()
     Return the active fast view or null if there are no fast views or if there are all minimized.
public  IWorkbenchPartgetActivePart()
    
public  IWorkbenchPartReferencegetActivePartReference()
    
public  PerspectivegetActivePerspective()
     Returns the active perspective for the page, null if none.
public  IWorkingSetgetAggregateWorkingSet()
    
 IWorkbenchPartReference[]getAllParts()
    
public  CompositegetClientComposite()
     Returns the client composite.
public  IEditorPart[]getDirtyEditors()
    
public  ISaveablePart[]getDirtyParts()
    
public  EditorManagergetEditorManager()
     Answer the editor manager for this window.
public  EditorAreaHelpergetEditorPresentation()
     Answer the editor presentation.
public  IEditorReference[]getEditorReferences()
     See IWorkbenchPage.
public  intgetEditorReuseThreshold()
    
public  IEditorPart[]getEditors()
     See IWorkbenchPage.
public  IExtensionTrackergetExtensionTracker()
    
public  IViewReference[]getFastViews()
     Returns the docked views.
 PerspectivegetFirstPerspectiveWithView(IViewPart part)
     Checks perspectives in the order they were activiated for the specfied part.
public  IAdaptablegetInput()
    
public  StringgetLabel()
     Returns the page label.
public  INavigationHistorygetNavigationHistory()
    
public  String[]getNewWizardShortcuts()
    
 Perspective[]getOpenInternalPerspectives()
     Return all open Perspective objects.
 IWorkbenchPartReference[]getOpenParts()
     Returns all open parts that are owned by this page (that is, all parts for which a part opened event would have been sent -- these would be activated parts whose controls have already been created.
public  IPerspectiveDescriptor[]getOpenPerspectives()
    
public  PartServicegetPartService()
     Allow access to the part service for this page ...
public  intgetPartState(IWorkbenchPartReference ref)
    
public  IPerspectiveDescriptorgetPerspective()
     Returns the perspective.
public  PerspectiveHelpergetPerspectivePresentation()
     Answer the perspective presentation.
public  String[]getPerspectiveShortcuts()
    
public  IWorkbenchPartReferencegetReference(IWorkbenchPart part)
     Returns the reference to the given part, or null if it has no reference (i.e.
public  ISelectiongetSelection()
    
public  ISelectiongetSelection(String partId)
    
public  ArrayListgetShowInPartIds()
     Returns the ids of the parts to list in the Show In...
public  String[]getShowViewShortcuts()
    
public  IEditorReference[]getSortedEditors()
    
public  IWorkbenchPartReference[]getSortedParts()
    
public  IPerspectiveDescriptor[]getSortedPerspectives()
     Returns the perspectives in activation order (oldest first).
 intgetState(IWorkbenchPartReference ref)
    
public  ViewFactorygetViewFactory()
    
public  IViewReference[]getViewReferences()
     See IWorkbenchPage.
public  IViewPart[]getViewStack(IViewPart part)
    
public  IViewPart[]getViews()
     See IWorkbenchPage.
 IViewPart[]getViews(Perspective persp, boolean restore)
    
public  IWorkbenchWindowgetWorkbenchWindow()
     See IWorkbenchPage.
public  IWorkingSetgetWorkingSet()
    
public  IWorkingSet[]getWorkingSets()
    
public  voidhideActionSet(String actionSetID)
    
public  voidhideFastView()
     Hides the active fast view.
public  voidhideView(IViewReference ref)
    
public  voidhideView(IViewPart view)
    
public  booleanisCloseable(IViewReference ref)
     Return whether the view is closeable or not.
Parameters:
  ref - the view reference to check.
public  booleanisEditorAreaVisible()
     See IWorkbenchPage.
public  booleanisEditorPinned(IEditorPart editor)
     See IWorkbenchPage.
public  booleanisFastView(IViewReference ref)
     Returns whether the view is fast.
public  booleanisFixedLayout()
     Returns whether the layout of the active perspective is fixed.
public  booleanisMoveable(IViewReference ref)
     Return whether the view is moveable or not.
Parameters:
  ref - the view reference to check.
public  booleanisPageZoomed()
    
public  booleanisPartVisible(IWorkbenchPart part)
     See IWorkbenchPage.
public  booleanisPartVisible(IWorkbenchPartReference reference)
    
protected  booleanisSaveNeeded()
     Return true if the perspective has a dirty editor.
public  booleanisZoomed()
     Returns whether the page is zoomed. true if the page is zoomed.NOTE: As of 3.3 this method should always return 'false'when using the new min/max behavior.
public  voidmakeFastView(IViewReference ref)
     Add a fast view.
protected  voidonActivate()
     This method is called when the page is activated.
protected  voidonDeactivate()
     This method is called when the page is deactivated.
public  IEditorPartopenEditor(IEditorInput input, String editorID)
     See IWorkbenchPage.
public  IEditorPartopenEditor(IEditorInput input, String editorID, boolean activate)
     See IWorkbenchPage.
public  IEditorPartopenEditor(IEditorInput input, String editorID, boolean activate, int matchFlags)
     See IWorkbenchPage.
public  IEditorPartopenEditor(IEditorInput input, String editorID, boolean activate, int matchFlags, IMemento editorState)
     This is not public API but for use internally.
public  IEditorPartopenEditorFromDescriptor(IEditorInput input, IEditorDescriptor editorDescriptor, boolean activate, IMemento editorState)
    
public  voidopenEmptyTab()
    
public  voidopenPerspectiveExtras()
     Opens the perspectives specified in the PERSPECTIVE_BAR_EXTRAS preference (see bug 84226).
 voidpartAdded(WorkbenchPartReference ref)
     This is called by child objects after a part has been added to the page. The page will in turn notify its listeners.
 voidpartRemoved(WorkbenchPartReference ref)
     This is called by child objects after a part has been added to the page.
public  voidperformedShowIn(String partId)
     The user successfully performed a Show In...
 voidperspectiveActionSetChanged(Perspective perspective, IActionSetDescriptor descriptor, int changeType)
    
 voidrefreshActiveView()
    
public  voidremoveFastView(IViewReference ref)
     Removes a fast view.
public  voidremovePartListener(IPartListener l)
     Removes an IPartListener from the part service.
public  voidremovePartListener(IPartListener2 l)
     Removes an IPartListener from the part service.
public  voidremovePostSelectionListener(ISelectionListener listener)
    
public  voidremovePostSelectionListener(String partId, ISelectionListener listener)
    
public  voidremovePropertyChangeListener(IPropertyChangeListener listener)
    
public  voidremoveSelectionListener(ISelectionListener listener)
    
public  voidremoveSelectionListener(String partId, ISelectionListener listener)
    
public  voidrequestActivation(IWorkbenchPart part)
     This method is called when a part is activated by clicking within it.
public  voidresetPerspective()
     Resets the layout for the perspective.
protected  voidresetToolBarLayout()
     Restore the toolbar layout for the active perspective.
public  voidresizeView(IViewPart part, int width, int height)
     Allow for programmatically resizing a part.
public  IStatusrestoreState(IMemento memento, IPerspectiveDescriptor activeDescriptor)
     Restore this page from the memento and ensure that the active perspective is equals the active descriptor otherwise create a new perspective for that descriptor.
public  voidreuseEditor(IReusableEditor editor, IEditorInput input)
     See IWorkbenchPage.
public  booleansaveAllEditors(boolean confirm)
    
public  booleansaveAllEditors(boolean confirm, boolean addNonPartSources)
    
public  booleansaveEditor(IEditorPart editor, boolean confirm)
     Saves an editors in the workbench.
protected  booleansavePart(ISaveablePart saveable, IWorkbenchPart part, boolean confirm)
    
public  voidsavePerspective()
     Saves the current perspective.
public  voidsavePerspectiveAs(IPerspectiveDescriptor newDesc)
     Saves the perspective.
public  IStatussaveState(IMemento memento)
     Save the state of the page.
public  voidsetEditorAreaVisible(boolean showEditorArea)
     See IWorkbenchPage.
public  voidsetEditorReuseThreshold(int openEditors)
    
public  voidsetPartState(IWorkbenchPartReference ref, int state)
    
public  voidsetPerspective(IPerspectiveDescriptor desc)
     Sets the perspective.
public  voidsetState(IWorkbenchPartReference ref, int newState)
     Sets the state of the given part.
public  voidsetWorkingSet(IWorkingSet newWorkingSet)
     Sets the active working set for the workbench page.
public  voidsetWorkingSets(IWorkingSet[] newWorkingSets)
    
public  voidshowActionSet(String actionSetID)
    
public  IViewPartshowView(String viewID)
     See IWorkbenchPage.
public  IViewPartshowView(String viewID, String secondaryID, int mode)
    
public  voidsortShowInPartIds(ArrayList partIds)
     Sorts the given collection of show in target part ids in MRU order.
public  voidtestInvariants()
     Sanity-checks the objects in this page.
public  voidtoggleFastView(IViewReference ref)
     Toggles the visibility of a fast view.
public  voidtoggleZoom(IWorkbenchPartReference ref)
    
public  voidunzoomAllPerspectives()
     Forces all perspectives on the page to zoom out.
public  voidupdateActionBars()
     updateActionBars method comment.
public  voidzoomOut()
    


Constructor Detail
WorkbenchPage
public WorkbenchPage(WorkbenchWindow w, String layoutID, IAdaptable input) throws WorkbenchException(Code)
Constructs a new page with a given perspective and input.
Parameters:
  w - the parent window
Parameters:
  layoutID - must not be null
Parameters:
  input - the page input
throws:
  WorkbenchException - on null layout id



WorkbenchPage
public WorkbenchPage(WorkbenchWindow w, IAdaptable input) throws WorkbenchException(Code)
Constructs a page. restoreState(IMemento) should be called to restore this page from data stored in a persistance file.
Parameters:
  w - the parent window
Parameters:
  input - the page input
throws:
  WorkbenchException -




Method Detail
activate
public void activate(IWorkbenchPart part)(Code)
Activates a part. The part will be brought to the front and given focus.
Parameters:
  part - the part to activate



addFastView
public void addFastView(IViewReference ref)(Code)
Add a fast view.



addPartListener
public void addPartListener(IPartListener l)(Code)
Adds an IPartListener to the part service.



addPartListener
public void addPartListener(IPartListener2 l)(Code)
Adds an IPartListener to the part service.



addPerspective
protected void addPerspective(Perspective persp)(Code)



addPostSelectionListener
public void addPostSelectionListener(ISelectionListener listener)(Code)



addPostSelectionListener
public void addPostSelectionListener(String partId, ISelectionListener listener)(Code)



addPropertyChangeListener
public void addPropertyChangeListener(IPropertyChangeListener listener)(Code)
Implements IWorkbenchPage
See Also:   org.eclipse.ui.IWorkbenchPage.addPropertyChangeListener(IPropertyChangeListener)
since:
   2.0



addSelectionListener
public void addSelectionListener(ISelectionListener listener)(Code)



addSelectionListener
public void addSelectionListener(String partId, ISelectionListener listener)(Code)



attachView
public void attachView(IViewReference ref)(Code)
Removes a detachedwindow.



bringToTop
public void bringToTop(IWorkbenchPart part)(Code)
Moves a part forward in the Z order of a perspective so it is visible. If the part is in the same stack as the active part, the new part is activated.
Parameters:
  part - the part to bring to move forward



close
public boolean close()(Code)
Closes the perspective.



closeAllEditors
public boolean closeAllEditors(boolean save)(Code)
See IWorkbenchPage



closeAllPerspectives
public void closeAllPerspectives(boolean saveEditors, boolean closePage)(Code)

See Also:   IWorkbenchPage.closeAllPerspectives(booleanboolean)



closeAllSavedEditors
public boolean closeAllSavedEditors()(Code)
See IWorkbenchPage



closeEditor
public boolean closeEditor(IEditorReference editorRef, boolean save)(Code)
See IWorkbenchPage#closeEditor



closeEditor
public boolean closeEditor(IEditorPart editor, boolean save)(Code)
See IWorkbenchPage#closeEditor



closeEditors
public boolean closeEditors(IEditorReference[] refArray, boolean save)(Code)
See IWorkbenchPage



closePerspective
public void closePerspective(IPerspectiveDescriptor desc, boolean saveParts, boolean closePage)(Code)

See Also:   IWorkbenchPage.closePerspective(IPerspectiveDescriptorbooleanboolean)



closePerspective
void closePerspective(Perspective persp, boolean saveParts, boolean closePage)(Code)
Closes the specified perspective. If last perspective, then entire page is closed.
Parameters:
  persp - the perspective to be closed
Parameters:
  saveParts - whether the parts that are being closed should be saved(editors if last perspective, views if not shown in otherparspectives)



detachView
public void detachView(IViewReference ref)(Code)
Detaches a view from the WorkbenchWindow.



dispose
public void dispose()(Code)
Cleanup.



editActionSets
public boolean editActionSets()(Code)
Edits the action sets.



findEditor
public IEditorPart findEditor(IEditorInput input)(Code)
See IWorkbenchPage.



findEditors
public IEditorReference[] findEditors(IEditorInput input, String editorId, int matchFlags)(Code)
See IWorkbenchPage.



findPerspective
public Perspective findPerspective(IPerspectiveDescriptor desc)(Code)
Returns the first view manager with given ID.



findView
public IViewPart findView(String id)(Code)
See IWorkbenchPage@findView.



findViewReference
public IViewReference findViewReference(String viewId)(Code)



findViewReference
public IViewReference findViewReference(String viewId, String secondaryId)(Code)



getActionBars
public IActionBars getActionBars()(Code)



getActionSets
public IActionSetDescriptor[] getActionSets()(Code)
Returns an array of the visible action sets.



getActiveEditor
public IEditorPart getActiveEditor()(Code)

See Also:   IWorkbenchPage



getActiveEditorReference
public IEditorReference getActiveEditorReference()(Code)
Returns the reference for the active editor, or null if there is no active editor. the active editor reference or null



getActiveFastView
public IViewReference getActiveFastView()(Code)
Return the active fast view or null if there are no fast views or if there are all minimized.



getActivePart
public IWorkbenchPart getActivePart()(Code)



getActivePartReference
public IWorkbenchPartReference getActivePartReference()(Code)



getActivePerspective
public Perspective getActivePerspective()(Code)
Returns the active perspective for the page, null if none.



getAggregateWorkingSet
public IWorkingSet getAggregateWorkingSet()(Code)



getAllParts
IWorkbenchPartReference[] getAllParts()(Code)
Returns all parts that are owned by this page



getClientComposite
public Composite getClientComposite()(Code)
Returns the client composite.



getDirtyEditors
public IEditorPart[] getDirtyEditors()(Code)



getDirtyParts
public ISaveablePart[] getDirtyParts()(Code)



getEditorManager
public EditorManager getEditorManager()(Code)
Answer the editor manager for this window.



getEditorPresentation
public EditorAreaHelper getEditorPresentation()(Code)
Answer the editor presentation.



getEditorReferences
public IEditorReference[] getEditorReferences()(Code)
See IWorkbenchPage.



getEditorReuseThreshold
public int getEditorReuseThreshold()(Code)



getEditors
public IEditorPart[] getEditors()(Code)
See IWorkbenchPage.



getExtensionTracker
public IExtensionTracker getExtensionTracker()(Code)



getFastViews
public IViewReference[] getFastViews()(Code)
Returns the docked views.



getFirstPerspectiveWithView
Perspective getFirstPerspectiveWithView(IViewPart part)(Code)
Checks perspectives in the order they were activiated for the specfied part. The first sorted perspective that contains the specified part is returned.
Parameters:
  part - specified part to search for the first sorted perspespective containing the part
since:
   3.1



getInput
public IAdaptable getInput()(Code)

See Also:   IWorkbenchPage



getLabel
public String getLabel()(Code)
Returns the page label. This is a combination of the page input and active perspective.



getNavigationHistory
public INavigationHistory getNavigationHistory()(Code)
NavigationHistory



getNewWizardShortcuts
public String[] getNewWizardShortcuts()(Code)



getOpenInternalPerspectives
Perspective[] getOpenInternalPerspectives()(Code)
Return all open Perspective objects. all open Perspective objects
since:
   3.1



getOpenParts
IWorkbenchPartReference[] getOpenParts()(Code)
Returns all open parts that are owned by this page (that is, all parts for which a part opened event would have been sent -- these would be activated parts whose controls have already been created.



getOpenPerspectives
public IPerspectiveDescriptor[] getOpenPerspectives()(Code)

See Also:   IWorkbenchPage.getOpenPerspectives



getPartService
public PartService getPartService()(Code)
Allow access to the part service for this page ... used internally to propogate certain types of events to the page part listeners. the part service for this page.



getPartState
public int getPartState(IWorkbenchPartReference ref)(Code)



getPerspective
public IPerspectiveDescriptor getPerspective()(Code)
Returns the perspective.



getPerspectivePresentation
public PerspectiveHelper getPerspectivePresentation()(Code)
Answer the perspective presentation.



getPerspectiveShortcuts
public String[] getPerspectiveShortcuts()(Code)



getReference
public IWorkbenchPartReference getReference(IWorkbenchPart part)(Code)
Returns the reference to the given part, or null if it has no reference (i.e. it is not a top-level part in this workbench page).
Parameters:
  part - the part the part's reference or null if the given part does not belong to this workbench page



getSelection
public ISelection getSelection()(Code)



getSelection
public ISelection getSelection(String partId)(Code)



getShowInPartIds
public ArrayList getShowInPartIds()(Code)
Returns the ids of the parts to list in the Show In... prompter. This is a List of Strings.



getShowViewShortcuts
public String[] getShowViewShortcuts()(Code)



getSortedEditors
public IEditorReference[] getSortedEditors()(Code)



getSortedParts
public IWorkbenchPartReference[] getSortedParts()(Code)



getSortedPerspectives
public IPerspectiveDescriptor[] getSortedPerspectives()(Code)
Returns the perspectives in activation order (oldest first).



getState
int getState(IWorkbenchPartReference ref)(Code)
Returns the maximized/minimized/restored state of the given part reference
Parameters:
  ref - part to query (not null) one of the IStackPresentationSite.STATE_* constants



getViewFactory
public ViewFactory getViewFactory()(Code)



getViewReferences
public IViewReference[] getViewReferences()(Code)
See IWorkbenchPage.



getViewStack
public IViewPart[] getViewStack(IViewPart part)(Code)



getViews
public IViewPart[] getViews()(Code)
See IWorkbenchPage.



getViews
IViewPart[] getViews(Perspective persp, boolean restore)(Code)
Returns all view parts in the specified perspective
Parameters:
  persp - the perspective an array of view parts
since:
   3.1



getWorkbenchWindow
public IWorkbenchWindow getWorkbenchWindow()(Code)
See IWorkbenchPage.



getWorkingSet
public IWorkingSet getWorkingSet()(Code)
Implements IWorkbenchPage
See Also:   org.eclipse.ui.IWorkbenchPage.getWorkingSet
since:
   2.0



getWorkingSets
public IWorkingSet[] getWorkingSets()(Code)



hideActionSet
public void hideActionSet(String actionSetID)(Code)

See Also:   IWorkbenchPage



hideFastView
public void hideFastView()(Code)
Hides the active fast view. Has no effect if there is no fast view active.



hideView
public void hideView(IViewReference ref)(Code)



hideView
public void hideView(IViewPart view)(Code)
See IPerspective



isCloseable
public boolean isCloseable(IViewReference ref)(Code)
Return whether the view is closeable or not.
Parameters:
  ref - the view reference to check. Must not be null. true if the part is closeable.
since:
   3.1.1



isEditorAreaVisible
public boolean isEditorAreaVisible()(Code)
See IWorkbenchPage.



isEditorPinned
public boolean isEditorPinned(IEditorPart editor)(Code)
See IWorkbenchPage.



isFastView
public boolean isFastView(IViewReference ref)(Code)
Returns whether the view is fast.



isFixedLayout
public boolean isFixedLayout()(Code)
Returns whether the layout of the active perspective is fixed.



isMoveable
public boolean isMoveable(IViewReference ref)(Code)
Return whether the view is moveable or not.
Parameters:
  ref - the view reference to check. Must not be null. true if the part is moveable.
since:
   3.1.1



isPageZoomed
public boolean isPageZoomed()(Code)



isPartVisible
public boolean isPartVisible(IWorkbenchPart part)(Code)
See IWorkbenchPage.



isPartVisible
public boolean isPartVisible(IWorkbenchPartReference reference)(Code)



isSaveNeeded
protected boolean isSaveNeeded()(Code)
Return true if the perspective has a dirty editor.



isZoomed
public boolean isZoomed()(Code)
Returns whether the page is zoomed. true if the page is zoomed.NOTE: As of 3.3 this method should always return 'false'when using the new min/max behavior. It is only used forlegacy 'zoom' handling.



makeFastView
public void makeFastView(IViewReference ref)(Code)
Add a fast view.



onActivate
protected void onActivate()(Code)
This method is called when the page is activated.



onDeactivate
protected void onDeactivate()(Code)
This method is called when the page is deactivated.



openEditor
public IEditorPart openEditor(IEditorInput input, String editorID) throws PartInitException(Code)
See IWorkbenchPage.



openEditor
public IEditorPart openEditor(IEditorInput input, String editorID, boolean activate) throws PartInitException(Code)
See IWorkbenchPage.



openEditor
public IEditorPart openEditor(IEditorInput input, String editorID, boolean activate, int matchFlags) throws PartInitException(Code)
See IWorkbenchPage.



openEditor
public IEditorPart openEditor(IEditorInput input, String editorID, boolean activate, int matchFlags, IMemento editorState) throws PartInitException(Code)
This is not public API but for use internally. editorState can be null.



openEditorFromDescriptor
public IEditorPart openEditorFromDescriptor(IEditorInput input, IEditorDescriptor editorDescriptor, boolean activate, IMemento editorState) throws PartInitException(Code)



openEmptyTab
public void openEmptyTab()(Code)



openPerspectiveExtras
public void openPerspectiveExtras()(Code)
Opens the perspectives specified in the PERSPECTIVE_BAR_EXTRAS preference (see bug 84226).



partAdded
void partAdded(WorkbenchPartReference ref)(Code)
This is called by child objects after a part has been added to the page. The page will in turn notify its listeners.



partRemoved
void partRemoved(WorkbenchPartReference ref)(Code)
This is called by child objects after a part has been added to the page. The part will be queued for disposal after all listeners have been notified



performedShowIn
public void performedShowIn(String partId)(Code)
The user successfully performed a Show In... action on the specified part. Update the list of Show In items accordingly.



perspectiveActionSetChanged
void perspectiveActionSetChanged(Perspective perspective, IActionSetDescriptor descriptor, int changeType)(Code)



refreshActiveView
void refreshActiveView()(Code)



removeFastView
public void removeFastView(IViewReference ref)(Code)
Removes a fast view.



removePartListener
public void removePartListener(IPartListener l)(Code)
Removes an IPartListener from the part service.



removePartListener
public void removePartListener(IPartListener2 l)(Code)
Removes an IPartListener from the part service.



removePostSelectionListener
public void removePostSelectionListener(ISelectionListener listener)(Code)



removePostSelectionListener
public void removePostSelectionListener(String partId, ISelectionListener listener)(Code)



removePropertyChangeListener
public void removePropertyChangeListener(IPropertyChangeListener listener)(Code)
Implements IWorkbenchPage
See Also:   org.eclipse.ui.IWorkbenchPage.removePropertyChangeListener(IPropertyChangeListener)
since:
   2.0



removeSelectionListener
public void removeSelectionListener(ISelectionListener listener)(Code)



removeSelectionListener
public void removeSelectionListener(String partId, ISelectionListener listener)(Code)



requestActivation
public void requestActivation(IWorkbenchPart part)(Code)
This method is called when a part is activated by clicking within it. In response, the part, the pane, and all of its actions will be activated. In the current design this method is invoked by the part pane when the pane, the part, or any children gain focus.



resetPerspective
public void resetPerspective()(Code)
Resets the layout for the perspective. The active part in the old layout is activated in the new layout for consistent user context.



resetToolBarLayout
protected void resetToolBarLayout()(Code)
Restore the toolbar layout for the active perspective.



resizeView
public void resizeView(IViewPart part, int width, int height)(Code)
Allow for programmatically resizing a part.

EXPERIMENTAL

Known limitations:

  • currently applies only to views
  • has no effect when view is zoomed



restoreState
public IStatus restoreState(IMemento memento, IPerspectiveDescriptor activeDescriptor)(Code)
Restore this page from the memento and ensure that the active perspective is equals the active descriptor otherwise create a new perspective for that descriptor. If activeDescriptor is null active the old perspective.



reuseEditor
public void reuseEditor(IReusableEditor editor, IEditorInput input)(Code)
See IWorkbenchPage.



saveAllEditors
public boolean saveAllEditors(boolean confirm)(Code)
See IWorkbenchPage



saveAllEditors
public boolean saveAllEditors(boolean confirm, boolean addNonPartSources)(Code)

Parameters:
  confirm -
Parameters:
  addNonPartSources - true if saveables from non-part sources should be saved too false if the user cancelled



saveEditor
public boolean saveEditor(IEditorPart editor, boolean confirm)(Code)
Saves an editors in the workbench. If confirm is true the user is prompted to confirm the command.
Parameters:
  confirm - if user confirmation should be sought true if the command succeeded, or falseif the user cancels the command



savePart
protected boolean savePart(ISaveablePart saveable, IWorkbenchPart part, boolean confirm)(Code)



savePerspective
public void savePerspective()(Code)
Saves the current perspective.



savePerspectiveAs
public void savePerspectiveAs(IPerspectiveDescriptor newDesc)(Code)
Saves the perspective.



saveState
public IStatus saveState(IMemento memento)(Code)
Save the state of the page.



setEditorAreaVisible
public void setEditorAreaVisible(boolean showEditorArea)(Code)
See IWorkbenchPage.



setEditorReuseThreshold
public void setEditorReuseThreshold(int openEditors)(Code)



setPartState
public void setPartState(IWorkbenchPartReference ref, int state)(Code)



setPerspective
public void setPerspective(IPerspectiveDescriptor desc)(Code)
Sets the perspective.
Parameters:
  desc - identifies the new perspective.



setState
public void setState(IWorkbenchPartReference ref, int newState)(Code)
Sets the state of the given part.
Parameters:
  ref - part whose state should be modified (not null)
Parameters:
  newState - one of the IStackPresentationSite.STATE_* constants



setWorkingSet
public void setWorkingSet(IWorkingSet newWorkingSet)(Code)
Sets the active working set for the workbench page. Notifies property change listener about the change.
Parameters:
  newWorkingSet - the active working set for the page. May be null.
since:
   2.0



setWorkingSets
public void setWorkingSets(IWorkingSet[] newWorkingSets)(Code)



showActionSet
public void showActionSet(String actionSetID)(Code)

See Also:   IWorkbenchPage



showView
public IViewPart showView(String viewID) throws PartInitException(Code)
See IWorkbenchPage.



showView
public IViewPart showView(String viewID, String secondaryID, int mode) throws PartInitException(Code)



sortShowInPartIds
public void sortShowInPartIds(ArrayList partIds)(Code)
Sorts the given collection of show in target part ids in MRU order.



testInvariants
public void testInvariants()(Code)
Sanity-checks the objects in this page. Throws an Assertation exception if an object's internal state is invalid. ONLY INTENDED FOR USE IN THE UI TEST SUITES.



toggleFastView
public void toggleFastView(IViewReference ref)(Code)
Toggles the visibility of a fast view. If the view is active it is deactivated. Otherwise, it is activated.



toggleZoom
public void toggleZoom(IWorkbenchPartReference ref)(Code)



unzoomAllPerspectives
public void unzoomAllPerspectives()(Code)
Forces all perspectives on the page to zoom out.



updateActionBars
public void updateActionBars()(Code)
updateActionBars method comment.



zoomOut
public void zoomOut()(Code)



Methods inherited from org.eclipse.ui.internal.CompatibleWorkbenchPage
public IEditorPart openEditor(IFile input) throws PartInitException(Code)(Java Doc)
public IEditorPart openEditor(IFile input, String editorID) throws PartInitException(Code)(Java Doc)
public IEditorPart openEditor(IFile input, String editorID, boolean activate) throws PartInitException(Code)(Java Doc)
public IEditorPart openEditor(IMarker marker) throws PartInitException(Code)(Java Doc)
public IEditorPart openEditor(IMarker marker, boolean activate) throws PartInitException(Code)(Java Doc)
public void openSystemEditor(IFile file) throws PartInitException(Code)(Java Doc)

Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.