Class ProblemHandlerUtil

java.lang.Object
com._1c.g5.v8.dt.internal.ui.validation.ProblemHandlerUtil

public final class ProblemHandlerUtil extends Object
Helper for getting ProblemView.
  • 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 given ExecutionEvent or null.
      Type Parameters:
      T - view type.
      Parameters:
      event - event, may be null.
      clazz - view type.
      Returns:
      active view instance or null if this view is not on the active page.
    • convertObjectToObjectId

      public static Object convertObjectToObjectId(org.eclipse.emf.ecore.EObject object)
      Returns object id by EObject} for IMarkerManager.
      Parameters:
      object - - EObject}, can be null
      Returns:
      object, can be null