Java Doc for PageLayout.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.PageLayout

PageLayout
public class PageLayout implements IPageLayout(Code)
This factory is used to define the initial layout of a part sash container.

Design notes: The design of IPageLayout is a reflection of three requirements:

  1. A mechanism is required to define the initial layout for a page.
  2. The views and editors within a page will be persisted between sessions.
  3. The view and editor lifecycle for (1) and (2) should be identical.

In reflection of these requirements, the following strategy has been implemented for layout definition.

  1. A view extension is added to the workbench registry for the view. This extension defines the extension id and extension class.
  2. A view is added to a page by invoking one of the add methods in IPageLayout. The type of view is passed as an extension id, rather than a handle. The page layout will map the extension id to a view class, create an instance of the class, and then add the view to the page.




Constructor Summary
public  PageLayout()
     Constructs a new PageLayout for other purposes.
public  PageLayout(ViewSashContainer container, ViewFactory viewFactory, LayoutPart editorFolder, IPerspectiveDescriptor descriptor)
     Constructs a new PageLayout for the normal case of creating a new perspective.

Method Summary
public  voidaddActionSet(String actionSetID)
     Adds an action set to the page.
Parameters:
  actionSetID - Identifies the action set extension to use.
public  voidaddFastView(String id)
    
public  voidaddFastView(String id, float ratio)
    
public  voidaddNewWizardShortcut(String id)
     Adds a creation wizard to the File New menu.
public  voidaddPerspectiveShortcut(String id)
     Adds a perspective shortcut to the Perspective menu.
public  voidaddPlaceholder(String viewId, int relationship, float ratio, String refId)
    
public  voidaddShowInPart(String id)
    
public  voidaddShowViewShortcut(String id)
     Adds a view to the Show View menu.
public  voidaddStandaloneView(String viewId, boolean showTitle, int relationship, float ratio, String refId)
    
public  voidaddStandaloneViewPlaceholder(String viewId, int relationship, float ratio, String refId, boolean showTitle)
    
public  voidaddView(String viewId, int relationship, float ratio, String refId)
    
public  voidaddView(String viewId, int relationship, float ratio, String refId, boolean minimized)
     Convenience method to allow setting the initial minimized state if a new stack is created.
 booleancheckPartInLayout(String partId)
     Verify that the part is already present in the layout and cannot be added again.
 booleancheckValidPlaceholderId(String id)
     Checks whether the given id is a valid placeholder id.
public  IFolderLayoutcreateFolder(String folderId, int relationship, float ratio, String refId)
    
public  IPlaceholderFolderLayoutcreatePlaceholderFolder(String folderId, int relationship, float ratio, String refId)
    
public  ArrayListgetActionSets()
     the action set list for the page.
public  IPerspectiveDescriptorgetDescriptor()
    
public  StringgetEditorArea()
     an identifier for the editor area.
public  intgetEditorReuseThreshold()
    
public  ArrayListgetFastViews()
    
public  IPlaceholderFolderLayoutgetFolderForView(String viewId)
    
public  MapgetIDtoViewLayoutRecMap()
    
public  ListgetMinimizedStacks()
    
public  ArrayListgetNewWizardShortcuts()
     the new wizard shortcuts associated with the page.
public  ArrayListgetPerspectiveShortcuts()
     the perspective shortcuts associated with the page.
 LayoutPartgetRefPart(String partID)
    
public  ViewSashContainergetRootLayoutContainer()
    
public  ArrayListgetShowInPartIds()
     the ids of the parts to list in the Show In...
public  ArrayListgetShowViewShortcuts()
     the show view shortcuts associated with the page.
 ViewFactorygetViewFactory()
    
public  IViewLayoutgetViewLayout(String viewId)
    
 ViewLayoutRecgetViewLayoutRec(String id, boolean create)
     Returns the view layout record for the given view id, or null if not found.
public  booleanisEditorAreaVisible()
    
public  booleanisFixed()
    
public  voidremovePlaceholder(String id)
     Removes any existing placeholder with the given id.
public  voidsetEditorAreaVisible(boolean showEditorArea)
    
public  voidsetEditorReuseThreshold(int openEditors)
    
public  voidsetFixed(boolean fixed)
    
 voidsetFolderPart(String viewId, ContainerPlaceholder container)
     Map the folder part containing the given view ID.
 voidsetFolderPart(String viewId, ViewStack folder)
     Map the folder part containing the given view ID.
 voidsetRefPart(String partID, LayoutPart part)
     Map an ID to a part.
public  voidstackPlaceholder(String viewId, String refId)
     Stack a placeholder on top of another.
public  voidstackView(String viewId, String refId)
     Stack one view on top of another.
public static  intswtConstantToLayoutPosition(int swtConstant)
     Converts SWT position constants into layout position constants.


Constructor Detail
PageLayout
public PageLayout()(Code)
Constructs a new PageLayout for other purposes.



PageLayout
public PageLayout(ViewSashContainer container, ViewFactory viewFactory, LayoutPart editorFolder, IPerspectiveDescriptor descriptor)(Code)
Constructs a new PageLayout for the normal case of creating a new perspective.




Method Detail
addActionSet
public void addActionSet(String actionSetID)(Code)
Adds an action set to the page.
Parameters:
  actionSetID - Identifies the action set extension to use. It mustexist within the workbench registry.



addFastView
public void addFastView(String id)(Code)



addFastView
public void addFastView(String id, float ratio)(Code)



addNewWizardShortcut
public void addNewWizardShortcut(String id)(Code)
Adds a creation wizard to the File New menu. The id must name a new wizard extension contributed to the workbench's extension point (named "org.eclipse.ui.newWizards").
Parameters:
  id - the wizard id



