Class FindUsages

    • Constructor Detail

      • FindUsages

        public FindUsages()
    • Method Detail

      • getActorReference

        protected String getActorReference​(Actor actor,
                                           Actor parent)
        Returns the actor reference, if applicable.
        Parameters:
        actor - the current actor
        parent - the parent of the actor, can be null
        Returns:
        the actor reference, null if not applicable
      • findVariableNames

        protected List<String> findVariableNames​(Actor actor)
        Tries to locate the variable names in the actor's options.
        Parameters:
        actor - the actor to search
        Returns:
        the variable names, empty if none found
      • findStorageNames

        protected List<String> findStorageNames​(Actor actor)
        Tries to locate the storage name in the actor's options.
        Parameters:
        actor - the actor to search
        Returns:
        the storage name, empty if none found
      • findActorLocations

        protected List<String> findActorLocations​(Actor actor)
        Locates all the occurrences of this actor.
        Parameters:
        actor - the actor to look for
        Returns:
        the actor paths
      • createActorReferenceMenuItem

        protected JMenuItem createActorReferenceMenuItem​(String reference)
        Creates a menu item for a actor reference.
        Parameters:
        reference - the name of the referenced actor
        Returns:
        the menu item
      • createVariableMenuItem

        protected JMenuItem createVariableMenuItem​(String variable)
        Creates a menu item for a variable.
        Parameters:
        variable - the name of the variable
        Returns:
        the menu item
      • createStorageMenuItem

        protected JMenuItem createStorageMenuItem​(String storage)
        Creates a menu item for a storage item.
        Parameters:
        storage - the name of the storage item
        Returns:
        the menu item
      • createActorLocationMenuItem

        protected JMenuItem createActorLocationMenuItem​(List<String> locations)
        Creates a menu item for a jumping to an actor location.
        Parameters:
        locations - the locations of the actor
        Returns:
        the menu item