Revision 9811 trunk/applications/appgvSIG/src/com/iver/cit/gvsig/project/documents/layout/LayoutEvents.java
LayoutEvents.java | ||
---|---|---|
53 | 53 |
import java.awt.event.MouseMotionListener; |
54 | 54 |
|
55 | 55 |
import com.iver.cit.gvsig.fmap.tools.BehaviorException; |
56 |
import com.iver.cit.gvsig.project.documents.layout.gui.FPopupMenu; |
|
56 | 57 |
import com.iver.cit.gvsig.project.documents.layout.gui.Layout; |
57 |
import com.iver.cit.gvsig.project.documents.layout.gui.Popupmenu; |
|
58 | 58 |
import com.iver.utiles.exceptionHandling.ExceptionHandlingSupport; |
59 | 59 |
import com.iver.utiles.exceptionHandling.ExceptionListener; |
60 | 60 |
|
... | ... | |
214 | 214 |
} catch (BehaviorException t) { |
215 | 215 |
throwException(t); |
216 | 216 |
} |
217 |
} else if (e.getButton() == MouseEvent.BUTTON3) { |
|
218 |
new Popupmenu(layout, e.getPoint()); |
|
219 |
} |
|
217 |
} else |
|
218 |
if (e.getButton() == MouseEvent.BUTTON3) { |
|
219 |
FPopupMenu popmenu = new FPopupMenu(layout); |
|
220 |
layout.add(popmenu); |
|
221 |
popmenu.show(e.getComponent(), e.getX(), e.getY()); |
|
222 |
} |
|
220 | 223 |
} |
221 | 224 |
|
222 | 225 |
/** |
Also available in: Unified diff