Re: Connecting an editor to a visualizer
Benno Markiewicz <[email protected]>
| Newsgroups | gmane.comp.java.netbeans.modules.openide.devel |
|---|---|
| Message-ID | <CAA_aP4j4K+yiuZs430rMK+8sSmZqgRkg+wRebX3UDuiENTEX7Q@mail.gmail.com> |
2016-02-09 15:14 GMT+01:00 winder <[email protected]>: > Currently I'm thinking about writing some sort of mediator singleton class > which the editor can publish to and the visualizer can subscribe to. But > I'm wondering if there is a built in NetBeans Platform mechanism that I'm > overlooking? That sounds like a standard lookup. Your editor puts content to the lookup and your visualizer listens for those changes in the global lookup. It is the same principle as the SaveCookie/Saveable. Have look for that in the tutorials at the learning trail / Geertjans blog http://bits.netbeans.org/dev/javadoc/org-openide-util-lookup/org/openide/util/lookup/InstanceContent.html With kind regards, markiewb