/plugins/ProjectViewer/tags/pv_2_1_3_4/projectviewer/event/ProjectListener.java

# · Java · 74 lines · 9 code · 9 blank · 56 comment · 0 complexity · c6d4be989382e64ee62acc7ee861c3fd MD5 · raw file

  1. /*
  2. * :tabSize=4:indentSize=4:noTabs=false:
  3. * :folding=explicit:collapseFolds=1:
  4. *
  5. * This program is free software; you can redistribute it and/or
  6. * modify it under the terms of the GNU General Public License
  7. * as published by the Free Software Foundation; either version 2
  8. * of the License, or any later version.
  9. *
  10. * This program is distributed in the hope that it will be useful,
  11. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. * GNU General Public License for more details.
  14. *
  15. * You should have received a copy of the GNU General Public License
  16. * along with this program; if not, write to the Free Software
  17. * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  18. */
  19. package projectviewer.event;
  20. import java.util.EventListener;
  21. /**
  22. * A project listener.
  23. *
  24. * @author Marcelo Vanzin
  25. * @version $Id: ProjectListener.java 6276 2004-08-26 05:20:00Z vanza $
  26. */
  27. public interface ProjectListener extends EventListener {
  28. /**
  29. * Method called when a single file has been added to a project. The event
  30. * object will contain a reference to the file, returned by the
  31. * {@link ProjectEvent#getAddedFile() getAddedFile()} method.
  32. *
  33. * @param pe The project event.
  34. */
  35. public void fileAdded(ProjectEvent pe);
  36. /**
  37. * Method called when several files have been added to a project. The event
  38. * object will contain the list of files, returned by the
  39. * {@link ProjectEvent#getAddedFiles() getAddedFiles()} method.
  40. *
  41. * @param pe The project event.
  42. */
  43. public void filesAdded(ProjectEvent pe);
  44. /**
  45. * Method called when a single file has been removed from a project.
  46. *
  47. * @param pe The project event.
  48. */
  49. public void fileRemoved(ProjectEvent pe);
  50. /**
  51. * Method called when more than one file have been removed from a project.
  52. *
  53. * @param pe The project event.
  54. */
  55. public void filesRemoved(ProjectEvent pe);
  56. /**
  57. * Method called when project properties (such as name and root) have
  58. * changed. Properties may actually not have changed at all - this event
  59. * will be fired whenever the user opens the "Project Options" dialog and
  60. * clicks "OK".
  61. *
  62. * @param pe The project event.
  63. */
  64. public void propertiesChanged(ProjectEvent pe);
  65. }