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.

GlobalStructureView.java 1.5KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  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. /**
  15. * Should only be created by the {@link StructureViewManager} or an
  16. * equivalent factory.
  17. *
  18. * @author Mik Kersten
  19. */
  20. public class GlobalStructureView extends FileStructureView {
  21. private GlobalViewProperties viewProperties;
  22. public GlobalStructureView(GlobalViewProperties viewProperties) {
  23. super(viewProperties);
  24. this.viewProperties = viewProperties;
  25. }
  26. public GlobalViewProperties getGlobalViewProperties() {
  27. return viewProperties;
  28. }
  29. // public void setActiveNode(StructureViewNode activeNode) {
  30. // StructureNode node = activeNode.getStructureNode();
  31. //
  32. // activeNode = activeNode;
  33. // if (renderer != null) renderer.setActiveNode(activeNode);
  34. // }
  35. //
  36. // public void setActiveNode(StructureViewNode activeNode, int sourceLine) {
  37. // activeNode = activeNode;
  38. // if (renderer != null) renderer.setActiveNode(activeNode, sourceLine);
  39. // }
  40. public String toString() {
  41. return viewProperties.getHierarchy().toString();
  42. }
  43. }