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

https://bitbucket.org/nbargnesi/idea · Java · 43 lines · 18 code · 7 blank · 18 comment · 0 complexity · 6520b9f932cf773526f7bc583cf123df 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.ide;
  17. import com.intellij.openapi.actionSystem.DataKey;
  18. import com.intellij.openapi.project.Project;
  19. import com.intellij.openapi.vfs.VirtualFile;
  20. import org.jetbrains.annotations.NotNull;
  21. import org.jetbrains.annotations.Nullable;
  22. /**
  23. * @author kir
  24. */
  25. public interface SelectInContext {
  26. DataKey<SelectInContext> DATA_KEY = DataKey.create("SelectInContext");
  27. @Deprecated String DATA_CONTEXT_ID = DATA_KEY.getName();
  28. @NotNull
  29. Project getProject();
  30. @NotNull
  31. VirtualFile getVirtualFile();
  32. @Nullable
  33. Object getSelectorInFile();
  34. @Nullable
  35. FileEditorProvider getFileEditorProvider();
  36. }