You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

TestEditorAdapter.java 1.3KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. /********************************************************************
  2. * Copyright (c) 2007 Contributors. All rights reserved.
  3. * This program and the accompanying materials are made available
  4. * under the terms of the Eclipse Public License v1.0
  5. * which accompanies this distribution and is available at
  6. * http://eclipse.org/legal/epl-v10.html
  7. *
  8. * Contributors: IBM Corporation - initial API and implementation
  9. * Helen Hawkins - initial version (bug 148190)
  10. *******************************************************************/
  11. package org.aspectj.ajde.ui.utils;
  12. import java.io.IOException;
  13. import java.util.List;
  14. import org.aspectj.ajde.EditorAdapter;
  15. import org.aspectj.bridge.ISourceLocation;
  16. /**
  17. * EditorAdapter with empty implementation
  18. */
  19. public class TestEditorAdapter implements EditorAdapter {
  20. public String getCurrFile() {
  21. return null;
  22. }
  23. public void pasteToCaretPos(String text) {
  24. }
  25. public void saveContents() throws IOException {
  26. }
  27. public void showSourceLine(String filePath, int lineNumber,
  28. boolean highlight) {
  29. }
  30. public void showSourceLine(ISourceLocation sourceLocation, boolean highlight) {
  31. }
  32. public void showSourceLine(int lineNumber, boolean highlight) {
  33. }
  34. public void showSourcelineAnnotation(String filePath, int lineNumber,
  35. List items) {
  36. }
  37. }