monotone

monotone Commit Details

Date:2005-04-03 22:16:49 (14 years 2 months ago)
Author:jcrisp@s-r-s.co.uk
Branch:net.venge.monotone.contrib.monotree
Commit:32777a1fe21dc5f93d0900f7c5bc3f175d495c5d
Parents: 9f5e3907af6712f26f3b3a42fdd82742a78664a4
Message:Now defaults the file chooser to the directory containing the current database

Changes:
Mcontrib/monotree/GXLViewer.java (2 diffs)
Mcontrib/monotree/Monotone.java (1 diff)

File differences

contrib/monotree/GXLViewer.java
281281
282282
283283
284
285
286
284287
285288
286289
......
527530
528531
529532
533
534
535
530536
531537
532538
button.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent ae) {
JFileChooser fc = new JFileChooser(".");
if(database!=null) {
fc.setCurrentDirectory(database.getDatabaseFile());
}
fc.setFileFilter(new MonotoneFileFilter());
int choice = fc.showOpenDialog(panel);
if (choice == JFileChooser.APPROVE_OPTION) {
}
}
/**
* Class which encapsulates the behaviour when the user clicks on a node in the graph
*/
private class OnClickAction implements EventListener {
private void addInfo(JPanel info,GXLNode gxlNode,String infoSet) {
contrib/monotree/Monotone.java
8282
8383
8484
85
86
87
88
89
90
91
8592
8693
8794
}
/**
* Get the location of this database
*/
File getDatabaseFile() {
return database;
}
/**
* Get the name of the monotone database (without the full path)
* TODO: Should this strip the .db suffix?
*

Archive Download the corresponding diff file

Branches

Tags

Quick Links:     www.monotone.ca    -     Downloads    -     Documentation    -     Wiki    -     Code Forge    -     Build Status