Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

FileStructureView.java 1.3KB

21 år sedan
21 år sedan
21 år sedan
21 år sedan
21 år sedan
21 år sedan
21 år sedan
21 år sedan
21 år sedan
21 år sedan
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  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 FileStructureView extends StructureView {
  21. private String sourceFilePath = null;
  22. public FileStructureView(StructureViewProperties viewProperties) {
  23. super.viewProperties = viewProperties;
  24. }
  25. public String getSourceFile() {
  26. return sourceFilePath;
  27. }
  28. public void setSourceFile(String sourceFile) {
  29. this.sourceFilePath = sourceFile;
  30. }
  31. public void setRootNode(IStructureViewNode rootNode) {
  32. super.setRootNode(rootNode);
  33. notifyViewUpdated();
  34. }
  35. public String getName() {
  36. return "File view for: " + sourceFilePath;
  37. }
  38. }