1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-05 16:15:25 +02:00
cdt/rse/doc/org.eclipse.rse.doc.isv/guide/tutorial/InitializeImageRegistry2.html
2006-05-30 15:32:53 +00:00

31 lines
1.2 KiB
HTML
Executable file

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=UTF-8">
<META HTTP-EQUIV="Content-Style-Type" CONTENT="text/css">
<meta name="copyright" content="Copyright (c) IBM Corporation and others 2002, 2006. This page is made available under license. For full details see the LEGAL in the documentation book that contains this page." >
<LINK REL="STYLESHEET" HREF="../../book.css" TYPE="text/css">
<title>InitializeImageRegistry Method</title>
</head>
<body bgcolor="#ffffff">
<h1>InitializeImageRegistry Method</h1>
<p>
<pre><samp>
/**
* <i>Initialize the image registry by declaring all of the required graphics.</i>
*/
protected void initializeImageRegistry()
{
String path = getIconPath();
putImageInRegistry(&quot;ICON_ID_TEAM&quot;, path+&quot;team.gif&quot;);
putImageInRegistry(&quot;ICON_ID_DEVELOPER&quot;, path+&quot;developer.gif&quot;);
<b>putImageInRegistry("ICON_ID_TEAMFILTER", path+"teamFilter.gif");</b>
<b>putImageInRegistry("ICON_ID_DEVELOPERFILTER", path+"developerFilter.gif");</b>
// TO RETRIEVE AN ICON, CALL GETIMAGE OR GETIMAGEDESCRIPTOR WITH ITS XXX_ID ID
}
</samp></pre>
</p>
</body>
</html>