addPerspectiveShortcut
public void addPerspectiveShortcut(String id)(Code)
Adds a perspective shortcut to the Perspective menu. The id must name a perspective extension contributed to the workbench's extension point (named "org.eclipse.ui.perspectives").
Parameters:
  id - the perspective id



addPlaceholder
public void addPlaceholder(String viewId, int relationship, float ratio, String refId)(Code)



addShowInPart
public void addShowInPart(String id)(Code)



addShowViewShortcut
public void addShowViewShortcut(String id)(Code)
Adds a view to the Show View menu. The id must name a view extension contributed to the workbench's extension point (named "org.eclipse.ui.views").
Parameters:
  id - the view id



addStandaloneView
public void addStandaloneView(String viewId, boolean showTitle, int relationship, float ratio, String refId)(Code)



addStandaloneViewPlaceholder
public void addStandaloneViewPlaceholder(String viewId, int relationship, float ratio, String refId, boolean showTitle)(Code)



addView
public void addView(String viewId, int relationship, float ratio, String refId)(Code)



addView
public void addView(String viewId, int relationship, float ratio, String refId, boolean minimized)(Code)
Convenience method to allow setting the initial minimized state if a new stack is created. Used by the 'perspectiveExtension' reader.
since:
   3.3



checkPartInLayout
boolean checkPartInLayout(String partId)(Code)
Verify that the part is already present in the layout and cannot be added again. Log a warning message.



checkValidPlaceholderId
boolean checkValidPlaceholderId(String id)(Code)
Checks whether the given id is a valid placeholder id. A placeholder id may be simple or compound, and can optionally contain a wildcard.
Parameters:
  id - the placeholder id true if the given id is a valid placeholder id, false otherwise



createFolder
public IFolderLayout createFolder(String folderId, int relationship, float ratio, String refId)(Code)



createPlaceholderFolder
public IPlaceholderFolderLayout createPlaceholderFolder(String folderId, int relationship, float ratio, String refId)(Code)



getActionSets
public ArrayList getActionSets()(Code)
the action set list for the page. This is List of Strings.



getDescriptor
public IPerspectiveDescriptor getDescriptor()(Code)



getEditorArea
public String getEditorArea()(Code)
an identifier for the editor area. The editor area isautomatically added to each layout before any other part. It should beused as a reference part for other views.



getEditorReuseThreshold
public int getEditorReuseThreshold()(Code)



getFastViews
public ArrayList getFastViews()(Code)
ArrayList



getFolderForView
public IPlaceholderFolderLayout getFolderForView(String viewId)(Code)



getIDtoViewLayoutRecMap
public Map getIDtoViewLayoutRecMap()(Code)

since:
   3.0



getMinimizedStacks
public List getMinimizedStacks()(Code)



getNewWizardShortcuts
public ArrayList getNewWizardShortcuts()(Code)
the new wizard shortcuts associated with the page. This is a List of Strings.



getPerspectiveShortcuts
public ArrayList getPerspectiveShortcuts()(Code)
the perspective shortcuts associated with the page. This is a List of Strings.



getRefPart
LayoutPart getRefPart(String partID)(Code)
the part for a given ID.



getRootLayoutContainer
public ViewSashContainer getRootLayoutContainer()(Code)
the top level layout container.



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



getShowViewShortcuts
public ArrayList getShowViewShortcuts()(Code)
the show view shortcuts associated with the page. This is a List of Strings.



getViewFactory
ViewFactory getViewFactory()(Code)
the ViewFactory for this PageLayout.
since:
   3.0



getViewLayout
public IViewLayout getViewLayout(String viewId)(Code)



getViewLayoutRec
ViewLayoutRec getViewLayoutRec(String id, boolean create)(Code)
Returns the view layout record for the given view id, or null if not found. If create is true, the record is created if it doesn't already exist.
since:
   3.0



isEditorAreaVisible
public boolean isEditorAreaVisible()(Code)



isFixed
public boolean isFixed()(Code)



removePlaceholder
public void removePlaceholder(String id)(Code)
Removes any existing placeholder with the given id.
Parameters:
  id - the id for the placeholder
since:
   3.1



setEditorAreaVisible
public void setEditorAreaVisible(boolean showEditorArea)(Code)



setEditorReuseThreshold
public void setEditorReuseThreshold(int openEditors)(Code)



setFixed
public void setFixed(boolean fixed)(Code)



setFolderPart
void setFolderPart(String viewId, ContainerPlaceholder container)(Code)
Map the folder part containing the given view ID.
Parameters:
  viewId - the part ID.
Parameters:
  container - the ContainerPlaceholder.



setFolderPart
void setFolderPart(String viewId, ViewStack folder)(Code)
Map the folder part containing the given view ID.
Parameters:
  viewId - the part ID.
Parameters:
  folder - the ViewStack.



setRefPart
void setRefPart(String partID, LayoutPart part)(Code)
Map an ID to a part.
Parameters:
  partId - the part ID.
Parameters:
  part - the LayoutPart.



stackPlaceholder
public void stackPlaceholder(String viewId, String refId)(Code)
Stack a placeholder on top of another.
Parameters:
  viewId - the view ID.
Parameters:
  refId - the reference ID.



stackView
public void stackView(String viewId, String refId)(Code)
Stack one view on top of another.
Parameters:
  viewId - the view ID.
Parameters:
  refId - the reference ID.



swtConstantToLayoutPosition
public static int swtConstantToLayoutPosition(int swtConstant)(Code)
Converts SWT position constants into layout position constants.
Parameters:
  swtConstant - one of SWT.TOP, SWT.BOTTOM, SWT.LEFT, or SWT.RIGHT one of IPageLayout.TOP, IPageLayout.BOTTOM, IPageLayout.LEFT, IPageLayout.RIGHT, or -1 indicating aninvalid input
since:
   3.0



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.