home *** CD-ROM | disk | FTP | other *** search
Java Source | 1998-10-25 | 3.1 KB | 80 lines |
- /*
- * Copyright 1998 Symantec Corporation, All Rights Reserved.
- */
-
- package com.symantec.itools.vcafe.openapi.dtreflect;
-
- import com.symantec.itools.vcafe.openapi.VisualProject;
- import com.symantec.itools.vcafe.openapi.ProjectFile;
-
- /**
- * The listener interface for receiving notification when the <code>DTClass</code> information of
- * a <code>ProjectFile</code> has been (re)parsed.
- * <p>To be notified when a file in a <code>VisualProject</code> is parsed, a plug-in implements this
- * interface then calls <code>VisualProject.addDTListener</code> to place itself on the notification list.
- * When a <code>ProjectFile</code> in the project is parsed, the listener is notified.
- * <p>To be notified when a file in <i>any</i> <code>VisualProject</code> is parsed, use
- * <code>VisualCafe.addDTListener</code>.
- *
- * @see com.symantec.itools.vcafe.openapi.VisualProject#addDTListener
- * @see com.symantec.itools.vcafe.openapi.VisualProject#removeDTListener
- * @see com.symantec.itools.vcafe.openapi.VisualCafe#addDTListener
- * @see com.symantec.itools.vcafe.openapi.VisualCafe#removeDTListener
- *
- * @author Symantec Internet Tools Division
- * @version 1.0
- * @since VCafe 3.0
- */
- public interface DTListener
- {
- /**
- * Reason a file was parsed: user added the file to the project.
- * @see #classesParsed
- */
- public static final int PARSE_ON_ADD_BY_USER = 1;
- /**
- * Reason a file was parsed: parser added the file to the project.
- * @see #classesParsed
- */
- public static final int PARSE_ON_ADD_BY_PARSER = 2;
- /**
- * Reason a file was parsed: the file was added to the project (convenience mask that combines
- * PARSE_ON_ADD_BY_USER and PARSE_ON_ADD_BY_PARSER).
- * @see #classesParsed
- */
- public static final int PARSE_ON_ADD = 3;
- /**
- * Reason a file was parsed: the file was modified.
- * @see #classesParsed
- */
- public static final int PARSE_ON_UPDATE = 4;
- /**
- * Reason a file was parsed: a "parse all" was requested.
- * @see #classesParsed
- */
- public static final int PARSE_ALL_PASSES = 8;
- /**
- * Reason a file was parsed: RAD was just enabled for the file.
- * @see #classesParsed
- */
- public static final int PARSE_ON_START_RAD = 16;
-
- /**
- * Notifies this listener that the parser has (re)parsed a <code>ProjectFile</code>'s <code>DTClass</code>
- * information.
- * <p>Changes to a class usually add/delete fields or methods and do not necessarily
- * invalidate the class object, but may invalidate fields/methods/constructors of
- * the class.
- * @param visualProject the project the file belongs to.
- * @param projectFile the file buffer that was parsed.
- * @param reason why the parser parsed the file, is a mask containing any of:<ul type=circle>
- * <li>PARSE_ON_ADD_BY_USER - user added the file to the project,
- * <li>PARSE_ON_ADD_BY_PARSER - parser added the file to the project,
- * <li>PARSE_ON_UPDATE - the file was modified,
- * <li>PARSE_ALL_PASSES - a "parse all" was requested, or
- * <li>PARSE_ON_START_RAD - RAD was just enabled for the file.
- * </ul>
- */
- public void classesParsed(VisualProject visualProject, ProjectFile projectFile, int reason);
- }
-