org.eclipse.xtext.common.types.ui.notification
Class TypeResourceUnloader

java.lang.Object
  extended by org.eclipse.xtext.resource.impl.AbstractResourceDescriptionChangeEventSource
      extended by org.eclipse.xtext.common.types.ui.notification.TypeResourceUnloader
All Implemented Interfaces:
org.eclipse.jdt.core.IElementChangedListener, IResourceDescription.Event.Source

public class TypeResourceUnloader
extends AbstractResourceDescriptionChangeEventSource
implements org.eclipse.jdt.core.IElementChangedListener

A listener that will notify the state change broker about reconcile operations on java types. It converts the notifications of the JDT to events for the Xtext protocol. As this will only notify

Author:
Sebastian Zarnekow - Initial contribution and API

Constructor Summary
TypeResourceUnloader(IStateChangeEventBroker stateChangeEventBroker, DeltaConverter deltaConverter)
           
 
Method Summary
 void elementChanged(org.eclipse.jdt.core.ElementChangedEvent event)
          Notifies that one or more attributes of one or more Java elements have changed.
 
Methods inherited from class org.eclipse.xtext.resource.impl.AbstractResourceDescriptionChangeEventSource
addListener, addListeners, notifyListeners, removeListener, removeListeners
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TypeResourceUnloader

@Inject
public TypeResourceUnloader(IStateChangeEventBroker stateChangeEventBroker,
                                   DeltaConverter deltaConverter)
Method Detail

elementChanged

public void elementChanged(org.eclipse.jdt.core.ElementChangedEvent event)
Description copied from interface: org.eclipse.jdt.core.IElementChangedListener
Notifies that one or more attributes of one or more Java elements have changed. The specific details of the change are described by the given event.

Specified by:
elementChanged in interface org.eclipse.jdt.core.IElementChangedListener
Parameters:
event - the change event