/** * Añade un DataSourceQueryChooser (dialogo de selección de orígenes de datos) al sistema. * * @param reader * @param description * @param readerWriterDataSourceClass */ private void addFileDataSourceQueryChoosers( JUMPReader reader, WorkbenchContext context, final String description, Class readerWriterDataSourceClass) { DataSourceQueryChooserManager.get(context.getBlackboard()) .addLoadDataSourceQueryChooser( new GeopistaLoadDxfQueryChooser( readerWriterDataSourceClass, description, extensions(readerWriterDataSourceClass), context) { protected void addFileFilters(JFileChooser chooser) { super.addFileFilters(chooser); InstallStandardDataSourceQueryChoosersPlugIn.addCompressedFileFilter( description, chooser); } // addFileFilters }) .addSaveDataSourceQueryChooser( new GeopistaSaveDxfQueryChooser( readerWriterDataSourceClass, description, extensions(readerWriterDataSourceClass), context)); } // addFileDataSourceQueryChoosers
private Blackboard blackboard() { return context.getBlackboard(); }