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


org.eclipse.ui.internal.ICompatibleWorkbenchPage

All known Subclasses:   org.eclipse.ui.internal.CompatibleWorkbenchPage,
ICompatibleWorkbenchPage
public interface ICompatibleWorkbenchPage (Code)
Internal interface used in providing increased binary compatibility for pre-3.0 plug-ins. This declaration masks the empty interface of the same name declared in the Workbench proper. This interface declares IWorkbenchPage that existed in 2.1 but were removed in 3.0 because they referenced resource API.

Plug-ins should not refer to this type or its containing fragment from their class path. It is intended only to provide binary compatibility for pre-3.0 plug-ins, and should not be referenced at development time.


since:
   3.0




Method Summary
public  IEditorPartopenEditor(IFile input)
     Opens an editor on the given file resource.

If this page already has an editor open on the target object that editor is activated; otherwise, a new editor is opened.

An appropriate editor for the input is determined using a multistep process.

  1. The workbench editor registry is consulted to determine if an editor extension has been registered for the file type.
public  IEditorPartopenEditor(IFile input, String editorId, boolean activate)
     Opens an editor on the given file resource.

If this page already has an editor open on the target object that editor is brought to front; otherwise, a new editor is opened.

public  IEditorPartopenEditor(IFile input, String editorId)
     Opens an editor on the given file resource.

If this page already has an editor open on the target object that editor is activated; otherwise, a new editor is opened.

The editor type is determined by mapping editorId to an editor extension registered with the workbench.

public  IEditorPartopenEditor(IMarker marker)
     Opens an editor on the file resource of the given marker.

If this page already has an editor open on the target object that editor is activated; otherwise, a new editor is opened.

public  IEditorPartopenEditor(IMarker marker, boolean activate)
     Opens an editor on the file resource of the given marker.

If this page already has an editor open on the target object that editor is brought to front; otherwise, a new editor is opened.

public  voidopenSystemEditor(IFile input)
     Opens an operating system editor on a given file.



Method Detail
openEditor
public IEditorPart openEditor(IFile input) throws PartInitException(Code)
Opens an editor on the given file resource.

If this page already has an editor open on the target object that editor is activated; otherwise, a new editor is opened.

An appropriate editor for the input is determined using a multistep process.

  1. The workbench editor registry is consulted to determine if an editor extension has been registered for the file type. If so, an instance of the editor extension is opened on the file. See IEditorRegistry.getDefaultEditor(IFile).
  2. Next, the native operating system will be consulted to determine if a native editor exists for the file type. If so, a new process is started and the native editor is opened on the file.
  3. If all else fails the file will be opened in a default text editor.


Parameters:
  input - the file to edit an open and active editor, or null if a systemeditor was opened
exception:
  PartInitException - if the editor could not be initialized



openEditor
public IEditorPart openEditor(IFile input, String editorId, boolean activate) throws PartInitException(Code)
Opens an editor on the given file resource.

If this page already has an editor open on the target object that editor is brought to front; otherwise, a new editor is opened. If activate == true the editor will be activated.

The editor type is determined by mapping editorId to an editor extension registered with the workbench. An editor id is passed rather than an editor object to prevent the accidental creation of more than one editor for the same input. It also guarantees a consistent lifecycle for editors, regardless of whether they are created by the user or restored from saved data.


Parameters:
  input - the file to edit
Parameters:
  editorId - the id of the editor extension to use or null
Parameters:
  activate - if true the editor will be activated an open and active editor
exception:
  PartInitException - if the editor could not be initialized



openEditor
public IEditorPart openEditor(IFile input, String editorId) throws PartInitException(Code)
Opens an editor on the given file resource.

If this page already has an editor open on the target object that editor is activated; otherwise, a new editor is opened.

The editor type is determined by mapping editorId to an editor extension registered with the workbench. An editor id is passed rather than an editor object to prevent the accidental creation of more than one editor for the same input. It also guarantees a consistent lifecycle for editors, regardless of whether they are created by the user or restored from saved data.


Parameters:
  editorId - the id of the editor extension to use
Parameters:
  input - the file to edit an open and active editor
exception:
  PartInitException - if the editor could not be initialized



openEditor
public IEditorPart openEditor(IMarker marker) throws PartInitException(Code)
Opens an editor on the file resource of the given marker.

If this page already has an editor open on the target object that editor is activated; otherwise, a new editor is opened. The cursor and selection state of the editor is then updated from information recorded in the marker.

If the marker contains an EDITOR_ID_ATTR attribute the attribute value will be used to determine the editor type to be opened. If not, the registered editor for the marker resource will be used.


Parameters:
  marker - the marker to open an open and active editor, or null if a system editor was opened
exception:
  PartInitException - if the editor could not be initialized
See Also:   IEditorPart.gotoMarker



openEditor
public IEditorPart openEditor(IMarker marker, boolean activate) throws PartInitException(Code)
Opens an editor on the file resource of the given marker.

If this page already has an editor open on the target object that editor is brought to front; otherwise, a new editor is opened. If activate == true the editor will be activated. The cursor and selection state of the editor are then updated from information recorded in the marker.

If the marker contains an EDITOR_ID_ATTR attribute the attribute value will be used to determine the editor type to be opened. If not, the registered editor for the marker resource will be used.


Parameters:
  marker - the marker to open
Parameters:
  activate - if true the editor will be activated an open editor, or null if a system editor was opened
exception:
  PartInitException - if the editor could not be initialized
See Also:   IEditorPart.gotoMarker



openSystemEditor
public void openSystemEditor(IFile input) throws PartInitException(Code)
Opens an operating system editor on a given file. Once open, the workbench has no knowledge of the editor or the state of the file being edited. Users are expected to perform a "Local Refresh" from the workbench user interface.
Parameters:
  input - the file to edit
exception:
  PartInitException - if the editor could not be opened.



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