/platform/platform-api/src/com/intellij/ide/FileSelectInContext.java

https://bitbucket.org/nbargnesi/idea · Java · 55 lines · 30 code · 7 blank · 18 comment · 0 complexity · b19cede066bfc29841097b886693f927 MD5 · raw file

  1. /*
  2. * Copyright 2000-2011 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.ide;
  17. import com.intellij.openapi.project.Project;
  18. import com.intellij.openapi.vfs.VirtualFile;
  19. import org.jetbrains.annotations.NotNull;
  20. /**
  21. * @author Konstantin Bulenkov
  22. */
  23. public class FileSelectInContext implements SelectInContext {
  24. private final Project myProject;
  25. private final VirtualFile myFile;
  26. public FileSelectInContext(@NotNull Project project, @NotNull VirtualFile file) {
  27. myProject = project;
  28. myFile = file;
  29. }
  30. @NotNull
  31. @Override
  32. public Project getProject() {
  33. return myProject;
  34. }
  35. @NotNull
  36. @Override
  37. public VirtualFile getVirtualFile() {
  38. return myFile;
  39. }
  40. @Override
  41. public Object getSelectorInFile() {
  42. return null;
  43. }
  44. @Override
  45. public FileEditorProvider getFileEditorProvider() {
  46. return null;
  47. }
  48. }