Java Doc for FileEditorsPreferencePage.java in  » IDE-Eclipse » ui-workbench » org » eclipse » ui » internal » dialogs » 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.dialogs 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.eclipse.ui.internal.dialogs.FileEditorsPreferencePage

FileEditorsPreferencePage
public class FileEditorsPreferencePage extends PreferencePage implements IWorkbenchPreferencePage,Listener(Code)
The file editors page presents the collection of file names and extensions for which the user has registered editors. It also lets the user add new internal or external (program) editors for a given file name and extension. The user can add an editor for either a specific file name and extension (e.g. report.doc), or for all file names of a given extension (e.g. *.doc) The set of registered editors is tracked by the EditorRegistery available from the workbench plugin.


Field Summary
protected  ButtonaddEditorButton
    
protected  ButtonaddResourceTypeButton
    
protected  ButtondefaultEditorButton
    
protected  LabeleditorLabel
    
protected  TableeditorTable
    
protected  MapeditorsToImages
    
protected  ListimagesToDispose
    
protected  ButtonremoveEditorButton
    
protected  ButtonremoveResourceTypeButton
    
protected  TableresourceTypeTable
    
protected  IWorkbenchworkbench
    


Method Summary
public  voidaddResourceType(String newName, String newExtension)
     Add a new resource type to the collection shown in the top of the page.
protected  ControlcreateContents(Composite parent)
     Creates the page's UI content.
public  voiddispose()
     The preference page is going to be disposed.
protected  IPreferenceStoredoGetPreferenceStore()
     Hook method to get a page specific preference store.
protected  voidfillEditorTable()
    
protected  voidfillResourceTypeTable()
    
protected  IEditorDescriptor[]getAssociatedEditors()
    
protected  ImagegetImage(IEditorDescriptor editor)
     Returns the image associated with the given editor.
protected  FileEditorMappinggetSelectedResourceType()
    
public  voidhandleEvent(Event event)
    
public  voidinit(IWorkbench aWorkbench)
    
protected  TableItemnewResourceTableItem(IFileEditorMapping mapping, int index, boolean selected)
    
public  booleanperformOk()
     This is a hook for sublcasses to do special things when the ok button is pressed.
public  voidpromptForEditor()
     Prompt for editor.
public  voidpromptForResourceType()
     Prompt for resource type.
public  voidremoveSelectedEditor()
    
public  voidremoveSelectedResourceType()
    
public  voidsetSelectedEditorAsDefault()
     Add the selected editor to the default list.
public  voidupdateEnabledState()
     Update the enabled state.
public  voidupdateSelectedResourceType()
     Update the selected type.

Field Detail
addEditorButton
protected Button addEditorButton(Code)



addResourceTypeButton
protected Button addResourceTypeButton(Code)



defaultEditorButton
protected Button defaultEditorButton(Code)



editorLabel
protected Label editorLabel(Code)



editorTable
protected Table editorTable(Code)



editorsToImages
protected Map editorsToImages(Code)



imagesToDispose
protected List imagesToDispose(Code)



removeEditorButton
protected Button removeEditorButton(Code)



removeResourceTypeButton
protected Button removeResourceTypeButton(Code)



resourceTypeTable
protected Table resourceTypeTable(Code)



workbench
protected IWorkbench workbench(Code)





Method Detail
addResourceType
public void addResourceType(String newName, String newExtension)(Code)
Add a new resource type to the collection shown in the top of the page. This is typically called after the extension dialog is shown to the user.
Parameters:
  newName - the new name
Parameters:
  newExtension - the new extension



createContents
protected Control createContents(Composite parent)(Code)
Creates the page's UI content.



dispose
public void dispose()(Code)
The preference page is going to be disposed. So deallocate all allocated SWT resources that aren't disposed automatically by disposing the page (i.e fonts, cursors, etc). Subclasses should reimplement this method to release their own allocated SWT resources.



doGetPreferenceStore
protected IPreferenceStore doGetPreferenceStore()(Code)
Hook method to get a page specific preference store. Reimplement this method if a page don't want to use its parent's preference store.



fillEditorTable
protected void fillEditorTable()(Code)



fillResourceTypeTable
protected void fillResourceTypeTable()(Code)
Place the existing resource types in the table



getAssociatedEditors
protected IEditorDescriptor[] getAssociatedEditors()(Code)



getImage
protected Image getImage(IEditorDescriptor editor)(Code)
Returns the image associated with the given editor.



getSelectedResourceType
protected FileEditorMapping getSelectedResourceType()(Code)



handleEvent
public void handleEvent(Event event)(Code)



init
public void init(IWorkbench aWorkbench)(Code)

See Also:   IWorkbenchPreferencePage



newResourceTableItem
protected TableItem newResourceTableItem(IFileEditorMapping mapping, int index, boolean selected)(Code)



performOk
public boolean performOk()(Code)
This is a hook for sublcasses to do special things when the ok button is pressed. For example reimplement this method if you want to save the page's data into the preference bundle.



promptForEditor
public void promptForEditor()(Code)
Prompt for editor.



promptForResourceType
public void promptForResourceType()(Code)
Prompt for resource type.



removeSelectedEditor
public void removeSelectedEditor()(Code)
Remove the editor from the table



removeSelectedResourceType
public void removeSelectedResourceType()(Code)
Remove the type from the table



setSelectedEditorAsDefault
public void setSelectedEditorAsDefault()(Code)
Add the selected editor to the default list.



updateEnabledState
public void updateEnabledState()(Code)
Update the enabled state.



updateSelectedResourceType
public void updateSelectedResourceType()(Code)
Update the selected type.



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