Class ProblemHandlerUtil
java.lang.Object
com._1c.g5.v8.dt.internal.ui.validation.ProblemHandlerUtil
Helper for getting
ProblemView.-
Method Summary
Modifier and TypeMethodDescriptionstatic ObjectconvertObjectToObjectId(org.eclipse.emf.ecore.EObject object) Returns object id byEObject} forIMarkerManager.static <T extends org.eclipse.ui.part.ViewPart>
TgetActiveView(org.eclipse.core.commands.ExecutionEvent event, Class<T> clazz) Returns active view instance of the given type for givenExecutionEventornull.
-
Method Details
-
getActiveView
public static <T extends org.eclipse.ui.part.ViewPart> T getActiveView(org.eclipse.core.commands.ExecutionEvent event, Class<T> clazz) Returns active view instance of the given type for givenExecutionEventornull.- Type Parameters:
T- view type.- Parameters:
event- event, may benull.clazz- view type.- Returns:
- active view instance or
nullif this view is not on the active page.
-
convertObjectToObjectId
Returns object id byEObject} forIMarkerManager.- Parameters:
object- -EObject}, can benull- Returns:
- object, can be
null
-