1 /* 2 * Copyright (C) 2010 The Android Open Source Project 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 17 package com.android.ide.eclipse.ddms; 18 19 /** 20 * Classes which implement this interface are able to open a source file based on the provided 21 * constraints. 22 */ 23 public interface ISourceRevealer { 24 /** 25 * Reveal a particular line in the given application. 26 * @param applicationName the name of the application running the source. 27 * @param className the fully qualified class name 28 * @param line the line to reveal 29 * @return true if the source was revealed. 30 */ reveal(String applicationName, String className, int line)31 boolean reveal(String applicationName, String className, int line); 32 33 /** 34 * Reveal a particular Java method. 35 * @param fqmn fully qualified method name 36 * @param fileName file name that contains the method, null if not known 37 * @param lineNumber line number in the file, -1 if not known 38 * @param perspective If not null, switch to this perspective before 39 * revealing the source 40 * @return true if the source was revealed. 41 */ revealMethod(String fqmn, String fileName, int lineNumber, String perspective)42 boolean revealMethod(String fqmn, String fileName, int lineNumber, String perspective); 43 } 44