Revision 6076 trunk/extensions/extCatalogYNomenclator/src/es/gva/cit/gvsig/catalogClient/gui/ShowTreeDialog.java
ShowTreeDialog.java | ||
---|---|---|
40 | 40 |
*/ |
41 | 41 |
package es.gva.cit.gvsig.catalogClient.gui; |
42 | 42 |
|
43 |
import javax.swing.JDialog; |
|
44 |
|
|
43 | 45 |
import com.iver.andami.PluginServices; |
44 | 46 |
import com.iver.andami.ui.mdiManager.View; |
45 | 47 |
import com.iver.andami.ui.mdiManager.ViewInfo; |
... | ... | |
55 | 57 |
* go to Window - Preferences - Java - Code Style - Code Templates |
56 | 58 |
*/ |
57 | 59 |
public class ShowTreeDialog extends ShowTreeDialogPanel implements View { |
58 |
/** |
|
60 |
private JDialog frame = null; |
|
61 |
/** |
|
59 | 62 |
* DOCUMENT ME! |
60 | 63 |
* |
61 | 64 |
* @param node |
62 | 65 |
*/ |
63 |
public ShowTreeDialog(XMLNode node) { |
|
66 |
public ShowTreeDialog(JDialog frame,XMLNode node) {
|
|
64 | 67 |
super(node); |
65 |
|
|
68 |
this.frame = frame; |
|
66 | 69 |
//8 --> Modal window |
67 | 70 |
PluginServices.getMDIManager().getViewInfo(this).setViewInfo(new ViewInfo( |
68 | 71 |
8)); |
... | ... | |
79 | 82 |
* DOCUMENT ME! |
80 | 83 |
*/ |
81 | 84 |
public void closeJDialog() { |
82 |
setVisible(true); |
|
83 |
PluginServices.getMDIManager().closeView(ShowTreeDialog.this); |
|
85 |
frame.setVisible(false); |
|
84 | 86 |
} |
85 | 87 |
|
86 | 88 |
/** |
Also available in: Unified diff