net.sourceforge.sconman
Class SCMEventListenerAdapter

java.lang.Object
  extended by net.sourceforge.sconman.SCMEventListenerAdapter
All Implemented Interfaces:
ISCMEventListener
Direct Known Subclasses:
ProjectSynchronizer, SubscriptionsListener

public class SCMEventListenerAdapter
extends java.lang.Object
implements ISCMEventListener

Convenience class for writting ISCMEventListener implementations

Author:
mballesteros

Constructor Summary
SCMEventListenerAdapter()
           
 
Method Summary
 void afterAddContent(Content content)
          Called after a content is added
 void afterAddRelationship(Content content, Content relatedContent)
          Called after a relationship has been established between two contents
 void afterModifyContent(Content content)
          Called after a content is lastAccessed
 void afterModifyRelatedContent(Content content)
          Called after a related content has been lastAccessed
 void afterRemoveContent(Content content)
          Called after a content is removed
 void afterRemoveRelationship(Content content, Content relatedContent)
          Called after a relationship is removed
 void afterSaveProject(Project project)
          Called after saving the project
 void beforeAddContent(Content content)
          Called before a content is added
 void beforeAddRelationship(Content content, Content relatedContent)
          Called before a relationship is established between two contents
 void beforeModifyContent(Content content)
          Called before a content is lastAccessed
 void beforeRemoveContent(Content content)
          Called before a content is removed
 void beforeRemoveRelationship(Content content, Content relatedContent)
          Called before a relationship is removed
 void beforeSaveProject(Project project)
          Called before project saves
 void onCategoryAdded(Category parent, Category newCategory)
          Called after a category has been added
 void onCategoryModified(Category category)
          Called after a category has been lastAccessed
 void onCategoryRemoved(Category parent, java.lang.String oldCategoryPath)
          Called after a category has been removed
 void onChangeProperty(Category category, java.lang.String changedProperty)
          Called after a category property has been changed
 void onClose(Project project)
          Called when the project instance is closed to be discarded
 void onLoadProject()
          Called after project loading
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SCMEventListenerAdapter

public SCMEventListenerAdapter()
Method Detail

beforeAddContent

public void beforeAddContent(Content content)
Description copied from interface: ISCMEventListener
Called before a content is added

Specified by:
beforeAddContent in interface ISCMEventListener

afterAddContent

public void afterAddContent(Content content)
Description copied from interface: ISCMEventListener
Called after a content is added

Specified by:
afterAddContent in interface ISCMEventListener

beforeRemoveContent

public void beforeRemoveContent(Content content)
Description copied from interface: ISCMEventListener
Called before a content is removed

Specified by:
beforeRemoveContent in interface ISCMEventListener

afterRemoveContent

public void afterRemoveContent(Content content)
Description copied from interface: ISCMEventListener
Called after a content is removed

Specified by:
afterRemoveContent in interface ISCMEventListener

beforeModifyContent

public void beforeModifyContent(Content content)
Description copied from interface: ISCMEventListener
Called before a content is lastAccessed

Specified by:
beforeModifyContent in interface ISCMEventListener

afterModifyContent

public void afterModifyContent(Content content)
Description copied from interface: ISCMEventListener
Called after a content is lastAccessed

Specified by:
afterModifyContent in interface ISCMEventListener

onLoadProject

public void onLoadProject()
Description copied from interface: ISCMEventListener
Called after project loading

Specified by:
onLoadProject in interface ISCMEventListener

beforeSaveProject

public void beforeSaveProject(Project project)
Description copied from interface: ISCMEventListener
Called before project saves

Specified by:
beforeSaveProject in interface ISCMEventListener

onChangeProperty

public void onChangeProperty(Category category,
                             java.lang.String changedProperty)
Description copied from interface: ISCMEventListener
Called after a category property has been changed

Specified by:
onChangeProperty in interface ISCMEventListener
Parameters:
category - The category whose property has changed
changedProperty - The property that has changed

onCategoryAdded

public void onCategoryAdded(Category parent,
                            Category newCategory)
Description copied from interface: ISCMEventListener
Called after a category has been added

Specified by:
onCategoryAdded in interface ISCMEventListener
Parameters:
parent - The parent category
newCategory - The category that has been added

onCategoryRemoved

public void onCategoryRemoved(Category parent,
                              java.lang.String oldCategoryPath)
Description copied from interface: ISCMEventListener
Called after a category has been removed

Specified by:
onCategoryRemoved in interface ISCMEventListener
Parameters:
parent - The parent category that looses a child
oldCategoryPath - The old path to the removed category

onCategoryModified

public void onCategoryModified(Category category)
Description copied from interface: ISCMEventListener
Called after a category has been lastAccessed

Specified by:
onCategoryModified in interface ISCMEventListener
Parameters:
category - The lastAccessed category

beforeAddRelationship

public void beforeAddRelationship(Content content,
                                  Content relatedContent)
Description copied from interface: ISCMEventListener
Called before a relationship is established between two contents

Specified by:
beforeAddRelationship in interface ISCMEventListener

afterAddRelationship

public void afterAddRelationship(Content content,
                                 Content relatedContent)
Description copied from interface: ISCMEventListener
Called after a relationship has been established between two contents

Specified by:
afterAddRelationship in interface ISCMEventListener

beforeRemoveRelationship

public void beforeRemoveRelationship(Content content,
                                     Content relatedContent)
Description copied from interface: ISCMEventListener
Called before a relationship is removed

Specified by:
beforeRemoveRelationship in interface ISCMEventListener

afterRemoveRelationship

public void afterRemoveRelationship(Content content,
                                    Content relatedContent)
Description copied from interface: ISCMEventListener
Called after a relationship is removed

Specified by:
afterRemoveRelationship in interface ISCMEventListener

afterModifyRelatedContent

public void afterModifyRelatedContent(Content content)
Description copied from interface: ISCMEventListener
Called after a related content has been lastAccessed

Specified by:
afterModifyRelatedContent in interface ISCMEventListener

afterSaveProject

public void afterSaveProject(Project project)
Description copied from interface: ISCMEventListener
Called after saving the project

Specified by:
afterSaveProject in interface ISCMEventListener

onClose

public void onClose(Project project)
Description copied from interface: ISCMEventListener
Called when the project instance is closed to be discarded

Specified by:
onClose in interface ISCMEventListener


Copyright null null. All Rights Reserved.