Revision 10682
trunk/extensions/extWFS2/src/com/iver/cit/gvsig/gui/toc/WFSVectorialPropsTocMenuEntry.java | ||
---|---|---|
5 | 5 |
import javax.swing.JDialog; |
6 | 6 |
import javax.swing.JMenuItem; |
7 | 7 |
|
8 |
import com.hardcode.gdbms.driver.exceptions.ReadDriverException; |
|
9 | 8 |
import com.iver.andami.PluginServices; |
10 | 9 |
import com.iver.cit.gvsig.fmap.layers.FLayer; |
11 |
import com.iver.cit.gvsig.fmap.layers.FLyrVect; |
|
12 | 10 |
import com.iver.cit.gvsig.fmap.layers.FLyrWFS; |
13 |
import com.iver.cit.gvsig.fmap.layers.layerOperations.ClassifiableVectorial; |
|
14 |
import com.iver.cit.gvsig.project.documents.view.legend.gui.FThemeManagerWindow; |
|
11 |
import com.iver.cit.gvsig.project.documents.view.legend.gui.ThemeManagerWindow; |
|
15 | 12 |
import com.iver.cit.gvsig.project.documents.view.toc.TocMenuEntry; |
16 | 13 |
import com.iver.cit.gvsig.project.documents.view.toc.gui.FPopupMenu; |
17 | 14 |
|
... | ... | |
59 | 56 |
* |
60 | 57 |
* $Id$ |
61 | 58 |
* $Log$ |
62 |
* Revision 1.5 2007-03-06 17:06:25 caballero |
|
59 |
* Revision 1.6 2007-03-09 11:28:44 jaume |
|
60 |
* new properties panel |
|
61 |
* |
|
62 |
* Revision 1.5 2007/03/06 17:06:25 caballero |
|
63 | 63 |
* Exceptions |
64 | 64 |
* |
65 | 65 |
* Revision 1.4 2006/10/02 09:09:45 jorpiell |
... | ... | |
100 | 100 |
} |
101 | 101 |
public void actionPerformed(ActionEvent e) { |
102 | 102 |
FLayer[] actives = getMapContext().getLayers().getActives(); |
103 |
FThemeManagerWindow fThemeManagerWindow;
|
|
104 |
if (actives.length==1) { |
|
105 |
System.out.println("openPliegoThemeProperties(): Una sola capa. Abrimos el panel para la capa " + actives[0]); |
|
106 |
fThemeManagerWindow = new FThemeManagerWindow(); |
|
107 |
try { |
|
108 |
fThemeManagerWindow.setMapContext(getMapContext()); |
|
109 |
} catch (ReadDriverException e1) { |
|
110 |
e1.printStackTrace(); |
|
111 |
} |
|
112 |
//PluginServices.getMDIManager().addView(fThemeManagerWindow); |
|
113 |
if (PluginServices.getMainFrame() == null) { |
|
114 |
JDialog dlg = new JDialog(); |
|
115 |
fThemeManagerWindow.setPreferredSize(fThemeManagerWindow.getSize()); |
|
116 |
dlg.getContentPane().add(fThemeManagerWindow); |
|
117 |
dlg.setModal(false); |
|
118 |
dlg.pack(); |
|
119 |
dlg.show(); |
|
120 |
} else { |
|
121 |
PluginServices.getMDIManager().addWindow(fThemeManagerWindow); |
|
122 |
} |
|
123 |
} else { |
|
103 |
ThemeManagerWindow fThemeManagerWindow; |
|
104 |
// if (actives.length==1) {
|
|
105 |
// System.out.println("openPliegoThemeProperties(): Una sola capa. Abrimos el panel para la capa " + actives[0]);
|
|
106 |
// fThemeManagerWindow = new FThemeManagerWindow();
|
|
107 |
// try {
|
|
108 |
// fThemeManagerWindow.setMapContext(getMapContext());
|
|
109 |
// } catch (ReadDriverException e1) {
|
|
110 |
// e1.printStackTrace();
|
|
111 |
// }
|
|
112 |
// //PluginServices.getMDIManager().addView(fThemeManagerWindow);
|
|
113 |
// if (PluginServices.getMainFrame() == null) {
|
|
114 |
// JDialog dlg = new JDialog();
|
|
115 |
// fThemeManagerWindow.setPreferredSize(fThemeManagerWindow.getSize());
|
|
116 |
// dlg.getContentPane().add(fThemeManagerWindow);
|
|
117 |
// dlg.setModal(false);
|
|
118 |
// dlg.pack();
|
|
119 |
// dlg.show();
|
|
120 |
// } else {
|
|
121 |
// PluginServices.getMDIManager().addWindow(fThemeManagerWindow);
|
|
122 |
// }
|
|
123 |
// } else {
|
|
124 | 124 |
for (int i = 0; i < actives.length; i++){ |
125 | 125 |
System.out.println("openPliegoThemeProperties(): Muchas capas. Abrimos el panel para la capa " + actives[i]); |
126 |
fThemeManagerWindow = new FThemeManagerWindow(actives[i], getMapContext());
|
|
126 |
fThemeManagerWindow = new ThemeManagerWindow(actives[i]/*, getMapContext()*/);
|
|
127 | 127 |
//PluginServices.getMDIManager().addView(fThemeManagerWindow); |
128 | 128 |
if (PluginServices.getMainFrame() == null) { |
129 | 129 |
JDialog dlg = new JDialog(); |
... | ... | |
136 | 136 |
PluginServices.getMDIManager().addWindow(fThemeManagerWindow); |
137 | 137 |
} |
138 | 138 |
} |
139 |
} |
|
139 |
// }
|
|
140 | 140 |
} |
141 | 141 |
|
142 | 142 |
|
Also available in: Unified diff