/platform/platform-api/src/com/intellij/ui/errorView/ErrorViewFactory.java

https://bitbucket.org/nbargnesi/idea · Java · 37 lines · 17 code · 5 blank · 15 comment · 0 complexity · d34a217d3bf44428aeae19eb52a4ba2d MD5 · raw file

  1. /*
  2. * Copyright 2000-2009 JetBrains s.r.o.
  3. *
  4. * Licensed under the Apache License, Version 2.0 (the "License");
  5. * you may not use this file except in compliance with the License.
  6. * You may obtain a copy of the License at
  7. *
  8. * http://www.apache.org/licenses/LICENSE-2.0
  9. *
  10. * Unless required by applicable law or agreed to in writing, software
  11. * distributed under the License is distributed on an "AS IS" BASIS,
  12. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. * See the License for the specific language governing permissions and
  14. * limitations under the License.
  15. */
  16. package com.intellij.ui.errorView;
  17. import com.intellij.openapi.actionSystem.AnAction;
  18. import com.intellij.openapi.components.ServiceManager;
  19. import com.intellij.openapi.project.Project;
  20. import com.intellij.util.ui.ErrorTreeView;
  21. import org.jetbrains.annotations.Nullable;
  22. public interface ErrorViewFactory {
  23. ErrorTreeView createErrorTreeView(Project project, @Nullable String helpId, boolean createExitAction, AnAction[] extraPopupMenuActions,
  24. AnAction[] extraRightToolbarGroupActions, ContentManagerProvider contentManagerProvider);
  25. class SERVICE {
  26. private SERVICE() {
  27. }
  28. public static ErrorViewFactory getInstance() {
  29. return ServiceManager.getService(ErrorViewFactory.class);
  30. }
  31. }
  32. }