Solved! Go to Solution.
/** * 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(); } }
/** * 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?