/** * Called when the combo box is initialized. Subclasses must implement this method * to add entries to the combo box using the add() method. * * @exception java.io.IOException if there are interop problems. * @exception com.esri.arcgis.interop.AutomationException if the component throws an ArcObjects exception. */ @Override public void initialize() { try { IHookHelper hookHelper = new HookHelper(); hookHelper.setHookByRef(this.hook.getHook()); // hookHelper now gives you access to IActiveView, IMap and IPageLayout. } catch (AutomationException e) { e.printStackTrace(); } catch (IOException e) { e.printStackTrace(); } }
Resurrecting this thread, but do you remember how you went about discovering your answer?
Angemeldete Mitglieder können Beiträge verfassen, Updates folgen und mehr. Neu hier? Registriere ein kostenloses Konto.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.