home *** CD-ROM | disk | FTP | other *** search
/ Programming Languages Suite / ProgLangD.iso / VCAFE.3.0A / Main.bin / ProjectSystemListener.java < prev    next >
Text File  |  1998-10-25  |  2KB  |  54 lines

  1. /*
  2.  * Copyright 1998 Symantec Corporation, All Rights Reserved.
  3.  */
  4.  
  5. package com.symantec.itools.vcafe.openapi;
  6.  
  7. /**
  8.  * A plug in view can implement the <code>ProjectSystemListener</code> interface when it
  9.  * wants to be informed of changes to Visual Cafe's project system.
  10.  * To be notified of changes, a plug-in implements this interface then calls <code>VisualCafe.addProjectSystemListener</code>
  11.  * to place itself on the notification list.  When Visual Cafe's project system changes, the appropriate
  12.  * method of this interface is called.
  13.  * If you are only interested in a subset of the notification methods, you can extend the
  14.  * <code>ProjectSystemAdapter</code> class rather than implement all the methods yourself.
  15.  *
  16.  * @see VisualCafe#addProjectSystemListener
  17.  * @see ProjectSystemAdapter
  18.  *
  19.  * @author Symantec Internet Tools Division
  20.  * @version 1.0
  21.  * @since VCafe 3.0
  22.  */
  23. public interface ProjectSystemListener
  24. {
  25.     /**
  26.      * This method is called after a project is opened
  27.      *
  28.      * @param visualProject        the project that has just been opened
  29.      */
  30.     public void projectOpened(VisualProject visualProject);
  31.  
  32.     /**
  33.      * This method is called after a project is created
  34.      *
  35.      * @param visualProject        the project that has just been created
  36.      */
  37.     public void projectCreated(VisualProject visualProject);
  38.  
  39.     /**
  40.      * This method is called when the active project changes
  41.      *
  42.      * @param visualProject        the project that has just been made active, or
  43.      *                            <code>null</code> if there is no active project
  44.      */
  45.     public void activeProjectChanged(VisualProject visualProject);
  46.  
  47.     /**
  48.      * This method is called after a project is closed
  49.      *
  50.      * @param visualProject        the project that has just been closed
  51.      */
  52.     public void projectClosed(VisualProject visualProject);
  53. }
  54.