Revision 7028

View differences:

trunk/applications/appgvSIG/src/com/iver/cit/gvsig/gui/filter/FilterDialog.java
121 121
	private javax.swing.JScrollPane jScrollPane2 = null;
122 122
	private javax.swing.JButton btnParentesis = null;
123 123
	private ExceptionHandlingSupport exceptionHandlingSupport = new ExceptionHandlingSupport();
124
	
125
	private String title;
124 126

  
125 127
	/**
126 128
	 * This is the default constructor
127 129
	 */
128
	public FilterDialog() {
130
	public FilterDialog(String _title) {		
129 131
		super();
130 132
		initialize();
133
		title = _title;
131 134
	}
135
	/**
136
	 * This is the default constructor
137
	 */
138
	public FilterDialog() {		
139
		super();
140
		initialize();
141
	}
132 142

  
133 143
	/**
134 144
	 * DOCUMENT ME!
......
1055 1065
		WindowInfo vi = new WindowInfo(WindowInfo.ICONIFIABLE);
1056 1066
		vi.setWidth(480);
1057 1067
		vi.setHeight(362);
1058

  
1068
		vi.setTitle(PluginServices.getText( this, "filtro") + " (" + title + ")");
1059 1069
		return vi;
1060 1070
	}
1061 1071

  
trunk/applications/appgvSIG/src/com/iver/cit/gvsig/FiltroExtension.java
74 74
public class FiltroExtension extends Extension implements ExpressionListener {
75 75
	protected SelectableDataSource dataSource = null;
76 76
	protected Table vista;
77
	private String filterTitle;
77 78

  
78 79
	/**
79 80
	 * DOCUMENT ME!
......
93 94

  
94 95
				if (v instanceof Table) {
95 96
					vista = (Table) v;
97
					
96 98
					dataSource = (SelectableDataSource)vista.getModel().getModelo().getRecordset();
99
					filterTitle = vista.getModel().getName();
100
					
97 101
				} else if (v instanceof com.iver.cit.gvsig.gui.View) {
98 102
					ProjectView pv = ((com.iver.cit.gvsig.gui.View) v).getModel();
99

  
103
					filterTitle = ((com.iver.cit.gvsig.gui.View) v).getModel().getName();
100 104
					FLayer layer = pv.getMapContext()
101 105
					.getLayers().getActives()[0];
102 106
					dataSource = pv.getProject().getDataSourceByLayer(layer);
......
118 122
			DefaultExpressionDataSource ds = new DefaultExpressionDataSource();
119 123
			ds.setTable(dataSource);
120 124

  
121
			FilterDialog dlg = new FilterDialog();
125
			FilterDialog dlg = new FilterDialog(filterTitle);
122 126
			dlg.addExpressionListener(this);
123 127
			dlg.addExceptionListener(new ExceptionListener() {
124 128
				public void exceptionThrown(Throwable t) {

Also available in: Unified diff