Things to do with your new Swiss Army Knife
- using the screwdriver to remove the elbow supports from my swivel chair
- using the knife to cut open a milk carton so that it takes up less space in the garbage
Engineering beautiful software | jon aquino labs | personal blog |
posted by Jonathan at 7/31/2005 09:45:00 p.m. | 8 comments
public class LoadDatasetFromFilePlugIn extends AbstractLoadDatasetPlugIn {Note that the LoadSaveDatasetFileMixin has access to the main class (via template methods like #getName, #getLastDirectoryKey), and the main class of course has access to the mixin (via #setSelectedFormat, #getSelectedFormat). Beautiful.
protected void setSelectedFormat(String format) {
loadSaveDatasetFileMixin.setSelectedFormat(format);
}
protected String getSelectedFormat() {
return loadSaveDatasetFileMixin.getSelectedFormat();
}
protected Collection showDialog(WorkbenchContext context) {
final JFileChooser fileChooser = GUIUtil
.createJFileChooserWithExistenceChecking();
fileChooser.setDialogType(JFileChooser.OPEN_DIALOG);
fileChooser.setMultiSelectionEnabled(true);
return loadSaveDatasetFileMixin.showDialog(fileChooser,
LoadFileDataSourceQueryChooser.class, context);
}
private LoadSaveDatasetFileMixin loadSaveDatasetFileMixin = new LoadSaveDatasetFileMixin() {
protected String getName() {
return LoadDatasetFromFilePlugIn.this.getName();
}
protected String getLastDirectoryKey() {
return LoadDatasetFromFilePlugIn.this.getLastDirectoryKey();
}
public boolean isAddingExtensionIfRequested() { return false; }
public File initiallySelectedFile(File currentDirectory) { return null; }
};
}
posted by Jonathan at 7/28/2005 10:05:00 p.m. | 15 comments
posted by Jonathan at 7/23/2005 08:53:00 p.m. | 2 comments
posted by Jonathan at 7/22/2005 10:20:00 p.m. | 4 comments
--
Jon Aquino (Victoria BC Canada)
http://jonathanaquino.com Emails in Inbox: 109
ICQ: 334568010 MSN/Yahoo: Jonathan_Aquino
posted by Jonathan at 7/20/2005 06:53:00 p.m. | 5 comments
posted by Jonathan at 7/15/2005 10:41:00 p.m. | 9 comments
posted by Jonathan at 7/15/2005 10:14:00 p.m. | 8 comments
posted by Jonathan at 7/15/2005 09:26:00 p.m. | 9 comments
posted by Jonathan at 7/10/2005 10:15:00 p.m. | 2 comments
Original: una vez le di una respuesta ,por supuesto que ayudado por el google traslateWindows only. Works with any IM program.
PROMPT: once I gave him a response, surely helped by the google traslate
Babelfish: once I gave an answer him, of course that helped by google traslate
posted by Jonathan at 7/10/2005 07:44:00 p.m. | 1 comments
posted by Jonathan at 7/09/2005 09:01:00 a.m. | 4 comments