Revision 168 trunk/org.gvsig.app.document.layout2.app/org.gvsig.app.document.layout2.app.mainplugin/src/main/java/org/gvsig/app/project/documents/layout/gui/DefaultLayoutPanel.java
DefaultLayoutPanel.java | ||
---|---|---|
24 | 24 |
import java.awt.BorderLayout; |
25 | 25 |
import java.awt.Component; |
26 | 26 |
import java.awt.Graphics2D; |
27 |
import java.awt.event.MouseEvent; |
|
28 |
import java.awt.event.MouseListener; |
|
27 | 29 |
import java.awt.geom.AffineTransform; |
28 | 30 |
import java.awt.print.PageFormat; |
29 | 31 |
import java.awt.print.Printable; |
... | ... | |
195 | 197 |
|
196 | 198 |
public void tocUpdated(Object observable, |
197 | 199 |
TocModelChangedNotification notification) { |
198 |
if (TocModelChangedNotification.MODEL_CHANGED==notification.getType()) { |
|
200 |
if (TocModelChangedNotification.Type.MODEL_CHANGED==notification.getType()) {
|
|
199 | 201 |
if (DefaultLayoutPanel.this.toc!=null){ |
200 | 202 |
DefaultLayoutPanel.this.toc.refresh(); |
201 | 203 |
} |
202 | 204 |
} |
203 |
else if (TocModelChangedNotification.MODEL_SET==notification.getType()) { |
|
205 |
else if (TocModelChangedNotification.Type.MODEL_SET==notification.getType()) {
|
|
204 | 206 |
MapContext mapContext = notification.getModel(); |
205 | 207 |
if (mapContext!=null) { |
206 | 208 |
createToc(); |
Also available in: Unified diff