Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjfogell2006-02-03 16:31:52 -0500
committerjfogell2006-02-03 16:31:52 -0500
commit0fa6a2047b095f5ecc82817b2613299bb2b1b1c3 (patch)
tree9ee744d1f31b4d50b3ea02414f27beff97dc9adf
parentfa1640f8357ed02b19bd7f545e22c679a1134cd6 (diff)
downloadrt.equinox.bundles-0fa6a2047b095f5ecc82817b2613299bb2b1b1c3.tar.gz
rt.equinox.bundles-0fa6a2047b095f5ecc82817b2613299bb2b1b1c3.tar.xz
rt.equinox.bundles-0fa6a2047b095f5ecc82817b2613299bb2b1b1c3.zip
update metadata miles for logservice
-rw-r--r--bundles/org.eclipse.equinox.log/META-INF/METADATA.XML89
-rw-r--r--bundles/org.eclipse.equinox.log/OSGI-INF/l10n/bundle_en.properties (renamed from bundles/org.eclipse.equinox.log/src/META-INF/METADATA_en.properties)0
-rw-r--r--bundles/org.eclipse.equinox.log/OSGI-INF/metatype/METADATA.XML15
3 files changed, 15 insertions, 89 deletions
diff --git a/bundles/org.eclipse.equinox.log/META-INF/METADATA.XML b/bundles/org.eclipse.equinox.log/META-INF/METADATA.XML
deleted file mode 100644
index 602c4bb0..00000000
--- a/bundles/org.eclipse.equinox.log/META-INF/METADATA.XML
+++ /dev/null
@@ -1,89 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<METADATA>
- <ATTRIBUTEDEFINITION ID='log.size' TYPE='Integer' DEFAULTVALUE='100'>
- <NAME>
- <STRING KEY='LOG_SIZE' DEFAULT='Log Size'/>
- </NAME>
- <DESCRIPTION>
- <STRING KEY='LOG_SIZE_DESC' DEFAULT='The size of the log, in number of entries'/>
- </DESCRIPTION>
- <CARDINALITY TYPE='SCALAR' SIZE='' />
- <VALIDATE>
- <RANGE MIN='10' MAX='2000' />
- </VALIDATE>
- </ATTRIBUTEDEFINITION>
-
- <ATTRIBUTEDEFINITION ID='log.threshold' TYPE='Integer' DEFAULTVALUE='4'>
- <NAME>
- <STRING KEY='LOG_THRESHOLD' DEFAULT='The level of logging'/>
- </NAME>
- <DESCRIPTION>
- <STRING KEY='LOG_THRESHOLD_DESC' DEFAULT='The minimum severity level of logged messages'/>
- </DESCRIPTION>
- <CARDINALITY TYPE='SCALAR' SIZE='' />
- <VALIDATE>
- <SET>
- <OPTION VALUE='1'>
- <LABEL>
- <STRING KEY='ERROR' DEFAULT='Error'/>
- </LABEL>
- </OPTION>
- <OPTION VALUE='2'>
- <LABEL>
- <STRING KEY='WARNING' DEFAULT='Warning'/>
- </LABEL>
- </OPTION>
- <OPTION VALUE='3'>
- <LABEL>
- <STRING KEY='INFO' DEFAULT='Informational'/>
- </LABEL>
- </OPTION>
- <OPTION VALUE='4'>
- <LABEL>
- <STRING KEY='DEBUG' DEFAULT='Debug'/>
- </LABEL>
- </OPTION>
- </SET>
- </VALIDATE>
- </ATTRIBUTEDEFINITION>
-
- <OBJECTCLASSDEFINITION
- ID='org.eclipse.equinox.log.Log'
- TYPE='PID'>
- <NAME>
- <STRING KEY='LOG_SETTINGS' DEFAULT='Log Service Settings'/>
- </NAME>
- <DESCRIPTION>
- <STRING KEY='LOG_SETTINGS_DESC' DEFAULT='The Log Service settings that may be configured'/>
- </DESCRIPTION>
- <ATTRIBUTE ID='log.size' REQUIRED='yes'/>
- <ATTRIBUTE ID='log.threshold' REQUIRED='yes'/>
- </OBJECTCLASSDEFINITION>
-
- <LOCALES>
- <LOCALE NAME="en" />
- <LOCALE NAME="de" />
- <LOCALE NAME="es" />
- <LOCALE NAME="fr" />
- <LOCALE NAME="it" />
- <LOCALE NAME="ja" />
- <LOCALE NAME="ko" />
- <LOCALE NAME="pt_BR" />
- <LOCALE NAME="zh_CN" />
- <LOCALE NAME="zh_TW" />
- <LOCALE NAME="ar" />
- <LOCALE NAME="cs" />
- <LOCALE NAME="da" />
- <LOCALE NAME="el" />
- <LOCALE NAME="fi" />
- <LOCALE NAME="hu" />
- <LOCALE NAME="nl" />
- <LOCALE NAME="pl" />
- <LOCALE NAME="pt" />
- <LOCALE NAME="nb" />
- <LOCALE NAME="no" />
- <LOCALE NAME="ru" />
- <LOCALE NAME="sv" />
- <LOCALE NAME="tr" />
- </LOCALES>
-</METADATA>
diff --git a/bundles/org.eclipse.equinox.log/src/META-INF/METADATA_en.properties b/bundles/org.eclipse.equinox.log/OSGI-INF/l10n/bundle_en.properties
index 3691b8f2..3691b8f2 100644
--- a/bundles/org.eclipse.equinox.log/src/META-INF/METADATA_en.properties
+++ b/bundles/org.eclipse.equinox.log/OSGI-INF/l10n/bundle_en.properties
diff --git a/bundles/org.eclipse.equinox.log/OSGI-INF/metatype/METADATA.XML b/bundles/org.eclipse.equinox.log/OSGI-INF/metatype/METADATA.XML
new file mode 100644
index 00000000..006da539
--- /dev/null
+++ b/bundles/org.eclipse.equinox.log/OSGI-INF/metatype/METADATA.XML
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<metatype:MetaData xmlns:metatype="http://www.osgi.org/xmlns/metatype/v1.0.0">
+ <OCD id="org.eclipse.equinox.log.Log" name="%LOG_SETTINGS" description="%LOG_SETTINGS_DESC">
+ <AD id="log.size" name="%LOG_SIZE" type="Integer" default="100" cardinality="0" min="10" max="2000" description="%LOG_SIZE_DESC" required="true"/>
+ <AD id="log.threshold" name="%LOG_THRESHOLD" type="Integer" default="4" cardinality="0" min="1" max="4" description="%LOG_THRESHOLD_DESC" required="true">
+ <Option label= "%ERROR" value="1"/>
+ <Option label= "%WARNING" value="2"/>
+ <Option label= "%INFO" value="3"/>
+ <Option label= "%DEBUG" value="4"/>
+ </AD>
+ </OCD>
+ <Designate pid="org.eclipse.equinox.log.Log">
+ <Object ocdref="org.eclipse.equinox.log.Log"/>
+ </Designate>
+</metatype:MetaData>

Back to the top