8.7. RFRS ConsiderationsThe "User Interface" section of the RFRS Requirements includes eleven itemsfive requirements and six best practicesdealing with editors. All of them are derived from the Eclipse UI Guidelines. 8.7.1. Using an editor to edit or browse (RFRS 3.5.9)User Interface Guideline #6.1 is a requirement that states:
For this test, demonstrate the editors provided by your plug-in. Show the file, document, or other input type that they are used to edit or browse. Based on the examples presented in this chapter, show how the Property File editor is used to edit property files. 8.7.2. Editor lifecycle (RFRS 3.5.10)User Interface Guideline #6.2 is a requirement that states:
To pass this test, open your editor on a file and show that the editor is initially unmodified. Then make a change using the editor and show that an asterisk appears in the editor's tab. Finally, save the editor and show that the changes have been committed to the file and that the editor has gone back to its unmodified state. See Section 8.4, Editor Lifecycle, on page 350 for more information about editor lifecycles. 8.7.3. Accessing global actions (RFRS 3.5.11)User Interface Guideline #6.9 is a requirement that states:
Show that your editor supports any relevant global actions such as cut, copy, and paste. Trigger those actions from within your editor and then show that they may also be triggered from the workbench's menu bar with the same effect. For the Properties editor, you would show that global actions, such as delete, can be accessed within both the Properties and Source pages of the editor. See Section 8.5.2.1, Global actions, on page 358 for more about hooking up global actions. 8.7.4. Closing when the object is deleted (RFRS 3.5.12)User Interface Guideline #6.16 is a requirement that states:
Show that your editor is closed automatically any time an input object to your editor (e.g., a specific resource) is deleted. For the Properties editor, you would create a new properties file, open it with the Properties editor, and then delete the file in the Navigator view. If you implement your editor using the editor framework described in this chapter, the framework should automatically enforce this guideline. 8.7.5. Synchronize external changes (RFRS 3.5.14)User Interface Guideline #6.30 is a requirement that states:
Open your editor on a file and make a change. Next, modify the file outside Eclipse. Finally, switch back to Eclipse and attempt to save the file. Show that you are prompted to override the external changes or to cancel the save operation. If you implement your editor using the editor framework described in this chapter, the framework should automatically enforce this guideline. 8.7.6. Registering editor menus (RFRS 5.3.5.2)User Interface Guideline #6.14 is a best practice that states:
To pass this test, show that your editor's context menus have been registered with the platform. If they are properly registered, you should see the system contributing appropriate context menu items. See Section 8.5.1, Context menu, on page 354 for more about context menus. 8.7.7. Editor action filters (RFRS 5.3.5.3)User Interface Guideline #6.15 is a best practice that states:
For this test, show that menu action filtering is in effect for the objects edited by your editor. See Section 6.3.2, Action filtering and enablement, on page 227 for more about using action filters and Section 8.5.1.2, Creating the context menu, on page 356 for more about building context menus that can be extended by other plug-ins. 8.7.8. Unsaved editor modifications (RFRS 5.3.5.4)User Interface Guideline #6.17 is a best practice that states:
Start by opening your editor on a file and then making a change. Next, select the file in the Navigator view and delete it. Show that a warning message is displayed, informing the user that the editor contains unsaved changes. To pass the best practice component of this guideline, the user should be given the option to save the file to another location. If you implement your editor using the editor framework described in this chapter, the framework should automatically enforce this guideline. 8.7.9. Prefix dirty resources (RFRS 5.3.5.5)User Interface Guideline #6.18 is a best practice that states:
This is essentially a subset of Guideline #14. Edit a file with your editor and show that the filename is prefixed with an asterisk. If you implement your editor using the editor framework described in this chapter, the framework should automatically enforce this guideline. 8.7.10. Editor outline view (RFRS 5.3.5.6)User Interface Guideline #6.20 is a best practice that states:
For this test, open your editor and show that it updates the contents of the Outline view and allows the data's structure to be navigated. If a different instance of your editor is selected, show that the Outline view's contents change appropriately. See Section 8.4, Editor Lifecycle, on page 350 for information about linking an editor to the Outline view. 8.7.11. Synchronize with outline view (RFRS 5.3.5.7)User Interface Guideline #6.21 is a best practice that states:
Select an item in the Outline view and show that it selects the corresponding item in the editor. Next, select an item in the editor and show that it selects the corresponding item in the Outline view. |