/[schmitzm]/branches/2.2.x/src/skrueger/geotools/labelsearch/SearchMapDialog.java
ViewVC logotype

Diff of /branches/2.2.x/src/skrueger/geotools/labelsearch/SearchMapDialog.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

branches/1.0-gt2-2.6/src/skrueger/geotools/labelsearch/SearchMapDialog.java revision 418 by alfonx, Mon Sep 28 15:36:11 2009 UTC branches/2.2.x/src/skrueger/geotools/labelsearch/SearchMapDialog.java revision 897 by alfonx, Mon Jun 7 14:14:39 2010 UTC
# Line 25  Line 25 
25   *   *
26   * Contributors:   * Contributors:
27   *     Martin O. J. Schmitz - initial API and implementation   *     Martin O. J. Schmitz - initial API and implementation
28   *     Stefan A. Krüger - additional utility classes   *     Stefan A. Tzeggai - additional utility classes
29   ******************************************************************************/   ******************************************************************************/
30  /*  /*
31   * SearchMapDialog.java   * SearchMapDialog.java
# Line 57  import javax.swing.SwingWorker; Line 57  import javax.swing.SwingWorker;
57  import net.miginfocom.swing.MigLayout;  import net.miginfocom.swing.MigLayout;
58    
59  import org.apache.log4j.Logger;  import org.apache.log4j.Logger;
 import org.geotools.swing.ExceptionMonitor;  
60    
61  import schmitzm.geotools.gui.JMapPane;  import schmitzm.geotools.gui.SelectableXMapPane;
62    import schmitzm.swing.ExceptionDialog;
63  import schmitzm.swing.SortableJTable;  import schmitzm.swing.SortableJTable;
64  import schmitzm.swing.SwingUtil;  import schmitzm.swing.SwingUtil;
65    
# Line 83  public class SearchMapDialog extends jav Line 83  public class SearchMapDialog extends jav
83                  searchTextField.setText(text);                  searchTextField.setText(text);
84          }          }
85    
86          private final JMapPane mapPane;          private final SelectableXMapPane mapPane;
87    
88          /**          /**
89           * The dialog will be relative to the {@link JMapPane}s parent           * The dialog will be relative to the {@link SelectableXMapPane}s parent
90           * {@link Window}.           * {@link Window}.
91           *           *
92           * @param parent           * @param parent
# Line 95  public class SearchMapDialog extends jav Line 95  public class SearchMapDialog extends jav
95           * @param windowTitle           * @param windowTitle
96           *            A title to be used for the dialog.           *            A title to be used for the dialog.
97           */           */
98          public SearchMapDialog(LabelSearch labelSearch, JMapPane mapPane,          public SearchMapDialog(LabelSearch labelSearch, SelectableXMapPane mapPane,
99                          final String windowTitle) {                          final String windowTitle) {
100                  super(SwingUtil.getParentWindow(mapPane), windowTitle);                  super(SwingUtil.getParentWindow(mapPane), windowTitle);
101                  this.labelSearch = labelSearch;                  this.labelSearch = labelSearch;
# Line 157  public class SearchMapDialog extends jav Line 157  public class SearchMapDialog extends jav
157          }          }
158    
159          /**          /**
160           * Performes a search on the {@link JMapPane}'s labels and outputs the           * Performes a search on the {@link SelectableXMapPane}'s labels and outputs the
161           * possible numerouse results.           * possible numerouse results.
162           *           *
163           * @param text           * @param text
# Line 185  public class SearchMapDialog extends jav Line 185  public class SearchMapDialog extends jav
185                                          showMultipleResults(get());                                          showMultipleResults(get());
186                                  } catch (InterruptedException e) {                                  } catch (InterruptedException e) {
187                                          LOGGER.error(e);                                          LOGGER.error(e);
188                                          ExceptionMonitor.show(SearchMapDialog.this, e);                                          ExceptionDialog.show(SearchMapDialog.this, e);
189                                  } catch (ExecutionException e) {                                  } catch (ExecutionException e) {
190                                          LOGGER.error(e);                                          LOGGER.error(e);
191                                          ExceptionMonitor.show(SearchMapDialog.this, e);                                          ExceptionDialog.show(SearchMapDialog.this, e);
192                                  }                                  }
193                          }                          }
194                  };                  };

Legend:
Removed from v.418  
changed lines
  Added in v.897

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26