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.

StructureViewRenderer.java 1.7KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. /* *******************************************************************
  2. * Copyright (c) 1999-2001 Xerox Corporation,
  3. * 2002 Palo Alto Research Center, Incorporated (PARC).
  4. * All rights reserved.
  5. * This program and the accompanying materials are made available
  6. * under the terms of the Eclipse Public License v 2.0
  7. * which accompanies this distribution and is available at
  8. * https://www.eclipse.org/org/documents/epl-2.0/EPL-2.0.txt
  9. *
  10. * Contributors:
  11. * Xerox/PARC initial implementation
  12. * ******************************************************************/
  13. package org.aspectj.ajde.ui;
  14. import java.util.EventListener;
  15. /**
  16. * View renderers get notified of structure view update events and should
  17. * update the display of the structure view accordingly.
  18. *
  19. * @author Mik Kersten
  20. */
  21. public interface StructureViewRenderer extends EventListener {
  22. /**
  23. * Implementors should updated the display of the corresponding
  24. * file structure view.
  25. */
  26. void updateView(StructureView structureView);
  27. /**
  28. * Highlights and selects the given node as active. What "active"
  29. * means depends on the renderer: a typical activation should cause
  30. * the corresponding node's sourceline to be highlighted in the
  31. * active editor.
  32. */
  33. void setActiveNode(IStructureViewNode node);
  34. /**
  35. * Same behavior as <CODE>setActiveNode(StructureViewNode)</CODE> but
  36. * highlights a particular line within the span of the node.
  37. *
  38. * @param lineOffset number of lines after the begin and before the
  39. * end line of the corresponding <CODE>StructureNode</CODE>.
  40. */
  41. void setActiveNode(IStructureViewNode activeNode, int lineOffset);
  42. }