Skip to content

Commit

Permalink
Add Commented Code
Browse files Browse the repository at this point in the history
  • Loading branch information
brp14005 committed Mar 3, 2016
1 parent 2697a30 commit 519f761
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions src/main/java/launcher/Controller.java
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,28 @@ public class Controller{
IronFile[] hardDrives = IronFile.listRoots(); // an array of hard drives
menubar.setUseSystemMenuBar(true); //allows use of native menu bars, luckily an easy 1 liner
manager.setRootDirectory(hardDrives);

/**
* Tell the manager that new files have been selected
dirTree.setOnMouseClicked(new EventHandler<MouseEvent>() {
@Override
public void handle(MouseEvent args) {
ObservableList<TreeItem<IronFile>> selectedItems = dirTree.getSelectionModel().getSelectedItems();
manager.setSelectedFiles(selectedItems);
}
});
toolsTagFiles.setOnAction(new EventHandler<ActionEvent>() {
@Override
public void handle(ActionEvent event) {
manager.setFileAttrForSelected();
}
});
toolsDeleteTags.setOnAction(new EventHandler<ActionEvent>() {
@Override
public void handle(ActionEvent event) {
manager.deleteFileAttrForSelected();
}
});*/
}
/**
* Action event triggered when user clicks. This method will add tag directly to IronFile
Expand Down

0 comments on commit 519f761

Please sign in to comment.