with other classes. git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@268252 13f79535-47bb-0310-9956-ffa450edef68master
| @@ -87,7 +87,7 @@ public abstract class AntEditor extends JPanel { | |||||
| * | * | ||||
| * @return Application context. | * @return Application context. | ||||
| */ | */ | ||||
| public AppContext getAppContext() { | |||||
| public AppContext getContext() { | |||||
| return _context; | return _context; | ||||
| } | } | ||||
| /** | /** | ||||
| @@ -285,7 +285,7 @@ public class ProjectProxy { | |||||
| /** Forwards selection events to the event bus. */ | /** Forwards selection events to the event bus. */ | ||||
| private class SelectionForwarder implements TreeSelectionListener { | private class SelectionForwarder implements TreeSelectionListener { | ||||
| public void valueChanged(TreeSelectionEvent e) { | public void valueChanged(TreeSelectionEvent e) { | ||||
| _context.getEventBus().postEvent(new ElementSelectionEvent( | |||||
| _context.getEventBus().postEvent(ElementSelectionEvent.createEvent( | |||||
| _context, _selections.getSelectedElements())); | _context, _selections.getSelectedElements())); | ||||
| } | } | ||||
| } | } | ||||
| @@ -106,7 +106,7 @@ class SourceEditor extends AntEditor { | |||||
| * it should be cancelled. | * it should be cancelled. | ||||
| */ | */ | ||||
| public boolean eventPosted(EventObject event) { | public boolean eventPosted(EventObject event) { | ||||
| ProjectProxy project = getAppContext().getProject(); | |||||
| ProjectProxy project = getContext().getProject(); | |||||
| _text.setDocument(project == null ? new PlainDocument() : | _text.setDocument(project == null ? new PlainDocument() : | ||||
| project.getDocument()); | project.getDocument()); | ||||
| @@ -131,7 +131,7 @@ public class TargetMonitor extends AntEditor { | |||||
| ElementSelectionEvent e = (ElementSelectionEvent) event; | ElementSelectionEvent e = (ElementSelectionEvent) event; | ||||
| String text = _defText; | String text = _defText; | ||||
| ProjectProxy p = getAppContext().getProject(); | |||||
| ProjectProxy p = getContext().getProject(); | |||||
| if(p != null) { | if(p != null) { | ||||
| ElementSelectionModel selections = p.getTreeSelectionModel(); | ElementSelectionModel selections = p.getTreeSelectionModel(); | ||||
| ACSTargetElement[] targets = selections.getSelectedTargets(); | ACSTargetElement[] targets = selections.getSelectedTargets(); | ||||