home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Programming Languages Suite
/
ProgLangD.iso
/
VCAFE.3.0A
/
Main.bin
/
ProjectListener.java
< prev
next >
Wrap
Text File
|
1998-10-25
|
5KB
|
131 lines
/*
* Copyright 1998 Symantec Corporation, All Rights Reserved.
*/
package com.symantec.itools.vcafe.openapi;
/**
* The listener interface for receiving notification when a change has occurred to
* a <code>VisualProject</code>.
* To be notified of changes, a plug-in implements this interface then calls
* <code>VisualProject.addProjectListener</code> to place itself on the notification list. When
* the <code>VisualProject</code> changes, the appropriate method of this interface
* is called.
* If you are only interested in a subset of the notification methods, you can extend the
* <code>ProjectAdapter</code> class rather than implement all the methods yourself.
*
* @see VisualProject#addProjectListener
* @see ProjectAdapter
*
* @author Symantec Internet Tools Division
* @version 1.0
* @since VCafe 3.0
*/
public interface ProjectListener
{
/**
* This method is called when the project is closed.
* After this method is called, this listener is removed from the project.
* @param visualProject the project that is being closed.
*/
public void projectClosed(VisualProject visualProject);
/**
* This method is called when the project is moved on disk.
* @param visualProject the project that has moved.
* @param oldLocation the previous location of the project.
* @param newLocation the current location of the project.
*/
public void projectMoved(VisualProject visualProject, String oldLocation, String newLocation);
/**
* This method is called before the project is saved.
* @param visualProject the project that is to be saved.
* @return <code>true</code> if the project save continue.
*/
public boolean aboutToSaveProject(VisualProject visualProject);
/**
* This method is called after the project is saved
* @param visualProject the project that was saved
*/
public void doneSavingProject(VisualProject visualProject);
/**
* This method is called before the project is run
* @param visualProject the project that is to be run
*/
public void aboutToRunProject(VisualProject visualProject);
/**
* This method is called when the project is no longer running
* @param visualProject the project that was running
*/
public void doneRunningProject(VisualProject visualProject);
/**
* This method is called before a save all is performed on the project
* @param visualProject the project that is to be saved
*/
public void aboutToSaveAll(VisualProject visualProject);
/**
* This method is called after a save all is performed on the project
* @param visualProject the project that was saved
*/
public void doneSavingAll(VisualProject visualProject);
/**
* This method is called when a file is added to the project
* @param visualProject the project that contains the <code>ProjectFile</code>
* @param projectFile the <code>ProjectFile</code> object that was added
* @param addedBy who added the file
* @see ProjectFile#getFileAddedBy
*/
public void projectFileAdded(VisualProject visualProject, ProjectFile projectFile, int addedBy);
/**
* This method is called before a file is removed from the project
* @param visualProject the project that contained the <code>ProjectFile</code>
* @param projectFile the <code>ProjectFile</code> object that was removed
* @param removedBy who removed the file
*/
public void projectFileRemoved(VisualProject visualProject, ProjectFile projectFile, int removedBy);
/**
* This method is called when a file in the project is renamed
* @param visualProject the project that contains the <code>ProjectFile</code>
* @param projectFile the <code>ProjectFile</code> object that will be/was renamed
* @param oldName the previous name of the <code>ProjectFile</code>
* @param newName the current name of the <code>ProjectFile</code>
*/
public void projectFileRenamed(VisualProject visualProject, ProjectFile projectFile, String oldName, String newName);
/**
* This method is called before changes occur to the data of <code>ProjectFiles</code>.
* For example, before a build or a reparse of the browser information.
* @param visualProject the project whose <code>ProjectFiles</code> are changing
*/
public void aboutToChangeProjectEntries(VisualProject visualProject);
/**
* This method is called after changes occur to the data of <code>ProjectFiles</code>.
* For example, after a build or a reparse of the browser information.
* @param visualProject the project whose <code>ProjectFiles</code> have changed
*/
public void doneChangingProjectEntries(VisualProject visualProject);
/**
* This method is called after the user changes the current option set
* from Debug to Final, or vice versa.
* @param visualProject the project whose option set changed
*/
public void projectOptionSetChanged(VisualProject visualProject);
/**
* This method is called after the user changes the project's options
* @param visualProject the project whose options changed
*/
public void projectOptionsChanged(VisualProject visualProject);
}