1 20 21 package org.apache.directory.ldapstudio.browser.core.events; 22 23 24 import org.apache.directory.ldapstudio.browser.core.BrowserCoreMessages; 25 import org.apache.directory.ldapstudio.browser.core.model.IAttribute; 26 import org.apache.directory.ldapstudio.browser.core.model.IConnection; 27 import org.apache.directory.ldapstudio.browser.core.model.IEntry; 28 29 30 36 public class AttributeDeletedEvent extends EntryModificationEvent 37 { 38 39 40 private IAttribute deletedAttribute; 41 42 43 50 public AttributeDeletedEvent( IConnection connection, IEntry modifiedEntry, IAttribute deletedAttribute ) 51 { 52 super( connection, modifiedEntry ); 53 this.deletedAttribute = deletedAttribute; 54 } 55 56 57 62 public IAttribute getDeletedAttribute() 63 { 64 return deletedAttribute; 65 } 66 67 68 71 public String toString() 72 { 73 return BrowserCoreMessages.bind( BrowserCoreMessages.event__deleted_att_from_dn, new String [] 74 { getDeletedAttribute().getDescription(), getModifiedEntry().getDn().toString() } ); 75 } 76 77 } 78 | Popular Tags |