Class MarkerManagerViolationListener
- java.lang.Object
-
- org.eclipse.viatra.addon.validation.runtime.MarkerManagerViolationListener
-
- All Implemented Interfaces:
ConstraintListener,ViolationListener
public class MarkerManagerViolationListener extends java.lang.Object implements ConstraintListener, ViolationListener
-
-
Constructor Summary
Constructors Constructor Description MarkerManagerViolationListener(org.eclipse.core.resources.IResource editorLocation, org.apache.log4j.Logger logger)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddispose()Callback when the listener has to be cleaned upvoidviolationAppeared(IViolation violation)Called if a new violation appeared for the constraint on which the listener is registered.voidviolationDisappeared(IViolation violation)Called if a violation disappeared for the constraint on which the listener is registered.voidviolationEntryAppeared(IViolation violation, IEntry entry)Called if a new entry has appeared for the violation on which the listener is registered.voidviolationEntryDisappeared(IViolation violation, IEntry entry)Called if an entry has disappeared for the violation on which the listener is registered.voidviolationMessageUpdated(IViolation violation)Called if the message has been updated for the violation on which the listener is registered.
-
-
-
Method Detail
-
violationAppeared
public void violationAppeared(IViolation violation)
Description copied from interface:ConstraintListenerCalled if a new violation appeared for the constraint on which the listener is registered.- Specified by:
violationAppearedin interfaceConstraintListener- Parameters:
violation- The violation which appeared.
-
violationDisappeared
public void violationDisappeared(IViolation violation)
Description copied from interface:ConstraintListenerCalled if a violation disappeared for the constraint on which the listener is registered.- Specified by:
violationDisappearedin interfaceConstraintListener- Parameters:
violation- The violation which disappeared.
-
violationEntryAppeared
public void violationEntryAppeared(IViolation violation, IEntry entry)
Description copied from interface:ViolationListenerCalled if a new entry has appeared for the violation on which the listener is registered.- Specified by:
violationEntryAppearedin interfaceViolationListener- Parameters:
violation- The violation for which the new entry appeared.entry- The new entry which appeared.
-
violationMessageUpdated
public void violationMessageUpdated(IViolation violation)
Description copied from interface:ViolationListenerCalled if the message has been updated for the violation on which the listener is registered.- Specified by:
violationMessageUpdatedin interfaceViolationListener- Parameters:
violation- The violation for which the messaged has been updated.
-
violationEntryDisappeared
public void violationEntryDisappeared(IViolation violation, IEntry entry)
Description copied from interface:ViolationListenerCalled if an entry has disappeared for the violation on which the listener is registered.- Specified by:
violationEntryDisappearedin interfaceViolationListener- Parameters:
violation- The violation for which the entry disappeared.entry- The entry which disappeared.
-
dispose
public void dispose()
Description copied from interface:ConstraintListenerCallback when the listener has to be cleaned up- Specified by:
disposein interfaceConstraintListener
-
-