-
Notifications
You must be signed in to change notification settings - Fork 2
Set up target pages to test annotation hosted mode
When developing a new plug-in its helpful to have a set of target web pages to use for testing annotation. However, because DomeoClient is often running in "hosted mode" (see Home), a special procedure is required.
-
You have set up the DomeoClient development environment
-
A set of HTML files to use for testing annotation
Place the files you would like to annotate in host mode under in 'DomeoClient/war/tests' folder. Once you do this, you should be able to enter in the filename within the DomeoClient by enter the filename in the URI field. For example, if the file on your computer is located in:
tests/SPL-annotation/section-pages/03bec9ad-cd22-44d3-9b82-2796157de1d1-boxedWarning.html
...then you can enter the following URL to retrieve it:
2. (Optional and experimental!) Configuring the files so that they show up as an autocompletion when typing in the URL field
Edit the method 'addOracleSuggestions' in AddressBarPanel.java to add in your new files so that you can easily see the files when typing only part of the name in the annotator URL entry field (follow the method used for other files currently listed in that method).
3. (Optional and experimental!) Configuring the files so that DomeoClient will send web URLs to the server.
Edit the method 'loadContent' in Domeo.java to add in the logic that will map your local files to URLs (follow the method used for other mappings currently in that method)