de.cau.cs.kieler.core.model.validation
Class ValidationInformationCollector

java.lang.Object
  extended by de.cau.cs.kieler.core.model.validation.ValidationInformationCollector
All Implemented Interfaces:
IPartListener, IStartup

public class ValidationInformationCollector
extends Object
implements IStartup, IPartListener

This class is responsible for gathering the data contributed through the extension point.

Rating proposed yellow
(2010-07-01) soh

Constructor Summary
ValidationInformationCollector()
           
 
Method Summary
 void earlyStartup()
          
static List<IValidationRegistry> getRegistries()
          Return the validation registries that are added by extension point.
static boolean hasValidateActionForActiveEditor()
          Check whether there is a validate action available for the currently active editor.
static boolean isVisible(String id)
          Check whether the given checkfile should be displayed in the selection.
 void partActivated(IWorkbenchPart part)
          
 void partBroughtToTop(IWorkbenchPart part)
          
 void partClosed(IWorkbenchPart part)
          
 void partDeactivated(IWorkbenchPart part)
          
 void partOpened(IWorkbenchPart workbenchPart)
          
static void validateActiveEditor()
           
static void validateEditor(IEditorPart editor)
          Validate a given editor.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ValidationInformationCollector

public ValidationInformationCollector()
Method Detail

earlyStartup

public void earlyStartup()

Specified by:
earlyStartup in interface IStartup

getRegistries

public static List<IValidationRegistry> getRegistries()
Return the validation registries that are added by extension point.

Returns:
the validation registries

partBroughtToTop

public void partBroughtToTop(IWorkbenchPart part)

Specified by:
partBroughtToTop in interface IPartListener

partClosed

public void partClosed(IWorkbenchPart part)

Specified by:
partClosed in interface IPartListener

partDeactivated

public void partDeactivated(IWorkbenchPart part)

Specified by:
partDeactivated in interface IPartListener

partActivated

public void partActivated(IWorkbenchPart part)

Specified by:
partActivated in interface IPartListener

partOpened

public void partOpened(IWorkbenchPart workbenchPart)

Specified by:
partOpened in interface IPartListener

validateEditor

public static void validateEditor(IEditorPart editor)
Validate a given editor.

Parameters:
editor - the editor

validateActiveEditor

public static void validateActiveEditor()

hasValidateActionForActiveEditor

public static boolean hasValidateActionForActiveEditor()
Check whether there is a validate action available for the currently active editor.

Returns:
true if there is

isVisible

public static boolean isVisible(String id)
Check whether the given checkfile should be displayed in the selection.

Parameters:
id - the id of the checkfile
Returns:
true if it should be visible.