TPTP 4.5.0 Platform Project
Internal API Specification

org.eclipse.hyades.ui.internal.provider
Interface IResourceChangeUpdater

All Superinterfaces:
org.eclipse.hyades.ui.util.IDisposable

public interface IResourceChangeUpdater
extends org.eclipse.hyades.ui.util.IDisposable

Instances of this class are invoked to perform the updates required due to resource changes.


Method Summary
 boolean add(org.eclipse.core.resources.IResource parent, org.eclipse.core.resources.IResource[] affectedResources)
          Invoked after the resources in affectedResources were added to parent.
 void ended()
          Invoked at the end of the change notification.
 boolean isActive()
          Returns whether this resource change updater is active.
 void refreshContent(org.eclipse.core.resources.IResource affectedResource)
           
 boolean remove(org.eclipse.core.resources.IResource parent, org.eclipse.core.resources.IResource[] affectedResources)
          Invoked after the resources in affectedResources were removed from parent.
 boolean replaced(org.eclipse.core.resources.IResource affectedResource)
          Invoked after the resource was replaced - for example when it is deleted and recreated
 void setActive(boolean enable)
          Sets whether this resource change updater is active.
 void started()
          Invoked at the beginning of the change notification.
 boolean updateChildrenType(org.eclipse.core.resources.IResource affectedResource)
          Invoked after at least one of the child of the resource had their type changed.
 boolean updateContent(org.eclipse.core.resources.IResource parent, org.eclipse.core.resources.IResource affectedResource)
          Invoked after a content change in the specified resource.
 boolean updateProperties(org.eclipse.core.resources.IResource affectedResource)
          Invoked after some properties of the resource were changed.
 
Methods inherited from interface org.eclipse.hyades.ui.util.IDisposable
dispose
 

Method Detail

started

void started()
Invoked at the beginning of the change notification.


ended

void ended()
Invoked at the end of the change notification.


add

boolean add(org.eclipse.core.resources.IResource parent,
            org.eclipse.core.resources.IResource[] affectedResources)
Invoked after the resources in affectedResources were added to parent.

Parameters:
parent -
affectedResources -
Returns:
true if there was a full refresh of the resource or false otherwise. Normally no more resource change analysis if this method returns true.

remove

boolean remove(org.eclipse.core.resources.IResource parent,
               org.eclipse.core.resources.IResource[] affectedResources)
Invoked after the resources in affectedResources were removed from parent.

Parameters:
parent -
affectedResources -
Returns:
true if there was a full refresh of the resource or false otherwise. Normally no more resource change analysis if this method returns true.

replaced

boolean replaced(org.eclipse.core.resources.IResource affectedResource)
Invoked after the resource was replaced - for example when it is deleted and recreated

Parameters:
affectedResource -
Returns:
true if there was a full refresh of the resource or false otherwise. Normally no more resource change analysis if this method returns true.

updateProperties

boolean updateProperties(org.eclipse.core.resources.IResource affectedResource)
Invoked after some properties of the resource were changed.

Parameters:
affectedResource -
Returns:
true if there was a full refresh of the resource or false otherwise. Normally no more resource change analysis if this method returns true.

updateChildrenType

boolean updateChildrenType(org.eclipse.core.resources.IResource affectedResource)
Invoked after at least one of the child of the resource had their type changed.

Parameters:
affectedResource -
Returns:
true if there was a full refresh of the resource or false otherwise. Normally no more resource change analysis if this method returns true.

updateContent

boolean updateContent(org.eclipse.core.resources.IResource parent,
                      org.eclipse.core.resources.IResource affectedResource)
Invoked after a content change in the specified resource.

Parameters:
parent - resource
affectedResource -
Returns:
true if there was a full refresh of the resource or false otherwise. Normally no more resource change analysis if this method returns true.

setActive

void setActive(boolean enable)
Sets whether this resource change updater is active. This setting has no effect during a change notification.

Parameters:
enable -

isActive

boolean isActive()
Returns whether this resource change updater is active.

Returns:
boolean

refreshContent

void refreshContent(org.eclipse.core.resources.IResource affectedResource)

TPTP 4.5.0 Platform Project
Internal API Specification