Revision 10661 trunk/applications/appgvSIG/src/com/iver/cit/gvsig/FiltroExtension.java

View differences:

FiltroExtension.java
123 123
	 *
124 124
	 */
125 125
	protected void doExecute(){
126
		try{
127
			DefaultExpressionDataSource ds = new DefaultExpressionDataSource();
128
			ds.setTable(dataSource);
129

  
130
			FilterDialog dlg = new FilterDialog(filterTitle);
131
			dlg.addExpressionListener(this);
132
			dlg.addExceptionListener(new ExceptionListener() {
133
				public void exceptionThrown(Throwable t) {
134
					NotificationManager.addError(t.getMessage(), t);
135
				}
136
			});
137

  
138
			dlg.setModel(ds);
139
			PluginServices.getMDIManager().addWindow(dlg);
140
		} catch (DriverLoadException e) {
141
			// TODO Auto-generated catch block
142
			e.printStackTrace();
143
		}
126
		DefaultExpressionDataSource ds = new DefaultExpressionDataSource();
127
		ds.setTable(dataSource);
128
		FilterDialog dlg = new FilterDialog(filterTitle);
129
		dlg.addExpressionListener(this);
130
		dlg.addExceptionListener(new ExceptionListener() {
131
			public void exceptionThrown(Throwable t) {
132
				NotificationManager.addError(t.getMessage(), t);
133
			}
134
		});
135
		dlg.setModel(ds);
136
		PluginServices.getMDIManager().addWindow(dlg);
144 137
	}
145 138

  
146 139
	/**

Also available in: Unified diff