enablement ¹× visibility ¿ä¼Ò¸¦ °¢°¢ »ç¿ëÇÏ¿© Á¶Ä¡ÀÇ È°¼º ¹×/¶Ç´Â Ç¥½Ã ¿©ºÎ¸¦ Á¤ÀÇÇÒ ¼ö ÀÖ½À´Ï´Ù. ÀÌµé µÎ ¿ä¼Ò´Â Ȱ¼º ¹×/¶Ç´Â Ç¥½Ã ¿©ºÎ¸¦ ÆÇº°ÇÏ´Â µ¥ Æò°¡µÇ´Â ºÎ¿ï Ç¥Çö½ÄÀ» Æ÷ÇÔÇÕ´Ï´Ù.
±¸¹®Àº enablement ¹× visibility ¿ä¼Ò¿¡ ´ëÇØ µ¿ÀÏÇÕ´Ï´Ù. ÀÌµé µÎ ¿ä¼Ò´Â ÇϳªÀÇ ºÎ¿ï Ç¥Çö½Ä ÇÏÀ§ ¿ä¼Ò¸¦ Æ÷ÇÔÇÕ´Ï´Ù. °¡Àå °£´ÜÇÑ °æ¿ì¿¡ À̰ÍÀº objectClass, objectState, pluginState ¶Ç´Â systemProperty ¿ä¼Ò°¡ µË´Ï´Ù. º¹ÀâÇÑ °æ¿ì¿¡´Â and, or ¹× not ¿ä¼Ò°¡ Á¶ÇÕµÇ¾î ºÎ¿ï Ç¥Çö½ÄÀ» Çü¼ºÇÒ ¼ö ÀÖ½À´Ï´Ù. and ¿ä¼Ò¿Í or ¿ä¼Ò´Â ¸ðµÎ µÎ °³ÀÇ ÇÏÀ§ ¿ä¼Ò¸¦ Æ÷ÇÔÇØ¾ß ÇÕ´Ï´Ù. not ¿ä¼Ò´Â 1°³ÀÇ ÇÏÀ§ ¿ä¼Ò¸¸ Æ÷ÇÔÇØ¾ß ÇÕ´Ï´Ù.
<!ELEMENT extension (decorator*)>
<!ATTLIST extension
point CDATA #REQUIRED
id CDATA #IMPLIED
name CDATA #IMPLIED>
<!ELEMENT decorator (description? , enablement?)>
<!ATTLIST decorator
id CDATA #REQUIRED
label CDATA #REQUIRED
class CDATA #IMPLIED
objectClass CDATA #IMPLIED
adaptable (true | false)
state (true | false)
lightweight (true|false)
icon CDATA #IMPLIED
location (TOP_LEFT|TOP_RIGHT|BOTTOM_LEFT|BOTTOM_RIGHT|UNDERLAY) >
IDecoratorManager#update()
¸¦ »ç¿ëÇÏ¿© ÀÌ·¯ÇÑ °ªÀ» º¯°æÇÏ´Â °æ¿ì
¸í½ÃÀûÀ¸·Î °»½ÅÇØ¾ß ÇÕ´Ï´Ù. <!ELEMENT description (#PCDATA)>
µ¥ÄÚ·¹ÀÌÅÍÀÇ °£´ÜÇÑ ¼³¸íÀ» Á¦°øÇÏ´Â ÅØ½ºÆ®°¡ º»¹®¿¡ ÀÖ´Â ¼±ÅÃÀû ÇÏÀ§ ¿ä¼Ò. µ¥ÄÚ·¹ÀÌÅÍ È¯°æ ¼³Á¤ ÆäÀÌÁö¿¡¼ Ç¥½ÃµÇ¹Ç·Î À̸¦ Æ÷ÇÔ½ÃŰ´Â °ÍÀÌ ÁÁ½À´Ï´Ù. ±âº»°ªÀº ºó ¹®ÀÚ¿ÀÔ´Ï´Ù.
<!ELEMENT enablement (and | or | not | objectClass | objectState | pluginState | systemProperty)>
ÀÌ ¿ä¼Ò´Â È®ÀåÀÇ È°¼ºÀ» Á¤ÀÇÇÏ´Â µ¥ »ç¿ëµË´Ï´Ù.
<!ELEMENT visibility (and | or | not | objectClass | objectState | pluginState | systemProperty)>
ÀÌ ¿ä¼Ò´Â È®ÀåÀÇ °¡½Ã¼ºÀ» Á¤ÀÇÇÏ´Â µ¥ »ç¿ëµË´Ï´Ù.
<!ELEMENT and (and | or | not | objectClass | objectState | pluginState | systemProperty)>
ÀÌ ¿ä¼Ò´Â µÎ °³ÀÇ ÇÏÀ§ ¿ä¼Ò Ç¥Çö½Ä Æò°¡ °á°ú¿¡¼ ºÎ¿ï AND ¿¬»êÀ» ³ªÅ¸³À´Ï´Ù.
<!ELEMENT or (and | or | not | objectClass | objectState | pluginState | systemProperty)>
ÀÌ ¿ä¼Ò´Â µÎ °³ÀÇ ÇÏÀ§ ¿ä¼Ò Ç¥Çö½Ä Æò°¡ °á°ú¿¡¼ ºÎ¿ï OR ¿¬»êÀ» ³ªÅ¸³À´Ï´Ù.
<!ELEMENT not (and | or | not | objectClass | objectState | pluginState | systemProperty)>
ÀÌ ¿ä¼Ò´Â ÇÏÀ§ ¿ä¼Ò Ç¥Çö½Ä Æò°¡ °á°ú¿¡¼ ºÎ¿ï NOT ¿¬»êÀ» ³ªÅ¸³À´Ï´Ù.
<!ELEMENT objectClass EMPTY>
<!ATTLIST objectClass
name CDATA #REQUIRED>
ÀÌ ¿ä¼Ò´Â ÇöÀç ¼±ÅûçÇ׿¡ ÀÖ´Â °¢ ¿ÀºêÁ§Æ®ÀÇ Å¬·¡½º ¶Ç´Â ÀÎÅÍÆäÀ̽º¸¦ Æò°¡ÇÏ´Â µ¥ »ç¿ëµË´Ï´Ù. ¼±ÅûçÇ×ÀÇ °¢ ¿ÀºêÁ§Æ®¿¡¼ ÁöÁ¤µÈ Ŭ·¡½º ¶Ç´Â ÀÎÅÍÆäÀ̽º¸¦ ±¸ÇöÇϸé Ç¥Çö½ÄÀº true·Î Æò°¡µË´Ï´Ù.
<!ELEMENT objectState EMPTY>
<!ATTLIST objectState
name CDATA #REQUIRED
value CDATA #REQUIRED>
ÀÌ ¿ä¼Ò´Â ÇöÀç ¼±ÅûçÇ×ÀÇ °¢ ¿ÀºêÁ§Æ® ¼Ó¼º »óŸ¦ Æò°¡ÇÏ´Â µ¥ »ç¿ëµË´Ï´Ù. ¼±ÅûçÇ×ÀÇ °¢ ¿ÀºêÁ§Æ®¿¡ ÁöÁ¤µÈ ¼Ó¼º »óŰ¡ ÀÖÀ¸¸é Ç¥Çö½ÄÀº true·Î Æò°¡µË´Ï´Ù. Ç¥Çö½ÄÀÇ ÀÌ À¯ÇüÀ» Æò°¡ÇÏ·Á¸é ¼±ÅûçÇ×ÀÇ °¢ ¿ÀºêÁ§Æ®¸¦ ±¸ÇöÇϰųª org.eclipse.ui.IActionFilter ÀÎÅÍÆäÀ̽º¿¡ Àû¿ë½ÃÄÑ¾ß ÇÕ´Ï´Ù.
<!ELEMENT pluginState EMPTY>
<!ATTLIST pluginState
id CDATA #REQUIRED
value (installed|activated) "installed">
ÀÌ ¿ä¼Ò´Â Ç÷¯±×ÀÎÀÇ »óŸ¦ Æò°¡ÇÏ´Â µ¥ »ç¿ëµË´Ï´Ù. Ç÷¯±×ÀÎÀÇ »óÅ´ installed(OSGiÀÇ "resolved" °³³ä¿¡ ÇØ´ç) ¶Ç´Â activated(OSGiÀÇ "active" °³³ä¿¡ ÇØ´ç) Áß ÇϳªÀÏ ¼ö ÀÖ½À´Ï´Ù.
<!ELEMENT systemProperty EMPTY>
<!ATTLIST systemProperty
name CDATA #REQUIRED
value CDATA #REQUIRED>
ÀÌ ¿ä¼Ò´Â ÀϺΠ½Ã½ºÅÛ Æ¯¼ºÀÇ »óŸ¦ Æò°¡ÇÏ´Â µ¥ »ç¿ëµË´Ï´Ù. Ư¼º °ªÀº java.lang.System¿¡¼ °Ë»öµË´Ï´Ù.
Àüü µ¥ÄÚ·¹ÀÌÅÍ. Ç÷¯±×ÀÎ µ¥ÄÚ·¹ÀÌÅÍ´Â °íÀ¯ÇÑ À̹ÌÁö Áö¿øÀ» ó¸®ÇØ¾ß ÇÕ´Ï´Ù.
<extension point=
"org.eclipse.ui.decorators"
>
<decorator id=
"com.xyz.decorator"
label=
"XYZ Decorator"
state=
"true"
class=
"com.xyz.DecoratorContributor"
>
<enablement>
<objectClass name=
"org.eclipse.core.resources.IResource"
/>
</enablement>
</decorator>
</extension>
°£´ÜÇÑ µ¥ÄÚ·¹ÀÌÅÍ. ¸íÈ®ÇÑ Å¬·¡½º°¡ ÀÖÁö¸¸ ILightweightLabelDecoratorÀÌ¹Ç·Î ÅØ½ºÆ®¿Í ImageDescriptor¸¦ Á¦°øÇϱ⸸ ÇÏ¸é µÇ°í ÀÚ¿øÀ» ó¸®ÇÏÁö ¾Ê¾Æµµ µË´Ï´Ù.
<extension point=
"org.eclipse.ui.decorators"
>
<decorator id=
"com.xyz.lightweight.decorator"
label=
"XYZ Lightweight Decorator"
state=
"false"
class=
"com.xyz.LightweightDecoratorContributor"
lightweight=
"true"
>
<enablement>
<objectClass name=
"org.eclipse.core.resources.IResource"
/>
</enablement>
</decorator>
</extension>
¼±¾ðÀû °£´ÜÇÑ µ¥ÄÚ·¹ÀÌÅÍ. ¸íÈ®ÇÑ Å¬·¡½º°¡ ¾øÀ¸¹Ç·Î ¾ÆÀÌÄÜ ¹× ¾ÆÀÌÄÜÀÌ Àû¿ëµÉ 4ºÐ¸éÀ» Á¦°øÇÕ´Ï´Ù.
<extension point=
"org.eclipse.ui.decorators"
>
<decorator id=
"com.xyz.lightweight.declarative.decorator"
label=
"XYZ Lightweight Declarative Decorator"
state=
"false"
lightweight=
"true"
icon=
"icons/full/declarative.gif"
location=
"TOP_LEFT"
>
<enablement>
<objectClass name=
"org.eclipse.core.resources.IResource"
/>
</enablement>
</decorator>
</extension>
Copyright (c) 2002, 2004 IBM Corporation and others.
All rights reserved. º» ÇÁ·Î±×·¥ ¹× º» ÇÁ·Î±×·¥¿¡ µ¿ºÀµÇ´Â ÀÚ·á´Â º» ¹èÆ÷¹°¿¡ µ¿ºÀµÇ´Â Eclipse Public License v1.0ÀÇ Á¶Ç׿¡ µû¶ó »ç¿ëÇØ¾ß Çϸç
À¥ »çÀÌÆ®(http://www.eclipse.org/legal/epl-v10.html)¿¡¼µµ °ü·Ã »çÇ×À» ÂüÁ¶ÇÒ ¼ö ÀÖ½À´Ï´Ù.