com.bolour.sample.eclipse.demo
Class PrintMemberIdentity

java.lang.Object
  |
  +--com.bolour.sample.eclipse.demo.PrintMemberIdentity
All Implemented Interfaces:
IProcessMember

public class PrintMemberIdentity
extends java.lang.Object
implements IProcessMember

Extension-point member-processing implementation class to print identifying information about a member.

Author:
Azad

Constructor Summary
PrintMemberIdentity(java.lang.String memberLabelAttribute)
          Constructor.
 
Method Summary
 java.lang.Object process(org.eclipse.core.runtime.IExtension extension, org.eclipse.core.runtime.IConfigurationElement member)
          Process a particular member (top-level element) of an extension.
static void test(java.lang.String extensionPoint, java.lang.String memberLabelAttribute)
          Print identification information for each member of each extension of an extension-point.
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PrintMemberIdentity

public PrintMemberIdentity(java.lang.String memberLabelAttribute)
Constructor.
Parameters:
memberLabelAttribute - Name of an XML attribute of an extension member's element acting as a label for that member.
Method Detail

process

public java.lang.Object process(org.eclipse.core.runtime.IExtension extension,
                                org.eclipse.core.runtime.IConfigurationElement member)
Description copied from interface: IProcessMember
Process a particular member (top-level element) of an extension.
Specified by:
process in interface IProcessMember
Following copied from interface: com.bolour.sample.eclipse.demo.IProcessMember
Parameters:
extension - The extension being processed.
member - The configuration element of the member of the extension to be processed.
Returns:
 

test

public static void test(java.lang.String extensionPoint,
                        java.lang.String memberLabelAttribute)
Print identification information for each member of each extension of an extension-point.
Parameters:
extensionPoint - The fully-qualified id of the extension-point.
memberLabelAttribute - Name of an XML attribute of each member to use as its label.