/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
- /*
- * Copyright 2000-2011 JetBrains s.r.o.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
- package com.intellij.ide;
- import com.intellij.openapi.project.Project;
- import com.intellij.openapi.vfs.VirtualFile;
- import org.jetbrains.annotations.NotNull;
- /**
- * @author Konstantin Bulenkov
- */
- public class FileSelectInContext implements SelectInContext {
- private final Project myProject;
- private final VirtualFile myFile;
- public FileSelectInContext(@NotNull Project project, @NotNull VirtualFile file) {
- myProject = project;
- myFile = file;
- }
- @NotNull
- @Override
- public Project getProject() {
- return myProject;
- }
- @NotNull
- @Override
- public VirtualFile getVirtualFile() {
- return myFile;
- }
- @Override
- public Object getSelectorInFile() {
- return null;
- }
- @Override
- public FileEditorProvider getFileEditorProvider() {
- return null;
- }
- }