Class UpdateRunnable

  • All Implemented Interfaces:
    Runnable

    public class UpdateRunnable
    extends Object
    implements Runnable
    This class represents an update of an IResource.
    • Constructor Detail

      • UpdateRunnable

        public UpdateRunnable​(EObjectManager<?> manager,
                              URI uri,
                              String viewsString,
                              boolean reload)
        Creates a new UpdateRunnable with the given parameters.
        Parameters:
        manager - the EObjectManager that has to reload the Resource if necessary.
        uri - the URI of the updated Resource
        viewsString - a string representation of the views affected by the update
        reload - should be true if the Resource the views currently work on changes, false otherwise.
    • Method Detail

      • run

        public void run()
        Specified by:
        run in interface Runnable
      • setReload

        public void setReload​(boolean reload)
        Sets the reload flag to the given value. Specifies whether a reload dialog or a save dialog is shown.
        Parameters:
        reload - the new reload value