1 20 package org.apache.directory.ldapstudio.proxy.view.wrappers; 21 22 23 import java.util.List ; 24 25 import org.apache.directory.ldapstudio.proxy.Activator; 26 import org.apache.directory.ldapstudio.proxy.model.LdapMessageWithPDU; 27 import org.apache.directory.ldapstudio.proxy.view.IImageKeys; 28 import org.apache.directory.shared.ldap.codec.LdapConstants; 29 import org.eclipse.swt.graphics.Image; 30 import org.eclipse.ui.plugin.AbstractUIPlugin; 31 32 33 39 public class LdapMessageWrapper extends AbstractWrapper 40 { 41 private LdapMessageWithPDU ldapMessage; 42 43 44 50 public LdapMessageWrapper( IWrapper parent, LdapMessageWithPDU ldapMessage ) 51 { 52 super( parent ); 53 this.ldapMessage = ldapMessage; 54 } 55 56 57 60 protected void createChildren( List <IWrapper> children ) 61 { 62 } 64 65 66 69 public Image getImage() 70 { 71 return AbstractUIPlugin.imageDescriptorFromPlugin( Activator.PLUGIN_ID, IImageKeys.OUT ).createImage(); 73 } 74 75 76 79 public String getText() 80 { 81 return ldapMessage.getLdapMessage().getMessageTypeName() + " - " + ldapMessage.getMessageId(); 82 } 83 } 84 | Popular Tags |