Insert actions should be disabled when the Globe window is closed.

Issue #22 resolved
Chris Heidt created an issue

If a user closes the Globe window then Insert actions (e.g., Drawing Annotations) should be disabled.

Comments (5)

  1. Bruce Schubert

    Idea:

    • Place the WorldWindManager instance into the GlobeTopComponent's lookup.
    • Create context sensitive actions based on a WorldWindManager (found in the Utilities.actionsGlobalContext lookup).

    As an alternative, a capability interface/class could be placed in the TC lookup representing/implementing the "InsertAnnotation" functionality--with corresponding context sensitive actions.

  2. Chris Heidt reporter

    I added a new abstract class to core, TopComponentContextAction, that lets you pass in the TC class that must be open for the action to be enabled. Should be reused throughout the code base.

  3. Log in to comment