@@ -162,12 +162,12 @@ public final class Controller implements Initializable {
162162 * @param title the title of the new window.
163163 * @param data the parameters passed to the Controller.
164164 * @param <C> a Controller that can pass data to and recieve data from this method (extending
165- * AbstractDataSharingController ).
165+ * DataSharingController ).
166166 * @param <T> the type of data passed to and from the Controller.
167167 * @return the data after it has been modified by the Controller.
168168 */
169169 @ FXML @ SuppressWarnings ("unchecked" )
170- private <C extends AbstractDataSharingController <T >, T > ArrayList <T > showWindow (String fxml , String title , ArrayList <T > data ){
170+ private <C extends DataSharingController <T >, T > ArrayList <T > showWindow (String fxml , String title , ArrayList <T > data ){
171171 try {
172172 FXMLLoader loader = new FXMLLoader (getClass ().getResource (fxml ));
173173 Parent parent = loader .load ();
@@ -739,20 +739,7 @@ private File showLoadFileDialog(String title, ExtensionFilter extFilter){
739739 * Creates an instructional alert.
740740 */
741741 private void showInstructionsAlert () {
742- Alert instrAlert = new Alert (Alert .AlertType .INFORMATION );
743- instrAlert .setTitle ("Instructions on using Drawing Turtles" );
744- instrAlert .setHeaderText (null );
745- instrAlert .setContentText (
746- "How to use Drawing Turtles:\n Click once on the button corresponding to the graph element you want to" +
747- " add to the canvas, then click somewhere on the canvas. Add a name (even in .ttl syntax!) an" +
748- "d the item will be created in that position. \n In regards to the Property button, you must c" +
749- "lick on a valid (already existing) element in the graph as the subject, and then another as " +
750- "the object. If you click on something that is not a Class or Literal, you will need toclick " +
751- "the subject-object pair again.\n Feel free to add elements near the edge of the graph, it aut" +
752- "omatically resizes! "
753- );
754-
755- instrAlert .showAndWait ();
742+ showWindow ("/view/instructions.fxml" , "Instructions for Drawing Turtles" , null );
756743 }
757744
758745 /**
0 commit comments