Revision 44007
trunk/org.gvsig.desktop/org.gvsig.desktop.plugin/org.gvsig.app/org.gvsig.app.mainplugin/src/main/java/org/gvsig/app/project/documents/view/expressionevaluator/ViewCaptureRectanglePanel.java | ||
---|---|---|
6 | 6 |
import java.awt.event.ComponentAdapter; |
7 | 7 |
import java.awt.event.ComponentEvent; |
8 | 8 |
import javax.swing.JComponent; |
9 |
import javax.swing.event.AncestorEvent; |
|
10 |
import javax.swing.event.AncestorListener; |
|
9 | 11 |
import org.gvsig.andami.IconThemeHelper; |
10 | 12 |
import org.gvsig.app.ApplicationLocator; |
11 | 13 |
import org.gvsig.app.ApplicationManager; |
... | ... | |
70 | 72 |
} |
71 | 73 |
}); |
72 | 74 |
this.btnToggleCapture.setText(i18n.getTranslation("_Start_capture")); |
75 |
|
|
76 |
this.addAncestorListener(new AncestorListener() { |
|
77 |
@Override |
|
78 |
public void ancestorAdded(AncestorEvent event) { |
|
79 |
} |
|
80 |
|
|
81 |
@Override |
|
82 |
public void ancestorRemoved(AncestorEvent event) { |
|
83 |
doEndCapture(); |
|
84 |
} |
|
85 |
|
|
86 |
@Override |
|
87 |
public void ancestorMoved(AncestorEvent event) { |
|
88 |
} |
|
89 |
}); |
|
73 | 90 |
|
74 | 91 |
this.addComponentListener(new ComponentAdapter() { |
75 | 92 |
@Override |
trunk/org.gvsig.desktop/org.gvsig.desktop.plugin/org.gvsig.app/org.gvsig.app.mainplugin/src/main/java/org/gvsig/app/project/documents/view/expressionevaluator/ViewCapturePointPanel.java | ||
---|---|---|
6 | 6 |
import java.awt.event.ComponentAdapter; |
7 | 7 |
import java.awt.event.ComponentEvent; |
8 | 8 |
import javax.swing.JComponent; |
9 |
import javax.swing.event.AncestorEvent; |
|
10 |
import javax.swing.event.AncestorListener; |
|
9 | 11 |
import org.gvsig.andami.IconThemeHelper; |
10 | 12 |
import org.gvsig.app.ApplicationLocator; |
11 | 13 |
import org.gvsig.app.ApplicationManager; |
... | ... | |
76 | 78 |
}); |
77 | 79 |
this.btnToggleCapture.setText(i18n.getTranslation("_Start_capture")); |
78 | 80 |
|
81 |
this.addAncestorListener(new AncestorListener() { |
|
82 |
@Override |
|
83 |
public void ancestorAdded(AncestorEvent event) { |
|
84 |
} |
|
85 |
|
|
86 |
@Override |
|
87 |
public void ancestorRemoved(AncestorEvent event) { |
|
88 |
doEndCapture(); |
|
89 |
} |
|
90 |
|
|
91 |
@Override |
|
92 |
public void ancestorMoved(AncestorEvent event) { |
|
93 |
} |
|
94 |
}); |
|
79 | 95 |
this.addComponentListener(new ComponentAdapter() { |
80 | 96 |
@Override |
81 | 97 |
public void componentHidden(ComponentEvent e) { |
Also available in: Unified diff