Example: Writing custom messages for clients
You can create a branding plugin that shows a custom message in the user's "New contact" screen or in the login screen. For example, when you are creating a message for the new contact screen, if you connect a particular community to a public instant messaging network, you may want to tell the users which community to use to add a contact from that public network. This branding feature accepts text only.
Example
This is a sample branding plug-in:
<plugin>
<extension
id="com.ibm.collaboration.realtime.notes.branding"
point="com.ibm.collaboration.realtime.ui.stbranding">
<stbranding
id="mypackage.messages"
name="Custom Sametime Messages">
<messages class="mypackage.Messages"/>
</stbranding>
</extension>
</plugin>
Following are some Sample Messages.java:
import org.eclipse.osgi.util.NLS;
private static final String BUNDLE_NAME = "messages";//$NON-NLS-1$
// Add Contacts dialog message for single community
public static String
com_ibm_collaboration_realtime_imhub_strings_messages
$singleCommunityDefMsgArea;
// Add Contacts dialog message for multiple communities
public static String
com_ibm_collaboration_realtime_imhub_strings_messages
$multiCommunityDefMsgArea;
static {
NLS.initializeMessages(BUNDLE_NAME, Messages.class);}}
Following are Sample resourcebundle messages.properties
Add a new contact by entering a name below.
com_ibm_collaboration_realtime_imhub_strings_messages$multiCommunityDefMsgArea=
Customize me:
Add a new contact by selecting the community where the contact exists.
Enter the user's name (or email address if adding an external contact.)