Revision 250 trunk/org.gvsig.app.document.layout2.app/org.gvsig.app.document.layout2.app.mainplugin/src/main/java/org/gvsig/app/extension/LayoutGraphicControls.java
LayoutGraphicControls.java | ||
---|---|---|
23 | 23 |
|
24 | 24 |
import org.slf4j.Logger; |
25 | 25 |
import org.slf4j.LoggerFactory; |
26 |
|
|
27 | 26 |
import org.gvsig.andami.IconThemeHelper; |
28 | 27 |
import org.gvsig.andami.PluginServices; |
29 | 28 |
import org.gvsig.andami.plugins.Extension; |
30 | 29 |
import org.gvsig.andami.ui.mdiManager.IWindow; |
31 | 30 |
import org.gvsig.app.project.documents.layout.FLayoutGraphics; |
31 |
import org.gvsig.app.project.documents.layout.fframes.gui.dialogs.FFrameDialogNotification; |
|
32 | 32 |
import org.gvsig.app.project.documents.layout.gui.LayoutPanel; |
33 |
import org.gvsig.tools.observer.Observable; |
|
34 |
import org.gvsig.tools.observer.Observer; |
|
33 | 35 |
|
34 | 36 |
/** |
35 | 37 |
* Extensi?n que actua sobre el Layout para controlas las diferentes |
... | ... | |
63 | 65 |
layout.getDocument().setModified(true); |
64 | 66 |
} else |
65 | 67 |
if (s.compareTo("layout-graphic-properties") == 0) { |
66 |
if (lg.openFFrameDialog()) { |
|
67 |
layout.getDocument().setModified(true); |
|
68 |
} |
|
68 |
lg.openFrameDialog(new Observer() { |
|
69 |
public void update(Observable observable, |
|
70 |
Object notification) { |
|
71 |
if (notification instanceof FFrameDialogNotification && |
|
72 |
((FFrameDialogNotification)notification).getType()==FFrameDialogNotification.FRAME_CREATED) { |
|
73 |
getLayout().getDocument().setModified(true); |
|
74 |
} |
|
75 |
} |
|
76 |
}); |
|
69 | 77 |
} else |
70 | 78 |
if (s.compareTo("layout-graphic-align") == 0) { |
71 | 79 |
lg.aligning(); |
... | ... | |
132 | 140 |
return false; |
133 | 141 |
return true; |
134 | 142 |
} |
143 |
|
|
144 |
protected LayoutPanel getLayout() { |
|
145 |
return layout; |
|
146 |
} |
|
135 | 147 |
} |
Also available in: Unified diff