|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.cau.cs.kieler.core.model.validation.ValidationManager
public final class ValidationManager
Handler for managing check files and validate actions.
Field Summary | |
---|---|
static String |
PREFERENCE_PREFIX
Prefix for the preference store. |
Method Summary | |
---|---|
static void |
addListener(IPropertyChangeListener listener)
Registers a new listener on the manager. |
static void |
deregisterChecks()
Deregisters all checkfiles on all editors editor. |
static void |
disableAll()
Hide all checks. |
static void |
disableCheck(String id)
Disable a check file. |
static void |
enableAll()
Show all checks. |
static void |
enableCheck(String id)
Enable the given check. |
static String |
getDisplay(String id)
Get the displayed name for a given checkfile. |
static EPackage |
getEPackage(String id)
Get the Epackage of the file. |
static Set<String> |
getRegisteredFiles()
Get all registered check files. |
static Set<String> |
getRegisteredFiles(EPackage ePackage)
Get all files registered for a specific ePackage. |
static String |
getTooltip(String id)
Get the tooltip for the file. |
static boolean |
hasValidateActionsForActiveEditor()
Determine whether there is a validate action present for the given editor. |
static Boolean |
isEnabled(String id)
Determine whether or not a file is enabled. |
static boolean |
isVisible(String id)
Determine whether a file should be visible. |
static void |
refreshChecks()
Refreshes all checks by deregistering all of them and registering them again. |
static void |
registerCheckFile(String id,
EPackage ePackage,
String file,
boolean isWrapExistingValidator,
List<String> referencedEPackageNsURIs,
String name,
String tooltip,
boolean isEnabledByDefault)
Register a new check file. |
static void |
removeCheck(String id)
Remove a checkfile from the list. |
static void |
removeListener(IPropertyChangeListener listener)
Removes a listener from the manager. |
static void |
restoreChecks()
Restore all checks. |
static void |
restoreChecks(EPackage ePackage)
Restore the checks for a certain epackage. |
static void |
setEnabled(String id,
boolean enabled)
Set the enablement of a file. |
static void |
validateActiveEditor()
Run the validate action of the currently active editor. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String PREFERENCE_PREFIX
Method Detail |
---|
public static Set<String> getRegisteredFiles()
public static Set<String> getRegisteredFiles(EPackage ePackage)
ePackage
- the package
public static EPackage getEPackage(String id)
id
- the file
public static Boolean isEnabled(String id)
id
- the file
public static void enableAll()
public static void disableAll()
public static void registerCheckFile(String id, EPackage ePackage, String file, boolean isWrapExistingValidator, List<String> referencedEPackageNsURIs, String name, String tooltip, boolean isEnabledByDefault)
id
- the id of the check fileePackage
- the packagefile
- the fileisWrapExistingValidator
- True if the checkfile wraps around another checkfile and thus
has to be added after it.referencedEPackageNsURIs
- ???name
- the name to displaytooltip
- the tooltip to displayisEnabledByDefault
- true if the checkfile should be enabled by defaultpublic static String getTooltip(String id)
id
- the file
public static String getDisplay(String id)
id
- the id of the checkfile
public static void validateActiveEditor()
public static void deregisterChecks()
public static void removeCheck(String id)
id
- the idpublic static void restoreChecks(EPackage ePackage)
ePackage
- the package.public static void restoreChecks()
public static void refreshChecks()
public static void enableCheck(String id)
id
- the filepublic static void disableCheck(String id)
id
- the filepublic static void setEnabled(String id, boolean enabled)
id
- the fileenabled
- true if visiblepublic static void addListener(IPropertyChangeListener listener)
listener
- the listenerpublic static void removeListener(IPropertyChangeListener listener)
listener
- the listenerpublic static boolean hasValidateActionsForActiveEditor()
public static boolean isVisible(String id)
id
- the id of the file
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |