tag:blogger.com,1999:blog-14073284640375573082024-03-14T01:16:23.803-07:00Eclipse RCP Step by StepIn this blog I'll demonstrate how to implement few very basic application functionalities in Eclipse RCP.Harikrushna Vhttp://www.blogger.com/profile/09928292899811466018noreply@blogger.comBlogger45125tag:blogger.com,1999:blog-1407328464037557308.post-91465712421585947142023-01-30T01:19:00.003-08:002023-01-30T01:51:17.872-08:00Trial Post<p> </p><div class="separator" style="clear: both; text-align: center;"><div class="separator" style="clear: both; text-align: center;"><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/a/AVvXsEhl7bVSg9adGNWqfIWDRevj7LH0-oQ9jTpHcUaP6t8rsXGR1KJBzlifqYYm_aSDFGGXXZwSDcK_Hvq-QMKQReUS326yS2Uf5iLZullpBBlXCzUIFlkis7Mg1Z0kEWwBgOto6u0cNrGOacIygWQrRqXSXV2iqmcLxOdJsoRB2LTe0F0Q2ZVo_ul52AeNJw" style="margin-left: 1em; margin-right: 1em;"><img alt="" data-original-height="252" data-original-width="252" height="240" src="https://blogger.googleusercontent.com/img/a/AVvXsEhl7bVSg9adGNWqfIWDRevj7LH0-oQ9jTpHcUaP6t8rsXGR1KJBzlifqYYm_aSDFGGXXZwSDcK_Hvq-QMKQReUS326yS2Uf5iLZullpBBlXCzUIFlkis7Mg1Z0kEWwBgOto6u0cNrGOacIygWQrRqXSXV2iqmcLxOdJsoRB2LTe0F0Q2ZVo_ul52AeNJw" width="240" /></a></div><br /><br /></div><div class="separator" style="clear: both; text-align: center;"><br /></div><div class="separator" style="clear: both; text-align: center;"><br /></div><div class="separator" style="clear: both; text-align: center;"><div class="separator" style="clear: both; text-align: center;"><div class="separator" style="clear: both; text-align: center;"><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/a/AVvXsEiI0YvzSc4GPZLQ70EuRBGUk7Pl_ei3CsuDp6k1Ixy6d5xO3cDJ2TfraZ-S9Ejk8FSmMYcmVIBkFb5_UHYH2GqaV_GNEOEkBK_oIO0L4_7MdnI6EWLRYQZqInXhylBYV8xvNhWd7oWEAnK7amYAJgVVGSqjVSKrKiGFWhYFSFJkexZw7H0t5AZ3YrOj8w" style="margin-left: 1em; margin-right: 1em;"><img alt="" data-original-height="252" data-original-width="252" height="240" src="https://blogger.googleusercontent.com/img/a/AVvXsEiI0YvzSc4GPZLQ70EuRBGUk7Pl_ei3CsuDp6k1Ixy6d5xO3cDJ2TfraZ-S9Ejk8FSmMYcmVIBkFb5_UHYH2GqaV_GNEOEkBK_oIO0L4_7MdnI6EWLRYQZqInXhylBYV8xvNhWd7oWEAnK7amYAJgVVGSqjVSKrKiGFWhYFSFJkexZw7H0t5AZ3YrOj8w" width="240" /></a></div><br /><br /></div><br /><br /></div><br /><br /></div><br /><br /></div><br /><p></p>Harikrushna Vhttp://www.blogger.com/profile/09928292899811466018noreply@blogger.com0tag:blogger.com,1999:blog-1407328464037557308.post-82943506632588901402020-10-08T09:40:00.002-07:002020-10-08T09:40:38.866-07:00What is Maven archetype for Eclipse RCP ?<p> What is Maven archetype for Eclipse RCP ?</p><p>Use following command to create Eclipse RCP project with Maven.</p><p><br /></p>
<!--HTML generated using hilite.me--><div style="background: rgb(255, 255, 255); border-color: gray; border-image: initial; border-style: solid; border-width: 0.1em 0.1em 0.1em 0.8em; border: solid gray; overflow: auto; padding: 0.2em 0.6em; width: auto;"><pre style="line-height: 125%; margin: 0px;">mvn org.apache.maven.plugins:maven-archetype-plugin:2.4:generate </pre><pre style="line-height: 125%; margin: 0px;">-DarchetypeCatalog<span style="color: #333333;">=</span>http://open-archetypes.github.com/maven-repo/releases/ </pre><pre style="line-height: 125%; margin: 0px;">-DarchetypeGroupId<span style="color: #333333;">=</span>org.openarchetypes </pre><pre style="line-height: 125%; margin: 0px;">-DarchetypeArtifactId<span style="color: #333333;">=</span>tycho-eclipse-plugin-archetype
</pre></div>
Harikrushna Vhttp://www.blogger.com/profile/09928292899811466018noreply@blogger.com0tag:blogger.com,1999:blog-1407328464037557308.post-68353927898756219882019-06-18T10:08:00.000-07:002019-06-18T10:08:05.132-07:00could not calculate build plan plugin maven-compiler-plugin<div dir="ltr" style="text-align: left;" trbidi="on">
<br />
could not calculate build plan plugin maven-compiler-plugin<br />
<br />
<!-- HTML generated using hilite.me --><br />
<div style="background: #ffffff; border-width: 0.1em 0.1em 0.1em 0.8em; border: solid gray; overflow: auto; padding: 0.2em 0.6em; width: auto;">
<pre style="line-height: 125%; margin: 0;">Could not calculate build plan: Plugin org.apache.maven.plugins:maven-resources-plugin:2.5 or one of its dependencies could not be resolved:
</pre>
</div>
<br />
Solution:<br />
<br />
remove the following folder and then try to re-run the mvn command and it will work.<br />
<br />
<style type="text/css">
p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo; color: #000000}
span.s1 {font-variant-ligatures: no-common-ligatures}
</style>
<br />
<!-- HTML generated using hilite.me --><br />
<div style="background: #ffffff; border-width: 0.1em 0.1em 0.1em 0.8em; border: solid gray; overflow: auto; padding: 0.2em 0.6em; width: auto;">
<pre style="line-height: 125%; margin: 0;">rm -rf ~/.m2/repository/org/apache/maven/plugins/maven-*
</pre>
</div>
</div>
Harikrushna Vhttp://www.blogger.com/profile/09928292899811466018noreply@blogger.com0tag:blogger.com,1999:blog-1407328464037557308.post-23802470561812228832019-01-20T02:21:00.001-08:002019-01-20T02:21:28.433-08:00Cannot open DBM /mead/etc/enidf<div dir="ltr" style="text-align: left;" trbidi="on">
<h2 style="height: 0px; text-align: left;">
</h2>
<h4 style="text-align: left;">
Error while using MEAD for Text Mining</h4>
<span class="s1">Can't open idf: Inappropriate file type or format</span><span class="s1">Cannot open DBM mead/etc/enidf </span><span style="font-variant-ligatures: no-common-ligatures;">at mead/bin/../lib/Essence/IDF.pm line 44.</span><br />
<div>
<span class="s1"><br /></span><span class="s1"><b>Solution</b>:</span><span class="s1"><br /></span><span class="s1"><br /></span>
<!-- HTML generated using hilite.me --><br />
<div style="background: #ffffff; border-width: 0.1em 0.1em 0.1em 0.8em; border: solid gray; overflow: auto; padding: 0.2em 0.6em; width: auto;">
<pre style="line-height: 125%; margin: 0;"><span style="color: #007020;">cd</span> <span style="color: #996633;">$MEAD_HOME</span>/etc/
rm -rf enidf
cat enidf.txt | ../bin/write-idf.pl enidf
</pre>
</div>
</div>
<div class="p1" style="text-align: left;">
<span class="s1">
<style type="text/css">
p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo; color: #000000; background-color: #ffffff}
span.s1 {font-variant-ligatures: no-common-ligatures}
</style>
</span></div>
<style type="text/css">
p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo; color: #000000; background-color: #ffffff}
span.s1 {font-variant-ligatures: no-common-ligatures}
</style>
</div>
Harikrushna Vhttp://www.blogger.com/profile/09928292899811466018noreply@blogger.com0tag:blogger.com,1999:blog-1407328464037557308.post-4427336713060277912018-11-25T02:12:00.001-08:002018-11-25T02:12:35.143-08:00HHH000424: Disabling contextual LOB creation as createClob() method threw error : java.lang.reflect.InvocationTargetException<div dir="ltr" style="text-align: left;" trbidi="on">
<style type="text/css">
p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Monaco}
span.s1 {text-decoration: underline ; color: #0080e1}
</style>
<br />
<h2 style="text-align: left;">
HHH000424: Disabling contextual LOB creation as createClob() method threw error : <span class="s1">java.lang.reflect.InvocationTargetException</span></h2>
If you get following error while connecting to your Database with Spring boot, try the suggested solution below:<br />
<br />
<!-- HTML generated using hilite.me --><br />
<div style="background: #ffffff; border-width: 0.1em 0.1em 0.1em 0.8em; border: solid gray; overflow: auto; padding: 0.2em 0.6em; width: auto;">
<pre style="line-height: 125%; margin: 0;"><span style="color: #009999;">2018</span>-<span style="color: #009999;">11</span>-<span style="color: #009999;">25</span> <span style="color: #009999;">15</span>:<span style="color: #009999;">28</span>:<span style="color: #009999;">50.078</span> INFO <span style="color: #009999;">5335</span> --- [ main] o.<span style="color: dodgerblue;">h</span>.<span style="color: dodgerblue;">e</span>.<span style="color: dodgerblue;">j</span>.<span style="color: dodgerblue;">e</span>.<span style="color: dodgerblue;">i</span>.<span style="color: dodgerblue;">LobCreatorBuilderImpl</span> : HHH000424: Disabling contextual LOB creation as createClob() method threw error : java.<span style="color: dodgerblue;">lang</span>.<span style="color: dodgerblue;">reflect</span>.<span style="color: dodgerblue;">InvocationTargetException</span>
java.<span style="color: dodgerblue;">lang</span>.<span style="color: dodgerblue;">reflect</span>.<span style="color: dodgerblue;">InvocationTargetException</span>: <span style="color: #0000aa;">null</span>
at sun.<span style="color: dodgerblue;">reflect</span>.<span style="color: dodgerblue;">NativeMethodAccessorImpl</span>.<span style="color: dodgerblue;">invoke0</span>(Native Method) ~[na:<span style="color: #009999;">1.8</span>.<span style="color: #009999;">0</span>_161]
at sun.<span style="color: dodgerblue;">reflect</span>.<span style="color: dodgerblue;">NativeMethodAccessorImpl</span>.<span style="color: dodgerblue;">invoke</span>(NativeMethodAccessorImpl.<span style="color: dodgerblue;">java</span>:<span style="color: #009999;">62</span>) ~[na:<span style="color: #009999;">1.8</span>.<span style="color: #009999;">0</span>_161]
at sun.<span style="color: dodgerblue;">reflect</span>.<span style="color: dodgerblue;">DelegatingMethodAccessorImpl</span>.<span style="color: dodgerblue;">invoke</span>(DelegatingMethodAccessorImpl.<span style="color: dodgerblue;">java</span>:<span style="color: #009999;">43</span>) ~[na:<span style="color: #009999;">1.8</span>.<span style="color: #009999;">0</span>_161]
at java.<span style="color: dodgerblue;">lang</span>.<span style="color: dodgerblue;">reflect</span>.<span style="color: dodgerblue;">Method</span>.<span style="color: dodgerblue;">invoke</span>(Method.<span style="color: dodgerblue;">java</span>:<span style="color: #009999;">498</span>) ~[na:<span style="color: #009999;">1.8</span>.<span style="color: #009999;">0</span>_161]
at org.<span style="color: dodgerblue;">hibernate</span>.<span style="color: dodgerblue;">engine</span>.<span style="color: dodgerblue;">jdbc</span>.<span style="color: dodgerblue;">env</span>.<span style="color: dodgerblue;">internal</span>.<span style="color: dodgerblue;">LobCreatorBuilderImpl</span>.<span style="color: dodgerblue;">useContextualLobCreation</span>(LobCreatorBuilderImpl.<span style="color: dodgerblue;">java</span>:<span style="color: #009999;">113</span>) [hibernate-core-<span style="color: #009999;">5.3</span>.<span style="color: #009999;">7</span>.<span style="color: dodgerblue;">Final</span>.<span style="color: dodgerblue;">jar</span>:<span style="color: #009999;">5.3</span>.<span style="color: #009999;">7</span>.<span style="color: dodgerblue;">Final</span>]
at org.<span style="color: dodgerblue;">hibernate</span>.<span style="color: dodgerblue;">engine</span>.<span style="color: dodgerblue;">jdbc</span>.<span style="color: dodgerblue;">env</span>.<span style="color: dodgerblue;">internal</span>.<span style="color: dodgerblue;">LobCreatorBuilderImpl</span>.<span style="color: dodgerblue;">makeLobCreatorBuilder</span>(LobCreatorBuilderImpl.<span style="color: dodgerblue;">java</span>:<span style="color: #009999;">54</span>) [hibernate-core-<span style="color: #009999;">5.3</span>.<span style="color: #009999;">7</span>.<span style="color: dodgerblue;">Final</span>.<span style="color: dodgerblue;">jar</span>:<span style="color: #009999;">5.3</span>.<span style="color: #009999;">7</span>.<span style="color: dodgerblue;">Final</span>]
at org.<span style="color: dodgerblue;">hibernate</span>.<span style="color: dodgerblue;">engine</span>.<span style="color: dodgerblue;">jdbc</span>.<span style="color: dodgerblue;">env</span>.<span style="color: dodgerblue;">internal</span>.<span style="color: dodgerblue;">JdbcEnvironmentImpl</span>.<init>(JdbcEnvironmentImpl.<span style="color: dodgerblue;">java</span>:<span style="color: #009999;">271</span>) [hibernate-core-<span style="color: #009999;">5.3</span>.<span style="color: #009999;">7</span>.<span style="color: dodgerblue;">Final</span>.<span style="color: dodgerblue;">jar</span>:<span style="color: #009999;">5.3</span>.<span style="color: #009999;">7</span>.<span style="color: dodgerblue;">Final</span>]
at org.<span style="color: dodgerblue;">hibernate</span>.<span style="color: dodgerblue;">engine</span>.<span style="color: dodgerblue;">jdbc</span>.<span style="color: dodgerblue;">env</span>.<span style="color: dodgerblue;">internal</span>.<span style="color: dodgerblue;">JdbcEnvironmentInitiator</span>.<span style="color: dodgerblue;">initiateService</span>(JdbcEnvironmentInitiator.<span style="color: dodgerblue;">java</span>:<span style="color: #009999;">114</span>) [hibernate-core-<span style="color: #009999;">5.3</span>.<span style="color: #009999;">7</span>.<span style="color: dodgerblue;">Final</span>.<span style="color: dodgerblue;">jar</span>:<span style="color: #009999;">5.3</span>.<span style="color: #009999;">7</span>.<span style="color: dodgerblue;">Final</span>]
at org.<span style="color: dodgerblue;">hibernate</span>.<span style="color: dodgerblue;">engine</span>.<span style="color: dodgerblue;">jdbc</span>.<span style="color: dodgerblue;">env</span>.<span style="color: dodgerblue;">internal</span>.<span style="color: dodgerblue;">JdbcEnvironmentInitiator</span>.<span style="color: dodgerblue;">initiateService</span>(JdbcEnvironmentInitiator.<span style="color: dodgerblue;">java</span>:<span style="color: #009999;">35</span>) [hibernate-core-<span style="color: #009999;">5.3</span>.<span style="color: #009999;">7</span>.<span style="color: dodgerblue;">Final</span>.<span style="color: dodgerblue;">jar</span>:<span style="color: #009999;">5.3</span>.<span style="color: #009999;">7</span>.<span style="color: dodgerblue;">Final</span>]
at org.<span style="color: dodgerblue;">hibernate</span>.<span style="color: dodgerblue;">boot</span>.<span style="color: dodgerblue;">registry</span>.<span style="color: dodgerblue;">internal</span>.<span style="color: dodgerblue;">StandardServiceRegistryImpl</span>.<span style="color: dodgerblue;">initiateService</span>(StandardServiceRegistryImpl.<span style="color: dodgerblue;">java</span>:<span style="color: #009999;">94</span>) [hibernate-core-<span style="color: #009999;">5.3</span>.<span style="color: #009999;">7</span>.<span style="color: dodgerblue;">Final</span>.<span style="color: dodgerblue;">jar</span>:<span style="color: #009999;">5.3</span>.<span style="color: #009999;">7</span>.<span style="color: dodgerblue;">Final</span>]
at org.<span style="color: dodgerblue;">hibernate</span>.<span style="color: dodgerblue;">service</span>.<span style="color: dodgerblue;">internal</span>.<span style="color: dodgerblue;">AbstractServiceRegistryImpl</span>.<span style="color: dodgerblue;">createService</span>(AbstractServiceRegistryImpl.<span style="color: dodgerblue;">java</span>:<span style="color: #009999;">263</span>) [hibernate-core-<span style="color: #009999;">5.3</span>.<span style="color: #009999;">7</span>.<span style="color: dodgerblue;">Final</span>.<span style="color: dodgerblue;">jar</span>:<span style="color: #009999;">5.3</span>.<span style="color: #009999;">7</span>.<span style="color: dodgerblue;">Final</span>]
at org.<span style="color: dodgerblue;">hibernate</span>.<span style="color: dodgerblue;">service</span>.<span style="color: dodgerblue;">internal</span>.<span style="color: dodgerblue;">AbstractServiceRegistryImpl</span>.<span style="color: dodgerblue;">initializeService</span>(AbstractServiceRegistryImpl.<span style="color: dodgerblue;">java</span>:<span style="color: #009999;">237</span>) [hibernate-core-<span style="color: #009999;">5.3</span>.<span style="color: #009999;">7</span>.<span style="color: dodgerblue;">Final</span>.<span style="color: dodgerblue;">jar</span>:<span style="color: #009999;">5.3</span>.<span style="color: #009999;">7</span>.<span style="color: dodgerblue;">Final</span>]
at org.<span style="color: dodgerblue;">hibernate</span>.<span style="color: dodgerblue;">service</span>.<span style="color: dodgerblue;">internal</span>.<span style="color: dodgerblue;">AbstractServiceRegistryImpl</span>.<span style="color: dodgerblue;">getService</span>(AbstractServiceRegistryImpl.<span style="color: dodgerblue;">java</span>:<span style="color: #009999;">214</span>) [hibernate-core-<span style="color: #009999;">5.3</span>.<span style="color: #009999;">7</span>.<span style="color: dodgerblue;">Final</span>.<span style="color: dodgerblue;">jar</span>:<span style="color: #009999;">5.3</span>.<span style="color: #009999;">7</span>.<span style="color: dodgerblue;">Final</span>]
at org.<span style="color: dodgerblue;">hibernate</span>.<span style="color: dodgerblue;">id</span>.<span style="color: dodgerblue;">factory</span>.<span style="color: dodgerblue;">internal</span>.<span style="color: dodgerblue;">DefaultIdentifierGeneratorFactory</span>.<span style="color: dodgerblue;">injectServices</span>(DefaultIdentifierGeneratorFactory.<span style="color: dodgerblue;">java</span>:<span style="color: #009999;">152</span>) [hibernate-core-<span style="color: #009999;">5.3</span>.<span style="color: #009999;">7</span>.<span style="color: dodgerblue;">Final</span>.<span style="color: dodgerblue;">jar</span>:<span style="color: #009999;">5.3</span>.<span style="color: #009999;">7</span>.<span style="color: dodgerblue;">Final</span>]
at org.<span style="color: dodgerblue;">hibernate</span>.<span style="color: dodgerblue;">service</span>.<span style="color: dodgerblue;">internal</span>.<span style="color: dodgerblue;">AbstractServiceRegistryImpl</span>.<span style="color: dodgerblue;">injectDependencies</span>(AbstractServiceRegistryImpl.<span style="color: dodgerblue;">java</span>:<span style="color: #009999;">286</span>) [hibernate-core-<span style="color: #009999;">5.3</span>.<span style="color: #009999;">7</span>.<span style="color: dodgerblue;">Final</span>.<span style="color: dodgerblue;">jar</span>:<span style="color: #009999;">5.3</span>.<span style="color: #009999;">7</span>.<span style="color: dodgerblue;">Final</span>]
at org.<span style="color: dodgerblue;">hibernate</span>.<span style="color: dodgerblue;">service</span>.<span style="color: dodgerblue;">internal</span>.<span style="color: dodgerblue;">AbstractServiceRegistryImpl</span>.<span style="color: dodgerblue;">initializeService</span>(AbstractServiceRegistryImpl.<span style="color: dodgerblue;">java</span>:<span style="color: #009999;">243</span>) [hibernate-core-<span style="color: #009999;">5.3</span>.<span style="color: #009999;">7</span>.<span style="color: dodgerblue;">Final</span>.<span style="color: dodgerblue;">jar</span>:<span style="color: #009999;">5.3</span>.<span style="color: #009999;">7</span>.<span style="color: dodgerblue;">Final</span>]
at org.<span style="color: dodgerblue;">hibernate</span>.<span style="color: dodgerblue;">service</span>.<span style="color: dodgerblue;">internal</span>.<span style="color: dodgerblue;">AbstractServiceRegistryImpl</span>.<span style="color: dodgerblue;">getService</span>(AbstractServiceRegistryImpl.<span style="color: dodgerblue;">java</span>:<span style="color: #009999;">214</span>) [hibernate-core-<span style="color: #009999;">5.3</span>.<span style="color: #009999;">7</span>.<span style="color: dodgerblue;">Final</span>.<span style="color: dodgerblue;">jar</span>:<span style="color: #009999;">5.3</span>.<span style="color: #009999;">7</span>.<span style="color: dodgerblue;">Final</span>]
at org.<span style="color: dodgerblue;">hibernate</span>.<span style="color: dodgerblue;">boot</span>.<span style="color: dodgerblue;">internal</span>.<span style="color: dodgerblue;">InFlightMetadataCollectorImpl</span>.<init>(InFlightMetadataCollectorImpl.<span style="color: dodgerblue;">java</span>:<span style="color: #009999;">179</span>) [hibernate-core-<span style="color: #009999;">5.3</span>.<span style="color: #009999;">7</span>.<span style="color: dodgerblue;">Final</span>.<span style="color: dodgerblue;">jar</span>:<span style="color: #009999;">5.3</span>.<span style="color: #009999;">7</span>.<span style="color: dodgerblue;">Final</span>]
at org.<span style="color: dodgerblue;">hibernate</span>.<span style="color: dodgerblue;">boot</span>.<span style="color: dodgerblue;">model</span>.<span style="color: dodgerblue;">process</span>.<span style="color: dodgerblue;">spi</span>.<span style="color: dodgerblue;">MetadataBuildingProcess</span>.<span style="color: dodgerblue;">complete</span>(MetadataBuildingProcess.<span style="color: dodgerblue;">java</span>:<span style="color: #009999;">119</span>) [hibernate-core-<span style="color: #009999;">5.3</span>.<span style="color: #009999;">7</span>.<span style="color: dodgerblue;">Final</span>.<span style="color: dodgerblue;">jar</span>:<span style="color: #009999;">5.3</span>.<span style="color: #009999;">7</span>.<span style="color: dodgerblue;">Final</span>]
at org.<span style="color: dodgerblue;">hibernate</span>.<span style="color: dodgerblue;">jpa</span>.<span style="color: dodgerblue;">boot</span>.<span style="color: dodgerblue;">internal</span>.<span style="color: dodgerblue;">EntityManagerFactoryBuilderImpl</span>.<span style="color: dodgerblue;">metadata</span>(EntityManagerFactoryBuilderImpl.<span style="color: dodgerblue;">java</span>:<span style="color: #009999;">904</span>) [hibernate-core-<span style="color: #009999;">5.3</span>.<span style="color: #009999;">7</span>.<span style="color: dodgerblue;">Final</span>.<span style="color: dodgerblue;">jar</span>:<span style="color: #009999;">5.3</span>.<span style="color: #009999;">7</span>.<span style="color: dodgerblue;">Final</span>]
at org.<span style="color: dodgerblue;">hibernate</span>.<span style="color: dodgerblue;">jpa</span>.<span style="color: dodgerblue;">boot</span>.<span style="color: dodgerblue;">internal</span>.<span style="color: dodgerblue;">EntityManagerFactoryBuilderImpl</span>.<span style="color: dodgerblue;">build</span>(EntityManagerFactoryBuilderImpl.<span style="color: dodgerblue;">java</span>:<span style="color: #009999;">935</span>) [hibernate-core-<span style="color: #009999;">5.3</span>.<span style="color: #009999;">7</span>.<span style="color: dodgerblue;">Final</span>.<span style="color: dodgerblue;">jar</span>:<span style="color: #009999;">5.3</span>.<span style="color: #009999;">7</span>.<span style="color: dodgerblue;">Final</span>]
at org.<span style="color: dodgerblue;">springframework</span>.<span style="color: dodgerblue;">orm</span>.<span style="color: dodgerblue;">jpa</span>.<span style="color: dodgerblue;">vendor</span>.<span style="color: dodgerblue;">SpringHibernateJpaPersistenceProvider</span>.<span style="color: dodgerblue;">createContainerEntityManagerFactory</span>(SpringHibernateJpaPersistenceProvider.<span style="color: dodgerblue;">java</span>:<span style="color: #009999;">57</span>) [spring-orm-<span style="color: #009999;">5.1</span>.<span style="color: #009999;">2</span>.<span style="color: dodgerblue;">RELEASE</span>.<span style="color: dodgerblue;">jar</span>:<span style="color: #009999;">5.1</span>.<span style="color: #009999;">2</span>.<span style="color: dodgerblue;">RELEASE</span>]
at org.<span style="color: dodgerblue;">springframework</span>.<span style="color: dodgerblue;">orm</span>.<span style="color: dodgerblue;">jpa</span>.<span style="color: dodgerblue;">LocalContainerEntityManagerFactoryBean</span>.<span style="color: dodgerblue;">createNativeEntityManagerFactory</span>(LocalContainerEntityManagerFactoryBean.<span style="color: dodgerblue;">java</span>:<span style="color: #009999;">365</span>) [spring-orm-<span style="color: #009999;">5.1</span>.<span style="color: #009999;">2</span>.<span style="color: dodgerblue;">RELEASE</span>.<span style="color: dodgerblue;">jar</span>:<span style="color: #009999;">5.1</span>.<span style="color: #009999;">2</span>.<span style="color: dodgerblue;">RELEASE</span>]
at org.<span style="color: dodgerblue;">springframework</span>.<span style="color: dodgerblue;">orm</span>.<span style="color: dodgerblue;">jpa</span>.<span style="color: dodgerblue;">AbstractEntityManagerFactoryBean</span>.<span style="color: dodgerblue;">buildNativeEntityManagerFactory</span>(AbstractEntityManagerFactoryBean.<span style="color: dodgerblue;">java</span>:<span style="color: #009999;">390</span>) [spring-orm-<span style="color: #009999;">5.1</span>.<span style="color: #009999;">2</span>.<span style="color: dodgerblue;">RELEASE</span>.<span style="color: dodgerblue;">jar</span>:<span style="color: #009999;">5.1</span>.<span style="color: #009999;">2</span>.<span style="color: dodgerblue;">RELEASE</span>]
at org.<span style="color: dodgerblue;">springframework</span>.<span style="color: dodgerblue;">orm</span>.<span style="color: dodgerblue;">jpa</span>.<span style="color: dodgerblue;">AbstractEntityManagerFactoryBean</span>.<span style="color: dodgerblue;">afterPropertiesSet</span>(AbstractEntityManagerFactoryBean.<span style="color: dodgerblue;">java</span>:<span style="color: #009999;">377</span>) [spring-orm-<span style="color: #009999;">5.1</span>.<span style="color: #009999;">2</span>.<span style="color: dodgerblue;">RELEASE</span>.<span style="color: dodgerblue;">jar</span>:<span style="color: #009999;">5.1</span>.<span style="color: #009999;">2</span>.<span style="color: dodgerblue;">RELEASE</span>]
at org.<span style="color: dodgerblue;">springframework</span>.<span style="color: dodgerblue;">orm</span>.<span style="color: dodgerblue;">jpa</span>.<span style="color: dodgerblue;">LocalContainerEntityManagerFactoryBean</span>.<span style="color: dodgerblue;">afterPropertiesSet</span>(LocalContainerEntityManagerFactoryBean.<span style="color: dodgerblue;">java</span>:<span style="color: #009999;">341</span>) [spring-orm-<span style="color: #009999;">5.1</span>.<span style="color: #009999;">2</span>.<span style="color: dodgerblue;">RELEASE</span>.<span style="color: dodgerblue;">jar</span>:<span style="color: #009999;">5.1</span>.<span style="color: #009999;">2</span>.<span style="color: dodgerblue;">RELEASE</span>]
at org.<span style="color: dodgerblue;">springframework</span>.<span style="color: dodgerblue;">beans</span>.<span style="color: dodgerblue;">factory</span>.<span style="color: dodgerblue;">support</span>.<span style="color: dodgerblue;">AbstractAutowireCapableBeanFactory</span>.<span style="color: dodgerblue;">invokeInitMethods</span>(AbstractAutowireCapableBeanFactory.<span style="color: dodgerblue;">java</span>:<span style="color: #009999;">1804</span>) [spring-beans-<span style="color: #009999;">5.1</span>.<span style="color: #009999;">2</span>.<span style="color: dodgerblue;">RELEASE</span>.<span style="color: dodgerblue;">jar</span>:<span style="color: #009999;">5.1</span>.<span style="color: #009999;">2</span>.<span style="color: dodgerblue;">RELEASE</span>]
at org.<span style="color: dodgerblue;">springframework</span>.<span style="color: dodgerblue;">beans</span>.<span style="color: dodgerblue;">factory</span>.<span style="color: dodgerblue;">support</span>.<span style="color: dodgerblue;">AbstractAutowireCapableBeanFactory</span>.<span style="color: dodgerblue;">initializeBean</span>(AbstractAutowireCapableBeanFactory.<span style="color: dodgerblue;">java</span>:<span style="color: #009999;">1741</span>) [spring-beans-<span style="color: #009999;">5.1</span>.<span style="color: #009999;">2</span>.<span style="color: dodgerblue;">RELEASE</span>.<span style="color: dodgerblue;">jar</span>:<span style="color: #009999;">5.1</span>.<span style="color: #009999;">2</span>.<span style="color: dodgerblue;">RELEASE</span>]
at org.<span style="color: dodgerblue;">springframework</span>.<span style="color: dodgerblue;">beans</span>.<span style="color: dodgerblue;">factory</span>.<span style="color: dodgerblue;">support</span>.<span style="color: dodgerblue;">AbstractAutowireCapableBeanFactory</span>.<span style="color: dodgerblue;">doCreateBean</span>(AbstractAutowireCapableBeanFactory.<span style="color: dodgerblue;">java</span>:<span style="color: #009999;">576</span>) [spring-beans-<span style="color: #009999;">5.1</span>.<span style="color: #009999;">2</span>.<span style="color: dodgerblue;">RELEASE</span>.<span style="color: dodgerblue;">jar</span>:<span style="color: #009999;">5.1</span>.<span style="color: #009999;">2</span>.<span style="color: dodgerblue;">RELEASE</span>]
at org.<span style="color: dodgerblue;">springframework</span>.<span style="color: dodgerblue;">beans</span>.<span style="color: dodgerblue;">factory</span>.<span style="color: dodgerblue;">support</span>.<span style="color: dodgerblue;">AbstractAutowireCapableBeanFactory</span>.<span style="color: dodgerblue;">createBean</span>(AbstractAutowireCapableBeanFactory.<span style="color: dodgerblue;">java</span>:<span style="color: #009999;">498</span>) [spring-beans-<span style="color: #009999;">5.1</span>.<span style="color: #009999;">2</span>.<span style="color: dodgerblue;">RELEASE</span>.<span style="color: dodgerblue;">jar</span>:<span style="color: #009999;">5.1</span>.<span style="color: #009999;">2</span>.<span style="color: dodgerblue;">RELEASE</span>]
at org.<span style="color: dodgerblue;">springframework</span>.<span style="color: dodgerblue;">beans</span>.<span style="color: dodgerblue;">factory</span>.<span style="color: dodgerblue;">support</span>.<span style="color: dodgerblue;">AbstractBeanFactory</span>.<span style="color: dodgerblue;">lambda</span>$doGetBean$0(AbstractBeanFactory.<span style="color: dodgerblue;">java</span>:<span style="color: #009999;">320</span>) [spring-beans-<span style="color: #009999;">5.1</span>.<span style="color: #009999;">2</span>.<span style="color: dodgerblue;">RELEASE</span>.<span style="color: dodgerblue;">jar</span>:<span style="color: #009999;">5.1</span>.<span style="color: #009999;">2</span>.<span style="color: dodgerblue;">RELEASE</span>]
at org.<span style="color: dodgerblue;">springframework</span>.<span style="color: dodgerblue;">beans</span>.<span style="color: dodgerblue;">factory</span>.<span style="color: dodgerblue;">support</span>.<span style="color: dodgerblue;">DefaultSingletonBeanRegistry</span>.<span style="color: dodgerblue;">getSingleton</span>(DefaultSingletonBeanRegistry.<span style="color: dodgerblue;">java</span>:<span style="color: #009999;">222</span>) ~[spring-beans-<span style="color: #009999;">5.1</span>.<span style="color: #009999;">2</span>.<span style="color: dodgerblue;">RELEASE</span>.<span style="color: dodgerblue;">jar</span>:<span style="color: #009999;">5.1</span>.<span style="color: #009999;">2</span>.<span style="color: dodgerblue;">RELEASE</span>]
at org.<span style="color: dodgerblue;">springframework</span>.<span style="color: dodgerblue;">beans</span>.<span style="color: dodgerblue;">factory</span>.<span style="color: dodgerblue;">support</span>.<span style="color: dodgerblue;">AbstractBeanFactory</span>.<span style="color: dodgerblue;">doGetBean</span>(AbstractBeanFactory.<span style="color: dodgerblue;">java</span>:<span style="color: #009999;">318</span>) [spring-beans-<span style="color: #009999;">5.1</span>.<span style="color: #009999;">2</span>.<span style="color: dodgerblue;">RELEASE</span>.<span style="color: dodgerblue;">jar</span>:<span style="color: #009999;">5.1</span>.<span style="color: #009999;">2</span>.<span style="color: dodgerblue;">RELEASE</span>]
at org.<span style="color: dodgerblue;">springframework</span>.<span style="color: dodgerblue;">beans</span>.<span style="color: dodgerblue;">factory</span>.<span style="color: dodgerblue;">support</span>.<span style="color: dodgerblue;">AbstractBeanFactory</span>.<span style="color: dodgerblue;">getBean</span>(AbstractBeanFactory.<span style="color: dodgerblue;">java</span>:<span style="color: #009999;">199</span>) [spring-beans-<span style="color: #009999;">5.1</span>.<span style="color: #009999;">2</span>.<span style="color: dodgerblue;">RELEASE</span>.<span style="color: dodgerblue;">jar</span>:<span style="color: #009999;">5.1</span>.<span style="color: #009999;">2</span>.<span style="color: dodgerblue;">RELEASE</span>]
at org.<span style="color: dodgerblue;">springframework</span>.<span style="color: dodgerblue;">context</span>.<span style="color: dodgerblue;">support</span>.<span style="color: dodgerblue;">AbstractApplicationContext</span>.<span style="color: dodgerblue;">getBean</span>(AbstractApplicationContext.<span style="color: dodgerblue;">java</span>:<span style="color: #009999;">1083</span>) ~[spring-context-<span style="color: #009999;">5.1</span>.<span style="color: #009999;">2</span>.<span style="color: dodgerblue;">RELEASE</span>.<span style="color: dodgerblue;">jar</span>:<span style="color: #009999;">5.1</span>.<span style="color: #009999;">2</span>.<span style="color: dodgerblue;">RELEASE</span>]
at org.<span style="color: dodgerblue;">springframework</span>.<span style="color: dodgerblue;">context</span>.<span style="color: dodgerblue;">support</span>.<span style="color: dodgerblue;">AbstractApplicationContext</span>.<span style="color: dodgerblue;">finishBeanFactoryInitialization</span>(AbstractApplicationContext.<span style="color: dodgerblue;">java</span>:<span style="color: #009999;">853</span>) ~[spring-context-<span style="color: #009999;">5.1</span>.<span style="color: #009999;">2</span>.<span style="color: dodgerblue;">RELEASE</span>.<span style="color: dodgerblue;">jar</span>:<span style="color: #009999;">5.1</span>.<span style="color: #009999;">2</span>.<span style="color: dodgerblue;">RELEASE</span>]
at org.<span style="color: dodgerblue;">springframework</span>.<span style="color: dodgerblue;">context</span>.<span style="color: dodgerblue;">support</span>.<span style="color: dodgerblue;">AbstractApplicationContext</span>.<span style="color: dodgerblue;">refresh</span>(AbstractApplicationContext.<span style="color: dodgerblue;">java</span>:<span style="color: #009999;">546</span>) ~[spring-context-<span style="color: #009999;">5.1</span>.<span style="color: #009999;">2</span>.<span style="color: dodgerblue;">RELEASE</span>.<span style="color: dodgerblue;">jar</span>:<span style="color: #009999;">5.1</span>.<span style="color: #009999;">2</span>.<span style="color: dodgerblue;">RELEASE</span>]
at org.<span style="color: dodgerblue;">springframework</span>.<span style="color: dodgerblue;">boot</span>.<span style="color: dodgerblue;">web</span>.<span style="color: dodgerblue;">servlet</span>.<span style="color: dodgerblue;">context</span>.<span style="color: dodgerblue;">ServletWebServerApplicationContext</span>.<span style="color: dodgerblue;">refresh</span>(ServletWebServerApplicationContext.<span style="color: dodgerblue;">java</span>:<span style="color: #009999;">140</span>) ~[spring-boot-<span style="color: #009999;">2.1</span>.<span style="color: #009999;">0</span>.<span style="color: dodgerblue;">RELEASE</span>.<span style="color: dodgerblue;">jar</span>:<span style="color: #009999;">2.1</span>.<span style="color: #009999;">0</span>.<span style="color: dodgerblue;">RELEASE</span>]
at org.<span style="color: dodgerblue;">springframework</span>.<span style="color: dodgerblue;">boot</span>.<span style="color: dodgerblue;">SpringApplication</span>.<span style="color: dodgerblue;">refresh</span>(SpringApplication.<span style="color: dodgerblue;">java</span>:<span style="color: #009999;">775</span>) ~[spring-boot-<span style="color: #009999;">2.1</span>.<span style="color: #009999;">0</span>.<span style="color: dodgerblue;">RELEASE</span>.<span style="color: dodgerblue;">jar</span>:<span style="color: #009999;">2.1</span>.<span style="color: #009999;">0</span>.<span style="color: dodgerblue;">RELEASE</span>]
at org.<span style="color: dodgerblue;">springframework</span>.<span style="color: dodgerblue;">boot</span>.<span style="color: dodgerblue;">SpringApplication</span>.<span style="color: dodgerblue;">refreshContext</span>(SpringApplication.<span style="color: dodgerblue;">java</span>:<span style="color: #009999;">397</span>) ~[spring-boot-<span style="color: #009999;">2.1</span>.<span style="color: #009999;">0</span>.<span style="color: dodgerblue;">RELEASE</span>.<span style="color: dodgerblue;">jar</span>:<span style="color: #009999;">2.1</span>.<span style="color: #009999;">0</span>.<span style="color: dodgerblue;">RELEASE</span>]
at org.<span style="color: dodgerblue;">springframework</span>.<span style="color: dodgerblue;">boot</span>.<span style="color: dodgerblue;">SpringApplication</span>.<span style="color: dodgerblue;">run</span>(SpringApplication.<span style="color: dodgerblue;">java</span>:<span style="color: #009999;">316</span>) ~[spring-boot-<span style="color: #009999;">2.1</span>.<span style="color: #009999;">0</span>.<span style="color: dodgerblue;">RELEASE</span>.<span style="color: dodgerblue;">jar</span>:<span style="color: #009999;">2.1</span>.<span style="color: #009999;">0</span>.<span style="color: dodgerblue;">RELEASE</span>]
at org.<span style="color: dodgerblue;">springframework</span>.<span style="color: dodgerblue;">boot</span>.<span style="color: dodgerblue;">SpringApplication</span>.<span style="color: dodgerblue;">run</span>(SpringApplication.<span style="color: dodgerblue;">java</span>:<span style="color: #009999;">1260</span>) ~[spring-boot-<span style="color: #009999;">2.1</span>.<span style="color: #009999;">0</span>.<span style="color: dodgerblue;">RELEASE</span>.<span style="color: dodgerblue;">jar</span>:<span style="color: #009999;">2.1</span>.<span style="color: #009999;">0</span>.<span style="color: dodgerblue;">RELEASE</span>]
at org.<span style="color: dodgerblue;">springframework</span>.<span style="color: dodgerblue;">boot</span>.<span style="color: dodgerblue;">SpringApplication</span>.<span style="color: dodgerblue;">run</span>(SpringApplication.<span style="color: dodgerblue;">java</span>:<span style="color: #009999;">1248</span>) ~[spring-boot-<span style="color: #009999;">2.1</span>.<span style="color: #009999;">0</span>.<span style="color: dodgerblue;">RELEASE</span>.<span style="color: dodgerblue;">jar</span>:<span style="color: #009999;">2.1</span>.<span style="color: #009999;">0</span>.<span style="color: dodgerblue;">RELEASE</span>]
</pre>
</div>
<br />
<br />
<h3 style="text-align: left;">
How to resolve :</h3>
<br />
To solve with the Springboot property file, add following line in it:<br />
<br />
<!-- HTML generated using hilite.me --><br />
<div style="background: #ffffff; border-width: 0.1em 0.1em 0.1em 0.8em; border: solid gray; overflow: auto; padding: 0.2em 0.6em; width: auto;">
<pre style="line-height: 125%; margin: 0;"><span style="color: dodgerblue;">spring.jpa.properties.hibernate.temp.use_jdbc_metadata_defaults</span>=<span style="color: #aa5500;">false</span></pre>
</div>
<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://media.giphy.com/media/3ohs7JG6cq7EWesFcQ/giphy.gif" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="320" data-original-width="480" height="213" src="https://media.giphy.com/media/3ohs7JG6cq7EWesFcQ/giphy.gif" width="320" /></a></div>
<br /></div>
Harikrushna Vhttp://www.blogger.com/profile/09928292899811466018noreply@blogger.com1tag:blogger.com,1999:blog-1407328464037557308.post-17191862864406821232018-11-21T10:17:00.002-08:002018-11-22T21:09:56.958-08:00Best way to compare time in Eclipse RCP<div dir="ltr" style="text-align: left;" trbidi="on">
<h2 style="text-align: left;">
Best way to compare time in Eclipse RCP</h2>
<div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://media.giphy.com/media/IJamPSQFcUyHK/giphy.gif" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="155" data-original-width="268" height="185" src="https://media.giphy.com/media/IJamPSQFcUyHK/giphy.gif" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<br />
<h3 style="text-align: left;">
Disadvantage of Using Date for Time comparison:</h3>
<div>
First of all let's understand why java.util.Date is not effective to just compare time.</div>
<div>
If you are using java.util.Date and add two different time and if it exceed beyond 24 hours, it will add 1 day to the java.util.Date.</div>
<div>
e.g.<br />
<br /></div>
<!-- HTML generated using hilite.me --><br />
<div style="background: #ffffff; border-width: 0.1em 0.1em 0.1em 0.8em; border: solid gray; overflow: auto; padding: 0.2em 0.6em; width: auto;">
<pre style="line-height: 125%; margin: 0;">Date date1 = <span style="color: #0000aa;">new</span> Date(<span style="color: #009999;">0</span>, <span style="color: #009999;">0</span>, <span style="color: #009999;">0</span>, <span style="color: #009999;">20</span>, <span style="color: #009999;">59</span>, <span style="color: #009999;">59</span>);
System.<span style="color: dodgerblue;">out</span>.<span style="color: dodgerblue;">println</span>(<span style="color: #aa5500;">"Date 1: "</span>+date1);
Date date2 = <span style="color: #0000aa;">new</span> Date(<span style="color: #009999;">0</span>, <span style="color: #009999;">0</span>, <span style="color: #009999;">0</span>, <span style="color: #009999;">5</span>, <span style="color: #009999;">1</span>, <span style="color: #009999;">1</span>);
System.<span style="color: dodgerblue;">out</span>.<span style="color: dodgerblue;">println</span>(<span style="color: #aa5500;">"Date 2: "</span>+date2);
Date additionDate = <span style="color: #0000aa;">new</span> Date(date2.<span style="color: dodgerblue;">getTime</span>());
additionDate.<span style="color: dodgerblue;">setHours</span>(date2.<span style="color: dodgerblue;">getHours</span>()+ date1.<span style="color: dodgerblue;">getHours</span>());
additionDate.<span style="color: dodgerblue;">setMinutes</span>(date2.<span style="color: dodgerblue;">getMinutes</span>()+ date1.<span style="color: dodgerblue;">getMinutes</span>());
additionDate.<span style="color: dodgerblue;">setSeconds</span>(date2.<span style="color: dodgerblue;">getSeconds</span>()+ date1.<span style="color: dodgerblue;">getSeconds</span>());
System.<span style="color: dodgerblue;">out</span>.<span style="color: dodgerblue;">println</span>(<span style="color: #aa5500;">"Addition: "</span>+additionDate);
</pre>
</div>
<div>
<br />
Output:<br />
<br /></div>
<!-- HTML generated using hilite.me --><br />
<div style="background: #ffffff; border-width: 0.1em 0.1em 0.1em 0.8em; border: solid gray; overflow: auto; padding: 0.2em 0.6em; width: auto;">
<pre style="line-height: 125%; margin: 0;">Date <span style="color: #009999;">1</span>: Sun Dec <span style="color: #009999;">31</span> <span style="color: #009999;">20</span>:<span style="color: #009999;">59</span>:<span style="color: #009999;">59</span> IST <span style="color: #009999;">1899</span>
Date <span style="color: #009999;">2</span>: Sun Dec <span style="color: #009999;">31</span> <span style="color: #009999;">05</span>:<span style="color: #009999;">01</span>:<span style="color: #009999;">01</span> IST <span style="color: #009999;">1899</span>
Addition: Mon Jan <span style="color: #009999;">01</span> <span style="color: #009999;">02</span>:<span style="color: #009999;">01</span>:<span style="color: #009999;">00</span> IST <span style="color: #009999;">1900</span>
</pre>
</div>
<br />
As you can see here, the date is increase to one Day. so to calculate just time, using java.util.Date should not be preferred. Instead of that, <b>java.time.LocalTime </b>can be used to calculate Time.<br />
<br />
<b>java.time.LocalTime</b> is the one of the best way to compare only time. java.time.LocalTime is without a time-zone in the ISO-8601 calendar system, such as 07:07:40.<br />
<br />
java.time.LocalTime can be used to track the timing.<br />
<br />
Following Example shows:<br />
<br /></div>
<!-- HTML generated using hilite.me --><br />
<div style="background: #f8f8f8; border-width: 0.1em 0.1em 0.1em 0.8em; border: solid gray; overflow: auto; padding: 0.2em 0.6em; width: auto;">
<table><tbody>
<tr><td><pre style="line-height: 125%; margin: 0;"> 1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23</pre>
</td><td><pre style="line-height: 125%; margin: 0;"><span style="color: green; font-weight: bold;">import</span> <span style="color: blue; font-weight: bold;">java.time.LocalTime</span><span style="color: #666666;">;</span>
<span style="color: green; font-weight: bold;">public</span> <span style="color: green; font-weight: bold;">class</span> <span style="color: blue; font-weight: bold;">CompareTimeExample</span> <span style="color: #666666;">{</span>
<span style="color: green; font-weight: bold;">public</span> <span style="color: green; font-weight: bold;">static</span> <span style="color: #b00040;">void</span> <span style="color: blue;">main</span><span style="color: #666666;">(</span>String<span style="color: #666666;">[]</span> args<span style="color: #666666;">)</span> <span style="color: #666666;">{</span>
<span style="color: #408080; font-style: italic;">// Current Time</span>
LocalTime localTime1 <span style="color: #666666;">=</span> LocalTime<span style="color: #666666;">.</span><span style="color: #7d9029;">now</span><span style="color: #666666;">();</span>
System<span style="color: #666666;">.</span><span style="color: #7d9029;">out</span><span style="color: #666666;">.</span><span style="color: #7d9029;">println</span><span style="color: #666666;">(</span>localTime1<span style="color: #666666;">);</span>
<span style="color: #408080; font-style: italic;">// Specific Time</span>
LocalTime localTime2 <span style="color: #666666;">=</span> LocalTime<span style="color: #666666;">.</span><span style="color: #7d9029;">of</span><span style="color: #666666;">(7,</span> <span style="color: #666666;">20,</span> <span style="color: #666666;">10);</span>
System<span style="color: #666666;">.</span><span style="color: #7d9029;">out</span><span style="color: #666666;">.</span><span style="color: #7d9029;">println</span><span style="color: #666666;">(</span>localTime2<span style="color: #666666;">);</span>
<span style="color: #408080; font-style: italic;">// Compare time</span>
System<span style="color: #666666;">.</span><span style="color: #7d9029;">out</span><span style="color: #666666;">.</span><span style="color: #7d9029;">println</span><span style="color: #666666;">(</span><span style="color: #ba2121;">"is Before : "</span><span style="color: #666666;">+</span>localTime1<span style="color: #666666;">.</span><span style="color: #7d9029;">isBefore</span><span style="color: #666666;">(</span>localTime2<span style="color: #666666;">));</span>
System<span style="color: #666666;">.</span><span style="color: #7d9029;">out</span><span style="color: #666666;">.</span><span style="color: #7d9029;">println</span><span style="color: #666666;">(</span><span style="color: #ba2121;">"is After : "</span><span style="color: #666666;">+</span>localTime1<span style="color: #666666;">.</span><span style="color: #7d9029;">isAfter</span><span style="color: #666666;">(</span>localTime2<span style="color: #666666;">));</span>
<span style="color: #408080; font-style: italic;">// Difference between two time</span>
LocalTime minusTime <span style="color: #666666;">=</span> localTime1<span style="color: #666666;">.</span><span style="color: #7d9029;">minusHours</span><span style="color: #666666;">(</span>localTime2<span style="color: #666666;">.</span><span style="color: #7d9029;">getHour</span><span style="color: #666666;">()).</span><span style="color: #7d9029;">minusMinutes</span><span style="color: #666666;">(</span>localTime2<span style="color: #666666;">.</span><span style="color: #7d9029;">getMinute</span><span style="color: #666666;">()).</span><span style="color: #7d9029;">minusSeconds</span><span style="color: #666666;">(</span>localTime2<span style="color: #666666;">.</span><span style="color: #7d9029;">getSecond</span><span style="color: #666666;">());</span>
System<span style="color: #666666;">.</span><span style="color: #7d9029;">out</span><span style="color: #666666;">.</span><span style="color: #7d9029;">println</span><span style="color: #666666;">(</span>minusTime<span style="color: #666666;">);</span>
<span style="color: #666666;">}</span>
<span style="color: #666666;">}</span>
</pre>
</td></tr>
</tbody></table>
</div>
<br />
Output :<br />
<br />
<!-- HTML generated using hilite.me --><br />
<div style="background: #f8f8f8; border-width: 0.1em 0.1em 0.1em 0.8em; border: solid gray; overflow: auto; padding: 0.2em 0.6em; width: auto;">
<pre style="line-height: 125%; margin: 0;"><span style="color: #666666;">23:36:54.639</span>
<span style="color: #666666;">07:20:10</span>
is Before <span style="color: #666666;">:</span> <span style="color: green; font-weight: bold;">false</span>
is After <span style="color: #666666;">:</span> <span style="color: green; font-weight: bold;">true</span>
<span style="color: #666666;">16:16:44.639</span>
</pre>
</div>
<br />
<br />
<h4 style="text-align: left;">
Summary</h4>
<div>
java.time.LocalTime is useful when two different time has to be compared without time-zone.</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://media.giphy.com/media/l3q2FnW3yZRJVZH2g/giphy.gif" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="360" data-original-width="480" height="240" src="https://media.giphy.com/media/l3q2FnW3yZRJVZH2g/giphy.gif" width="320" /></a></div>
<br /></div>
Harikrushna Vhttp://www.blogger.com/profile/09928292899811466018noreply@blogger.com0tag:blogger.com,1999:blog-1407328464037557308.post-86949642153731672792018-11-16T07:15:00.000-08:002018-11-16T21:08:13.947-08:00Use these Eclipse RCP Testing tools before your code goes to LIVE<div dir="ltr" style="text-align: left;" trbidi="on">
<h2 style="text-align: left;">
Use these Eclipse RCP Testing tools before your code goes to LIVE</h2>
<div>
Testing is most important part of any software development lifecycle. There are different type of testing required before Eclipse RCP tool is released to productions.</div>
<div>
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://media.giphy.com/media/gw3IWyGkC0rsazTi/giphy.gif" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="199" data-original-width="265" height="240" src="https://media.giphy.com/media/gw3IWyGkC0rsazTi/giphy.gif" width="320" /></a></div>
<div>
<br /></div>
<div>
<br /></div>
<div>
Eclipse RCP is very easy to test with the these testing tools:</div>
<div>
<br /></div>
<h3 style="text-align: left;">
</h3>
<h3 style="text-align: left;">
UI Testing:</h3>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://media.giphy.com/media/bCKGQDFk3cO4M/giphy.gif" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="445" data-original-width="636" height="278" src="https://media.giphy.com/media/bCKGQDFk3cO4M/giphy.gif" width="400" /></a></div>
<div>
<br /></div>
<div>
<br /></div>
<div>
<a href="http://rcp%20testing%20tool/" target="_blank">RCP Testing Tool</a></div>
<div>
<br /></div>
<div>
<span style="background-color: white; color: #4c4d4e; font-family: "libre franklin" , "helvetica neue" , "helvetica" , "arial" , sans-serif; font-size: 14px; text-indent: 21px;">RCP Testing Tool is a project for GUI testing automation of Eclipse-based applications. RCPTT is fully aware about Eclipse Platform's internals, hiding this complexity from end users and allowing QA engineers to create highly reliable UI tests at great pace.</span></div>
<div>
<span style="background-color: white; color: #4c4d4e; font-family: "libre franklin" , "helvetica neue" , "helvetica" , "arial" , sans-serif; font-size: 14px; text-indent: 21px;"><br /></span></div>
<div>
<span style="background-color: white; color: #4c4d4e; font-family: "libre franklin" , "helvetica neue" , "helvetica" , "arial" , sans-serif; font-size: 14px; text-indent: 21px;"><a href="https://www.eclipse.org/swtbot/" target="_blank">SWT Bot</a></span></div>
<div>
<br /></div>
<div>
SWTBot is an open-source Java based UI/functional testing tool for testing SWT, Eclipse and GEF based applications. </div>
<div>
SWTBot provides APIs that are simple to read and write. The APIs also hide the complexities involved with SWT and Eclipse. This makes it suitable for UI/functional testing by everyone, not just developers. SWTBot also provides its own set of assertions that are useful for SWT. You can also use your own assertion framework with SWTBot.</div>
<div>
<br />
<a href="http://www.rcp-vision.com/test-automatici-jubula/" target="_blank">Jubula</a><br />
<br />
Eclipse Jubula is a new addition to the Eclipse universe. It's a functional UI testing tool that allows you to specify and run tests. Jubula consists of plug-ins for an IDE and a standalone RCP application.<br />
<br />
Unit Testing</div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://media.giphy.com/media/MVY2s31jlHI88/giphy.gif" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="600" data-original-width="800" height="300" src="https://media.giphy.com/media/MVY2s31jlHI88/giphy.gif" width="400" /></a></div>
<div>
<br /></div>
<div>
<a href="https://junit.org/junit5/" target="_blank">JUnit</a></div>
<div>
<br /></div>
<div>
<em style="background-color: white; box-sizing: border-box; color: #333333; font-family: "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif; font-size: 14px;">JUnit 5</em><span style="background-color: white; color: #333333; font-family: "open sans" , "helvetica neue" , "helvetica" , "arial" , sans-serif; font-size: 14px;"> is the next generation of JUnit. The goal is to create an up-to-date foundation for developer-side testing on the JVM. This includes focusing on Java 8 and above, as well as enabling many different styles of testing.</span></div>
<div>
<br /></div>
<div style="text-align: left;">
<a href="https://site.mockito.org/" target="_blank">Mockito</a></div>
<div style="text-align: left;">
<br /></div>
<div style="text-align: left;">
Tasty mocking framework for unit tests in Java.</div>
<div style="text-align: left;">
Mockito is a mocking framework that tastes really good. It lets you write beautiful tests with a clean & simple API. Mockito doesn’t give you hangover because the tests are very readable and they produce clean verification errors.</div>
<div style="text-align: left;">
<br /></div>
<h3 style="text-align: left;">
Build Tool</h3>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://media.giphy.com/media/4K1Nalbz0cVc5HRl1g/giphy.gif" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="256" data-original-width="480" height="212" src="https://media.giphy.com/media/4K1Nalbz0cVc5HRl1g/giphy.gif" width="400" /></a></div>
<div>
<br /></div>
<div>
<a href="https://www.eclipse.org/tycho/" target="_blank">Tycho</a></div>
<div>
<br /></div>
<div>
<span style="background-color: white; color: #4c4d4e; font-family: "libre franklin" , "helvetica neue" , "helvetica" , "arial" , sans-serif; font-size: 14px;">Tycho is focused on a Maven-centric, manifest-first approach to building Eclipse plug-ins, features, update sites, RCP applications and OSGi bundles. Tycho is a set of Maven plugins and extensions for building Eclipse plugins and OSGi bundles with Maven. Eclipse plugins and OSGi bundles have their own metadata for expressing dependencies, source folder locations, etc. that are normally found in a Maven POM. Tycho uses native metadata for Eclipse plugins and OSGi bundles and uses the POM to configure and drive the build. Tycho supports bundles, fragments, features, update site projects and RCP applications. Tycho also knows how to run <b>JUnit</b> test plugins using OSGi runtime and there is also support for sharing build results using Maven artifact repositories. </span></div>
<div>
<span style="background-color: white; color: #4c4d4e; font-family: "libre franklin" , "helvetica neue" , "helvetica" , "arial" , sans-serif; font-size: 14px;"><br /></span></div>
<div>
<span style="background-color: white; color: #4c4d4e; font-family: "libre franklin" , "helvetica neue" , "helvetica" , "arial" , sans-serif; font-size: 14px;"><a href="https://resheim.net/2014/12/unit-testing-eclipse-rcp-applications.html" target="_blank">Tutorial to run JUnit for Eclipse RCP</a></span></div>
<div>
<span style="background-color: white; color: #4c4d4e; font-family: "libre franklin" , "helvetica neue" , "helvetica" , "arial" , sans-serif; font-size: 14px;"><br /></span></div>
<div>
<span style="background-color: white; color: #4c4d4e; font-family: "libre franklin" , "helvetica neue" , "helvetica" , "arial" , sans-serif; font-size: 14px;"><br /></span></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://media.giphy.com/media/KJ1f5iTl4Oo7u/giphy.gif" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="270" data-original-width="480" height="225" src="https://media.giphy.com/media/KJ1f5iTl4Oo7u/giphy.gif" width="400" /></a></div>
<div>
<span style="background-color: white; color: #4c4d4e; font-family: "libre franklin" , "helvetica neue" , "helvetica" , "arial" , sans-serif; font-size: 14px;"><br /></span></div>
<div>
<span style="background-color: white; color: #4c4d4e; font-family: "libre franklin" , "helvetica neue" , "helvetica" , "arial" , sans-serif; font-size: 14px;"><br /></span></div>
<div>
<br /></div>
</div>
Harikrushna Vhttp://www.blogger.com/profile/09928292899811466018noreply@blogger.com0tag:blogger.com,1999:blog-1407328464037557308.post-79363104137778148082018-10-19T01:17:00.003-07:002018-10-19T01:17:52.675-07:00[Brainshare] Singleton Design pattern<div dir="ltr" style="text-align: left;" trbidi="on">
What is Singleton Design Pattern:<br />
<br />
<ul style="text-align: left;">
<li><span style="font-family: "trebuchet ms" , sans-serif;">A class has only <b>SINGLE</b> instance and provide a global access to it.</span></li>
</ul>
<br />
<br />
Usage of Singleton Design Pattern:<br />
<br />
<ul style="text-align: left;">
<li><a href="https://stackoverflow.com/a/3192124/4955676">https://stackoverflow.com/a/3192124/4955676</a></li>
</ul>
<div>
Type of Singleton Design Pattern:</div>
<div>
<ul style="text-align: left;">
<li>[code] Singleton Class - <a href="https://www.geeksforgeeks.org/singleton-class-java/" target="_blank">READ MORE</a></li>
<li>[code] Lazy Initialization - <a href="https://www.journaldev.com/1377/java-singleton-design-pattern-best-practices-examples#lazy-initialization" target="_blank">READ MORE</a></li>
<li>[code] Thread Safe - <a href="https://www.journaldev.com/1377/java-singleton-design-pattern-best-practices-examples#thread-safe-singleton" target="_blank">READ MORE</a></li>
</ul>
<div>
<a href="https://www.youtube.com/watch?v=KUTqnWswPV4&list=PLsyeobzWxl7rqhgfVySFnwhtS4QUT4805" target="_blank">Singleton Design Pattern Video</a><br />
<br />
<br />
<a href="https://books.google.co.in/books?id=S5ebGvuLJqQC&pg=PA81&lpg=PA81&dq=singleton+pattern+in+gujarati&source=bl&ots=cyxOWlBE8Y&sig=3EtvybV9DaGeor-IcFNZ-3BttEU&hl=en&sa=X&ved=2ahUKEwjK66-ghpLeAhXMAnIKHZiGCHcQ6AEwE3oECAcQAQ#v=onepage&q&f=false" target="_blank">Book</a></div>
</div>
<div>
<br /></div>
</div>
Harikrushna Vhttp://www.blogger.com/profile/09928292899811466018noreply@blogger.com0tag:blogger.com,1999:blog-1407328464037557308.post-35932874109475495302018-09-15T07:27:00.002-07:002018-09-15T08:37:39.493-07:00Preferences in Eclipse RCP<div dir="ltr" style="text-align: left;" trbidi="on">
<div class="" style="background-color: white; box-sizing: border-box; color: #333333; font-size: 14px;">
<h1 class="_1st9amh" data-key="d281112b79314f47a8aa2c95a469fdcd" id="preferences" style="box-sizing: inherit; color: #242a31; display: flex; font-family: Roboto, sans-serif; margin: 0px 0px 24px; outline: none; position: relative; white-space: pre-wrap;">
<div class="_bc4egv" style="box-sizing: inherit; flex: 1 1 0%; outline: none;">
<span class="_7dnwj3f" style="box-sizing: inherit; font-size: 24px; line-height: 1.5; outline: none;"><a href="https://eclipse-rcp.gitbook.io/eclipse-rcp/jface-wizards-and-dialogs#preferences" target="_blank">Preferences</a></span></div>
</h1>
<h2 class="chapter-title" style="box-sizing: border-box; clear: both; color: #222635; font-size: 38px; letter-spacing: -0.5px; line-height: 1.25; margin: -10px 0px 0px;">
<div class="_1uc14g3" data-key="35ca48671399440b889883f1ae4d3330" style="box-sizing: inherit; color: #3b454e; font-family: Roboto, sans-serif; font-size: 16px; font-weight: 400; letter-spacing: normal; margin-bottom: 24px; outline: none; position: relative; white-space: pre-wrap;">
<span class="_2he8v2h" style="box-sizing: inherit; line-height: 1.625; outline: none;"><span data-key="5fcd0064064445cd9dc1e1c0f376e52f" style="box-sizing: inherit; outline: none;"><span data-offset-key="5fcd0064064445cd9dc1e1c0f376e52f:0" style="box-sizing: inherit; outline: none;">Preference pages will be appear </span><span data-offset-key="5fcd0064064445cd9dc1e1c0f376e52f:1" style="box-sizing: inherit; outline: none;"><span class="_u5j6yl" style="box-sizing: inherit; font-weight: 700; outline: none;">Window>Preferences</span></span><span data-offset-key="5fcd0064064445cd9dc1e1c0f376e52f:2" style="box-sizing: inherit; outline: none;"> dialog. It can be used to configure different features from once place. Eclipse Preferences is kind of registry of configurations.</span></span></span></div>
<div class="_1uc14g3" data-key="10cb80a259064178a076d9545075fef1" style="box-sizing: inherit; color: #3b454e; font-family: Roboto, sans-serif; font-size: 16px; font-weight: 400; letter-spacing: normal; margin-bottom: 24px; outline: none; position: relative; white-space: pre-wrap;">
<span class="_2he8v2h" style="box-sizing: inherit; line-height: 1.625; outline: none;">e.g.:</span></div>
<div class="_1uc14g3" data-key="40dcfde70b644b40a9cc309df7fe5e86" style="box-sizing: inherit; color: #3b454e; font-family: Roboto, sans-serif; font-size: 16px; font-weight: 400; letter-spacing: normal; margin-bottom: 24px; outline: none; position: relative; white-space: pre-wrap;">
<span class="_2he8v2h" style="box-sizing: inherit; line-height: 1.625; outline: none;">As you see here are the various configuration ( preferences ) for Java, Ant, etc.</span></div>
<div data-key="4cd09421715b404b8ec05ded46bf88d7" data-slate-void="true" style="box-sizing: inherit; color: #3b454e; font-family: Roboto, sans-serif; font-size: 16px; font-weight: 400; letter-spacing: normal; outline: none; white-space: pre-wrap;">
<div style="box-sizing: inherit; outline: none;">
<br />
<figure class="_ydpnb4u" contenteditable="false" data-key="4cd09421715b404b8ec05ded46bf88d7" style="box-sizing: inherit; margin: 32px auto 24px; outline: none; padding: 0px;"><div class="_nz31dgk" style="-webkit-box-pack: center; box-sizing: inherit; display: flex; justify-content: center; margin: 0px; outline: none; padding: 0px;">
<div class="_183h11zs" style="box-sizing: inherit; margin: 0px; max-width: 100%; outline: none; padding: 0px; position: relative;">
<img class="_prgn0f" src="https://1.bp.blogspot.com/-3nkFtmVXkHI/W50Of_zWc2I/AAAAAAAAZlY/FayL4609J3EposVKq24EhCQ_cimZaf8tACLcBGAs/s400/Screen%2BShot%2B2018-09-15%2Bat%2B7.21.27%2BPM.png" style="box-sizing: inherit; cursor: inherit; display: block; max-height: 60vh; max-width: 100%; outline: none;" /></div>
</div>
<div class="_nz31dgk" style="-webkit-box-pack: center; box-sizing: inherit; display: flex; justify-content: center; margin: 0px; outline: none; padding: 0px;">
<br />
<br />
<br />
<br />
<figcaption class="_ivehb9" style="box-sizing: inherit; color: #9daab6; margin: 0px; outline: none; overflow: hidden; padding: 8px 0px; word-break: normal;"><span class="_2he8v2h" style="box-sizing: inherit; line-height: 1.625; max-width: 100%; outline: none;">Sample Preference in Eclipse</span></figcaption><br /></div>
</figure></div>
</div>
<div class="_y27ew4f" data-key="d1e500d2d4044303a3cab8781fea5823" style="background-color: #f5f7f9; border-bottom-color: rgb(56, 132, 255); border-left: 4px solid rgb(56, 132, 255); border-radius: 3px; border-right-color: rgb(56, 132, 255); border-top-color: rgb(56, 132, 255); box-sizing: inherit; color: #3b454e; font-family: Roboto, sans-serif; font-size: 16px; font-weight: 400; letter-spacing: normal; margin: 32px 0px; outline: none; padding: 24px 24px calc(0.1px) 50px; position: relative; white-space: pre-wrap; width: 527px;">
<div class="_1c8hchdx" style="box-sizing: inherit; font-size: 24px; left: 16px; margin: 0px; outline: none; padding: 0px; position: absolute; top: 24px;">
<svg class="_13gjrqj" fill="currentColor" height="1em" preserveaspectratio="xMidYMid meet" stroke="none" style="color: #3884ff;" viewbox="0 0 24 24" width="1em" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/2000/svg"><g><path d="M12.2 8.98c.06-.01.12-.03.18-.06.06-.02.12-.05.18-.09l.15-.12c.18-.19.29-.45.29-.71 0-.06-.01-.13-.02-.19a.603.603 0 0 0-.06-.19.757.757 0 0 0-.09-.18c-.03-.05-.08-.1-.12-.15-.28-.27-.72-.37-1.09-.21-.13.05-.23.12-.33.21-.04.05-.09.1-.12.15-.04.06-.07.12-.09.18-.03.06-.05.12-.06.19-.01.06-.02.13-.02.19 0 .26.11.52.29.71.1.09.2.16.33.21.12.05.25.08.38.08.06 0 .13-.01.2-.02M13 16v-4a1 1 0 1 0-2 0v4a1 1 0 1 0 2 0M12 3c-4.962 0-9 4.038-9 9 0 4.963 4.038 9 9 9 4.963 0 9-4.037 9-9 0-4.962-4.037-9-9-9m0 20C5.935 23 1 18.065 1 12S5.935 1 12 1c6.066 0 11 4.935 11 11s-4.934 11-11 11" fill-rule="evenodd"></path></g></svg></div>
<div class="_1uc14g3" data-key="e0ddb7ec729349859efe9ea41ac7cb66" style="box-sizing: inherit; color: inherit; margin-bottom: 24px; outline: none; position: relative;">
<span class="_2he8v2h" style="box-sizing: inherit; line-height: 1.625; outline: none;"><span data-key="b2191a65d7534f7a98114f7d346fed6d" style="box-sizing: inherit; outline: none;"><span data-offset-key="b2191a65d7534f7a98114f7d346fed6d:0" style="box-sizing: inherit; outline: none;"><span class="_u5j6yl" style="box-sizing: inherit; font-weight: 700; outline: none;">org.eclipse.ui.preferencePages</span></span><span data-offset-key="b2191a65d7534f7a98114f7d346fed6d:1" style="box-sizing: inherit; outline: none;"> extension has to be added to in the plug-in manifest editor for Preference Pages.</span></span></span></div>
</div>
<div data-key="7ed0b7604df541fcb435dde31e66ae1f" data-slate-void="true" style="box-sizing: inherit; color: #3b454e; font-family: Roboto, sans-serif; font-size: 16px; font-weight: 400; letter-spacing: normal; outline: none; white-space: pre-wrap;">
<div style="box-sizing: inherit; outline: none;">
<br />
<figure class="_ydpnb4u" contenteditable="false" data-key="7ed0b7604df541fcb435dde31e66ae1f" style="box-sizing: inherit; margin: 32px auto 24px; outline: none; padding: 0px;"><div class="_nz31dgk" style="-webkit-box-pack: center; box-sizing: inherit; display: flex; justify-content: center; margin: 0px; outline: none; padding: 0px;">
<div class="_183h11zs" style="box-sizing: inherit; margin: 0px; max-width: 100%; outline: none; padding: 0px; position: relative;">
<img class="_prgn0f" src="https://3.bp.blogspot.com/-HzrYtjfbz0o/W50O5-siZ0I/AAAAAAAAZlg/89YqeoKkQ_IMxD5ikUiDFkeTdDj5mmVlACLcBGAs/s400/Screen%2BShot%2B2018-09-15%2Bat%2B7.10.50%2BPM.png" style="box-sizing: inherit; cursor: inherit; display: block; max-height: 60vh; max-width: 100%; outline: none;" /></div>
</div>
<div class="_nz31dgk" style="-webkit-box-pack: center; box-sizing: inherit; display: flex; justify-content: center; margin: 0px; outline: none; padding: 0px;">
<br />
<br />
<br />
<br />
<figcaption class="_ivehb9" style="box-sizing: inherit; color: #9daab6; margin: 0px; outline: none; overflow: hidden; padding: 8px 0px; word-break: normal;"><span class="_2he8v2h" style="box-sizing: inherit; line-height: 1.625; max-width: 100%; outline: none;">Extension point for PreferencePages</span></figcaption><br /></div>
</figure></div>
</div>
<div class="_1uc14g3" data-key="36abcf86846f40c4ba613476fbfe5f6a" style="box-sizing: inherit; color: #3b454e; font-family: Roboto, sans-serif; font-size: 16px; font-weight: 400; letter-spacing: normal; margin-bottom: 24px; outline: none; position: relative; white-space: pre-wrap;">
<span class="_2he8v2h" style="box-sizing: inherit; line-height: 1.625; outline: none;">Once you add the extension, the following will be the structure:</span></div>
<div data-key="43f6c84bf8244ab085ff1fc3a958aff9" data-slate-void="true" style="box-sizing: inherit; color: #3b454e; font-family: Roboto, sans-serif; font-size: 16px; font-weight: 400; letter-spacing: normal; outline: none; white-space: pre-wrap;">
<div style="box-sizing: inherit; outline: none;">
<figure class="_ydpnb4u" contenteditable="false" data-key="43f6c84bf8244ab085ff1fc3a958aff9" style="box-sizing: inherit; margin: 32px auto 24px; outline: none; padding: 0px;"><div class="_nz31dgk" style="-webkit-box-pack: center; box-sizing: inherit; display: flex; justify-content: center; margin: 0px; outline: none; padding: 0px;">
<div class="_183h11zs" style="box-sizing: inherit; margin: 0px; max-width: 100%; outline: none; padding: 0px; position: relative;">
<img class="_prgn0f" src="https://4.bp.blogspot.com/-hF1QSbc9VQU/W50PopgtD4I/AAAAAAAAZlo/o5ALczN-DQYqRRxAfeHyb4P1HmygqR7QACLcBGAs/s640/Screen%2BShot%2B2018-09-15%2Bat%2B7.25.52%2BPM.png" style="box-sizing: inherit; cursor: zoom-in; display: block; max-height: 60vh; max-width: 100%; outline: none;" tabindex="0" /></div>
</div>
<div class="_nz31dgk" style="-webkit-box-pack: center; box-sizing: inherit; display: flex; justify-content: center; margin: 0px; outline: none; padding: 0px;">
<br />
<br />
<br />
<figcaption class="_ivehb9" style="box-sizing: inherit; color: #9daab6; margin: 0px; outline: none; overflow: hidden; padding: 8px 0px; word-break: normal;"><span class="_2he8v2h" style="box-sizing: inherit; line-height: 1.625; max-width: 100%; outline: none;">Extensions post adding PreferencePages</span></figcaption></div>
</figure></div>
</div>
<div class="_1uc14g3" data-key="5eaaea96abb240de943b2c8cc529f031" style="box-sizing: inherit; color: #3b454e; font-family: Roboto, sans-serif; font-size: 16px; font-weight: 400; letter-spacing: normal; margin-bottom: 24px; outline: none; position: relative; white-space: pre-wrap;">
<span class="_2he8v2h" style="box-sizing: inherit; line-height: 1.625; outline: none;"><span data-key="af8bcc0cd4f34ce984a9a3cd279e18ac" style="box-sizing: inherit; outline: none;"><span data-offset-key="af8bcc0cd4f34ce984a9a3cd279e18ac:0" style="box-sizing: inherit; outline: none;">Following is the implementation of </span><span data-offset-key="af8bcc0cd4f34ce984a9a3cd279e18ac:1" style="box-sizing: inherit; outline: none;"><code class="_146ac1z" spellcheck="false" style="-webkit-box-decoration-break: clone; background-color: #f5f7f9; border-radius: 3px; box-sizing: inherit; display: inline-block; font-family: "Source Code Pro", Menlo, monospace; font-size: 13.6px; margin: 0px 1px; outline: none; padding: 3px 6px;">SamplePreferencePage.java</code></span></span></span></div>
<div class="_1y81j11" style="box-sizing: inherit; color: #3b454e; font-family: Roboto, sans-serif; font-size: 16px; font-weight: 400; letter-spacing: normal; margin-bottom: 24px; outline: none; position: relative; white-space: pre-wrap;">
<div class="_s3tdtc" contenteditable="false" style="background: rgb(240, 243, 246); box-sizing: inherit; display: flex; font-size: 12px; line-height: 1.2; outline: none; user-select: none;">
<div class="_wudp15" style="box-sizing: inherit; display: flex; flex: 1 1 0%; outline: none; overflow-x: auto;">
<div class="_1njju6t" role="button" spellcheck="false" style="box-sizing: inherit; color: #1660aa; cursor: pointer; display: flex; line-height: 1.2; outline: 0px; padding: 8px; transition: color 0.3s ease 0s;" tabindex="-1">
SamplePreferencePage.java</div>
</div>
<div aria-label="Copy" class="_778ee6q" role="button" style="box-sizing: inherit; color: #9daab6; cursor: pointer; font-size: 13px; line-height: 1em; margin: 0px; opacity: 0.5; outline: none; padding: 8px; position: relative;" tabindex="-1">
<svg class="_13gjrqj" fill="none" height="1em" preserveaspectratio="xMidYMid meet" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" stroke="currentColor" viewbox="0 0 24 24" width="1em" xmlns="http://www.w3.org/2000/svg"><g><rect height="13" rx="2" ry="2" width="13" x="9" y="9"></rect><path d="M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"></path></g></svg></div>
</div>
<div data-key="dca04fe1e97a4d8187628e840b638ebb" style="box-sizing: inherit; outline: none;">
<pre class="_1nms84d" data-key="0ca007ccfb1e4ed8a775386605ebd330" spellcheck="false" style="background-color: #f5f7f9; border-radius: 3px; box-sizing: inherit; counter-reset: line 0; font-family: "Source Code Pro", Menlo, monospace; font-size: 13.6px; line-height: 1.7; outline: none; overflow-x: auto; padding: 11px 0px; tab-size: 4;"><div class="_17r7t1h" data-key="154d862e3832425dba09f9ca68b0f0be" style="box-sizing: inherit; counter-increment: line 1; font: inherit; outline: none; padding: 0px 14px 0px 44px; position: relative; word-wrap: normal;">
<span data-key="52b7b372922f4ece97b09715dd59a7aa" style="box-sizing: inherit; outline: none;"><span data-offset-key="52b7b372922f4ece97b09715dd59a7aa:0" style="box-sizing: inherit; outline: none;"><span class="prism-token token keyword " style="box-sizing: inherit; color: #0077aa; outline: none;">package</span></span><span data-offset-key="52b7b372922f4ece97b09715dd59a7aa:1" style="box-sizing: inherit; outline: none;"><span class="prism-token token 1" style="box-sizing: inherit; outline: none;"> trial</span></span><span data-offset-key="52b7b372922f4ece97b09715dd59a7aa:2" style="box-sizing: inherit; outline: none;"><span class="prism-token token 2 punctuation " style="box-sizing: inherit; color: #999999; outline: none;">.</span></span><span data-offset-key="52b7b372922f4ece97b09715dd59a7aa:3" style="box-sizing: inherit; outline: none;"><span class="prism-token token 3" style="box-sizing: inherit; outline: none;">preferences</span></span><span data-offset-key="52b7b372922f4ece97b09715dd59a7aa:4" style="box-sizing: inherit; outline: none;"><span class="prism-token token 4 punctuation " style="box-sizing: inherit; color: #999999; outline: none;">;</span></span></span></div>
<div class="_17r7t1h" data-key="c568de57ef4c4a47833c726ae5f861e7" style="box-sizing: inherit; counter-increment: line 1; font: inherit; outline: none; padding: 0px 14px 0px 44px; position: relative; word-wrap: normal;">
<span data-key="c97ba65b03b8453fad008649e9a012a3" style="box-sizing: inherit; outline: none;"></span><span data-offset-key="63c1689afd1741f7a98c7a0c2f228c98:0" style="box-sizing: inherit; font-family: inherit; font-size: inherit; font-style: inherit; font-variant-caps: inherit; font-variant-ligatures: inherit; font-weight: inherit; outline: none; white-space: pre-wrap;"><span class="prism-token token 6 keyword " style="box-sizing: inherit; color: #0077aa; outline: none;">import</span></span><span data-offset-key="63c1689afd1741f7a98c7a0c2f228c98:1" style="box-sizing: inherit; font-family: inherit; font-size: inherit; font-style: inherit; font-variant-caps: inherit; font-variant-ligatures: inherit; font-weight: inherit; outline: none; white-space: pre-wrap;"><span class="prism-token token 7" style="box-sizing: inherit; outline: none;"> org</span></span><span data-offset-key="63c1689afd1741f7a98c7a0c2f228c98:2" style="box-sizing: inherit; font-family: inherit; font-size: inherit; font-style: inherit; font-variant-caps: inherit; font-variant-ligatures: inherit; font-weight: inherit; outline: none; white-space: pre-wrap;"><span class="prism-token token 8 punctuation " style="box-sizing: inherit; color: #999999; outline: none;">.</span></span><span data-offset-key="63c1689afd1741f7a98c7a0c2f228c98:3" style="box-sizing: inherit; font-family: inherit; font-size: inherit; font-style: inherit; font-variant-caps: inherit; font-variant-ligatures: inherit; font-weight: inherit; outline: none; white-space: pre-wrap;"><span class="prism-token token 9" style="box-sizing: inherit; outline: none;">eclipse</span></span><span data-offset-key="63c1689afd1741f7a98c7a0c2f228c98:4" style="box-sizing: inherit; font-family: inherit; font-size: inherit; font-style: inherit; font-variant-caps: inherit; font-variant-ligatures: inherit; font-weight: inherit; outline: none; white-space: pre-wrap;"><span class="prism-token token 10 punctuation " style="box-sizing: inherit; color: #999999; outline: none;">.</span></span><span data-offset-key="63c1689afd1741f7a98c7a0c2f228c98:5" style="box-sizing: inherit; font-family: inherit; font-size: inherit; font-style: inherit; font-variant-caps: inherit; font-variant-ligatures: inherit; font-weight: inherit; outline: none; white-space: pre-wrap;"><span class="prism-token token 11" style="box-sizing: inherit; outline: none;">jface</span></span><span data-offset-key="63c1689afd1741f7a98c7a0c2f228c98:6" style="box-sizing: inherit; font-family: inherit; font-size: inherit; font-style: inherit; font-variant-caps: inherit; font-variant-ligatures: inherit; font-weight: inherit; outline: none; white-space: pre-wrap;"><span class="prism-token token 12 punctuation " style="box-sizing: inherit; color: #999999; outline: none;">.</span></span><span data-offset-key="63c1689afd1741f7a98c7a0c2f228c98:7" style="box-sizing: inherit; font-family: inherit; font-size: inherit; font-style: inherit; font-variant-caps: inherit; font-variant-ligatures: inherit; font-weight: inherit; outline: none; white-space: pre-wrap;"><span class="prism-token token 13" style="box-sizing: inherit; outline: none;">preference</span></span><span data-offset-key="63c1689afd1741f7a98c7a0c2f228c98:8" style="box-sizing: inherit; font-family: inherit; font-size: inherit; font-style: inherit; font-variant-caps: inherit; font-variant-ligatures: inherit; font-weight: inherit; outline: none; white-space: pre-wrap;"><span class="prism-token token 14 punctuation " style="box-sizing: inherit; color: #999999; outline: none;">.</span></span><span data-offset-key="63c1689afd1741f7a98c7a0c2f228c98:9" style="box-sizing: inherit; font-family: inherit; font-size: inherit; font-style: inherit; font-variant-caps: inherit; font-variant-ligatures: inherit; font-weight: inherit; outline: none; white-space: pre-wrap;"><span class="prism-token token 15" style="box-sizing: inherit; outline: none;">BooleanFieldEditor</span></span><span data-offset-key="63c1689afd1741f7a98c7a0c2f228c98:10" style="box-sizing: inherit; font-family: inherit; font-size: inherit; font-style: inherit; font-variant-caps: inherit; font-variant-ligatures: inherit; font-weight: inherit; outline: none; white-space: pre-wrap;"><span class="prism-token token 16 punctuation " style="box-sizing: inherit; color: #999999; outline: none;">;</span></span></div>
<div class="_17r7t1h" data-key="9a8a386be91f44708f5f181f9710cd71" style="box-sizing: inherit; counter-increment: line 1; font: inherit; outline: none; padding: 0px 14px 0px 44px; position: relative; word-wrap: normal;">
<span data-key="8a45633c239344028b6acaa38f1507c2" style="box-sizing: inherit; outline: none;"><span data-offset-key="8a45633c239344028b6acaa38f1507c2:0" style="box-sizing: inherit; outline: none;"><span class="prism-token token 18 keyword " style="box-sizing: inherit; color: #0077aa; outline: none;">import</span></span><span data-offset-key="8a45633c239344028b6acaa38f1507c2:1" style="box-sizing: inherit; outline: none;"><span class="prism-token token 19" style="box-sizing: inherit; outline: none;"> org</span></span><span data-offset-key="8a45633c239344028b6acaa38f1507c2:2" style="box-sizing: inherit; outline: none;"><span class="prism-token token 20 punctuation " style="box-sizing: inherit; color: #999999; outline: none;">.</span></span><span data-offset-key="8a45633c239344028b6acaa38f1507c2:3" style="box-sizing: inherit; outline: none;"><span class="prism-token token 21" style="box-sizing: inherit; outline: none;">eclipse</span></span><span data-offset-key="8a45633c239344028b6acaa38f1507c2:4" style="box-sizing: inherit; outline: none;"><span class="prism-token token 22 punctuation " style="box-sizing: inherit; color: #999999; outline: none;">.</span></span><span data-offset-key="8a45633c239344028b6acaa38f1507c2:5" style="box-sizing: inherit; outline: none;"><span class="prism-token token 23" style="box-sizing: inherit; outline: none;">jface</span></span><span data-offset-key="8a45633c239344028b6acaa38f1507c2:6" style="box-sizing: inherit; outline: none;"><span class="prism-token token 24 punctuation " style="box-sizing: inherit; color: #999999; outline: none;">.</span></span><span data-offset-key="8a45633c239344028b6acaa38f1507c2:7" style="box-sizing: inherit; outline: none;"><span class="prism-token token 25" style="box-sizing: inherit; outline: none;">preference</span></span><span data-offset-key="8a45633c239344028b6acaa38f1507c2:8" style="box-sizing: inherit; outline: none;"><span class="prism-token token 26 punctuation " style="box-sizing: inherit; color: #999999; outline: none;">.</span></span><span data-offset-key="8a45633c239344028b6acaa38f1507c2:9" style="box-sizing: inherit; outline: none;"><span class="prism-token token 27" style="box-sizing: inherit; outline: none;">DirectoryFieldEditor</span></span><span data-offset-key="8a45633c239344028b6acaa38f1507c2:10" style="box-sizing: inherit; outline: none;"><span class="prism-token token 28 punctuation " style="box-sizing: inherit; color: #999999; outline: none;">;</span></span></span></div>
<div class="_17r7t1h" data-key="fac2d8038a334d03907afb341c2ce620" style="box-sizing: inherit; counter-increment: line 1; font: inherit; outline: none; padding: 0px 14px 0px 44px; position: relative; word-wrap: normal;">
<span data-key="38df9f13db034de5a2faa57cda8a4fd1" style="box-sizing: inherit; outline: none;"><span data-offset-key="38df9f13db034de5a2faa57cda8a4fd1:0" style="box-sizing: inherit; outline: none;"><span class="prism-token token 30 keyword " style="box-sizing: inherit; color: #0077aa; outline: none;">import</span></span><span data-offset-key="38df9f13db034de5a2faa57cda8a4fd1:1" style="box-sizing: inherit; outline: none;"><span class="prism-token token 31" style="box-sizing: inherit; outline: none;"> org</span></span><span data-offset-key="38df9f13db034de5a2faa57cda8a4fd1:2" style="box-sizing: inherit; outline: none;"><span class="prism-token token 32 punctuation " style="box-sizing: inherit; color: #999999; outline: none;">.</span></span><span data-offset-key="38df9f13db034de5a2faa57cda8a4fd1:3" style="box-sizing: inherit; outline: none;"><span class="prism-token token 33" style="box-sizing: inherit; outline: none;">eclipse</span></span><span data-offset-key="38df9f13db034de5a2faa57cda8a4fd1:4" style="box-sizing: inherit; outline: none;"><span class="prism-token token 34 punctuation " style="box-sizing: inherit; color: #999999; outline: none;">.</span></span><span data-offset-key="38df9f13db034de5a2faa57cda8a4fd1:5" style="box-sizing: inherit; outline: none;"><span class="prism-token token 35" style="box-sizing: inherit; outline: none;">jface</span></span><span data-offset-key="38df9f13db034de5a2faa57cda8a4fd1:6" style="box-sizing: inherit; outline: none;"><span class="prism-token token 36 punctuation " style="box-sizing: inherit; color: #999999; outline: none;">.</span></span><span data-offset-key="38df9f13db034de5a2faa57cda8a4fd1:7" style="box-sizing: inherit; outline: none;"><span class="prism-token token 37" style="box-sizing: inherit; outline: none;">preference</span></span><span data-offset-key="38df9f13db034de5a2faa57cda8a4fd1:8" style="box-sizing: inherit; outline: none;"><span class="prism-token token 38 punctuation " style="box-sizing: inherit; color: #999999; outline: none;">.</span></span><span data-offset-key="38df9f13db034de5a2faa57cda8a4fd1:9" style="box-sizing: inherit; outline: none;"><span class="prism-token token 39" style="box-sizing: inherit; outline: none;">FieldEditorPreferencePage</span></span><span data-offset-key="38df9f13db034de5a2faa57cda8a4fd1:10" style="box-sizing: inherit; outline: none;"><span class="prism-token token 40 punctuation " style="box-sizing: inherit; color: #999999; outline: none;">;</span></span></span></div>
<div class="_17r7t1h" data-key="5ba4739d7ba8441982a9c89bc6bb3929" style="box-sizing: inherit; counter-increment: line 1; font: inherit; outline: none; padding: 0px 14px 0px 44px; position: relative; word-wrap: normal;">
<span data-key="12da97179afb41cfaffe5cb48e0c2a24" style="box-sizing: inherit; outline: none;"><span data-offset-key="12da97179afb41cfaffe5cb48e0c2a24:0" style="box-sizing: inherit; outline: none;"><span class="prism-token token 42 keyword " style="box-sizing: inherit; color: #0077aa; outline: none;">import</span></span><span data-offset-key="12da97179afb41cfaffe5cb48e0c2a24:1" style="box-sizing: inherit; outline: none;"><span class="prism-token token 43" style="box-sizing: inherit; outline: none;"> org</span></span><span data-offset-key="12da97179afb41cfaffe5cb48e0c2a24:2" style="box-sizing: inherit; outline: none;"><span class="prism-token token 44 punctuation " style="box-sizing: inherit; color: #999999; outline: none;">.</span></span><span data-offset-key="12da97179afb41cfaffe5cb48e0c2a24:3" style="box-sizing: inherit; outline: none;"><span class="prism-token token 45" style="box-sizing: inherit; outline: none;">eclipse</span></span><span data-offset-key="12da97179afb41cfaffe5cb48e0c2a24:4" style="box-sizing: inherit; outline: none;"><span class="prism-token token 46 punctuation " style="box-sizing: inherit; color: #999999; outline: none;">.</span></span><span data-offset-key="12da97179afb41cfaffe5cb48e0c2a24:5" style="box-sizing: inherit; outline: none;"><span class="prism-token token 47" style="box-sizing: inherit; outline: none;">jface</span></span><span data-offset-key="12da97179afb41cfaffe5cb48e0c2a24:6" style="box-sizing: inherit; outline: none;"><span class="prism-token token 48 punctuation " style="box-sizing: inherit; color: #999999; outline: none;">.</span></span><span data-offset-key="12da97179afb41cfaffe5cb48e0c2a24:7" style="box-sizing: inherit; outline: none;"><span class="prism-token token 49" style="box-sizing: inherit; outline: none;">preference</span></span><span data-offset-key="12da97179afb41cfaffe5cb48e0c2a24:8" style="box-sizing: inherit; outline: none;"><span class="prism-token token 50 punctuation " style="box-sizing: inherit; color: #999999; outline: none;">.</span></span><span data-offset-key="12da97179afb41cfaffe5cb48e0c2a24:9" style="box-sizing: inherit; outline: none;"><span class="prism-token token 51" style="box-sizing: inherit; outline: none;">RadioGroupFieldEditor</span></span><span data-offset-key="12da97179afb41cfaffe5cb48e0c2a24:10" style="box-sizing: inherit; outline: none;"><span class="prism-token token 52 punctuation " style="box-sizing: inherit; color: #999999; outline: none;">;</span></span></span></div>
<div class="_17r7t1h" data-key="ccb56fa559254be691e7a75e7b02b1be" style="box-sizing: inherit; counter-increment: line 1; font: inherit; outline: none; padding: 0px 14px 0px 44px; position: relative; word-wrap: normal;">
<span data-key="a1f8ca834b03464194eee94f91684ee8" style="box-sizing: inherit; outline: none;"><span data-offset-key="a1f8ca834b03464194eee94f91684ee8:0" style="box-sizing: inherit; outline: none;"><span class="prism-token token 54 keyword " style="box-sizing: inherit; color: #0077aa; outline: none;">import</span></span><span data-offset-key="a1f8ca834b03464194eee94f91684ee8:1" style="box-sizing: inherit; outline: none;"><span class="prism-token token 55" style="box-sizing: inherit; outline: none;"> org</span></span><span data-offset-key="a1f8ca834b03464194eee94f91684ee8:2" style="box-sizing: inherit; outline: none;"><span class="prism-token token 56 punctuation " style="box-sizing: inherit; color: #999999; outline: none;">.</span></span><span data-offset-key="a1f8ca834b03464194eee94f91684ee8:3" style="box-sizing: inherit; outline: none;"><span class="prism-token token 57" style="box-sizing: inherit; outline: none;">eclipse</span></span><span data-offset-key="a1f8ca834b03464194eee94f91684ee8:4" style="box-sizing: inherit; outline: none;"><span class="prism-token token 58 punctuation " style="box-sizing: inherit; color: #999999; outline: none;">.</span></span><span data-offset-key="a1f8ca834b03464194eee94f91684ee8:5" style="box-sizing: inherit; outline: none;"><span class="prism-token token 59" style="box-sizing: inherit; outline: none;">jface</span></span><span data-offset-key="a1f8ca834b03464194eee94f91684ee8:6" style="box-sizing: inherit; outline: none;"><span class="prism-token token 60 punctuation " style="box-sizing: inherit; color: #999999; outline: none;">.</span></span><span data-offset-key="a1f8ca834b03464194eee94f91684ee8:7" style="box-sizing: inherit; outline: none;"><span class="prism-token token 61" style="box-sizing: inherit; outline: none;">preference</span></span><span data-offset-key="a1f8ca834b03464194eee94f91684ee8:8" style="box-sizing: inherit; outline: none;"><span class="prism-token token 62 punctuation " style="box-sizing: inherit; color: #999999; outline: none;">.</span></span><span data-offset-key="a1f8ca834b03464194eee94f91684ee8:9" style="box-sizing: inherit; outline: none;"><span class="prism-token token 63" style="box-sizing: inherit; outline: none;">StringFieldEditor</span></span><span data-offset-key="a1f8ca834b03464194eee94f91684ee8:10" style="box-sizing: inherit; outline: none;"><span class="prism-token token 64 punctuation " style="box-sizing: inherit; color: #999999; outline: none;">;</span></span></span></div>
<div class="_17r7t1h" data-key="46ecdcc90d924bb8828acd245ee4904a" style="box-sizing: inherit; counter-increment: line 1; font: inherit; outline: none; padding: 0px 14px 0px 44px; position: relative; word-wrap: normal;">
<span data-key="994ec99cb54e44cc8a56ed6635796b74" style="box-sizing: inherit; outline: none;"><span data-offset-key="994ec99cb54e44cc8a56ed6635796b74:0" style="box-sizing: inherit; outline: none;"><span class="prism-token token 66 keyword " style="box-sizing: inherit; color: #0077aa; outline: none;">import</span></span><span data-offset-key="994ec99cb54e44cc8a56ed6635796b74:1" style="box-sizing: inherit; outline: none;"><span class="prism-token token 67" style="box-sizing: inherit; outline: none;"> org</span></span><span data-offset-key="994ec99cb54e44cc8a56ed6635796b74:2" style="box-sizing: inherit; outline: none;"><span class="prism-token token 68 punctuation " style="box-sizing: inherit; color: #999999; outline: none;">.</span></span><span data-offset-key="994ec99cb54e44cc8a56ed6635796b74:3" style="box-sizing: inherit; outline: none;"><span class="prism-token token 69" style="box-sizing: inherit; outline: none;">eclipse</span></span><span data-offset-key="994ec99cb54e44cc8a56ed6635796b74:4" style="box-sizing: inherit; outline: none;"><span class="prism-token token 70 punctuation " style="box-sizing: inherit; color: #999999; outline: none;">.</span></span><span data-offset-key="994ec99cb54e44cc8a56ed6635796b74:5" style="box-sizing: inherit; outline: none;"><span class="prism-token token 71" style="box-sizing: inherit; outline: none;">ui</span></span><span data-offset-key="994ec99cb54e44cc8a56ed6635796b74:6" style="box-sizing: inherit; outline: none;"><span class="prism-token token 72 punctuation " style="box-sizing: inherit; color: #999999; outline: none;">.</span></span><span data-offset-key="994ec99cb54e44cc8a56ed6635796b74:7" style="box-sizing: inherit; outline: none;"><span class="prism-token token 73" style="box-sizing: inherit; outline: none;">IWorkbench</span></span><span data-offset-key="994ec99cb54e44cc8a56ed6635796b74:8" style="box-sizing: inherit; outline: none;"><span class="prism-token token 74 punctuation " style="box-sizing: inherit; color: #999999; outline: none;">;</span></span></span></div>
<div class="_17r7t1h" data-key="ae5c96d72d6c4b3db583a8bbc13e5d6a" style="box-sizing: inherit; counter-increment: line 1; font: inherit; outline: none; padding: 0px 14px 0px 44px; position: relative; word-wrap: normal;">
<span data-key="b9f911e82622493eaff09680fd000246" style="box-sizing: inherit; outline: none;"><span data-offset-key="b9f911e82622493eaff09680fd000246:0" style="box-sizing: inherit; outline: none;"><span class="prism-token token 76 keyword " style="box-sizing: inherit; color: #0077aa; outline: none;">import</span></span><span data-offset-key="b9f911e82622493eaff09680fd000246:1" style="box-sizing: inherit; outline: none;"><span class="prism-token token 77" style="box-sizing: inherit; outline: none;"> org</span></span><span data-offset-key="b9f911e82622493eaff09680fd000246:2" style="box-sizing: inherit; outline: none;"><span class="prism-token token 78 punctuation " style="box-sizing: inherit; color: #999999; outline: none;">.</span></span><span data-offset-key="b9f911e82622493eaff09680fd000246:3" style="box-sizing: inherit; outline: none;"><span class="prism-token token 79" style="box-sizing: inherit; outline: none;">eclipse</span></span><span data-offset-key="b9f911e82622493eaff09680fd000246:4" style="box-sizing: inherit; outline: none;"><span class="prism-token token 80 punctuation " style="box-sizing: inherit; color: #999999; outline: none;">.</span></span><span data-offset-key="b9f911e82622493eaff09680fd000246:5" style="box-sizing: inherit; outline: none;"><span class="prism-token token 81" style="box-sizing: inherit; outline: none;">ui</span></span><span data-offset-key="b9f911e82622493eaff09680fd000246:6" style="box-sizing: inherit; outline: none;"><span class="prism-token token 82 punctuation " style="box-sizing: inherit; color: #999999; outline: none;">.</span></span><span data-offset-key="b9f911e82622493eaff09680fd000246:7" style="box-sizing: inherit; outline: none;"><span class="prism-token token 83" style="box-sizing: inherit; outline: none;">IWorkbenchPreferencePage</span></span><span data-offset-key="b9f911e82622493eaff09680fd000246:8" style="box-sizing: inherit; outline: none;"><span class="prism-token token 84 punctuation " style="box-sizing: inherit; color: #999999; outline: none;">;</span></span></span></div>
<div class="_17r7t1h" data-key="48dae27232914503afd4e8e64fe87011" style="box-sizing: inherit; counter-increment: line 1; font: inherit; outline: none; padding: 0px 14px 0px 44px; position: relative; word-wrap: normal;">
<span data-key="1df2f5e2b42444288e0bb0f312bcf2c8" style="box-sizing: inherit; outline: none;"><span data-offset-key="1df2f5e2b42444288e0bb0f312bcf2c8:0" style="box-sizing: inherit; outline: none;"><span class="prism-token token 86 keyword " style="box-sizing: inherit; color: #0077aa; outline: none;">import</span></span><span data-offset-key="1df2f5e2b42444288e0bb0f312bcf2c8:1" style="box-sizing: inherit; outline: none;"><span class="prism-token token 87" style="box-sizing: inherit; outline: none;"> org</span></span><span data-offset-key="1df2f5e2b42444288e0bb0f312bcf2c8:2" style="box-sizing: inherit; outline: none;"><span class="prism-token token 88 punctuation " style="box-sizing: inherit; color: #999999; outline: none;">.</span></span><span data-offset-key="1df2f5e2b42444288e0bb0f312bcf2c8:3" style="box-sizing: inherit; outline: none;"><span class="prism-token token 89" style="box-sizing: inherit; outline: none;">eclipse</span></span><span data-offset-key="1df2f5e2b42444288e0bb0f312bcf2c8:4" style="box-sizing: inherit; outline: none;"><span class="prism-token token 90 punctuation " style="box-sizing: inherit; color: #999999; outline: none;">.</span></span><span data-offset-key="1df2f5e2b42444288e0bb0f312bcf2c8:5" style="box-sizing: inherit; outline: none;"><span class="prism-token token 91" style="box-sizing: inherit; outline: none;">ui</span></span><span data-offset-key="1df2f5e2b42444288e0bb0f312bcf2c8:6" style="box-sizing: inherit; outline: none;"><span class="prism-token token 92 punctuation " style="box-sizing: inherit; color: #999999; outline: none;">.</span></span><span data-offset-key="1df2f5e2b42444288e0bb0f312bcf2c8:7" style="box-sizing: inherit; outline: none;"><span class="prism-token token 93" style="box-sizing: inherit; outline: none;">PlatformUI</span></span><span data-offset-key="1df2f5e2b42444288e0bb0f312bcf2c8:8" style="box-sizing: inherit; outline: none;"><span class="prism-token token 94 punctuation " style="box-sizing: inherit; color: #999999; outline: none;">;</span></span></span></div>
<div class="_17r7t1h" data-key="e67db5c9f80047b386e3583b890b5ee3" style="box-sizing: inherit; counter-increment: line 1; font: inherit; outline: none; padding: 0px 14px 0px 44px; position: relative; word-wrap: normal;">
<span data-key="44d30180dcdb46e3aae26de0ecbb17dd" style="box-sizing: inherit; outline: none;"></span><span style="color: slategrey; font-family: inherit; font-size: inherit; font-style: inherit; font-variant-caps: inherit; font-variant-ligatures: inherit; font-weight: inherit; white-space: pre-wrap;">/**</span></div>
<div class="_17r7t1h" data-key="ef77c74c6c744212a29efbaa8ae7c36f" style="box-sizing: inherit; counter-increment: line 1; font: inherit; outline: none; padding: 0px 14px 0px 44px; position: relative; word-wrap: normal;">
<span data-key="dce7863b3fc4446698ae9e81c2947a73" style="box-sizing: inherit; outline: none;"><span data-offset-key="dce7863b3fc4446698ae9e81c2947a73:0" style="box-sizing: inherit; outline: none;"><span class="prism-token token 96 comment " style="box-sizing: inherit; color: slategrey; outline: none;"> * This class represents a preference page that</span></span></span></div>
<div class="_17r7t1h" data-key="deec020e0ca043208889640374400041" style="box-sizing: inherit; counter-increment: line 1; font: inherit; outline: none; padding: 0px 14px 0px 44px; position: relative; word-wrap: normal;">
<span data-key="db380629f2b447868347732501e44a90" style="box-sizing: inherit; outline: none;"><span data-offset-key="db380629f2b447868347732501e44a90:0" style="box-sizing: inherit; outline: none;"><span class="prism-token token 96 comment " style="box-sizing: inherit; color: slategrey; outline: none;"> * is contributed to the Preferences dialog. By </span></span></span></div>
<div class="_17r7t1h" data-key="29a0e4187786492c80ca040973fc22a7" style="box-sizing: inherit; counter-increment: line 1; font: inherit; outline: none; padding: 0px 14px 0px 44px; position: relative; word-wrap: normal;">
<span data-key="7aec9a1dec9b4e13854362df49b2fa8e" style="box-sizing: inherit; outline: none;"><span data-offset-key="7aec9a1dec9b4e13854362df49b2fa8e:0" style="box-sizing: inherit; outline: none;"><span class="prism-token token 96 comment " style="box-sizing: inherit; color: slategrey; outline: none;"> * subclassing <samp>FieldEditorPreferencePage</samp>, we</span></span></span></div>
<div class="_17r7t1h" data-key="70f2f3023c754b309d39b6e1bd1d67c2" style="box-sizing: inherit; counter-increment: line 1; font: inherit; outline: none; padding: 0px 14px 0px 44px; position: relative; word-wrap: normal;">
<span data-key="58a1a8e7717943af8020e86272623f24" style="box-sizing: inherit; outline: none;"><span data-offset-key="58a1a8e7717943af8020e86272623f24:0" style="box-sizing: inherit; outline: none;"><span class="prism-token token 96 comment " style="box-sizing: inherit; color: slategrey; outline: none;"> * can use the field support built into JFace that allows</span></span></span></div>
<div class="_17r7t1h" data-key="027d9cb831014822b4eb72af835a94f5" style="box-sizing: inherit; counter-increment: line 1; font: inherit; outline: none; padding: 0px 14px 0px 44px; position: relative; word-wrap: normal;">
<span data-key="aec60a81a954431ba17ed3d1a0f49f41" style="box-sizing: inherit; outline: none;"><span data-offset-key="aec60a81a954431ba17ed3d1a0f49f41:0" style="box-sizing: inherit; outline: none;"><span class="prism-token token 96 comment " style="box-sizing: inherit; color: slategrey; outline: none;"> * us to create a page that is small and knows how to </span></span></span></div>
<div class="_17r7t1h" data-key="4388843db6e14a54892ed21a4a209320" style="box-sizing: inherit; counter-increment: line 1; font: inherit; outline: none; padding: 0px 14px 0px 44px; position: relative; word-wrap: normal;">
<span data-key="6a6fdec75c404686b0f7d63da240a4be" style="box-sizing: inherit; outline: none;"><span data-offset-key="6a6fdec75c404686b0f7d63da240a4be:0" style="box-sizing: inherit; outline: none;"><span class="prism-token token 96 comment " style="box-sizing: inherit; color: slategrey; outline: none;"> * save, restore and apply itself.</span></span></span></div>
<div class="_17r7t1h" data-key="d0ef54390c5c48f2b331ef8327739bb3" style="box-sizing: inherit; counter-increment: line 1; font: inherit; outline: none; padding: 0px 14px 0px 44px; position: relative; word-wrap: normal;">
<span data-key="e6883369617048eeb46890c5a211775a" style="box-sizing: inherit; outline: none;"><span data-offset-key="e6883369617048eeb46890c5a211775a:0" style="box-sizing: inherit; outline: none;"><span class="prism-token token 96 comment " style="box-sizing: inherit; color: slategrey; outline: none;"> * <p></span></span></span></div>
<div class="_17r7t1h" data-key="79230ad854964c6a929c5c1173c6b8eb" style="box-sizing: inherit; counter-increment: line 1; font: inherit; outline: none; padding: 0px 14px 0px 44px; position: relative; word-wrap: normal;">
<span data-key="7524e894243d440c9ff77a71be8bd91a" style="box-sizing: inherit; outline: none;"><span data-offset-key="7524e894243d440c9ff77a71be8bd91a:0" style="box-sizing: inherit; outline: none;"><span class="prism-token token 96 comment " style="box-sizing: inherit; color: slategrey; outline: none;"> * This page is used to modify preferences only. They</span></span></span></div>
<div class="_17r7t1h" data-key="40766cf64d1b4655a446b716f8e4ab18" style="box-sizing: inherit; counter-increment: line 1; font: inherit; outline: none; padding: 0px 14px 0px 44px; position: relative; word-wrap: normal;">
<span data-key="ecea80a00b304b9183b6f1bd0251ba76" style="box-sizing: inherit; outline: none;"><span data-offset-key="ecea80a00b304b9183b6f1bd0251ba76:0" style="box-sizing: inherit; outline: none;"><span class="prism-token token 96 comment " style="box-sizing: inherit; color: slategrey; outline: none;"> * are stored in the preference store that belongs to</span></span></span></div>
<div class="_17r7t1h" data-key="a90fc83ef8814f92b79bfd9ccc8ecded" style="box-sizing: inherit; counter-increment: line 1; font: inherit; outline: none; padding: 0px 14px 0px 44px; position: relative; word-wrap: normal;">
<span data-key="704e7465ca9f44038aaeceffcc938c03" style="box-sizing: inherit; outline: none;"><span data-offset-key="704e7465ca9f44038aaeceffcc938c03:0" style="box-sizing: inherit; outline: none;"><span class="prism-token token 96 comment " style="box-sizing: inherit; color: slategrey; outline: none;"> * the main plug-in class. That way, preferences can</span></span></span></div>
<div class="_17r7t1h" data-key="50fab27f2d89428da55b25123a26432f" style="box-sizing: inherit; counter-increment: line 1; font: inherit; outline: none; padding: 0px 14px 0px 44px; position: relative; word-wrap: normal;">
<span data-key="cb790ae1190d4b119afac575fe0d9d18" style="box-sizing: inherit; outline: none;"><span data-offset-key="cb790ae1190d4b119afac575fe0d9d18:0" style="box-sizing: inherit; outline: none;"><span class="prism-token token 96 comment " style="box-sizing: inherit; color: slategrey; outline: none;"> * be accessed directly via the preference store.</span></span></span></div>
<div class="_17r7t1h" data-key="63a3ad46492e40cf830efbf47db22ce1" style="box-sizing: inherit; counter-increment: line 1; font: inherit; outline: none; padding: 0px 14px 0px 44px; position: relative; word-wrap: normal;">
<span data-key="110189d4d4564fa1adca49add9947f02" style="box-sizing: inherit; outline: none;"><span data-offset-key="110189d4d4564fa1adca49add9947f02:0" style="box-sizing: inherit; outline: none;"><span class="prism-token token 96 comment " style="box-sizing: inherit; color: slategrey; outline: none;"> */</span></span></span></div>
<div class="_17r7t1h" data-key="0f39bdda857e4e5d91aaabb51da8afd9" style="box-sizing: inherit; counter-increment: line 1; font: inherit; outline: none; padding: 0px 14px 0px 44px; position: relative; word-wrap: normal;">
<span data-key="3d01c771b5cc4762b081d4ba62e1732d" style="box-sizing: inherit; outline: none;"><span data-offset-key="3d01c771b5cc4762b081d4ba62e1732d:0" style="box-sizing: inherit; outline: none;"><span class="prism-token token 98 keyword " style="box-sizing: inherit; color: #0077aa; outline: none;">public</span></span><span data-offset-key="3d01c771b5cc4762b081d4ba62e1732d:1" style="box-sizing: inherit; outline: none;"><span class="prism-token token 99" style="box-sizing: inherit; outline: none;"> </span></span><span data-offset-key="3d01c771b5cc4762b081d4ba62e1732d:2" style="box-sizing: inherit; outline: none;"><span class="prism-token token 100 keyword " style="box-sizing: inherit; color: #0077aa; outline: none;">class</span></span><span data-offset-key="3d01c771b5cc4762b081d4ba62e1732d:3" style="box-sizing: inherit; outline: none;"><span class="prism-token token 101" style="box-sizing: inherit; outline: none;"> </span></span><span data-offset-key="3d01c771b5cc4762b081d4ba62e1732d:4" style="box-sizing: inherit; outline: none;"><span class="prism-token token 102 class-name " style="box-sizing: inherit; outline: none;">SamplePreferencePage</span></span></span></div>
<div class="_17r7t1h" data-key="63374caff6b54805a0bbe2c773b66e15" style="box-sizing: inherit; counter-increment: line 1; font: inherit; outline: none; padding: 0px 14px 0px 44px; position: relative; word-wrap: normal;">
<span data-key="01fbb357a8f3462b80071c41f5adca62" style="box-sizing: inherit; outline: none;"><span data-offset-key="01fbb357a8f3462b80071c41f5adca62:0" style="box-sizing: inherit; outline: none;"><span class="prism-token token 103" style="box-sizing: inherit; outline: none;"> </span></span><span data-offset-key="01fbb357a8f3462b80071c41f5adca62:1" style="box-sizing: inherit; outline: none;"><span class="prism-token token 104 keyword " style="box-sizing: inherit; color: #0077aa; outline: none;">extends</span></span><span data-offset-key="01fbb357a8f3462b80071c41f5adca62:2" style="box-sizing: inherit; outline: none;"><span class="prism-token token 105" style="box-sizing: inherit; outline: none;"> </span></span><span data-offset-key="01fbb357a8f3462b80071c41f5adca62:3" style="box-sizing: inherit; outline: none;"><span class="prism-token token 106 class-name " style="box-sizing: inherit; outline: none;">FieldEditorPreferencePage</span></span></span></div>
<div class="_17r7t1h" data-key="0a02382d8c504681bb57d040bcec24cc" style="box-sizing: inherit; counter-increment: line 1; font: inherit; outline: none; padding: 0px 14px 0px 44px; position: relative; word-wrap: normal;">
<span data-key="b4341fc1dfd34ec5aecaf6f1816f9e78" style="box-sizing: inherit; outline: none;"><span data-offset-key="b4341fc1dfd34ec5aecaf6f1816f9e78:0" style="box-sizing: inherit; outline: none;"><span class="prism-token token 107" style="box-sizing: inherit; outline: none;"> </span></span><span data-offset-key="b4341fc1dfd34ec5aecaf6f1816f9e78:1" style="box-sizing: inherit; outline: none;"><span class="prism-token token 108 keyword " style="box-sizing: inherit; color: #0077aa; outline: none;">implements</span></span><span data-offset-key="b4341fc1dfd34ec5aecaf6f1816f9e78:2" style="box-sizing: inherit; outline: none;"><span class="prism-token token 109" style="box-sizing: inherit; outline: none;"> </span></span><span data-offset-key="b4341fc1dfd34ec5aecaf6f1816f9e78:3" style="box-sizing: inherit; outline: none;"><span class="prism-token token 110 class-name " style="box-sizing: inherit; outline: none;">IWorkbenchPreferencePage</span></span><span data-offset-key="b4341fc1dfd34ec5aecaf6f1816f9e78:4" style="box-sizing: inherit; outline: none;"><span class="prism-token token 111" style="box-sizing: inherit; outline: none;"> </span></span><span data-offset-key="b4341fc1dfd34ec5aecaf6f1816f9e78:5" style="box-sizing: inherit; outline: none;"><span class="prism-token token 112 punctuation " style="box-sizing: inherit; color: #999999; outline: none;">{</span></span></span></div>
<div class="_17r7t1h" data-key="dc1a59bfa58a416a877ee98f21b70914" style="box-sizing: inherit; counter-increment: line 1; font: inherit; outline: none; padding: 0px 14px 0px 44px; position: relative; word-wrap: normal;">
<span data-key="20950eeaef024c1b9cc7b4b367cf0ece" style="box-sizing: inherit; outline: none;"><span data-offset-key="20950eeaef024c1b9cc7b4b367cf0ece:0" style="box-sizing: inherit; outline: none;"><span class="prism-token token 113" style="box-sizing: inherit; outline: none;"> </span></span><span data-offset-key="20950eeaef024c1b9cc7b4b367cf0ece:1" style="box-sizing: inherit; outline: none;"><span class="prism-token token 114 keyword " style="box-sizing: inherit; color: #0077aa; outline: none;">public</span></span><span data-offset-key="20950eeaef024c1b9cc7b4b367cf0ece:2" style="box-sizing: inherit; outline: none;"><span class="prism-token token 115" style="box-sizing: inherit; outline: none;"> </span></span><span data-offset-key="20950eeaef024c1b9cc7b4b367cf0ece:3" style="box-sizing: inherit; outline: none;"><span class="prism-token token 116 function " style="box-sizing: inherit; color: #dd4a68; outline: none;">SamplePreferencePage</span></span><span data-offset-key="20950eeaef024c1b9cc7b4b367cf0ece:4" style="box-sizing: inherit; outline: none;"><span class="prism-token token 117 punctuation " style="box-sizing: inherit; color: #999999; outline: none;">(</span></span><span data-offset-key="20950eeaef024c1b9cc7b4b367cf0ece:5" style="box-sizing: inherit; outline: none;"><span class="prism-token token 118 punctuation " style="box-sizing: inherit; color: #999999; outline: none;">)</span></span><span data-offset-key="20950eeaef024c1b9cc7b4b367cf0ece:6" style="box-sizing: inherit; outline: none;"><span class="prism-token token 119" style="box-sizing: inherit; outline: none;"> </span></span><span data-offset-key="20950eeaef024c1b9cc7b4b367cf0ece:7" style="box-sizing: inherit; outline: none;"><span class="prism-token token 120 punctuation " style="box-sizing: inherit; color: #999999; outline: none;">{</span></span></span></div>
<div class="_17r7t1h" data-key="be5d77dfe0e44c8f91e47510e52d9363" style="box-sizing: inherit; counter-increment: line 1; font: inherit; outline: none; padding: 0px 14px 0px 44px; position: relative; word-wrap: normal;">
<span data-key="4a062b8669684786a98a00bbbb0c5190" style="box-sizing: inherit; outline: none;"><span data-offset-key="4a062b8669684786a98a00bbbb0c5190:0" style="box-sizing: inherit; outline: none;"><span class="prism-token token 121" style="box-sizing: inherit; outline: none;"> </span></span><span data-offset-key="4a062b8669684786a98a00bbbb0c5190:1" style="box-sizing: inherit; outline: none;"><span class="prism-token token 122 keyword " style="box-sizing: inherit; color: #0077aa; outline: none;">super</span></span><span data-offset-key="4a062b8669684786a98a00bbbb0c5190:2" style="box-sizing: inherit; outline: none;"><span class="prism-token token 123 punctuation " style="box-sizing: inherit; color: #999999; outline: none;">(</span></span><span data-offset-key="4a062b8669684786a98a00bbbb0c5190:3" style="box-sizing: inherit; outline: none;"><span class="prism-token token 124" style="box-sizing: inherit; outline: none;">GRID</span></span><span data-offset-key="4a062b8669684786a98a00bbbb0c5190:4" style="box-sizing: inherit; outline: none;"><span class="prism-token token 125 punctuation " style="box-sizing: inherit; color: #999999; outline: none;">)</span></span><span data-offset-key="4a062b8669684786a98a00bbbb0c5190:5" style="box-sizing: inherit; outline: none;"><span class="prism-token token 126 punctuation " style="box-sizing: inherit; color: #999999; outline: none;">;</span></span></span></div>
<div class="_17r7t1h" data-key="7449dbee5d0442639c34b7be74ea6e28" style="box-sizing: inherit; counter-increment: line 1; font: inherit; outline: none; padding: 0px 14px 0px 44px; position: relative; word-wrap: normal;">
<span data-key="16fccd157add452a9be6a00631477440" style="box-sizing: inherit; outline: none;"><span data-offset-key="16fccd157add452a9be6a00631477440:0" style="box-sizing: inherit; outline: none;"><span class="prism-token token 127" style="box-sizing: inherit; outline: none;"> </span></span><span data-offset-key="16fccd157add452a9be6a00631477440:1" style="box-sizing: inherit; outline: none;"><span class="prism-token token 128 function " style="box-sizing: inherit; color: #dd4a68; outline: none;">setPreferenceStore</span></span><span data-offset-key="16fccd157add452a9be6a00631477440:2" style="box-sizing: inherit; outline: none;"><span class="prism-token token 129 punctuation " style="box-sizing: inherit; color: #999999; outline: none;">(</span></span><span data-offset-key="16fccd157add452a9be6a00631477440:3" style="box-sizing: inherit; outline: none;"><span class="prism-token token 130" style="box-sizing: inherit; outline: none;">PlatformUI</span></span><span data-offset-key="16fccd157add452a9be6a00631477440:4" style="box-sizing: inherit; outline: none;"><span class="prism-token token 131 punctuation " style="box-sizing: inherit; color: #999999; outline: none;">.</span></span><span data-offset-key="16fccd157add452a9be6a00631477440:5" style="box-sizing: inherit; outline: none;"><span class="prism-token token 132 function " style="box-sizing: inherit; color: #dd4a68; outline: none;">getPreferenceStore</span></span><span data-offset-key="16fccd157add452a9be6a00631477440:6" style="box-sizing: inherit; outline: none;"><span class="prism-token token 133 punctuation " style="box-sizing: inherit; color: #999999; outline: none;">(</span></span><span data-offset-key="16fccd157add452a9be6a00631477440:7" style="box-sizing: inherit; outline: none;"><span class="prism-token token 134 punctuation " style="box-sizing: inherit; color: #999999; outline: none;">)</span></span><span data-offset-key="16fccd157add452a9be6a00631477440:8" style="box-sizing: inherit; outline: none;"><span class="prism-token token 135 punctuation " style="box-sizing: inherit; color: #999999; outline: none;">)</span></span><span data-offset-key="16fccd157add452a9be6a00631477440:9" style="box-sizing: inherit; outline: none;"><span class="prism-token token 136 punctuation " style="box-sizing: inherit; color: #999999; outline: none;">;</span></span></span></div>
<div class="_17r7t1h" data-key="5172d30c250a4b9999cf3a64c87093bf" style="box-sizing: inherit; counter-increment: line 1; font: inherit; outline: none; padding: 0px 14px 0px 44px; position: relative; word-wrap: normal;">
<span data-key="1486313b410f4f00be7618bc6b9bd2f1" style="box-sizing: inherit; outline: none;"><span data-offset-key="1486313b410f4f00be7618bc6b9bd2f1:0" style="box-sizing: inherit; outline: none;"><span class="prism-token token 137" style="box-sizing: inherit; outline: none;"> </span></span><span data-offset-key="1486313b410f4f00be7618bc6b9bd2f1:1" style="box-sizing: inherit; outline: none;"><span class="prism-token token 138 function " style="box-sizing: inherit; color: #dd4a68; outline: none;">setDescription</span></span><span data-offset-key="1486313b410f4f00be7618bc6b9bd2f1:2" style="box-sizing: inherit; outline: none;"><span class="prism-token token 139 punctuation " style="box-sizing: inherit; color: #999999; outline: none;">(</span></span><span data-offset-key="1486313b410f4f00be7618bc6b9bd2f1:3" style="box-sizing: inherit; outline: none;"><span class="prism-token token 140 string " style="box-sizing: inherit; color: #669900; outline: none;">"A demonstration of a preference page implementation"</span></span><span data-offset-key="1486313b410f4f00be7618bc6b9bd2f1:4" style="box-sizing: inherit; outline: none;"><span class="prism-token token 141 punctuation " style="box-sizing: inherit; color: #999999; outline: none;">)</span></span><span data-offset-key="1486313b410f4f00be7618bc6b9bd2f1:5" style="box-sizing: inherit; outline: none;"><span class="prism-token token 142 punctuation " style="box-sizing: inherit; color: #999999; outline: none;">;</span></span></span></div>
<div class="_17r7t1h" data-key="0ac6fcaf00c747e08e3a3f95fe1208d2" style="box-sizing: inherit; counter-increment: line 1; font: inherit; outline: none; padding: 0px 14px 0px 44px; position: relative; word-wrap: normal;">
<span data-key="2138eb5773af4ca887fe35293a4e7f2a" style="box-sizing: inherit; outline: none;"><span data-offset-key="2138eb5773af4ca887fe35293a4e7f2a:0" style="box-sizing: inherit; outline: none;"><span class="prism-token token 143" style="box-sizing: inherit; outline: none;"> </span></span><span data-offset-key="2138eb5773af4ca887fe35293a4e7f2a:1" style="box-sizing: inherit; outline: none;"><span class="prism-token token 144 punctuation " style="box-sizing: inherit; color: #999999; outline: none;">}</span></span></span></div>
<div class="_17r7t1h" data-key="fb8cb927f33648198de08a8c987ceb82" style="box-sizing: inherit; counter-increment: line 1; font: inherit; outline: none; padding: 0px 14px 0px 44px; position: relative; word-wrap: normal;">
<span data-key="87b5c7058c274e4b97acd4d353c38fab" style="box-sizing: inherit; outline: none;"><span data-offset-key="87b5c7058c274e4b97acd4d353c38fab:0" style="box-sizing: inherit; outline: none;"><span class="prism-token token 145" style="box-sizing: inherit; outline: none;"> </span></span><span data-offset-key="87b5c7058c274e4b97acd4d353c38fab:1" style="box-sizing: inherit; outline: none;"><span class="prism-token token 146 comment " style="box-sizing: inherit; color: slategrey; outline: none;">/**</span></span></span></div>
<div class="_17r7t1h" data-key="fc2e82ed95b141ca8327f9563845e56a" style="box-sizing: inherit; counter-increment: line 1; font: inherit; outline: none; padding: 0px 14px 0px 44px; position: relative; word-wrap: normal;">
<span data-key="3545d7d9609b4cf1bac8c0911fac8be5" style="box-sizing: inherit; outline: none;"><span data-offset-key="3545d7d9609b4cf1bac8c0911fac8be5:0" style="box-sizing: inherit; outline: none;"><span class="prism-token token 146 comment " style="box-sizing: inherit; color: slategrey; outline: none;"> * Creates the field editors. Field editors are abstractions of</span></span></span></div>
<div class="_17r7t1h" data-key="806da4aa701845b99cd95e9eaf6a1d8f" style="box-sizing: inherit; counter-increment: line 1; font: inherit; outline: none; padding: 0px 14px 0px 44px; position: relative; word-wrap: normal;">
<span data-key="3875af4eae3a4481b15658d3fc078c66" style="box-sizing: inherit; outline: none;"><span data-offset-key="3875af4eae3a4481b15658d3fc078c66:0" style="box-sizing: inherit; outline: none;"><span class="prism-token token 146 comment " style="box-sizing: inherit; color: slategrey; outline: none;"> * the common GUI blocks needed to manipulate various types</span></span></span></div>
<div class="_17r7t1h" data-key="b761c7ea69b74b13a93d491b7d437b67" style="box-sizing: inherit; counter-increment: line 1; font: inherit; outline: none; padding: 0px 14px 0px 44px; position: relative; word-wrap: normal;">
<span data-key="cd2ff472e947456ba4c549f84856382d" style="box-sizing: inherit; outline: none;"><span data-offset-key="cd2ff472e947456ba4c549f84856382d:0" style="box-sizing: inherit; outline: none;"><span class="prism-token token 146 comment " style="box-sizing: inherit; color: slategrey; outline: none;"> * of preferences. Each field editor knows how to save and</span></span></span></div>
<div class="_17r7t1h" data-key="57607f7f30af477794829d240574e02e" style="box-sizing: inherit; counter-increment: line 1; font: inherit; outline: none; padding: 0px 14px 0px 44px; position: relative; word-wrap: normal;">
<span data-key="13fb085a66624f0588fe29336bc2107f" style="box-sizing: inherit; outline: none;"><span data-offset-key="13fb085a66624f0588fe29336bc2107f:0" style="box-sizing: inherit; outline: none;"><span class="prism-token token 146 comment " style="box-sizing: inherit; color: slategrey; outline: none;"> * restore itself.</span></span></span></div>
<div class="_17r7t1h" data-key="af59798ed42a4eafb7bb046099a55a18" style="box-sizing: inherit; counter-increment: line 1; font: inherit; outline: none; padding: 0px 14px 0px 44px; position: relative; word-wrap: normal;">
<span data-key="2640d9de8670429db798b4d9aaac08e9" style="box-sizing: inherit; outline: none;"><span data-offset-key="2640d9de8670429db798b4d9aaac08e9:0" style="box-sizing: inherit; outline: none;"><span class="prism-token token 146 comment " style="box-sizing: inherit; color: slategrey; outline: none;"> */</span></span></span></div>
<div class="_17r7t1h" data-key="0914e7f23a234374aa89aa42794b0847" style="box-sizing: inherit; counter-increment: line 1; font: inherit; outline: none; padding: 0px 14px 0px 44px; position: relative; word-wrap: normal;">
<span data-key="27b583cf6975474698a3294463a6aeca" style="box-sizing: inherit; outline: none;"><span data-offset-key="27b583cf6975474698a3294463a6aeca:1" style="box-sizing: inherit; outline: none;"><span class="prism-token token 148 keyword " style="box-sizing: inherit; color: #0077aa; outline: none;">public</span></span><span data-offset-key="27b583cf6975474698a3294463a6aeca:2" style="box-sizing: inherit; outline: none;"><span class="prism-token token 149" style="box-sizing: inherit; outline: none;"> </span></span><span data-offset-key="27b583cf6975474698a3294463a6aeca:3" style="box-sizing: inherit; outline: none;"><span class="prism-token token 150 keyword " style="box-sizing: inherit; color: #0077aa; outline: none;">void</span></span><span data-offset-key="27b583cf6975474698a3294463a6aeca:4" style="box-sizing: inherit; outline: none;"><span class="prism-token token 151" style="box-sizing: inherit; outline: none;"> </span></span><span data-offset-key="27b583cf6975474698a3294463a6aeca:5" style="box-sizing: inherit; outline: none;"><span class="prism-token token 152 function " style="box-sizing: inherit; color: #dd4a68; outline: none;">createFieldEditors</span></span><span data-offset-key="27b583cf6975474698a3294463a6aeca:6" style="box-sizing: inherit; outline: none;"><span class="prism-token token 153 punctuation " style="box-sizing: inherit; color: #999999; outline: none;">(</span></span><span data-offset-key="27b583cf6975474698a3294463a6aeca:7" style="box-sizing: inherit; outline: none;"><span class="prism-token token 154 punctuation " style="box-sizing: inherit; color: #999999; outline: none;">)</span></span><span data-offset-key="27b583cf6975474698a3294463a6aeca:8" style="box-sizing: inherit; outline: none;"><span class="prism-token token 155" style="box-sizing: inherit; outline: none;"> </span></span><span data-offset-key="27b583cf6975474698a3294463a6aeca:9" style="box-sizing: inherit; outline: none;"><span class="prism-token token 156 punctuation " style="box-sizing: inherit; color: #999999; outline: none;">{</span></span></span></div>
<div class="_17r7t1h" data-key="2523b02c923a4800be76bf9aebf1a0b5" style="box-sizing: inherit; counter-increment: line 1; font: inherit; outline: none; padding: 0px 14px 0px 44px; position: relative; word-wrap: normal;">
<span data-key="0611e946d8a94cd9b68f9845de3df717" style="box-sizing: inherit; outline: none;"><span data-offset-key="0611e946d8a94cd9b68f9845de3df717:0" style="box-sizing: inherit; outline: none;"><span class="prism-token token 157" style="box-sizing: inherit; outline: none;"> </span></span><span data-offset-key="0611e946d8a94cd9b68f9845de3df717:1" style="box-sizing: inherit; outline: none;"><span class="prism-token token 158 function " style="box-sizing: inherit; color: #dd4a68; outline: none;">addField</span></span><span data-offset-key="0611e946d8a94cd9b68f9845de3df717:2" style="box-sizing: inherit; outline: none;"><span class="prism-token token 159 punctuation " style="box-sizing: inherit; color: #999999; outline: none;">(</span></span><span data-offset-key="0611e946d8a94cd9b68f9845de3df717:3" style="box-sizing: inherit; outline: none;"><span class="prism-token token 160 keyword " style="box-sizing: inherit; color: #0077aa; outline: none;">new</span></span><span data-offset-key="0611e946d8a94cd9b68f9845de3df717:4" style="box-sizing: inherit; outline: none;"><span class="prism-token token 161" style="box-sizing: inherit; outline: none;"> </span></span><span data-offset-key="0611e946d8a94cd9b68f9845de3df717:5" style="box-sizing: inherit; outline: none;"><span class="prism-token token 162 class-name " style="box-sizing: inherit; outline: none;">DirectoryFieldEditor</span></span><span data-offset-key="0611e946d8a94cd9b68f9845de3df717:6" style="box-sizing: inherit; outline: none;"><span class="prism-token token 163 punctuation " style="box-sizing: inherit; color: #999999; outline: none;">(</span></span><span data-offset-key="0611e946d8a94cd9b68f9845de3df717:7" style="box-sizing: inherit; outline: none;"><span class="prism-token token 164" style="box-sizing: inherit; outline: none;">PreferenceConstants</span></span><span data-offset-key="0611e946d8a94cd9b68f9845de3df717:8" style="box-sizing: inherit; outline: none;"><span class="prism-token token 165 punctuation " style="box-sizing: inherit; color: #999999; outline: none;">.</span></span><span data-offset-key="0611e946d8a94cd9b68f9845de3df717:9" style="box-sizing: inherit; outline: none;"><span class="prism-token token 166" style="box-sizing: inherit; outline: none;">P_PATH</span></span><span data-offset-key="0611e946d8a94cd9b68f9845de3df717:10" style="box-sizing: inherit; outline: none;"><span class="prism-token token 167 punctuation " style="box-sizing: inherit; color: #999999; outline: none;">,</span></span><span data-offset-key="0611e946d8a94cd9b68f9845de3df717:11" style="box-sizing: inherit; outline: none;"><span class="prism-token token 168" style="box-sizing: inherit; outline: none;"> </span></span></span></div>
<div class="_17r7t1h" data-key="2c1ef2f6f4ed46db9ab47536e3a1d907" style="box-sizing: inherit; counter-increment: line 1; font: inherit; outline: none; padding: 0px 14px 0px 44px; position: relative; word-wrap: normal;">
<span data-key="60933c239b0544df888c874b7ca9d250" style="box-sizing: inherit; outline: none;"><span data-offset-key="60933c239b0544df888c874b7ca9d250:0" style="box-sizing: inherit; outline: none;"><span class="prism-token token 168" style="box-sizing: inherit; outline: none;"> </span></span><span data-offset-key="60933c239b0544df888c874b7ca9d250:1" style="box-sizing: inherit; outline: none;"><span class="prism-token token 169 string " style="box-sizing: inherit; color: #669900; outline: none;">"&Directory preference:"</span></span><span data-offset-key="60933c239b0544df888c874b7ca9d250:2" style="box-sizing: inherit; outline: none;"><span class="prism-token token 170 punctuation " style="box-sizing: inherit; color: #999999; outline: none;">,</span></span><span data-offset-key="60933c239b0544df888c874b7ca9d250:3" style="box-sizing: inherit; outline: none;"><span class="prism-token token 171" style="box-sizing: inherit; outline: none;"> </span></span><span data-offset-key="60933c239b0544df888c874b7ca9d250:4" style="box-sizing: inherit; outline: none;"><span class="prism-token token 172 function " style="box-sizing: inherit; color: #dd4a68; outline: none;">getFieldEditorParent</span></span><span data-offset-key="60933c239b0544df888c874b7ca9d250:5" style="box-sizing: inherit; outline: none;"><span class="prism-token token 173 punctuation " style="box-sizing: inherit; color: #999999; outline: none;">(</span></span><span data-offset-key="60933c239b0544df888c874b7ca9d250:6" style="box-sizing: inherit; outline: none;"><span class="prism-token token 174 punctuation " style="box-sizing: inherit; color: #999999; outline: none;">)</span></span><span data-offset-key="60933c239b0544df888c874b7ca9d250:7" style="box-sizing: inherit; outline: none;"><span class="prism-token token 175 punctuation " style="box-sizing: inherit; color: #999999; outline: none;">)</span></span><span data-offset-key="60933c239b0544df888c874b7ca9d250:8" style="box-sizing: inherit; outline: none;"><span class="prism-token token 176 punctuation " style="box-sizing: inherit; color: #999999; outline: none;">)</span></span><span data-offset-key="60933c239b0544df888c874b7ca9d250:9" style="box-sizing: inherit; outline: none;"><span class="prism-token token 177 punctuation " style="box-sizing: inherit; color: #999999; outline: none;">;</span></span></span></div>
<div class="_17r7t1h" data-key="bd5fe6a461ac4221b51ef25fe9b9aa0a" style="box-sizing: inherit; counter-increment: line 1; font: inherit; outline: none; padding: 0px 14px 0px 44px; position: relative; word-wrap: normal;">
<span data-key="3c5db019c20e4376ae7e8186f94b5ef8" style="box-sizing: inherit; outline: none;"><span data-offset-key="3c5db019c20e4376ae7e8186f94b5ef8:0" style="box-sizing: inherit; outline: none;"><span class="prism-token token 178" style="box-sizing: inherit; outline: none;"> </span></span><span data-offset-key="3c5db019c20e4376ae7e8186f94b5ef8:1" style="box-sizing: inherit; outline: none;"><span class="prism-token token 179 function " style="box-sizing: inherit; color: #dd4a68; outline: none;">addField</span></span><span data-offset-key="3c5db019c20e4376ae7e8186f94b5ef8:2" style="box-sizing: inherit; outline: none;"><span class="prism-token token 180 punctuation " style="box-sizing: inherit; color: #999999; outline: none;">(</span></span></span></div>
<div class="_17r7t1h" data-key="17f7f790514f42acbf6967f70195cbf2" style="box-sizing: inherit; counter-increment: line 1; font: inherit; outline: none; padding: 0px 14px 0px 44px; position: relative; word-wrap: normal;">
<span data-key="3fe4fb764a5f4b52a6f31c44b13e1282" style="box-sizing: inherit; outline: none;"><span data-offset-key="3fe4fb764a5f4b52a6f31c44b13e1282:0" style="box-sizing: inherit; outline: none;"><span class="prism-token token 181" style="box-sizing: inherit; outline: none;"> </span></span><span data-offset-key="3fe4fb764a5f4b52a6f31c44b13e1282:1" style="box-sizing: inherit; outline: none;"><span class="prism-token token 182 keyword " style="box-sizing: inherit; color: #0077aa; outline: none;">new</span></span><span data-offset-key="3fe4fb764a5f4b52a6f31c44b13e1282:2" style="box-sizing: inherit; outline: none;"><span class="prism-token token 183" style="box-sizing: inherit; outline: none;"> </span></span><span data-offset-key="3fe4fb764a5f4b52a6f31c44b13e1282:3" style="box-sizing: inherit; outline: none;"><span class="prism-token token 184 class-name " style="box-sizing: inherit; outline: none;">BooleanFieldEditor</span></span><span data-offset-key="3fe4fb764a5f4b52a6f31c44b13e1282:4" style="box-sizing: inherit; outline: none;"><span class="prism-token token 185 punctuation " style="box-sizing: inherit; color: #999999; outline: none;">(</span></span></span></div>
<div class="_17r7t1h" data-key="f36a7c02bfc74b928ebef6d1533dfaec" style="box-sizing: inherit; counter-increment: line 1; font: inherit; outline: none; padding: 0px 14px 0px 44px; position: relative; word-wrap: normal;">
<span data-key="1528c49da6204ebc8e1199f713c7da6f" style="box-sizing: inherit; outline: none;"><span data-offset-key="1528c49da6204ebc8e1199f713c7da6f:0" style="box-sizing: inherit; outline: none;"><span class="prism-token token 186" style="box-sizing: inherit; outline: none;"> PreferenceConstants</span></span><span data-offset-key="1528c49da6204ebc8e1199f713c7da6f:1" style="box-sizing: inherit; outline: none;"><span class="prism-token token 187 punctuation " style="box-sizing: inherit; color: #999999; outline: none;">.</span></span><span data-offset-key="1528c49da6204ebc8e1199f713c7da6f:2" style="box-sizing: inherit; outline: none;"><span class="prism-token token 188" style="box-sizing: inherit; outline: none;">P_BOOLEAN</span></span><span data-offset-key="1528c49da6204ebc8e1199f713c7da6f:3" style="box-sizing: inherit; outline: none;"><span class="prism-token token 189 punctuation " style="box-sizing: inherit; color: #999999; outline: none;">,</span></span></span></div>
<div class="_17r7t1h" data-key="df36e17feb764eb99d9f5c01f79014d4" style="box-sizing: inherit; counter-increment: line 1; font: inherit; outline: none; padding: 0px 14px 0px 44px; position: relative; word-wrap: normal;">
<span data-key="bf2de32421954a0daee86866202bb109" style="box-sizing: inherit; outline: none;"><span data-offset-key="bf2de32421954a0daee86866202bb109:0" style="box-sizing: inherit; outline: none;"><span class="prism-token token 190" style="box-sizing: inherit; outline: none;"> </span></span><span data-offset-key="bf2de32421954a0daee86866202bb109:1" style="box-sizing: inherit; outline: none;"><span class="prism-token token 191 string " style="box-sizing: inherit; color: #669900; outline: none;">"&An example of a boolean preference"</span></span><span data-offset-key="bf2de32421954a0daee86866202bb109:2" style="box-sizing: inherit; outline: none;"><span class="prism-token token 192 punctuation " style="box-sizing: inherit; color: #999999; outline: none;">,</span></span></span></div>
<div class="_17r7t1h" data-key="39fa303e7df5495da355dd4b05652bf3" style="box-sizing: inherit; counter-increment: line 1; font: inherit; outline: none; padding: 0px 14px 0px 44px; position: relative; word-wrap: normal;">
<span data-key="37adcb037f1247849916205397b8139e" style="box-sizing: inherit; outline: none;"><span data-offset-key="37adcb037f1247849916205397b8139e:0" style="box-sizing: inherit; outline: none;"><span class="prism-token token 193" style="box-sizing: inherit; outline: none;"> </span></span><span data-offset-key="37adcb037f1247849916205397b8139e:1" style="box-sizing: inherit; outline: none;"><span class="prism-token token 194 function " style="box-sizing: inherit; color: #dd4a68; outline: none;">getFieldEditorParent</span></span><span data-offset-key="37adcb037f1247849916205397b8139e:2" style="box-sizing: inherit; outline: none;"><span class="prism-token token 195 punctuation " style="box-sizing: inherit; color: #999999; outline: none;">(</span></span><span data-offset-key="37adcb037f1247849916205397b8139e:3" style="box-sizing: inherit; outline: none;"><span class="prism-token token 196 punctuation " style="box-sizing: inherit; color: #999999; outline: none;">)</span></span><span data-offset-key="37adcb037f1247849916205397b8139e:4" style="box-sizing: inherit; outline: none;"><span class="prism-token token 197 punctuation " style="box-sizing: inherit; color: #999999; outline: none;">)</span></span><span data-offset-key="37adcb037f1247849916205397b8139e:5" style="box-sizing: inherit; outline: none;"><span class="prism-token token 198 punctuation " style="box-sizing: inherit; color: #999999; outline: none;">)</span></span><span data-offset-key="37adcb037f1247849916205397b8139e:6" style="box-sizing: inherit; outline: none;"><span class="prism-token token 199 punctuation " style="box-sizing: inherit; color: #999999; outline: none;">;</span></span></span></div>
<div class="_17r7t1h" data-key="7fdfc644e72a4d658b540a7e9aa66c3d" style="box-sizing: inherit; counter-increment: line 1; font: inherit; outline: none; padding: 0px 14px 0px 44px; position: relative; word-wrap: normal;">
<span data-key="706a05ca83244975917a9418a1d9686c" style="box-sizing: inherit; outline: none;"><span data-offset-key="706a05ca83244975917a9418a1d9686c:0" style="box-sizing: inherit; outline: none;"><span class="prism-token token 200" style="box-sizing: inherit; outline: none;"> </span></span><span data-offset-key="706a05ca83244975917a9418a1d9686c:1" style="box-sizing: inherit; outline: none;"><span class="prism-token token 201 function " style="box-sizing: inherit; color: #dd4a68; outline: none;">addField</span></span><span data-offset-key="706a05ca83244975917a9418a1d9686c:2" style="box-sizing: inherit; outline: none;"><span class="prism-token token 202 punctuation " style="box-sizing: inherit; color: #999999; outline: none;">(</span></span><span data-offset-key="706a05ca83244975917a9418a1d9686c:3" style="box-sizing: inherit; outline: none;"><span class="prism-token token 203 keyword " style="box-sizing: inherit; color: #0077aa; outline: none;">new</span></span><span data-offset-key="706a05ca83244975917a9418a1d9686c:4" style="box-sizing: inherit; outline: none;"><span class="prism-token token 204" style="box-sizing: inherit; outline: none;"> </span></span><span data-offset-key="706a05ca83244975917a9418a1d9686c:5" style="box-sizing: inherit; outline: none;"><span class="prism-token token 205 class-name " style="box-sizing: inherit; outline: none;">RadioGroupFieldEditor</span></span><span data-offset-key="706a05ca83244975917a9418a1d9686c:6" style="box-sizing: inherit; outline: none;"><span class="prism-token token 206 punctuation " style="box-sizing: inherit; color: #999999; outline: none;">(</span></span></span></div>
<div class="_17r7t1h" data-key="b1fdd951fbb74b89b7a608931f1976c2" style="box-sizing: inherit; counter-increment: line 1; font: inherit; outline: none; padding: 0px 14px 0px 44px; position: relative; word-wrap: normal;">
<span data-key="735f4645aea74361975968a5daf1a235" style="box-sizing: inherit; outline: none;"><span data-offset-key="735f4645aea74361975968a5daf1a235:0" style="box-sizing: inherit; outline: none;"><span class="prism-token token 207" style="box-sizing: inherit; outline: none;"> PreferenceConstants</span></span><span data-offset-key="735f4645aea74361975968a5daf1a235:1" style="box-sizing: inherit; outline: none;"><span class="prism-token token 208 punctuation " style="box-sizing: inherit; color: #999999; outline: none;">.</span></span><span data-offset-key="735f4645aea74361975968a5daf1a235:2" style="box-sizing: inherit; outline: none;"><span class="prism-token token 209" style="box-sizing: inherit; outline: none;">P_CHOICE</span></span><span data-offset-key="735f4645aea74361975968a5daf1a235:3" style="box-sizing: inherit; outline: none;"><span class="prism-token token 210 punctuation " style="box-sizing: inherit; color: #999999; outline: none;">,</span></span></span></div>
<div class="_17r7t1h" data-key="359c13b3c0634de1bfc05ad97a675e4c" style="box-sizing: inherit; counter-increment: line 1; font: inherit; outline: none; padding: 0px 14px 0px 44px; position: relative; word-wrap: normal;">
<span data-key="4d83665dbfd94174b153b2de8e3e69f5" style="box-sizing: inherit; outline: none;"><span data-offset-key="4d83665dbfd94174b153b2de8e3e69f5:0" style="box-sizing: inherit; outline: none;"><span class="prism-token token 211" style="box-sizing: inherit; outline: none;"> </span></span><span data-offset-key="4d83665dbfd94174b153b2de8e3e69f5:1" style="box-sizing: inherit; outline: none;"><span class="prism-token token 212 string " style="box-sizing: inherit; color: #669900; outline: none;">"An example of a multiple-choice preference"</span></span><span data-offset-key="4d83665dbfd94174b153b2de8e3e69f5:2" style="box-sizing: inherit; outline: none;"><span class="prism-token token 213 punctuation " style="box-sizing: inherit; color: #999999; outline: none;">,</span></span></span></div>
<div class="_17r7t1h" data-key="d3848b0c73134ed580bf6de6c5ebfae3" style="box-sizing: inherit; counter-increment: line 1; font: inherit; outline: none; padding: 0px 14px 0px 44px; position: relative; word-wrap: normal;">
<span data-key="eb3c7ce726d24893ac16cdbdee291414" style="box-sizing: inherit; outline: none;"><span data-offset-key="eb3c7ce726d24893ac16cdbdee291414:0" style="box-sizing: inherit; outline: none;"><span class="prism-token token 214" style="box-sizing: inherit; outline: none;"> </span></span><span data-offset-key="eb3c7ce726d24893ac16cdbdee291414:1" style="box-sizing: inherit; outline: none;"><span class="prism-token token 215 number " style="box-sizing: inherit; color: #990055; outline: none;">1</span></span><span data-offset-key="eb3c7ce726d24893ac16cdbdee291414:2" style="box-sizing: inherit; outline: none;"><span class="prism-token token 216 punctuation " style="box-sizing: inherit; color: #999999; outline: none;">,</span></span></span></div>
<div class="_17r7t1h" data-key="7d40e88a91e94ca4a1d4ceb214c609cf" style="box-sizing: inherit; counter-increment: line 1; font: inherit; outline: none; padding: 0px 14px 0px 44px; position: relative; word-wrap: normal;">
<span data-key="75b8df8ca5634cb3936d7d6696c61df6" style="box-sizing: inherit; outline: none;"><span data-offset-key="75b8df8ca5634cb3936d7d6696c61df6:0" style="box-sizing: inherit; outline: none;"><span class="prism-token token 217" style="box-sizing: inherit; outline: none;"> </span></span><span data-offset-key="75b8df8ca5634cb3936d7d6696c61df6:1" style="box-sizing: inherit; outline: none;"><span class="prism-token token 218 keyword " style="box-sizing: inherit; color: #0077aa; outline: none;">new</span></span><span data-offset-key="75b8df8ca5634cb3936d7d6696c61df6:2" style="box-sizing: inherit; outline: none;"><span class="prism-token token 219" style="box-sizing: inherit; outline: none;"> </span></span><span data-offset-key="75b8df8ca5634cb3936d7d6696c61df6:3" style="box-sizing: inherit; outline: none;"><span class="prism-token token 220 class-name " style="box-sizing: inherit; outline: none;">String</span></span><span data-offset-key="75b8df8ca5634cb3936d7d6696c61df6:4" style="box-sizing: inherit; outline: none;"><span class="prism-token token 221 punctuation " style="box-sizing: inherit; color: #999999; outline: none;">[</span></span><span data-offset-key="75b8df8ca5634cb3936d7d6696c61df6:5" style="box-sizing: inherit; outline: none;"><span class="prism-token token 222 punctuation " style="box-sizing: inherit; color: #999999; outline: none;">]</span></span><span data-offset-key="75b8df8ca5634cb3936d7d6696c61df6:6" style="box-sizing: inherit; outline: none;"><span class="prism-token token 223 punctuation " style="box-sizing: inherit; color: #999999; outline: none;">[</span></span><span data-offset-key="75b8df8ca5634cb3936d7d6696c61df6:7" style="box-sizing: inherit; outline: none;"><span class="prism-token token 224 punctuation " style="box-sizing: inherit; color: #999999; outline: none;">]</span></span><span data-offset-key="75b8df8ca5634cb3936d7d6696c61df6:8" style="box-sizing: inherit; outline: none;"><span class="prism-token token 225" style="box-sizing: inherit; outline: none;"> </span></span><span data-offset-key="75b8df8ca5634cb3936d7d6696c61df6:9" style="box-sizing: inherit; outline: none;"><span class="prism-token token 226 punctuation " style="box-sizing: inherit; color: #999999; outline: none;">{</span></span><span data-offset-key="75b8df8ca5634cb3936d7d6696c61df6:10" style="box-sizing: inherit; outline: none;"><span class="prism-token token 227" style="box-sizing: inherit; outline: none;"> </span></span><span data-offset-key="75b8df8ca5634cb3936d7d6696c61df6:11" style="box-sizing: inherit; outline: none;"><span class="prism-token token 228 punctuation " style="box-sizing: inherit; color: #999999; outline: none;">{</span></span><span data-offset-key="75b8df8ca5634cb3936d7d6696c61df6:12" style="box-sizing: inherit; outline: none;"><span class="prism-token token 229" style="box-sizing: inherit; outline: none;"> </span></span><span data-offset-key="75b8df8ca5634cb3936d7d6696c61df6:13" style="box-sizing: inherit; outline: none;"><span class="prism-token token 230 string " style="box-sizing: inherit; color: #669900; outline: none;">"&Choice 1"</span></span><span data-offset-key="75b8df8ca5634cb3936d7d6696c61df6:14" style="box-sizing: inherit; outline: none;"><span class="prism-token token 231 punctuation " style="box-sizing: inherit; color: #999999; outline: none;">,</span></span><span data-offset-key="75b8df8ca5634cb3936d7d6696c61df6:15" style="box-sizing: inherit; outline: none;"><span class="prism-token token 232" style="box-sizing: inherit; outline: none;"> </span></span><span data-offset-key="75b8df8ca5634cb3936d7d6696c61df6:16" style="box-sizing: inherit; outline: none;"><span class="prism-token token 233 string " style="box-sizing: inherit; color: #669900; outline: none;">"choice1"</span></span><span data-offset-key="75b8df8ca5634cb3936d7d6696c61df6:17" style="box-sizing: inherit; outline: none;"><span class="prism-token token 234" style="box-sizing: inherit; outline: none;"> </span></span><span data-offset-key="75b8df8ca5634cb3936d7d6696c61df6:18" style="box-sizing: inherit; outline: none;"><span class="prism-token token 235 punctuation " style="box-sizing: inherit; color: #999999; outline: none;">}</span></span><span data-offset-key="75b8df8ca5634cb3936d7d6696c61df6:19" style="box-sizing: inherit; outline: none;"><span class="prism-token token 236 punctuation " style="box-sizing: inherit; color: #999999; outline: none;">,</span></span><span data-offset-key="75b8df8ca5634cb3936d7d6696c61df6:20" style="box-sizing: inherit; outline: none;"><span class="prism-token token 237" style="box-sizing: inherit; outline: none;"> </span></span><span data-offset-key="75b8df8ca5634cb3936d7d6696c61df6:21" style="box-sizing: inherit; outline: none;"><span class="prism-token token 238 punctuation " style="box-sizing: inherit; color: #999999; outline: none;">{</span></span></span></div>
<div class="_17r7t1h" data-key="37eeb9c9fe0945beb5333e786ee4f078" style="box-sizing: inherit; counter-increment: line 1; font: inherit; outline: none; padding: 0px 14px 0px 44px; position: relative; word-wrap: normal;">
<span data-key="f98832e7268b4632b0728a7181f8013e" style="box-sizing: inherit; outline: none;"><span data-offset-key="f98832e7268b4632b0728a7181f8013e:0" style="box-sizing: inherit; outline: none;"><span class="prism-token token 239" style="box-sizing: inherit; outline: none;"> </span></span><span data-offset-key="f98832e7268b4632b0728a7181f8013e:1" style="box-sizing: inherit; outline: none;"><span class="prism-token token 240 string " style="box-sizing: inherit; color: #669900; outline: none;">"C&hoice 2"</span></span><span data-offset-key="f98832e7268b4632b0728a7181f8013e:2" style="box-sizing: inherit; outline: none;"><span class="prism-token token 241 punctuation " style="box-sizing: inherit; color: #999999; outline: none;">,</span></span><span data-offset-key="f98832e7268b4632b0728a7181f8013e:3" style="box-sizing: inherit; outline: none;"><span class="prism-token token 242" style="box-sizing: inherit; outline: none;"> </span></span><span data-offset-key="f98832e7268b4632b0728a7181f8013e:4" style="box-sizing: inherit; outline: none;"><span class="prism-token token 243 string " style="box-sizing: inherit; color: #669900; outline: none;">"choice2"</span></span><span data-offset-key="f98832e7268b4632b0728a7181f8013e:5" style="box-sizing: inherit; outline: none;"><span class="prism-token token 244" style="box-sizing: inherit; outline: none;"> </span></span><span data-offset-key="f98832e7268b4632b0728a7181f8013e:6" style="box-sizing: inherit; outline: none;"><span class="prism-token token 245 punctuation " style="box-sizing: inherit; color: #999999; outline: none;">}</span></span></span></div>
<div class="_17r7t1h" data-key="2698f726361249249630d425c0b9b005" style="box-sizing: inherit; counter-increment: line 1; font: inherit; outline: none; padding: 0px 14px 0px 44px; position: relative; word-wrap: normal;">
<span data-key="44fd1cad1e004671ae42c5efd2e51a04" style="box-sizing: inherit; outline: none;"><span data-offset-key="44fd1cad1e004671ae42c5efd2e51a04:0" style="box-sizing: inherit; outline: none;"><span class="prism-token token 246" style="box-sizing: inherit; outline: none;"> </span></span><span data-offset-key="44fd1cad1e004671ae42c5efd2e51a04:1" style="box-sizing: inherit; outline: none;"><span class="prism-token token 247 punctuation " style="box-sizing: inherit; color: #999999; outline: none;">}</span></span><span data-offset-key="44fd1cad1e004671ae42c5efd2e51a04:2" style="box-sizing: inherit; outline: none;"><span class="prism-token token 248 punctuation " style="box-sizing: inherit; color: #999999; outline: none;">,</span></span><span data-offset-key="44fd1cad1e004671ae42c5efd2e51a04:3" style="box-sizing: inherit; outline: none;"><span class="prism-token token 249" style="box-sizing: inherit; outline: none;"> </span></span><span data-offset-key="44fd1cad1e004671ae42c5efd2e51a04:4" style="box-sizing: inherit; outline: none;"><span class="prism-token token 250 function " style="box-sizing: inherit; color: #dd4a68; outline: none;">getFieldEditorParent</span></span><span data-offset-key="44fd1cad1e004671ae42c5efd2e51a04:5" style="box-sizing: inherit; outline: none;"><span class="prism-token token 251 punctuation " style="box-sizing: inherit; color: #999999; outline: none;">(</span></span><span data-offset-key="44fd1cad1e004671ae42c5efd2e51a04:6" style="box-sizing: inherit; outline: none;"><span class="prism-token token 252 punctuation " style="box-sizing: inherit; color: #999999; outline: none;">)</span></span><span data-offset-key="44fd1cad1e004671ae42c5efd2e51a04:7" style="box-sizing: inherit; outline: none;"><span class="prism-token token 253 punctuation " style="box-sizing: inherit; color: #999999; outline: none;">)</span></span><span data-offset-key="44fd1cad1e004671ae42c5efd2e51a04:8" style="box-sizing: inherit; outline: none;"><span class="prism-token token 254 punctuation " style="box-sizing: inherit; color: #999999; outline: none;">)</span></span><span data-offset-key="44fd1cad1e004671ae42c5efd2e51a04:9" style="box-sizing: inherit; outline: none;"><span class="prism-token token 255 punctuation " style="box-sizing: inherit; color: #999999; outline: none;">;</span></span></span></div>
<div class="_17r7t1h" data-key="4b094eb9ee3a49f9a1b6e97d4d2aed53" style="box-sizing: inherit; counter-increment: line 1; font: inherit; outline: none; padding: 0px 14px 0px 44px; position: relative; word-wrap: normal;">
<span data-key="b6a912fa9ec1403cbfdd8fa7149da369" style="box-sizing: inherit; outline: none;"><span data-offset-key="b6a912fa9ec1403cbfdd8fa7149da369:0" style="box-sizing: inherit; outline: none;"><span class="prism-token token 256" style="box-sizing: inherit; outline: none;"> </span></span><span data-offset-key="b6a912fa9ec1403cbfdd8fa7149da369:1" style="box-sizing: inherit; outline: none;"><span class="prism-token token 257 function " style="box-sizing: inherit; color: #dd4a68; outline: none;">addField</span></span><span data-offset-key="b6a912fa9ec1403cbfdd8fa7149da369:2" style="box-sizing: inherit; outline: none;"><span class="prism-token token 258 punctuation " style="box-sizing: inherit; color: #999999; outline: none;">(</span></span></span></div>
<div class="_17r7t1h" data-key="a3649dc52b21417492ae6f4a56ecc6f3" style="box-sizing: inherit; counter-increment: line 1; font: inherit; outline: none; padding: 0px 14px 0px 44px; position: relative; word-wrap: normal;">
<span data-key="7c336ba1504f4c25afc5f22175501efc" style="box-sizing: inherit; outline: none;"><span data-offset-key="7c336ba1504f4c25afc5f22175501efc:0" style="box-sizing: inherit; outline: none;"><span class="prism-token token 259" style="box-sizing: inherit; outline: none;"> </span></span><span data-offset-key="7c336ba1504f4c25afc5f22175501efc:1" style="box-sizing: inherit; outline: none;"><span class="prism-token token 260 keyword " style="box-sizing: inherit; color: #0077aa; outline: none;">new</span></span><span data-offset-key="7c336ba1504f4c25afc5f22175501efc:2" style="box-sizing: inherit; outline: none;"><span class="prism-token token 261" style="box-sizing: inherit; outline: none;"> </span></span><span data-offset-key="7c336ba1504f4c25afc5f22175501efc:3" style="box-sizing: inherit; outline: none;"><span class="prism-token token 262 class-name " style="box-sizing: inherit; outline: none;">StringFieldEditor</span></span><span data-offset-key="7c336ba1504f4c25afc5f22175501efc:4" style="box-sizing: inherit; outline: none;"><span class="prism-token token 263 punctuation " style="box-sizing: inherit; color: #999999; outline: none;">(</span></span><span data-offset-key="7c336ba1504f4c25afc5f22175501efc:5" style="box-sizing: inherit; outline: none;"><span class="prism-token token 264" style="box-sizing: inherit; outline: none;">PreferenceConstants</span></span><span data-offset-key="7c336ba1504f4c25afc5f22175501efc:6" style="box-sizing: inherit; outline: none;"><span class="prism-token token 265 punctuation " style="box-sizing: inherit; color: #999999; outline: none;">.</span></span><span data-offset-key="7c336ba1504f4c25afc5f22175501efc:7" style="box-sizing: inherit; outline: none;"><span class="prism-token token 266" style="box-sizing: inherit; outline: none;">P_STRING</span></span><span data-offset-key="7c336ba1504f4c25afc5f22175501efc:8" style="box-sizing: inherit; outline: none;"><span class="prism-token token 267 punctuation " style="box-sizing: inherit; color: #999999; outline: none;">,</span></span><span data-offset-key="7c336ba1504f4c25afc5f22175501efc:9" style="box-sizing: inherit; outline: none;"><span class="prism-token token 268" style="box-sizing: inherit; outline: none;"> </span></span><span data-offset-key="7c336ba1504f4c25afc5f22175501efc:10" style="box-sizing: inherit; outline: none;"><span class="prism-token token 269 string " style="box-sizing: inherit; color: #669900; outline: none;">"A &text preference:"</span></span><span data-offset-key="7c336ba1504f4c25afc5f22175501efc:11" style="box-sizing: inherit; outline: none;"><span class="prism-token token 270 punctuation " style="box-sizing: inherit; color: #999999; outline: none;">,</span></span><span data-offset-key="7c336ba1504f4c25afc5f22175501efc:12" style="box-sizing: inherit; outline: none;"><span class="prism-token token 271" style="box-sizing: inherit; outline: none;"> </span></span><span data-offset-key="7c336ba1504f4c25afc5f22175501efc:13" style="box-sizing: inherit; outline: none;"><span class="prism-token token 272 function " style="box-sizing: inherit; color: #dd4a68; outline: none;">getFieldEditorParent</span></span><span data-offset-key="7c336ba1504f4c25afc5f22175501efc:14" style="box-sizing: inherit; outline: none;"><span class="prism-token token 273 punctuation " style="box-sizing: inherit; color: #999999; outline: none;">(</span></span><span data-offset-key="7c336ba1504f4c25afc5f22175501efc:15" style="box-sizing: inherit; outline: none;"><span class="prism-token token 274 punctuation " style="box-sizing: inherit; color: #999999; outline: none;">)</span></span><span data-offset-key="7c336ba1504f4c25afc5f22175501efc:16" style="box-sizing: inherit; outline: none;"><span class="prism-token token 275 punctuation " style="box-sizing: inherit; color: #999999; outline: none;">)</span></span><span data-offset-key="7c336ba1504f4c25afc5f22175501efc:17" style="box-sizing: inherit; outline: none;"><span class="prism-token token 276 punctuation " style="box-sizing: inherit; color: #999999; outline: none;">)</span></span><span data-offset-key="7c336ba1504f4c25afc5f22175501efc:18" style="box-sizing: inherit; outline: none;"><span class="prism-token token 277 punctuation " style="box-sizing: inherit; color: #999999; outline: none;">;</span></span></span></div>
<div class="_17r7t1h" data-key="a8235c6e882a44df8d9f3262baef1d1f" style="box-sizing: inherit; counter-increment: line 1; font: inherit; outline: none; padding: 0px 14px 0px 44px; position: relative; word-wrap: normal;">
<span data-key="eba5000c968843318f93136ccca82844" style="box-sizing: inherit; outline: none;"><span data-offset-key="eba5000c968843318f93136ccca82844:0" style="box-sizing: inherit; outline: none;"><span class="prism-token token 278" style="box-sizing: inherit; outline: none;"> </span></span><span data-offset-key="eba5000c968843318f93136ccca82844:1" style="box-sizing: inherit; outline: none;"><span class="prism-token token 279 punctuation " style="box-sizing: inherit; color: #999999; outline: none;">}</span></span></span></div>
<div class="_17r7t1h" data-key="d5fb727737714c8aa1a621a0c4203033" style="box-sizing: inherit; counter-increment: line 1; font: inherit; outline: none; padding: 0px 14px 0px 44px; position: relative; word-wrap: normal;">
</div>
<div class="_17r7t1h" data-key="5bdf0f36c8fe4eef8e9360c631150be2" style="box-sizing: inherit; counter-increment: line 1; font: inherit; outline: none; padding: 0px 14px 0px 44px; position: relative; word-wrap: normal;">
<span data-key="b1d8d2c51d4b45d9920c1f4fadfa6ebc" style="box-sizing: inherit; outline: none;"><span data-offset-key="b1d8d2c51d4b45d9920c1f4fadfa6ebc:0" style="box-sizing: inherit; outline: none;"><span class="prism-token token 280" style="box-sizing: inherit; outline: none;"> </span></span><span data-offset-key="b1d8d2c51d4b45d9920c1f4fadfa6ebc:1" style="box-sizing: inherit; outline: none;"><span class="prism-token token 281 comment " style="box-sizing: inherit; color: slategrey; outline: none;">/* (non-Javadoc)</span></span></span></div>
<div class="_17r7t1h" data-key="48d0aa19e30c45599572b510523f13b8" style="box-sizing: inherit; counter-increment: line 1; font: inherit; outline: none; padding: 0px 14px 0px 44px; position: relative; word-wrap: normal;">
<span data-key="7ddca021c2da4992935cb02a9b5e013c" style="box-sizing: inherit; outline: none;"><span data-offset-key="7ddca021c2da4992935cb02a9b5e013c:0" style="box-sizing: inherit; outline: none;"><span class="prism-token token 281 comment " style="box-sizing: inherit; color: slategrey; outline: none;"> * @see org.eclipse.ui.IWorkbenchPreferencePage#init(org.eclipse.ui.IWorkbench)</span></span></span></div>
<div class="_17r7t1h" data-key="83b43a1dbb8448dea19936c1ec32a99a" style="box-sizing: inherit; counter-increment: line 1; font: inherit; outline: none; padding: 0px 14px 0px 44px; position: relative; word-wrap: normal;">
<span data-key="718c6d3f8a7c476da1bf1029556721d2" style="box-sizing: inherit; outline: none;"><span data-offset-key="718c6d3f8a7c476da1bf1029556721d2:0" style="box-sizing: inherit; outline: none;"><span class="prism-token token 281 comment " style="box-sizing: inherit; color: slategrey; outline: none;"> */</span></span></span></div>
<div class="_17r7t1h" data-key="461f481c9f56423ba626e78d636609f9" style="box-sizing: inherit; counter-increment: line 1; font: inherit; outline: none; padding: 0px 14px 0px 44px; position: relative; word-wrap: normal;">
<span data-key="b3a4d463f1374f7cb2c568ba72c99ae5" style="box-sizing: inherit; outline: none;"><span data-offset-key="b3a4d463f1374f7cb2c568ba72c99ae5:0" style="box-sizing: inherit; outline: none;"><span class="prism-token token 282" style="box-sizing: inherit; outline: none;"> </span></span><span data-offset-key="b3a4d463f1374f7cb2c568ba72c99ae5:1" style="box-sizing: inherit; outline: none;"><span class="prism-token token 283 keyword " style="box-sizing: inherit; color: #0077aa; outline: none;">public</span></span><span data-offset-key="b3a4d463f1374f7cb2c568ba72c99ae5:2" style="box-sizing: inherit; outline: none;"><span class="prism-token token 284" style="box-sizing: inherit; outline: none;"> </span></span><span data-offset-key="b3a4d463f1374f7cb2c568ba72c99ae5:3" style="box-sizing: inherit; outline: none;"><span class="prism-token token 285 keyword " style="box-sizing: inherit; color: #0077aa; outline: none;">void</span></span><span data-offset-key="b3a4d463f1374f7cb2c568ba72c99ae5:4" style="box-sizing: inherit; outline: none;"><span class="prism-token token 286" style="box-sizing: inherit; outline: none;"> </span></span><span data-offset-key="b3a4d463f1374f7cb2c568ba72c99ae5:5" style="box-sizing: inherit; outline: none;"><span class="prism-token token 287 function " style="box-sizing: inherit; color: #dd4a68; outline: none;">init</span></span><span data-offset-key="b3a4d463f1374f7cb2c568ba72c99ae5:6" style="box-sizing: inherit; outline: none;"><span class="prism-token token 288 punctuation " style="box-sizing: inherit; color: #999999; outline: none;">(</span></span><span data-offset-key="b3a4d463f1374f7cb2c568ba72c99ae5:7" style="box-sizing: inherit; outline: none;"><span class="prism-token token 289" style="box-sizing: inherit; outline: none;">IWorkbench workbench</span></span><span data-offset-key="b3a4d463f1374f7cb2c568ba72c99ae5:8" style="box-sizing: inherit; outline: none;"><span class="prism-token token 290 punctuation " style="box-sizing: inherit; color: #999999; outline: none;">)</span></span><span data-offset-key="b3a4d463f1374f7cb2c568ba72c99ae5:9" style="box-sizing: inherit; outline: none;"><span class="prism-token token 291" style="box-sizing: inherit; outline: none;"> </span></span><span data-offset-key="b3a4d463f1374f7cb2c568ba72c99ae5:10" style="box-sizing: inherit; outline: none;"><span class="prism-token token 292 punctuation " style="box-sizing: inherit; color: #999999; outline: none;">{</span></span></span></div>
<div class="_17r7t1h" data-key="b8f80ebaa3ef458bb4b32c28b14cef0f" style="box-sizing: inherit; counter-increment: line 1; font: inherit; outline: none; padding: 0px 14px 0px 44px; position: relative; word-wrap: normal;">
<span data-key="694a66ea678f4964833dfa63cd587489" style="box-sizing: inherit; outline: none;"><span data-offset-key="694a66ea678f4964833dfa63cd587489:0" style="box-sizing: inherit; outline: none;"><span class="prism-token token 293" style="box-sizing: inherit; outline: none;"> </span></span><span data-offset-key="694a66ea678f4964833dfa63cd587489:1" style="box-sizing: inherit; outline: none;"><span class="prism-token token 294 punctuation " style="box-sizing: inherit; color: #999999; outline: none;">}</span></span></span></div>
<div class="_17r7t1h" data-key="3af4c86535bd4475b23460962c141529" style="box-sizing: inherit; counter-increment: line 1; font: inherit; outline: none; padding: 0px 14px 0px 44px; position: relative; word-wrap: normal;">
<span style="color: #999999; font-family: inherit; font-size: inherit; font-style: inherit; font-variant-caps: inherit; font-variant-ligatures: inherit; font-weight: inherit; white-space: pre-wrap;">}</span></div>
</pre>
</div>
</div>
<div class="_1uc14g3" data-key="a107685d32f04555b9b118038a5caa89" style="box-sizing: inherit; color: #3b454e; font-family: Roboto, sans-serif; font-size: 16px; font-weight: 400; letter-spacing: normal; margin-bottom: 24px; outline: none; position: relative; white-space: pre-wrap;">
<span class="_2he8v2h" style="box-sizing: inherit; line-height: 1.625; outline: none;"><span data-key="85aef1c44deb4c509edad6fad4a01e08" style="box-sizing: inherit; outline: none;"><span data-offset-key="85aef1c44deb4c509edad6fad4a01e08:0" style="box-sizing: inherit; outline: none;">Following is the code for </span><span data-offset-key="85aef1c44deb4c509edad6fad4a01e08:1" style="box-sizing: inherit; outline: none;"><code class="_146ac1z" spellcheck="false" style="-webkit-box-decoration-break: clone; background-color: #f5f7f9; border-radius: 3px; box-sizing: inherit; display: inline-block; font-family: "Source Code Pro", Menlo, monospace; font-size: 13.6px; margin: 0px 1px; outline: none; padding: 3px 6px;">PreferenceConstants.java</code></span></span></span></div>
<div class="_1y81j11" style="box-sizing: inherit; color: #3b454e; font-family: Roboto, sans-serif; font-size: 16px; font-weight: 400; letter-spacing: normal; margin-bottom: 24px; outline: none; position: relative; white-space: pre-wrap;">
<div class="_s3tdtc" contenteditable="false" style="background: rgb(240, 243, 246); box-sizing: inherit; display: flex; font-size: 12px; line-height: 1.2; outline: none; user-select: none;">
<div class="_wudp15" style="box-sizing: inherit; display: flex; flex: 1 1 0%; outline: none; overflow-x: auto;">
<div class="_1njju6t" role="button" spellcheck="false" style="box-sizing: inherit; color: #1660aa; cursor: pointer; display: flex; line-height: 1.2; outline: 0px; padding: 8px; transition: color 0.3s ease 0s;" tabindex="-1">
PreferenceConstants.java</div>
</div>
<div aria-label="Copy" class="_778ee6q" role="button" style="box-sizing: inherit; color: #9daab6; cursor: pointer; font-size: 13px; line-height: 1em; margin: 0px; opacity: 0.5; outline: none; padding: 8px; position: relative;" tabindex="-1">
<svg class="_13gjrqj" fill="none" height="1em" preserveaspectratio="xMidYMid meet" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" stroke="currentColor" viewbox="0 0 24 24" width="1em" xmlns="http://www.w3.org/2000/svg"><g><rect height="13" rx="2" ry="2" width="13" x="9" y="9"></rect><path d="M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"></path></g></svg></div>
</div>
<div data-key="8a38b5d9863e4a9aa54da319a8e36258" style="box-sizing: inherit; outline: none;">
<pre class="_1nms84d" data-key="8c17c647d5064f7ab7780cdf0ea09d6d" spellcheck="false" style="background-color: #f5f7f9; border-radius: 3px; box-sizing: inherit; counter-reset: line 0; font-family: "Source Code Pro", Menlo, monospace; font-size: 13.6px; line-height: 1.7; outline: none; overflow-x: auto; padding: 11px 0px; tab-size: 4;"><div class="_17r7t1h" data-key="7c8328b83aa543b995d8d752be67d10b" style="box-sizing: inherit; counter-increment: line 1; font: inherit; outline: none; padding: 0px 14px 0px 44px; position: relative; word-wrap: normal;">
<span data-key="7f57151fcf7f4b14bf9f1a03945bd8cb" style="box-sizing: inherit; outline: none;"><span data-offset-key="7f57151fcf7f4b14bf9f1a03945bd8cb:0" style="box-sizing: inherit; outline: none;"><span class="prism-token token keyword " style="box-sizing: inherit; color: #0077aa; outline: none;">package</span></span><span data-offset-key="7f57151fcf7f4b14bf9f1a03945bd8cb:1" style="box-sizing: inherit; outline: none;"><span class="prism-token token 1" style="box-sizing: inherit; outline: none;"> trial</span></span><span data-offset-key="7f57151fcf7f4b14bf9f1a03945bd8cb:2" style="box-sizing: inherit; outline: none;"><span class="prism-token token 2 punctuation " style="box-sizing: inherit; color: #999999; outline: none;">.</span></span><span data-offset-key="7f57151fcf7f4b14bf9f1a03945bd8cb:3" style="box-sizing: inherit; outline: none;"><span class="prism-token token 3" style="box-sizing: inherit; outline: none;">preferences</span></span><span data-offset-key="7f57151fcf7f4b14bf9f1a03945bd8cb:4" style="box-sizing: inherit; outline: none;"><span class="prism-token token 4 punctuation " style="box-sizing: inherit; color: #999999; outline: none;">;</span></span></span></div>
<div class="_17r7t1h" data-key="629eb18da1a04e0087fec88b531555d0" style="box-sizing: inherit; counter-increment: line 1; font: inherit; outline: none; padding: 0px 14px 0px 44px; position: relative; word-wrap: normal;">
<span style="color: slategrey; font-family: inherit; font-size: inherit; font-style: inherit; font-variant-caps: inherit; font-variant-ligatures: inherit; font-weight: inherit; white-space: pre-wrap;">/**</span><br />
<span style="color: slategrey; font-family: inherit; font-size: inherit; font-style: inherit; font-variant-caps: inherit; font-variant-ligatures: inherit; font-weight: inherit; white-space: pre-wrap;">* Constant definitions for plug-in preferences</span></div>
<div class="_17r7t1h" data-key="d6d096bc08b9429ab38715d8550b237c" style="box-sizing: inherit; counter-increment: line 1; font: inherit; outline: none; padding: 0px 14px 0px 44px; position: relative; word-wrap: normal;">
<span data-key="5acfbd1877d349b6a76204c2fb823c00" style="box-sizing: inherit; outline: none;"><span data-offset-key="5acfbd1877d349b6a76204c2fb823c00:0" style="box-sizing: inherit; outline: none;"><span class="prism-token token 6 comment " style="box-sizing: inherit; color: slategrey; outline: none;"> */</span></span></span></div>
<div class="_17r7t1h" data-key="d3dce95ff8b04d7883af6adf37542d41" style="box-sizing: inherit; counter-increment: line 1; font: inherit; outline: none; padding: 0px 14px 0px 44px; position: relative; word-wrap: normal;">
<span data-key="dc07433a0d204098bcc8fd1870c8f4b0" style="box-sizing: inherit; outline: none;"><span data-offset-key="dc07433a0d204098bcc8fd1870c8f4b0:0" style="box-sizing: inherit; outline: none;"><span class="prism-token token 8 keyword " style="box-sizing: inherit; color: #0077aa; outline: none;">public</span></span><span data-offset-key="dc07433a0d204098bcc8fd1870c8f4b0:1" style="box-sizing: inherit; outline: none;"><span class="prism-token token 9" style="box-sizing: inherit; outline: none;"> </span></span><span data-offset-key="dc07433a0d204098bcc8fd1870c8f4b0:2" style="box-sizing: inherit; outline: none;"><span class="prism-token token 10 keyword " style="box-sizing: inherit; color: #0077aa; outline: none;">class</span></span><span data-offset-key="dc07433a0d204098bcc8fd1870c8f4b0:3" style="box-sizing: inherit; outline: none;"><span class="prism-token token 11" style="box-sizing: inherit; outline: none;"> </span></span><span data-offset-key="dc07433a0d204098bcc8fd1870c8f4b0:4" style="box-sizing: inherit; outline: none;"><span class="prism-token token 12 class-name " style="box-sizing: inherit; outline: none;">PreferenceConstants</span></span><span data-offset-key="dc07433a0d204098bcc8fd1870c8f4b0:5" style="box-sizing: inherit; outline: none;"><span class="prism-token token 13" style="box-sizing: inherit; outline: none;"> </span></span><span data-offset-key="dc07433a0d204098bcc8fd1870c8f4b0:6" style="box-sizing: inherit; outline: none;"><span class="prism-token token 14 punctuation " style="box-sizing: inherit; color: #999999; outline: none;">{</span></span></span></div>
<div class="_17r7t1h" data-key="66e9d758d1104c5ebd0a3c4cd8b0a0a7" style="box-sizing: inherit; counter-increment: line 1; font: inherit; outline: none; padding: 0px 14px 0px 44px; position: relative; word-wrap: normal;">
<span data-offset-key="19a2be6b03b645428d41b32579c30868:0" style="box-sizing: inherit; font-family: inherit; font-size: inherit; font-style: inherit; font-variant-caps: inherit; font-variant-ligatures: inherit; font-weight: inherit; outline: none; white-space: pre-wrap;"><span class="prism-token token 15" style="box-sizing: inherit; outline: none;"> </span></span><span data-offset-key="19a2be6b03b645428d41b32579c30868:1" style="box-sizing: inherit; font-family: inherit; font-size: inherit; font-style: inherit; font-variant-caps: inherit; font-variant-ligatures: inherit; font-weight: inherit; outline: none; white-space: pre-wrap;"><span class="prism-token token 16 keyword " style="box-sizing: inherit; color: #0077aa; outline: none;">public</span></span><span data-offset-key="19a2be6b03b645428d41b32579c30868:2" style="box-sizing: inherit; font-family: inherit; font-size: inherit; font-style: inherit; font-variant-caps: inherit; font-variant-ligatures: inherit; font-weight: inherit; outline: none; white-space: pre-wrap;"><span class="prism-token token 17" style="box-sizing: inherit; outline: none;"> </span></span><span data-offset-key="19a2be6b03b645428d41b32579c30868:3" style="box-sizing: inherit; font-family: inherit; font-size: inherit; font-style: inherit; font-variant-caps: inherit; font-variant-ligatures: inherit; font-weight: inherit; outline: none; white-space: pre-wrap;"><span class="prism-token token 18 keyword " style="box-sizing: inherit; color: #0077aa; outline: none;">static</span></span><span data-offset-key="19a2be6b03b645428d41b32579c30868:4" style="box-sizing: inherit; font-family: inherit; font-size: inherit; font-style: inherit; font-variant-caps: inherit; font-variant-ligatures: inherit; font-weight: inherit; outline: none; white-space: pre-wrap;"><span class="prism-token token 19" style="box-sizing: inherit; outline: none;"> </span></span><span data-offset-key="19a2be6b03b645428d41b32579c30868:5" style="box-sizing: inherit; font-family: inherit; font-size: inherit; font-style: inherit; font-variant-caps: inherit; font-variant-ligatures: inherit; font-weight: inherit; outline: none; white-space: pre-wrap;"><span class="prism-token token 20 keyword " style="box-sizing: inherit; color: #0077aa; outline: none;">final</span></span><span data-offset-key="19a2be6b03b645428d41b32579c30868:6" style="box-sizing: inherit; font-family: inherit; font-size: inherit; font-style: inherit; font-variant-caps: inherit; font-variant-ligatures: inherit; font-weight: inherit; outline: none; white-space: pre-wrap;"><span class="prism-token token 21" style="box-sizing: inherit; outline: none;"> String P_PATH </span></span><span data-offset-key="19a2be6b03b645428d41b32579c30868:7" style="box-sizing: inherit; font-family: inherit; font-size: inherit; font-style: inherit; font-variant-caps: inherit; font-variant-ligatures: inherit; font-weight: inherit; outline: none; white-space: pre-wrap;"><span class="prism-token token 22 operator " style="background: rgba(255 , 255 , 255 , 0.5); box-sizing: inherit; color: #a67f59; outline: none;">=</span></span><span data-offset-key="19a2be6b03b645428d41b32579c30868:8" style="box-sizing: inherit; font-family: inherit; font-size: inherit; font-style: inherit; font-variant-caps: inherit; font-variant-ligatures: inherit; font-weight: inherit; outline: none; white-space: pre-wrap;"><span class="prism-token token 23" style="box-sizing: inherit; outline: none;"> </span></span><span data-offset-key="19a2be6b03b645428d41b32579c30868:9" style="box-sizing: inherit; font-family: inherit; font-size: inherit; font-style: inherit; font-variant-caps: inherit; font-variant-ligatures: inherit; font-weight: inherit; outline: none; white-space: pre-wrap;"><span class="prism-token token 24 string " style="box-sizing: inherit; color: #669900; outline: none;">"pathPreference"</span></span><span data-offset-key="19a2be6b03b645428d41b32579c30868:10" style="box-sizing: inherit; font-family: inherit; font-size: inherit; font-style: inherit; font-variant-caps: inherit; font-variant-ligatures: inherit; font-weight: inherit; outline: none; white-space: pre-wrap;"><span class="prism-token token 25 punctuation " style="box-sizing: inherit; color: #999999; outline: none;">;</span></span></div>
<div class="_17r7t1h" data-key="11507db1d59d4919b1f32960b484ae64" style="box-sizing: inherit; counter-increment: line 1; font: inherit; outline: none; padding: 0px 14px 0px 44px; position: relative; word-wrap: normal;">
<span data-offset-key="c44bb6ed688b466dba3107b48fc86a6f:0" style="box-sizing: inherit; font-family: inherit; font-size: inherit; font-style: inherit; font-variant-caps: inherit; font-variant-ligatures: inherit; font-weight: inherit; outline: none; white-space: pre-wrap;"><span class="prism-token token 26" style="box-sizing: inherit; outline: none;"> </span></span><span data-offset-key="c44bb6ed688b466dba3107b48fc86a6f:1" style="box-sizing: inherit; font-family: inherit; font-size: inherit; font-style: inherit; font-variant-caps: inherit; font-variant-ligatures: inherit; font-weight: inherit; outline: none; white-space: pre-wrap;"><span class="prism-token token 27 keyword " style="box-sizing: inherit; color: #0077aa; outline: none;">public</span></span><span data-offset-key="c44bb6ed688b466dba3107b48fc86a6f:2" style="box-sizing: inherit; font-family: inherit; font-size: inherit; font-style: inherit; font-variant-caps: inherit; font-variant-ligatures: inherit; font-weight: inherit; outline: none; white-space: pre-wrap;"><span class="prism-token token 28" style="box-sizing: inherit; outline: none;"> </span></span><span data-offset-key="c44bb6ed688b466dba3107b48fc86a6f:3" style="box-sizing: inherit; font-family: inherit; font-size: inherit; font-style: inherit; font-variant-caps: inherit; font-variant-ligatures: inherit; font-weight: inherit; outline: none; white-space: pre-wrap;"><span class="prism-token token 29 keyword " style="box-sizing: inherit; color: #0077aa; outline: none;">static</span></span><span data-offset-key="c44bb6ed688b466dba3107b48fc86a6f:4" style="box-sizing: inherit; font-family: inherit; font-size: inherit; font-style: inherit; font-variant-caps: inherit; font-variant-ligatures: inherit; font-weight: inherit; outline: none; white-space: pre-wrap;"><span class="prism-token token 30" style="box-sizing: inherit; outline: none;"> </span></span><span data-offset-key="c44bb6ed688b466dba3107b48fc86a6f:5" style="box-sizing: inherit; font-family: inherit; font-size: inherit; font-style: inherit; font-variant-caps: inherit; font-variant-ligatures: inherit; font-weight: inherit; outline: none; white-space: pre-wrap;"><span class="prism-token token 31 keyword " style="box-sizing: inherit; color: #0077aa; outline: none;">final</span></span><span data-offset-key="c44bb6ed688b466dba3107b48fc86a6f:6" style="box-sizing: inherit; font-family: inherit; font-size: inherit; font-style: inherit; font-variant-caps: inherit; font-variant-ligatures: inherit; font-weight: inherit; outline: none; white-space: pre-wrap;"><span class="prism-token token 32" style="box-sizing: inherit; outline: none;"> String P_BOOLEAN </span></span><span data-offset-key="c44bb6ed688b466dba3107b48fc86a6f:7" style="box-sizing: inherit; font-family: inherit; font-size: inherit; font-style: inherit; font-variant-caps: inherit; font-variant-ligatures: inherit; font-weight: inherit; outline: none; white-space: pre-wrap;"><span class="prism-token token 33 operator " style="background: rgba(255 , 255 , 255 , 0.5); box-sizing: inherit; color: #a67f59; outline: none;">=</span></span><span data-offset-key="c44bb6ed688b466dba3107b48fc86a6f:8" style="box-sizing: inherit; font-family: inherit; font-size: inherit; font-style: inherit; font-variant-caps: inherit; font-variant-ligatures: inherit; font-weight: inherit; outline: none; white-space: pre-wrap;"><span class="prism-token token 34" style="box-sizing: inherit; outline: none;"> </span></span><span data-offset-key="c44bb6ed688b466dba3107b48fc86a6f:9" style="box-sizing: inherit; font-family: inherit; font-size: inherit; font-style: inherit; font-variant-caps: inherit; font-variant-ligatures: inherit; font-weight: inherit; outline: none; white-space: pre-wrap;"><span class="prism-token token 35 string " style="box-sizing: inherit; color: #669900; outline: none;">"booleanPreference"</span></span><span data-offset-key="c44bb6ed688b466dba3107b48fc86a6f:10" style="box-sizing: inherit; font-family: inherit; font-size: inherit; font-style: inherit; font-variant-caps: inherit; font-variant-ligatures: inherit; font-weight: inherit; outline: none; white-space: pre-wrap;"><span class="prism-token token 36 punctuation " style="box-sizing: inherit; color: #999999; outline: none;">;</span></span></div>
<div class="_17r7t1h" data-key="5577d51936604ac09054632164e97afa" style="box-sizing: inherit; counter-increment: line 1; font: inherit; outline: none; padding: 0px 14px 0px 44px; position: relative; word-wrap: normal;">
<span data-offset-key="440ff4aac48146f1860a60c27344d8c1:0" style="box-sizing: inherit; font-family: inherit; font-size: inherit; font-style: inherit; font-variant-caps: inherit; font-variant-ligatures: inherit; font-weight: inherit; outline: none; white-space: pre-wrap;"><span class="prism-token token 37" style="box-sizing: inherit; outline: none;"> </span></span><span data-offset-key="440ff4aac48146f1860a60c27344d8c1:1" style="box-sizing: inherit; font-family: inherit; font-size: inherit; font-style: inherit; font-variant-caps: inherit; font-variant-ligatures: inherit; font-weight: inherit; outline: none; white-space: pre-wrap;"><span class="prism-token token 38 keyword " style="box-sizing: inherit; color: #0077aa; outline: none;">public</span></span><span data-offset-key="440ff4aac48146f1860a60c27344d8c1:2" style="box-sizing: inherit; font-family: inherit; font-size: inherit; font-style: inherit; font-variant-caps: inherit; font-variant-ligatures: inherit; font-weight: inherit; outline: none; white-space: pre-wrap;"><span class="prism-token token 39" style="box-sizing: inherit; outline: none;"> </span></span><span data-offset-key="440ff4aac48146f1860a60c27344d8c1:3" style="box-sizing: inherit; font-family: inherit; font-size: inherit; font-style: inherit; font-variant-caps: inherit; font-variant-ligatures: inherit; font-weight: inherit; outline: none; white-space: pre-wrap;"><span class="prism-token token 40 keyword " style="box-sizing: inherit; color: #0077aa; outline: none;">static</span></span><span data-offset-key="440ff4aac48146f1860a60c27344d8c1:4" style="box-sizing: inherit; font-family: inherit; font-size: inherit; font-style: inherit; font-variant-caps: inherit; font-variant-ligatures: inherit; font-weight: inherit; outline: none; white-space: pre-wrap;"><span class="prism-token token 41" style="box-sizing: inherit; outline: none;"> </span></span><span data-offset-key="440ff4aac48146f1860a60c27344d8c1:5" style="box-sizing: inherit; font-family: inherit; font-size: inherit; font-style: inherit; font-variant-caps: inherit; font-variant-ligatures: inherit; font-weight: inherit; outline: none; white-space: pre-wrap;"><span class="prism-token token 42 keyword " style="box-sizing: inherit; color: #0077aa; outline: none;">final</span></span><span data-offset-key="440ff4aac48146f1860a60c27344d8c1:6" style="box-sizing: inherit; font-family: inherit; font-size: inherit; font-style: inherit; font-variant-caps: inherit; font-variant-ligatures: inherit; font-weight: inherit; outline: none; white-space: pre-wrap;"><span class="prism-token token 43" style="box-sizing: inherit; outline: none;"> String P_CHOICE </span></span><span data-offset-key="440ff4aac48146f1860a60c27344d8c1:7" style="box-sizing: inherit; font-family: inherit; font-size: inherit; font-style: inherit; font-variant-caps: inherit; font-variant-ligatures: inherit; font-weight: inherit; outline: none; white-space: pre-wrap;"><span class="prism-token token 44 operator " style="background: rgba(255 , 255 , 255 , 0.5); box-sizing: inherit; color: #a67f59; outline: none;">=</span></span><span data-offset-key="440ff4aac48146f1860a60c27344d8c1:8" style="box-sizing: inherit; font-family: inherit; font-size: inherit; font-style: inherit; font-variant-caps: inherit; font-variant-ligatures: inherit; font-weight: inherit; outline: none; white-space: pre-wrap;"><span class="prism-token token 45" style="box-sizing: inherit; outline: none;"> </span></span><span data-offset-key="440ff4aac48146f1860a60c27344d8c1:9" style="box-sizing: inherit; font-family: inherit; font-size: inherit; font-style: inherit; font-variant-caps: inherit; font-variant-ligatures: inherit; font-weight: inherit; outline: none; white-space: pre-wrap;"><span class="prism-token token 46 string " style="box-sizing: inherit; color: #669900; outline: none;">"choicePreference"</span></span><span data-offset-key="440ff4aac48146f1860a60c27344d8c1:10" style="box-sizing: inherit; font-family: inherit; font-size: inherit; font-style: inherit; font-variant-caps: inherit; font-variant-ligatures: inherit; font-weight: inherit; outline: none; white-space: pre-wrap;"><span class="prism-token token 47 punctuation " style="box-sizing: inherit; color: #999999; outline: none;">;</span></span></div>
<div class="_17r7t1h" data-key="bb321598c4b8440cae75ca160737b013" style="box-sizing: inherit; counter-increment: line 1; font: inherit; outline: none; padding: 0px 14px 0px 44px; position: relative; word-wrap: normal;">
<span data-key="9668ffec43dc4f01aae558c42fcb94a0" style="box-sizing: inherit; outline: none;"></span><span data-offset-key="59cd9aa10c664ed38dba8f7c5abf739b:0" style="box-sizing: inherit; font-family: inherit; font-size: inherit; font-style: inherit; font-variant-caps: inherit; font-variant-ligatures: inherit; font-weight: inherit; outline: none; white-space: pre-wrap;"><span class="prism-token token 48" style="box-sizing: inherit; outline: none;"> </span></span><span data-offset-key="59cd9aa10c664ed38dba8f7c5abf739b:1" style="box-sizing: inherit; font-family: inherit; font-size: inherit; font-style: inherit; font-variant-caps: inherit; font-variant-ligatures: inherit; font-weight: inherit; outline: none; white-space: pre-wrap;"><span class="prism-token token 49 keyword " style="box-sizing: inherit; color: #0077aa; outline: none;">public</span></span><span data-offset-key="59cd9aa10c664ed38dba8f7c5abf739b:2" style="box-sizing: inherit; font-family: inherit; font-size: inherit; font-style: inherit; font-variant-caps: inherit; font-variant-ligatures: inherit; font-weight: inherit; outline: none; white-space: pre-wrap;"><span class="prism-token token 50" style="box-sizing: inherit; outline: none;"> </span></span><span data-offset-key="59cd9aa10c664ed38dba8f7c5abf739b:3" style="box-sizing: inherit; font-family: inherit; font-size: inherit; font-style: inherit; font-variant-caps: inherit; font-variant-ligatures: inherit; font-weight: inherit; outline: none; white-space: pre-wrap;"><span class="prism-token token 51 keyword " style="box-sizing: inherit; color: #0077aa; outline: none;">static</span></span><span data-offset-key="59cd9aa10c664ed38dba8f7c5abf739b:4" style="box-sizing: inherit; font-family: inherit; font-size: inherit; font-style: inherit; font-variant-caps: inherit; font-variant-ligatures: inherit; font-weight: inherit; outline: none; white-space: pre-wrap;"><span class="prism-token token 52" style="box-sizing: inherit; outline: none;"> </span></span><span data-offset-key="59cd9aa10c664ed38dba8f7c5abf739b:5" style="box-sizing: inherit; font-family: inherit; font-size: inherit; font-style: inherit; font-variant-caps: inherit; font-variant-ligatures: inherit; font-weight: inherit; outline: none; white-space: pre-wrap;"><span class="prism-token token 53 keyword " style="box-sizing: inherit; color: #0077aa; outline: none;">final</span></span><span data-offset-key="59cd9aa10c664ed38dba8f7c5abf739b:6" style="box-sizing: inherit; font-family: inherit; font-size: inherit; font-style: inherit; font-variant-caps: inherit; font-variant-ligatures: inherit; font-weight: inherit; outline: none; white-space: pre-wrap;"><span class="prism-token token 54" style="box-sizing: inherit; outline: none;"> String P_STRING </span></span><span data-offset-key="59cd9aa10c664ed38dba8f7c5abf739b:7" style="box-sizing: inherit; font-family: inherit; font-size: inherit; font-style: inherit; font-variant-caps: inherit; font-variant-ligatures: inherit; font-weight: inherit; outline: none; white-space: pre-wrap;"><span class="prism-token token 55 operator " style="background: rgba(255 , 255 , 255 , 0.5); box-sizing: inherit; color: #a67f59; outline: none;">=</span></span><span data-offset-key="59cd9aa10c664ed38dba8f7c5abf739b:8" style="box-sizing: inherit; font-family: inherit; font-size: inherit; font-style: inherit; font-variant-caps: inherit; font-variant-ligatures: inherit; font-weight: inherit; outline: none; white-space: pre-wrap;"><span class="prism-token token 56" style="box-sizing: inherit; outline: none;"> </span></span><span data-offset-key="59cd9aa10c664ed38dba8f7c5abf739b:9" style="box-sizing: inherit; font-family: inherit; font-size: inherit; font-style: inherit; font-variant-caps: inherit; font-variant-ligatures: inherit; font-weight: inherit; outline: none; white-space: pre-wrap;"><span class="prism-token token 57 string " style="box-sizing: inherit; color: #669900; outline: none;">"stringPreference"</span></span><span data-offset-key="59cd9aa10c664ed38dba8f7c5abf739b:10" style="box-sizing: inherit; font-family: inherit; font-size: inherit; font-style: inherit; font-variant-caps: inherit; font-variant-ligatures: inherit; font-weight: inherit; outline: none; white-space: pre-wrap;"><span class="prism-token token 58 punctuation " style="box-sizing: inherit; color: #999999; outline: none;">;</span></span></div>
<div class="_17r7t1h" data-key="06a15e5ef5694354889d087fd4eb8846" style="box-sizing: inherit; counter-increment: line 1; font: inherit; outline: none; padding: 0px 14px 0px 44px; position: relative; word-wrap: normal;">
<span data-key="84a5447fa26e423f89c81267b2872657" style="box-sizing: inherit; outline: none;"> </span></div>
<div class="_17r7t1h" data-key="f53cb51af35944a1b6e3a96cca9e1afc" style="box-sizing: inherit; counter-increment: line 1; font: inherit; outline: none; padding: 0px 14px 0px 44px; position: relative; word-wrap: normal;">
<span data-key="faaf01488573425890b2421a734e3ab7" style="box-sizing: inherit; outline: none;"><span data-offset-key="faaf01488573425890b2421a734e3ab7:0" style="box-sizing: inherit; outline: none;"><span class="prism-token token 60 punctuation " style="box-sizing: inherit; color: #999999; outline: none;">}</span></span></span><span style="font-family: inherit; font-size: inherit; font-style: inherit; font-variant-caps: inherit; font-variant-ligatures: inherit; font-weight: inherit; white-space: pre-wrap;"></span></div>
</pre>
</div>
</div>
<div class="_1uc14g3" data-key="f481f747514f42f7a17a12551789bf01" style="box-sizing: inherit; color: #3b454e; font-family: Roboto, sans-serif; font-size: 16px; font-weight: 400; letter-spacing: normal; margin-bottom: 24px; outline: none; position: relative; white-space: pre-wrap;">
<span class="_2he8v2h" style="box-sizing: inherit; line-height: 1.625; outline: none;"><span data-key="59543fd33b9349eaa6b1dc1fdf18cc04" style="box-sizing: inherit; outline: none;"><span data-offset-key="59543fd33b9349eaa6b1dc1fdf18cc04:0" style="box-sizing: inherit; outline: none;">Code for </span><span data-offset-key="59543fd33b9349eaa6b1dc1fdf18cc04:1" style="box-sizing: inherit; outline: none;"><code class="_146ac1z" spellcheck="false" style="-webkit-box-decoration-break: clone; background-color: #f5f7f9; border-radius: 3px; box-sizing: inherit; display: inline-block; font-family: "Source Code Pro", Menlo, monospace; font-size: 13.6px; margin: 0px 1px; outline: none; padding: 3px 6px;">PreferenceInitializer.java</code></span></span></span></div>
<div class="_1y81j11" style="box-sizing: inherit; color: #3b454e; font-family: Roboto, sans-serif; font-size: 16px; font-weight: 400; letter-spacing: normal; margin-bottom: 24px; outline: none; position: relative; white-space: pre-wrap;">
<div class="_s3tdtc" contenteditable="false" style="background: rgb(240, 243, 246); box-sizing: inherit; display: flex; font-size: 12px; line-height: 1.2; outline: none; user-select: none;">
<div class="_wudp15" style="box-sizing: inherit; display: flex; flex: 1 1 0%; outline: none; overflow-x: auto;">
<div class="_1njju6t" role="button" spellcheck="false" style="box-sizing: inherit; color: #1660aa; cursor: pointer; display: flex; line-height: 1.2; outline: 0px; padding: 8px; transition: color 0.3s ease 0s;" tabindex="-1">
PreferenceInitializer.java</div>
</div>
<div aria-label="Copy" class="_778ee6q" role="button" style="box-sizing: inherit; color: #9daab6; cursor: pointer; font-size: 13px; line-height: 1em; margin: 0px; opacity: 0.5; outline: none; padding: 8px; position: relative;" tabindex="-1">
<svg class="_13gjrqj" fill="none" height="1em" preserveaspectratio="xMidYMid meet" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" stroke="currentColor" viewbox="0 0 24 24" width="1em" xmlns="http://www.w3.org/2000/svg"><g><rect height="13" rx="2" ry="2" width="13" x="9" y="9"></rect><path d="M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"></path></g></svg></div>
</div>
<div data-key="cc6bc3a39aef4bbc89b7085fbc90bd31" style="box-sizing: inherit; outline: none;">
<pre class="_1nms84d" data-key="1bacffa5f67545098b56d8450d9cd4cc" spellcheck="false" style="background-color: #f5f7f9; border-radius: 3px; box-sizing: inherit; counter-reset: line 0; font-family: "Source Code Pro", Menlo, monospace; font-size: 13.6px; line-height: 1.7; outline: none; overflow-x: auto; padding: 11px 0px; tab-size: 4;"><div class="_17r7t1h" data-key="3ce2b3fe3e6b42ddbdaecee304b104d1" style="box-sizing: inherit; counter-increment: line 1; font: inherit; outline: none; padding: 0px 14px 0px 44px; position: relative; word-wrap: normal;">
<span data-key="abedd01df76f4aec9c499ff2f9c02a09" style="box-sizing: inherit; outline: none;"><span data-offset-key="abedd01df76f4aec9c499ff2f9c02a09:0" style="box-sizing: inherit; outline: none;"><span class="prism-token token keyword " style="box-sizing: inherit; color: #0077aa; outline: none;">package</span></span><span data-offset-key="abedd01df76f4aec9c499ff2f9c02a09:1" style="box-sizing: inherit; outline: none;"><span class="prism-token token 1" style="box-sizing: inherit; outline: none;"> trial</span></span><span data-offset-key="abedd01df76f4aec9c499ff2f9c02a09:2" style="box-sizing: inherit; outline: none;"><span class="prism-token token 2 punctuation " style="box-sizing: inherit; color: #999999; outline: none;">.</span></span><span data-offset-key="abedd01df76f4aec9c499ff2f9c02a09:3" style="box-sizing: inherit; outline: none;"><span class="prism-token token 3" style="box-sizing: inherit; outline: none;">preferences</span></span><span data-offset-key="abedd01df76f4aec9c499ff2f9c02a09:4" style="box-sizing: inherit; outline: none;"><span class="prism-token token 4 punctuation " style="box-sizing: inherit; color: #999999; outline: none;">;</span></span></span></div>
<div class="_17r7t1h" data-key="ff097003049e4264aef5f588a839b0bf" style="box-sizing: inherit; counter-increment: line 1; font: inherit; outline: none; padding: 0px 14px 0px 44px; position: relative; word-wrap: normal;">
<span data-key="cc44f9c1576643a3bdf73bf412252d3c" style="box-sizing: inherit; outline: none;"></span></div>
<div class="_17r7t1h" data-key="6d7b8c3b816d44dc9eb0f359edefa4ab" style="box-sizing: inherit; counter-increment: line 1; font: inherit; outline: none; padding: 0px 14px 0px 44px; position: relative; word-wrap: normal;">
<span data-key="f7603cb2736f46bb905343a728076195" style="box-sizing: inherit; outline: none;"><span data-offset-key="f7603cb2736f46bb905343a728076195:0" style="box-sizing: inherit; outline: none;"><span class="prism-token token 6 keyword " style="box-sizing: inherit; color: #0077aa; outline: none;">import</span></span><span data-offset-key="f7603cb2736f46bb905343a728076195:1" style="box-sizing: inherit; outline: none;"><span class="prism-token token 7" style="box-sizing: inherit; outline: none;"> org</span></span><span data-offset-key="f7603cb2736f46bb905343a728076195:2" style="box-sizing: inherit; outline: none;"><span class="prism-token token 8 punctuation " style="box-sizing: inherit; color: #999999; outline: none;">.</span></span><span data-offset-key="f7603cb2736f46bb905343a728076195:3" style="box-sizing: inherit; outline: none;"><span class="prism-token token 9" style="box-sizing: inherit; outline: none;">eclipse</span></span><span data-offset-key="f7603cb2736f46bb905343a728076195:4" style="box-sizing: inherit; outline: none;"><span class="prism-token token 10 punctuation " style="box-sizing: inherit; color: #999999; outline: none;">.</span></span><span data-offset-key="f7603cb2736f46bb905343a728076195:5" style="box-sizing: inherit; outline: none;"><span class="prism-token token 11" style="box-sizing: inherit; outline: none;">core</span></span><span data-offset-key="f7603cb2736f46bb905343a728076195:6" style="box-sizing: inherit; outline: none;"><span class="prism-token token 12 punctuation " style="box-sizing: inherit; color: #999999; outline: none;">.</span></span><span data-offset-key="f7603cb2736f46bb905343a728076195:7" style="box-sizing: inherit; outline: none;"><span class="prism-token token 13" style="box-sizing: inherit; outline: none;">runtime</span></span><span data-offset-key="f7603cb2736f46bb905343a728076195:8" style="box-sizing: inherit; outline: none;"><span class="prism-token token 14 punctuation " style="box-sizing: inherit; color: #999999; outline: none;">.</span></span><span data-offset-key="f7603cb2736f46bb905343a728076195:9" style="box-sizing: inherit; outline: none;"><span class="prism-token token 15" style="box-sizing: inherit; outline: none;">preferences</span></span><span data-offset-key="f7603cb2736f46bb905343a728076195:10" style="box-sizing: inherit; outline: none;"><span class="prism-token token 16 punctuation " style="box-sizing: inherit; color: #999999; outline: none;">.</span></span><span data-offset-key="f7603cb2736f46bb905343a728076195:11" style="box-sizing: inherit; outline: none;"><span class="prism-token token 17" style="box-sizing: inherit; outline: none;">AbstractPreferenceInitializer</span></span><span data-offset-key="f7603cb2736f46bb905343a728076195:12" style="box-sizing: inherit; outline: none;"><span class="prism-token token 18 punctuation " style="box-sizing: inherit; color: #999999; outline: none;">;</span></span></span></div>
<div class="_17r7t1h" data-key="f1ec13746f9f495c9440dda6f37505a5" style="box-sizing: inherit; counter-increment: line 1; font: inherit; outline: none; padding: 0px 14px 0px 44px; position: relative; word-wrap: normal;">
<span data-key="51c8480536a242049c0af476ffba2620" style="box-sizing: inherit; outline: none;"><span data-offset-key="51c8480536a242049c0af476ffba2620:0" style="box-sizing: inherit; outline: none;"><span class="prism-token token 20 keyword " style="box-sizing: inherit; color: #0077aa; outline: none;">import</span></span><span data-offset-key="51c8480536a242049c0af476ffba2620:1" style="box-sizing: inherit; outline: none;"><span class="prism-token token 21" style="box-sizing: inherit; outline: none;"> org</span></span><span data-offset-key="51c8480536a242049c0af476ffba2620:2" style="box-sizing: inherit; outline: none;"><span class="prism-token token 22 punctuation " style="box-sizing: inherit; color: #999999; outline: none;">.</span></span><span data-offset-key="51c8480536a242049c0af476ffba2620:3" style="box-sizing: inherit; outline: none;"><span class="prism-token token 23" style="box-sizing: inherit; outline: none;">eclipse</span></span><span data-offset-key="51c8480536a242049c0af476ffba2620:4" style="box-sizing: inherit; outline: none;"><span class="prism-token token 24 punctuation " style="box-sizing: inherit; color: #999999; outline: none;">.</span></span><span data-offset-key="51c8480536a242049c0af476ffba2620:5" style="box-sizing: inherit; outline: none;"><span class="prism-token token 25" style="box-sizing: inherit; outline: none;">jface</span></span><span data-offset-key="51c8480536a242049c0af476ffba2620:6" style="box-sizing: inherit; outline: none;"><span class="prism-token token 26 punctuation " style="box-sizing: inherit; color: #999999; outline: none;">.</span></span><span data-offset-key="51c8480536a242049c0af476ffba2620:7" style="box-sizing: inherit; outline: none;"><span class="prism-token token 27" style="box-sizing: inherit; outline: none;">preference</span></span><span data-offset-key="51c8480536a242049c0af476ffba2620:8" style="box-sizing: inherit; outline: none;"><span class="prism-token token 28 punctuation " style="box-sizing: inherit; color: #999999; outline: none;">.</span></span><span data-offset-key="51c8480536a242049c0af476ffba2620:9" style="box-sizing: inherit; outline: none;"><span class="prism-token token 29" style="box-sizing: inherit; outline: none;">IPreferenceStore</span></span><span data-offset-key="51c8480536a242049c0af476ffba2620:10" style="box-sizing: inherit; outline: none;"><span class="prism-token token 30 punctuation " style="box-sizing: inherit; color: #999999; outline: none;">;</span></span></span></div>
<div class="_17r7t1h" data-key="9192c5a468664822a1127eccc88231ad" style="box-sizing: inherit; counter-increment: line 1; font: inherit; outline: none; padding: 0px 14px 0px 44px; position: relative; word-wrap: normal;">
<span data-key="9c82719e22a74d589e1e88c1a6258484" style="box-sizing: inherit; outline: none;"><span data-offset-key="9c82719e22a74d589e1e88c1a6258484:0" style="box-sizing: inherit; outline: none;"><span class="prism-token token 32 keyword " style="box-sizing: inherit; color: #0077aa; outline: none;">import</span></span><span data-offset-key="9c82719e22a74d589e1e88c1a6258484:1" style="box-sizing: inherit; outline: none;"><span class="prism-token token 33" style="box-sizing: inherit; outline: none;"> org</span></span><span data-offset-key="9c82719e22a74d589e1e88c1a6258484:2" style="box-sizing: inherit; outline: none;"><span class="prism-token token 34 punctuation " style="box-sizing: inherit; color: #999999; outline: none;">.</span></span><span data-offset-key="9c82719e22a74d589e1e88c1a6258484:3" style="box-sizing: inherit; outline: none;"><span class="prism-token token 35" style="box-sizing: inherit; outline: none;">eclipse</span></span><span data-offset-key="9c82719e22a74d589e1e88c1a6258484:4" style="box-sizing: inherit; outline: none;"><span class="prism-token token 36 punctuation " style="box-sizing: inherit; color: #999999; outline: none;">.</span></span><span data-offset-key="9c82719e22a74d589e1e88c1a6258484:5" style="box-sizing: inherit; outline: none;"><span class="prism-token token 37" style="box-sizing: inherit; outline: none;">ui</span></span><span data-offset-key="9c82719e22a74d589e1e88c1a6258484:6" style="box-sizing: inherit; outline: none;"><span class="prism-token token 38 punctuation " style="box-sizing: inherit; color: #999999; outline: none;">.</span></span><span data-offset-key="9c82719e22a74d589e1e88c1a6258484:7" style="box-sizing: inherit; outline: none;"><span class="prism-token token 39" style="box-sizing: inherit; outline: none;">PlatformUI</span></span><span data-offset-key="9c82719e22a74d589e1e88c1a6258484:8" style="box-sizing: inherit; outline: none;"><span class="prism-token token 40 punctuation " style="box-sizing: inherit; color: #999999; outline: none;">;</span></span></span></div>
<div class="_17r7t1h" data-key="4e72af728d314a57a077357778f974c5" style="box-sizing: inherit; counter-increment: line 1; font: inherit; outline: none; padding: 0px 14px 0px 44px; position: relative; word-wrap: normal;">
<span style="color: slategrey; font-family: inherit; font-size: inherit; font-style: inherit; font-variant-caps: inherit; font-variant-ligatures: inherit; font-weight: inherit; white-space: pre-wrap;">/**</span></div>
<div class="_17r7t1h" data-key="f69f264dfc4d436fb7ba113d78e25139" style="box-sizing: inherit; counter-increment: line 1; font: inherit; outline: none; padding: 0px 14px 0px 44px; position: relative; word-wrap: normal;">
<span data-key="0ae553feea994b57aa9806a36c3e59e8" style="box-sizing: inherit; outline: none;"><span data-offset-key="0ae553feea994b57aa9806a36c3e59e8:0" style="box-sizing: inherit; outline: none;"><span class="prism-token token 42 comment " style="box-sizing: inherit; color: slategrey; outline: none;"> * Class used to initialize default preference values.</span></span></span></div>
<div class="_17r7t1h" data-key="0601dca60e7c4200aa07ba63f9b86f05" style="box-sizing: inherit; counter-increment: line 1; font: inherit; outline: none; padding: 0px 14px 0px 44px; position: relative; word-wrap: normal;">
<span data-key="263bcb76766640a3abcec559360ba0bf" style="box-sizing: inherit; outline: none;"><span data-offset-key="263bcb76766640a3abcec559360ba0bf:0" style="box-sizing: inherit; outline: none;"><span class="prism-token token 42 comment " style="box-sizing: inherit; color: slategrey; outline: none;"> */</span></span></span></div>
<div class="_17r7t1h" data-key="f768c6e1f1954457aa7c37477b62b052" style="box-sizing: inherit; counter-increment: line 1; font: inherit; outline: none; padding: 0px 14px 0px 44px; position: relative; word-wrap: normal;">
<span data-key="66f56fabbd9b44329c1c736457e9b35e" style="box-sizing: inherit; outline: none;"><span data-offset-key="66f56fabbd9b44329c1c736457e9b35e:0" style="box-sizing: inherit; outline: none;"><span class="prism-token token 44 keyword " style="box-sizing: inherit; color: #0077aa; outline: none;">public</span></span><span data-offset-key="66f56fabbd9b44329c1c736457e9b35e:1" style="box-sizing: inherit; outline: none;"><span class="prism-token token 45" style="box-sizing: inherit; outline: none;"> </span></span><span data-offset-key="66f56fabbd9b44329c1c736457e9b35e:2" style="box-sizing: inherit; outline: none;"><span class="prism-token token 46 keyword " style="box-sizing: inherit; color: #0077aa; outline: none;">class</span></span><span data-offset-key="66f56fabbd9b44329c1c736457e9b35e:3" style="box-sizing: inherit; outline: none;"><span class="prism-token token 47" style="box-sizing: inherit; outline: none;"> </span></span><span data-offset-key="66f56fabbd9b44329c1c736457e9b35e:4" style="box-sizing: inherit; outline: none;"><span class="prism-token token 48 class-name " style="box-sizing: inherit; outline: none;">PreferenceInitializer</span></span><span data-offset-key="66f56fabbd9b44329c1c736457e9b35e:5" style="box-sizing: inherit; outline: none;"><span class="prism-token token 49" style="box-sizing: inherit; outline: none;"> </span></span><span data-offset-key="66f56fabbd9b44329c1c736457e9b35e:6" style="box-sizing: inherit; outline: none;"><span class="prism-token token 50 keyword " style="box-sizing: inherit; color: #0077aa; outline: none;">extends</span></span><span data-offset-key="66f56fabbd9b44329c1c736457e9b35e:7" style="box-sizing: inherit; outline: none;"><span class="prism-token token 51" style="box-sizing: inherit; outline: none;"> </span></span><span data-offset-key="66f56fabbd9b44329c1c736457e9b35e:8" style="box-sizing: inherit; outline: none;"><span class="prism-token token 52 class-name " style="box-sizing: inherit; outline: none;">AbstractPreferenceInitializer</span></span><span data-offset-key="66f56fabbd9b44329c1c736457e9b35e:9" style="box-sizing: inherit; outline: none;"><span class="prism-token token 53" style="box-sizing: inherit; outline: none;"> </span></span><span data-offset-key="66f56fabbd9b44329c1c736457e9b35e:10" style="box-sizing: inherit; outline: none;"><span class="prism-token token 54 punctuation " style="box-sizing: inherit; color: #999999; outline: none;">{</span></span></span></div>
<div class="_17r7t1h" data-key="c1b01dbfe36a45319599ff4a32cc53aa" style="box-sizing: inherit; counter-increment: line 1; font: inherit; outline: none; padding: 0px 14px 0px 44px; position: relative; word-wrap: normal;">
<span data-key="8e59b6db758f4f66af02c202180adbd4" style="box-sizing: inherit; outline: none;"></span><span data-offset-key="2e529b63ca984032bd21ed84dea71e10:0" style="box-sizing: inherit; font-family: inherit; font-size: inherit; font-style: inherit; font-variant-caps: inherit; font-variant-ligatures: inherit; font-weight: inherit; outline: none; white-space: pre-wrap;"><span class="prism-token token 55" style="box-sizing: inherit; outline: none;"> </span></span><span data-offset-key="2e529b63ca984032bd21ed84dea71e10:1" style="box-sizing: inherit; font-family: inherit; font-size: inherit; font-style: inherit; font-variant-caps: inherit; font-variant-ligatures: inherit; font-weight: inherit; outline: none; white-space: pre-wrap;"><span class="prism-token token 56 comment " style="box-sizing: inherit; color: slategrey; outline: none;">/*</span></span></div>
<div class="_17r7t1h" data-key="0abebd348c8e468a942bb70727f260e5" style="box-sizing: inherit; counter-increment: line 1; font: inherit; outline: none; padding: 0px 14px 0px 44px; position: relative; word-wrap: normal;">
<span data-key="9c894611fb0e4c9d92e60767d7bc3e8c" style="box-sizing: inherit; outline: none;"><span data-offset-key="9c894611fb0e4c9d92e60767d7bc3e8c:0" style="box-sizing: inherit; outline: none;"><span class="prism-token token 56 comment " style="box-sizing: inherit; color: slategrey; outline: none;"> * (non-Javadoc)</span></span></span></div>
<div class="_17r7t1h" data-key="ab96050c8e2f494cba7ad1340cfb82c5" style="box-sizing: inherit; counter-increment: line 1; font: inherit; outline: none; padding: 0px 14px 0px 44px; position: relative; word-wrap: normal;">
<span data-key="9ded00a2d62e4c568405f9d6a211d354" style="box-sizing: inherit; outline: none;"><span data-offset-key="9ded00a2d62e4c568405f9d6a211d354:0" style="box-sizing: inherit; outline: none;"><span class="prism-token token 56 comment " style="box-sizing: inherit; color: slategrey; outline: none;"> * </span></span></span></div>
<div class="_17r7t1h" data-key="a5231f847969408fbe30a73bfa722464" style="box-sizing: inherit; counter-increment: line 1; font: inherit; outline: none; padding: 0px 14px 0px 44px; position: relative; word-wrap: normal;">
<span data-key="a6c050c573e74b779382affa3be4f660" style="box-sizing: inherit; outline: none;"><span data-offset-key="a6c050c573e74b779382affa3be4f660:0" style="box-sizing: inherit; outline: none;"><span class="prism-token token 56 comment " style="box-sizing: inherit; color: slategrey; outline: none;"> * @see org.eclipse.core.runtime.preferences.AbstractPreferenceInitializer#initializeDefaultPreferences()</span></span></span></div>
<div class="_17r7t1h" data-key="60ac01b6b1984bcdaa28d26d73674370" style="box-sizing: inherit; counter-increment: line 1; font: inherit; outline: none; padding: 0px 14px 0px 44px; position: relative; word-wrap: normal;">
<span data-key="800930acba4e4ebd94a463037121d731" style="box-sizing: inherit; outline: none;"><span data-offset-key="800930acba4e4ebd94a463037121d731:0" style="box-sizing: inherit; outline: none;"><span class="prism-token token 56 comment " style="box-sizing: inherit; color: slategrey; outline: none;"> */</span></span></span></div>
<div class="_17r7t1h" data-key="fd49e6a5abd14219a35b2203e58e9b4d" style="box-sizing: inherit; counter-increment: line 1; font: inherit; outline: none; padding: 0px 14px 0px 44px; position: relative; word-wrap: normal;">
<span data-key="ca7bdd057bdb4fa2b3a5e7dfbd348000" style="box-sizing: inherit; outline: none;"><span data-offset-key="ca7bdd057bdb4fa2b3a5e7dfbd348000:0" style="box-sizing: inherit; outline: none;"><span class="prism-token token 57" style="box-sizing: inherit; outline: none;"> </span></span><span data-offset-key="ca7bdd057bdb4fa2b3a5e7dfbd348000:1" style="box-sizing: inherit; outline: none;"><span class="prism-token token 58 keyword " style="box-sizing: inherit; color: #0077aa; outline: none;">public</span></span><span data-offset-key="ca7bdd057bdb4fa2b3a5e7dfbd348000:2" style="box-sizing: inherit; outline: none;"><span class="prism-token token 59" style="box-sizing: inherit; outline: none;"> </span></span><span data-offset-key="ca7bdd057bdb4fa2b3a5e7dfbd348000:3" style="box-sizing: inherit; outline: none;"><span class="prism-token token 60 keyword " style="box-sizing: inherit; color: #0077aa; outline: none;">void</span></span><span data-offset-key="ca7bdd057bdb4fa2b3a5e7dfbd348000:4" style="box-sizing: inherit; outline: none;"><span class="prism-token token 61" style="box-sizing: inherit; outline: none;"> </span></span><span data-offset-key="ca7bdd057bdb4fa2b3a5e7dfbd348000:5" style="box-sizing: inherit; outline: none;"><span class="prism-token token 62 function " style="box-sizing: inherit; color: #dd4a68; outline: none;">initializeDefaultPreferences</span></span><span data-offset-key="ca7bdd057bdb4fa2b3a5e7dfbd348000:6" style="box-sizing: inherit; outline: none;"><span class="prism-token token 63 punctuation " style="box-sizing: inherit; color: #999999; outline: none;">(</span></span><span data-offset-key="ca7bdd057bdb4fa2b3a5e7dfbd348000:7" style="box-sizing: inherit; outline: none;"><span class="prism-token token 64 punctuation " style="box-sizing: inherit; color: #999999; outline: none;">)</span></span><span data-offset-key="ca7bdd057bdb4fa2b3a5e7dfbd348000:8" style="box-sizing: inherit; outline: none;"><span class="prism-token token 65" style="box-sizing: inherit; outline: none;"> </span></span><span data-offset-key="ca7bdd057bdb4fa2b3a5e7dfbd348000:9" style="box-sizing: inherit; outline: none;"><span class="prism-token token 66 punctuation " style="box-sizing: inherit; color: #999999; outline: none;">{</span></span></span></div>
<div class="_17r7t1h" data-key="f4ba0bc5c1ab4685ae8ef1cde6c4936f" style="box-sizing: inherit; counter-increment: line 1; font: inherit; outline: none; padding: 0px 14px 0px 44px; position: relative; word-wrap: normal;">
<span data-key="dd5e434ec4f84509a9658a1f8fc71109" style="box-sizing: inherit; outline: none;"><span data-offset-key="dd5e434ec4f84509a9658a1f8fc71109:0" style="box-sizing: inherit; outline: none;"><span class="prism-token token 67" style="box-sizing: inherit; outline: none;"> IPreferenceStore store </span></span><span data-offset-key="dd5e434ec4f84509a9658a1f8fc71109:1" style="box-sizing: inherit; outline: none;"><span class="prism-token token 68 operator " style="background: rgba(255 , 255 , 255 , 0.5); box-sizing: inherit; color: #a67f59; outline: none;">=</span></span><span data-offset-key="dd5e434ec4f84509a9658a1f8fc71109:2" style="box-sizing: inherit; outline: none;"><span class="prism-token token 69" style="box-sizing: inherit; outline: none;"> PlatformUI</span></span><span data-offset-key="dd5e434ec4f84509a9658a1f8fc71109:3" style="box-sizing: inherit; outline: none;"><span class="prism-token token 70 punctuation " style="box-sizing: inherit; color: #999999; outline: none;">.</span></span><span data-offset-key="dd5e434ec4f84509a9658a1f8fc71109:4" style="box-sizing: inherit; outline: none;"><span class="prism-token token 71 function " style="box-sizing: inherit; color: #dd4a68; outline: none;">getPreferenceStore</span></span><span data-offset-key="dd5e434ec4f84509a9658a1f8fc71109:5" style="box-sizing: inherit; outline: none;"><span class="prism-token token 72 punctuation " style="box-sizing: inherit; color: #999999; outline: none;">(</span></span><span data-offset-key="dd5e434ec4f84509a9658a1f8fc71109:6" style="box-sizing: inherit; outline: none;"><span class="prism-token token 73 punctuation " style="box-sizing: inherit; color: #999999; outline: none;">)</span></span><span data-offset-key="dd5e434ec4f84509a9658a1f8fc71109:7" style="box-sizing: inherit; outline: none;"><span class="prism-token token 74 punctuation " style="box-sizing: inherit; color: #999999; outline: none;">;</span></span></span></div>
<div class="_17r7t1h" data-key="1b86e7ca3e524fde92a172bc32af9b6a" style="box-sizing: inherit; counter-increment: line 1; font: inherit; outline: none; padding: 0px 14px 0px 44px; position: relative; word-wrap: normal;">
<span data-key="61bbc1682d13455ca6780f7c313206b6" style="box-sizing: inherit; outline: none;"><span data-offset-key="61bbc1682d13455ca6780f7c313206b6:0" style="box-sizing: inherit; outline: none;"><span class="prism-token token 75" style="box-sizing: inherit; outline: none;"> store</span></span><span data-offset-key="61bbc1682d13455ca6780f7c313206b6:1" style="box-sizing: inherit; outline: none;"><span class="prism-token token 76 punctuation " style="box-sizing: inherit; color: #999999; outline: none;">.</span></span><span data-offset-key="61bbc1682d13455ca6780f7c313206b6:2" style="box-sizing: inherit; outline: none;"><span class="prism-token token 77 function " style="box-sizing: inherit; color: #dd4a68; outline: none;">setDefault</span></span><span data-offset-key="61bbc1682d13455ca6780f7c313206b6:3" style="box-sizing: inherit; outline: none;"><span class="prism-token token 78 punctuation " style="box-sizing: inherit; color: #999999; outline: none;">(</span></span><span data-offset-key="61bbc1682d13455ca6780f7c313206b6:4" style="box-sizing: inherit; outline: none;"><span class="prism-token token 79" style="box-sizing: inherit; outline: none;">PreferenceConstants</span></span><span data-offset-key="61bbc1682d13455ca6780f7c313206b6:5" style="box-sizing: inherit; outline: none;"><span class="prism-token token 80 punctuation " style="box-sizing: inherit; color: #999999; outline: none;">.</span></span><span data-offset-key="61bbc1682d13455ca6780f7c313206b6:6" style="box-sizing: inherit; outline: none;"><span class="prism-token token 81" style="box-sizing: inherit; outline: none;">P_BOOLEAN</span></span><span data-offset-key="61bbc1682d13455ca6780f7c313206b6:7" style="box-sizing: inherit; outline: none;"><span class="prism-token token 82 punctuation " style="box-sizing: inherit; color: #999999; outline: none;">,</span></span><span data-offset-key="61bbc1682d13455ca6780f7c313206b6:8" style="box-sizing: inherit; outline: none;"><span class="prism-token token 83" style="box-sizing: inherit; outline: none;"> </span></span><span data-offset-key="61bbc1682d13455ca6780f7c313206b6:9" style="box-sizing: inherit; outline: none;"><span class="prism-token token 84 boolean " style="box-sizing: inherit; color: #990055; outline: none;">true</span></span><span data-offset-key="61bbc1682d13455ca6780f7c313206b6:10" style="box-sizing: inherit; outline: none;"><span class="prism-token token 85 punctuation " style="box-sizing: inherit; color: #999999; outline: none;">)</span></span><span data-offset-key="61bbc1682d13455ca6780f7c313206b6:11" style="box-sizing: inherit; outline: none;"><span class="prism-token token 86 punctuation " style="box-sizing: inherit; color: #999999; outline: none;">;</span></span></span></div>
<div class="_17r7t1h" data-key="51b00c0fa7b84eee849c7a8f2d7ae718" style="box-sizing: inherit; counter-increment: line 1; font: inherit; outline: none; padding: 0px 14px 0px 44px; position: relative; word-wrap: normal;">
<span data-key="c9a165d32a82406fa81f38db944eb59b" style="box-sizing: inherit; outline: none;"><span data-offset-key="c9a165d32a82406fa81f38db944eb59b:0" style="box-sizing: inherit; outline: none;"><span class="prism-token token 87" style="box-sizing: inherit; outline: none;"> store</span></span><span data-offset-key="c9a165d32a82406fa81f38db944eb59b:1" style="box-sizing: inherit; outline: none;"><span class="prism-token token 88 punctuation " style="box-sizing: inherit; color: #999999; outline: none;">.</span></span><span data-offset-key="c9a165d32a82406fa81f38db944eb59b:2" style="box-sizing: inherit; outline: none;"><span class="prism-token token 89 function " style="box-sizing: inherit; color: #dd4a68; outline: none;">setDefault</span></span><span data-offset-key="c9a165d32a82406fa81f38db944eb59b:3" style="box-sizing: inherit; outline: none;"><span class="prism-token token 90 punctuation " style="box-sizing: inherit; color: #999999; outline: none;">(</span></span><span data-offset-key="c9a165d32a82406fa81f38db944eb59b:4" style="box-sizing: inherit; outline: none;"><span class="prism-token token 91" style="box-sizing: inherit; outline: none;">PreferenceConstants</span></span><span data-offset-key="c9a165d32a82406fa81f38db944eb59b:5" style="box-sizing: inherit; outline: none;"><span class="prism-token token 92 punctuation " style="box-sizing: inherit; color: #999999; outline: none;">.</span></span><span data-offset-key="c9a165d32a82406fa81f38db944eb59b:6" style="box-sizing: inherit; outline: none;"><span class="prism-token token 93" style="box-sizing: inherit; outline: none;">P_CHOICE</span></span><span data-offset-key="c9a165d32a82406fa81f38db944eb59b:7" style="box-sizing: inherit; outline: none;"><span class="prism-token token 94 punctuation " style="box-sizing: inherit; color: #999999; outline: none;">,</span></span><span data-offset-key="c9a165d32a82406fa81f38db944eb59b:8" style="box-sizing: inherit; outline: none;"><span class="prism-token token 95" style="box-sizing: inherit; outline: none;"> </span></span><span data-offset-key="c9a165d32a82406fa81f38db944eb59b:9" style="box-sizing: inherit; outline: none;"><span class="prism-token token 96 string " style="box-sizing: inherit; color: #669900; outline: none;">"choice2"</span></span><span data-offset-key="c9a165d32a82406fa81f38db944eb59b:10" style="box-sizing: inherit; outline: none;"><span class="prism-token token 97 punctuation " style="box-sizing: inherit; color: #999999; outline: none;">)</span></span><span data-offset-key="c9a165d32a82406fa81f38db944eb59b:11" style="box-sizing: inherit; outline: none;"><span class="prism-token token 98 punctuation " style="box-sizing: inherit; color: #999999; outline: none;">;</span></span></span></div>
<div class="_17r7t1h" data-key="95d9dea2fe584bce86e605fa278e38a1" style="box-sizing: inherit; counter-increment: line 1; font: inherit; outline: none; padding: 0px 14px 0px 44px; position: relative; word-wrap: normal;">
<span data-key="5fb2dc9789cd4ec28a4202546657fdac" style="box-sizing: inherit; outline: none;"><span data-offset-key="5fb2dc9789cd4ec28a4202546657fdac:0" style="box-sizing: inherit; outline: none;"><span class="prism-token token 99" style="box-sizing: inherit; outline: none;"> store</span></span><span data-offset-key="5fb2dc9789cd4ec28a4202546657fdac:1" style="box-sizing: inherit; outline: none;"><span class="prism-token token 100 punctuation " style="box-sizing: inherit; color: #999999; outline: none;">.</span></span><span data-offset-key="5fb2dc9789cd4ec28a4202546657fdac:2" style="box-sizing: inherit; outline: none;"><span class="prism-token token 101 function " style="box-sizing: inherit; color: #dd4a68; outline: none;">setDefault</span></span><span data-offset-key="5fb2dc9789cd4ec28a4202546657fdac:3" style="box-sizing: inherit; outline: none;"><span class="prism-token token 102 punctuation " style="box-sizing: inherit; color: #999999; outline: none;">(</span></span><span data-offset-key="5fb2dc9789cd4ec28a4202546657fdac:4" style="box-sizing: inherit; outline: none;"><span class="prism-token token 103" style="box-sizing: inherit; outline: none;">PreferenceConstants</span></span><span data-offset-key="5fb2dc9789cd4ec28a4202546657fdac:5" style="box-sizing: inherit; outline: none;"><span class="prism-token token 104 punctuation " style="box-sizing: inherit; color: #999999; outline: none;">.</span></span><span data-offset-key="5fb2dc9789cd4ec28a4202546657fdac:6" style="box-sizing: inherit; outline: none;"><span class="prism-token token 105" style="box-sizing: inherit; outline: none;">P_STRING</span></span><span data-offset-key="5fb2dc9789cd4ec28a4202546657fdac:7" style="box-sizing: inherit; outline: none;"><span class="prism-token token 106 punctuation " style="box-sizing: inherit; color: #999999; outline: none;">,</span></span></span></div>
<div class="_17r7t1h" data-key="28bb43b50cb94f81acfbf6ca766ac205" style="box-sizing: inherit; counter-increment: line 1; font: inherit; outline: none; padding: 0px 14px 0px 44px; position: relative; word-wrap: normal;">
<span data-key="e331f7998bac428998e381f9471dfd74" style="box-sizing: inherit; outline: none;"><span data-offset-key="e331f7998bac428998e381f9471dfd74:0" style="box-sizing: inherit; outline: none;"><span class="prism-token token 107" style="box-sizing: inherit; outline: none;"> </span></span><span data-offset-key="e331f7998bac428998e381f9471dfd74:1" style="box-sizing: inherit; outline: none;"><span class="prism-token token 108 string " style="box-sizing: inherit; color: #669900; outline: none;">"Default value"</span></span><span data-offset-key="e331f7998bac428998e381f9471dfd74:2" style="box-sizing: inherit; outline: none;"><span class="prism-token token 109 punctuation " style="box-sizing: inherit; color: #999999; outline: none;">)</span></span><span data-offset-key="e331f7998bac428998e381f9471dfd74:3" style="box-sizing: inherit; outline: none;"><span class="prism-token token 110 punctuation " style="box-sizing: inherit; color: #999999; outline: none;">;</span></span></span></div>
<div class="_17r7t1h" data-key="fb2621a00ffb497088c29988a528e600" style="box-sizing: inherit; counter-increment: line 1; font: inherit; outline: none; padding: 0px 14px 0px 44px; position: relative; word-wrap: normal;">
<span data-key="295a0d3daf3b45b9a1cc48cc5dd1d57d" style="box-sizing: inherit; outline: none;"><span data-offset-key="295a0d3daf3b45b9a1cc48cc5dd1d57d:0" style="box-sizing: inherit; outline: none;"><span class="prism-token token 111" style="box-sizing: inherit; outline: none;"> </span></span><span data-offset-key="295a0d3daf3b45b9a1cc48cc5dd1d57d:1" style="box-sizing: inherit; outline: none;"><span class="prism-token token 112 punctuation " style="box-sizing: inherit; color: #999999; outline: none;">}</span></span></span></div>
<div class="_17r7t1h" data-key="694aa2498cea455dbfd702f17a6234e6" style="box-sizing: inherit; counter-increment: line 1; font: inherit; outline: none; padding: 0px 14px 0px 44px; position: relative; word-wrap: normal;">
<span data-key="4684d49dfd314b3389b45797f4b464f4" style="box-sizing: inherit; outline: none;"></span><span style="color: #999999; font-family: inherit; font-size: inherit; font-style: inherit; font-variant-caps: inherit; font-variant-ligatures: inherit; font-weight: inherit; white-space: pre-wrap;">}</span><span style="font-family: inherit; font-size: inherit; font-style: inherit; font-variant-caps: inherit; font-variant-ligatures: inherit; font-weight: inherit; white-space: pre-wrap;"></span></div>
</pre>
</div>
</div>
<div class="_1uc14g3" data-key="a0e91f53714a4336b554040e9c4006d4" style="box-sizing: inherit; color: #3b454e; font-family: Roboto, sans-serif; font-size: 16px; font-weight: 400; letter-spacing: normal; margin-bottom: 24px; outline: none; position: relative; white-space: pre-wrap;">
<span class="_2he8v2h" style="box-sizing: inherit; line-height: 1.625; outline: none;">Once you run the Application as Eclipse Application post the above configuration, following will be the preference page:</span></div>
<div data-key="5a12d1ab76c2453db596f1d508af5c9f" data-slate-void="true" style="box-sizing: inherit; color: #3b454e; font-family: Roboto, sans-serif; font-size: 16px; font-weight: 400; letter-spacing: normal; outline: none; white-space: pre-wrap;">
<div style="box-sizing: inherit; outline: none;">
<br />
<br />
<br />
<br />
<figure class="_ydpnb4u" contenteditable="false" data-key="5a12d1ab76c2453db596f1d508af5c9f" style="box-sizing: inherit; margin: 32px auto 24px; outline: none; padding: 0px;"><div class="_nz31dgk" style="-webkit-box-pack: center; box-sizing: inherit; display: flex; justify-content: center; margin: 0px; outline: none; padding: 0px;">
<div class="_183h11zs" style="box-sizing: inherit; margin: 0px; max-width: 100%; outline: none; padding: 0px; position: relative;">
<img class="_prgn0f" src="https://blobscdn.gitbook.com/v0/b/gitbook-28427.appspot.com/o/assets%2F-LGsE4uqaqG_O_Xhdj1v%2F-LMSboonjqyOHM9cROhL%2F-LMSbbQBOUgc-CQ1gtyT%2FScreen%20Shot%202018-09-15%20at%207.50.29%20PM.png?alt=media&token=a6e40626-fe7e-4cbb-a2d5-34a629f6da62" style="box-sizing: inherit; cursor: zoom-in; display: block; max-height: 60vh; max-width: 100%; outline: none;" tabindex="0" /></div>
</div>
<div class="_nz31dgk" style="-webkit-box-pack: center; box-sizing: inherit; display: flex; justify-content: center; margin: 0px; outline: none; padding: 0px;">
<br />
<br />
<br />
<br />
<figcaption class="_ivehb9" style="box-sizing: inherit; color: #9daab6; margin: 0px; outline: none; overflow: hidden; padding: 8px 0px; word-break: normal;"><span class="_2he8v2h" style="box-sizing: inherit; line-height: 1.625; max-width: 100%; outline: none;">Demo of "Sample Preferences"</span></figcaption><br /></div>
</figure></div>
</div>
<div class="_1uc14g3" data-key="ae1ba0baf8b2446b9b2f6a082c24681b" style="box-sizing: inherit; color: #3b454e; font-family: Roboto, sans-serif; font-size: 16px; font-weight: 400; letter-spacing: normal; margin-bottom: 24px; outline: none; position: relative; white-space: pre-wrap;">
<span class="_2he8v2h" style="box-sizing: inherit; line-height: 1.625; outline: none;"><span data-key="27b0aa6414444a01ae1b1b88628626f2" style="box-sizing: inherit; outline: none;"><span data-offset-key="27b0aa6414444a01ae1b1b88628626f2:0" style="box-sizing: inherit; outline: none;"><span class="_u5j6yl" style="box-sizing: inherit; font-weight: 700; outline: none;">Getting and Setting Preferences</span></span></span></span></div>
<div class="_1uc14g3" data-key="5b1f59931bb34231a924fe1c8e1c7650" style="box-sizing: inherit; color: #3b454e; font-family: Roboto, sans-serif; font-size: 16px; font-weight: 400; letter-spacing: normal; margin-bottom: 24px; outline: none; position: relative; white-space: pre-wrap;">
<span class="_2he8v2h" style="box-sizing: inherit; line-height: 1.625; outline: none;"><span data-key="03754d9ea616416c8b497fd6801d913a" style="box-sizing: inherit; outline: none;"><span data-offset-key="03754d9ea616416c8b497fd6801d913a:0" style="box-sizing: inherit; outline: none;">Preferences for a plug-in are stored in an </span><span data-offset-key="03754d9ea616416c8b497fd6801d913a:1" style="box-sizing: inherit; outline: none;"><code class="_146ac1z" spellcheck="false" style="-webkit-box-decoration-break: clone; background-color: #f5f7f9; border-radius: 3px; box-sizing: inherit; display: inline-block; font-family: "Source Code Pro", Menlo, monospace; font-size: 13.6px; margin: 0px 1px; outline: none; padding: 3px 6px;">org.eclipse.jface.preference.IPreferenceStore</code></span><span data-offset-key="03754d9ea616416c8b497fd6801d913a:2" style="box-sizing: inherit; outline: none;"> object. You can access a plug-ins preference through the </span><span data-offset-key="03754d9ea616416c8b497fd6801d913a:3" style="box-sizing: inherit; outline: none;"><code class="_146ac1z" spellcheck="false" style="-webkit-box-decoration-break: clone; background-color: #f5f7f9; border-radius: 3px; box-sizing: inherit; display: inline-block; font-family: "Source Code Pro", Menlo, monospace; font-size: 13.6px; margin: 0px 1px; outline: none; padding: 3px 6px;">Activator</code></span></span></span></div>
</h2>
</div>
<style type="text/css">
p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Menlo}
p.p2 {margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Menlo; min-height: 14.0px}
p.p3 {margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Menlo; color: #4f76cb}
p.p4 {margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Menlo; color: #3933ff}
p.p5 {margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Menlo; color: #4e9072}
span.s1 {color: #931a68}
span.s2 {text-decoration: underline}
span.s3 {text-decoration: underline ; color: #9293af}
span.s4 {color: #9293af}
span.s5 {color: #0326cc}
span.s6 {color: #000000}
span.s7 {color: #3933ff}
span.s8 {color: #7e504f}
span.Apple-tab-span {white-space:pre}
</style></div>
Harikrushna Vhttp://www.blogger.com/profile/09928292899811466018noreply@blogger.com0tag:blogger.com,1999:blog-1407328464037557308.post-8609702342463459202018-09-15T05:07:00.002-07:002018-09-15T05:07:18.574-07:00Eclipse MANIFEST.MF<div dir="ltr" style="text-align: left;" trbidi="on">
<h2 style="text-align: left;">
Eclipse MANIFEST.MF</h2>
<h3 style="text-align: left;">
Understanding MANIFEST.MF view in Eclipse RCP development</h3>
<h4 style="text-align: left;">
Overview</h4>
<h3 class="_1st9amh" data-key="44be09b8b4a34f7eb4c866f50d3bab9b" id="general-information" style="background-color: white; box-sizing: inherit; color: #242a31; display: flex; font-family: Roboto, sans-serif; margin: 0px 0px 24px; outline: none; position: relative; white-space: pre-wrap;">
<div class="_bc4egv" style="box-sizing: inherit; flex: 1 1 0%; outline: none;">
<span class="_2aey9qf" style="box-sizing: inherit; font-size: 16px; line-height: 1.5; outline: none;"><br class="Apple-interchange-newline" />General information</span><a class="_i422ldx" contenteditable="false" href="https://eclipse-rcp.gitbook.io/eclipse-rcp/create-basic-eclipse-plugin/understanding-manifest.mf-view#general-information" style="box-sizing: inherit; color: #242a31; line-height: 1em; opacity: 0; outline: none; padding-left: 4px; transition: opacity 150ms ease 0s; width: 20px;"><span class="_15qrizw" style="box-sizing: inherit; font-size: 16px; outline: none; vertical-align: middle;"><svg class="_13gjrqj" fill="none" height="1em" preserveaspectratio="xMidYMid meet" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" stroke="currentColor" viewbox="0 0 24 24" width="1em" xmlns="http://www.w3.org/2000/svg"><g><path d="M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71"></path><path d="M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71"></path></g></svg></span></a></div>
</h3>
<div class="_1fvezoch" style="background-color: white; box-sizing: inherit; color: #3b454e; font-family: Roboto, sans-serif; font-size: 16px; margin: 24px 0px 32px; outline: none; overflow: visible; padding: 0px; position: relative; white-space: pre-wrap;">
<div class="_1b01woph" style="box-sizing: inherit; margin: 0px; outline: none; overflow: auto; padding: 0px; position: relative;">
<table class="_1fk6qwo" data-key="9c89ebff70cb44c984d4e9c608d6b6fa" style="background: rgb(157, 170, 182); border-collapse: collapse; box-sizing: inherit; outline: none; position: relative; width: 477px;"><tbody style="box-sizing: inherit; outline: none;">
<tr class="_1qrb0i4" data-key="2b4edbf04e68474eb6e6e257b59934c4" style="background: rgb(255, 255, 255); border-bottom: 2px solid rgb(230, 236, 241); border-image: initial; border-left: none; border-right: none; border-top: none; box-sizing: inherit; color: #9daab6; font-size: 16px; outline: none; padding: 10px;"><td class="_1ji9zne" data-key="00d83287359b424ea5e24260cd610139" data-table="cell" style="-webkit-box-align: start; align-items: start; align-self: start; border-bottom: none; border-right: none; border-top: none; box-sizing: inherit; outline: none; padding: 8px; position: relative; width: auto;"><div class="_ued81cg" data-key="429301d9d391488e87c9206872eb5bde" style="box-sizing: inherit; color: inherit; outline: none; position: relative;">
<span class="_1o3dmghf" style="box-sizing: inherit; line-height: 1.5; outline: none;"><span data-key="e1a1f2422c764391bdb1081556aabb6a" style="box-sizing: inherit; outline: none;"><span data-offset-key="e1a1f2422c764391bdb1081556aabb6a:0" style="box-sizing: inherit; outline: none;"><span class="_u5j6yl" style="box-sizing: inherit; font-weight: 700; outline: none;">ID</span></span></span></span></div>
</td><td class="_1ji9zne" data-key="a7991ef132724880b699d592141ae6d1" data-table="cell" style="-webkit-box-align: start; align-items: start; align-self: start; border-bottom: none; border-right: none; border-top: none; box-sizing: inherit; outline: none; padding: 8px; position: relative; width: auto;"><div class="_ued81cg" data-key="5c4151c06c434156bd7dcd0b4c5c5bb3" style="box-sizing: inherit; color: inherit; outline: none; position: relative;">
<span class="_1o3dmghf" style="box-sizing: inherit; line-height: 1.5; outline: none;">It refers to the ID of this plugin. It will be used by other plugins to connect with this plugin.</span></div>
<div class="_ued81cg" data-key="212aa3a90c4a40f8aba890b84be16677" style="box-sizing: inherit; color: inherit; outline: none; position: relative;">
<span class="_1o3dmghf" style="box-sizing: inherit; line-height: 1.5; outline: none;"><span data-key="e4aed9525202411bbd4734b8c837b92f" style="box-sizing: inherit; outline: none;"><span data-offset-key="e4aed9525202411bbd4734b8c837b92f:0" style="box-sizing: inherit; outline: none;">e.g. : </span><span data-offset-key="e4aed9525202411bbd4734b8c837b92f:1" style="box-sizing: inherit; outline: none;"><code class="_146ac1z" spellcheck="false" style="-webkit-box-decoration-break: clone; background-color: #f5f7f9; border-radius: 3px; box-sizing: inherit; display: inline-block; font-family: "Source Code Pro", Menlo, monospace; font-size: 13.6px; margin: 0px 1px; outline: none; padding: 3px 6px;">com.eclipse.basic</code></span></span></span></div>
</td></tr>
<tr class="_1qrb0i4" data-key="f5c683e66e1945f395ddccb57a8c6a42" style="background: rgb(255, 255, 255); border-bottom: 1px solid rgb(230, 236, 241); border-image: initial; border-left: none; border-right: none; border-top: none; box-sizing: inherit; outline: none; padding: 10px;"><td class="_1ji9zne" data-key="1ea04a03f86841ab9fe6f0f077f2809c" data-table="cell" style="-webkit-box-align: start; align-items: start; align-self: start; border-bottom: none; border-right: none; border-top: none; box-sizing: inherit; outline: none; padding: 8px; position: relative; width: auto;"><div class="_ued81cg" data-key="08aba2c60f3046cf86b718e97385c7b1" style="box-sizing: inherit; color: inherit; outline: none; position: relative;">
<span class="_2he8v2h" style="box-sizing: inherit; font-size: 16px; line-height: 1.625; outline: none;"><span data-key="810820416aa543fda950309bbbdfc993" style="box-sizing: inherit; outline: none;"><span data-offset-key="810820416aa543fda950309bbbdfc993:0" style="box-sizing: inherit; outline: none;"><span class="_u5j6yl" style="box-sizing: inherit; font-weight: 700; outline: none;">Version</span></span></span></span></div>
</td><td class="_1ji9zne" data-key="a70f012e976d4477ab8235ff09072762" data-table="cell" style="-webkit-box-align: start; align-items: start; align-self: start; border-bottom: none; border-right: none; border-top: none; box-sizing: inherit; outline: none; padding: 8px; position: relative; width: auto;"><div class="_ued81cg" data-key="120e18e83db44fbab803824499a46bd4" style="box-sizing: inherit; color: inherit; outline: none; position: relative;">
<span class="_2he8v2h" style="box-sizing: inherit; font-size: 16px; line-height: 1.625; outline: none;"><span data-key="d6aee0bbf6614b26b22c9ae3c6b66489" style="box-sizing: inherit; outline: none;"><span data-offset-key="d6aee0bbf6614b26b22c9ae3c6b66489:0" style="box-sizing: inherit; outline: none;">When other plugins will integrate with your plugin, it will provide version also with the </span><span data-offset-key="d6aee0bbf6614b26b22c9ae3c6b66489:1" style="box-sizing: inherit; outline: none;"><code class="_146ac1z" spellcheck="false" style="-webkit-box-decoration-break: clone; background-color: #f5f7f9; border-radius: 3px; box-sizing: inherit; display: inline-block; font-family: "Source Code Pro", Menlo, monospace; font-size: 13.6px; margin: 0px 1px; outline: none; padding: 3px 6px;">ID</code></span><span data-offset-key="d6aee0bbf6614b26b22c9ae3c6b66489:2" style="box-sizing: inherit; outline: none;"> to uniquely identify the code.</span></span></span></div>
</td></tr>
<tr class="_1qrb0i4" data-key="5fdb06f725e8445b8fab2cb0674c6844" style="background: rgb(255, 255, 255); border-bottom: 1px solid rgb(230, 236, 241); border-image: initial; border-left: none; border-right: none; border-top: none; box-sizing: inherit; outline: none; padding: 10px;"><td class="_1ji9zne" data-key="df3bef4304ae4c29a8007d0b3c1ce736" data-table="cell" style="-webkit-box-align: start; align-items: start; align-self: start; border-bottom: none; border-right: none; border-top: none; box-sizing: inherit; outline: none; padding: 8px; position: relative; width: auto;"><div class="_ued81cg" data-key="ce47d4162aeb41e899a6eecb4f11e7ab" style="box-sizing: inherit; color: inherit; outline: none; position: relative;">
<span class="_2he8v2h" style="box-sizing: inherit; font-size: 16px; line-height: 1.625; outline: none;"><span data-key="75c064c1fac04f14aad9983dc9f2f0bc" style="box-sizing: inherit; outline: none;"><span data-offset-key="75c064c1fac04f14aad9983dc9f2f0bc:0" style="box-sizing: inherit; outline: none;"><span class="_u5j6yl" style="box-sizing: inherit; font-weight: 700; outline: none;">Name</span></span></span></span></div>
</td><td class="_1ji9zne" data-key="7bdd0625b7f44bbe82a8530296b908f5" data-table="cell" style="-webkit-box-align: start; align-items: start; align-self: start; border-bottom: none; border-right: none; border-top: none; box-sizing: inherit; outline: none; padding: 8px; position: relative; width: auto;"><div class="_ued81cg" data-key="56ad3a3566dd49768e05c4b6d6bbc3d5" style="box-sizing: inherit; color: inherit; outline: none; position: relative;">
<span class="_2he8v2h" style="box-sizing: inherit; font-size: 16px; line-height: 1.625; outline: none;">Name is used as Metadata for the plugin</span></div>
</td></tr>
<tr class="_1qrb0i4" data-key="e249de47dc7441c8b895427690e75040" style="background: rgb(255, 255, 255); border-bottom: 1px solid rgb(230, 236, 241); border-image: initial; border-left: none; border-right: none; border-top: none; box-sizing: inherit; outline: none; padding: 10px;"><td class="_1ji9zne" data-key="82fa602d61fb4d798db612132d79589c" data-table="cell" style="-webkit-box-align: start; align-items: start; align-self: start; border-bottom: none; border-right: none; border-top: none; box-sizing: inherit; outline: none; padding: 8px; position: relative; width: auto;"><div class="_ued81cg" data-key="a6ec7e9b65b44db68b8e7ee55d7ff552" style="box-sizing: inherit; color: inherit; outline: none; position: relative;">
<span class="_2he8v2h" style="box-sizing: inherit; font-size: 16px; line-height: 1.625; outline: none;"><span data-key="2154a8de01b64d629a893ea87dba4a80" style="box-sizing: inherit; outline: none;"><span data-offset-key="2154a8de01b64d629a893ea87dba4a80:0" style="box-sizing: inherit; outline: none;"><span class="_u5j6yl" style="box-sizing: inherit; font-weight: 700; outline: none;">Vendor</span></span></span></span></div>
</td><td class="_1ji9zne" data-key="96be3f435afe41f6b29243bcb7e715f3" data-table="cell" style="-webkit-box-align: start; align-items: start; align-self: start; border-bottom: none; border-right: none; border-top: none; box-sizing: inherit; outline: none; padding: 8px; position: relative; width: auto;"><div class="_ued81cg" data-key="9b671b2e98cc47f4b583071f299a0ffc" style="box-sizing: inherit; color: inherit; outline: none; position: relative;">
<span class="_2he8v2h" style="box-sizing: inherit; font-size: 16px; line-height: 1.625; outline: none;">Name of the vendor this plugin belongs to.</span></div>
</td></tr>
<tr class="_1qrb0i4" data-key="79674e7e5e0f48d684d35e8883f8d2b4" style="background: rgb(255, 255, 255); border-bottom: 1px solid rgb(230, 236, 241); border-image: initial; border-left: none; border-right: none; border-top: none; box-sizing: inherit; outline: none; padding: 10px;"><td class="_1ji9zne" data-key="e0959ab95f1b4d938196b215e8dc46d8" data-table="cell" style="-webkit-box-align: start; align-items: start; align-self: start; border-bottom: none; border-right: none; border-top: none; box-sizing: inherit; outline: none; padding: 8px; position: relative; width: auto;"><div class="_ued81cg" data-key="78f2bff286ee4c189488c0aeafa0a91d" style="box-sizing: inherit; color: inherit; outline: none; position: relative;">
<span class="_2he8v2h" style="box-sizing: inherit; font-size: 16px; line-height: 1.625; outline: none;"><span data-key="1fcddb9289654d908d20f5f233462d30" style="box-sizing: inherit; outline: none;"><span data-offset-key="1fcddb9289654d908d20f5f233462d30:0" style="box-sizing: inherit; outline: none;"><span class="_u5j6yl" style="box-sizing: inherit; font-weight: 700; outline: none;">Activator</span></span></span></span></div>
</td><td class="_1ji9zne" data-key="27c8f81bc8184d199b3b8df9f013416a" data-table="cell" style="-webkit-box-align: start; align-items: start; align-self: start; border-bottom: none; border-right: none; border-top: none; box-sizing: inherit; outline: none; padding: 8px; position: relative; width: auto;"><div class="_ued81cg" data-key="5e2a0a69d9a34561a6aa0821603cf0af" style="box-sizing: inherit; color: inherit; outline: none; position: relative;">
<span class="_2he8v2h" style="box-sizing: inherit; font-size: 16px; line-height: 1.625; outline: none;">It will refer to the first class (Activator) has to be called when this plugin will execute.</span></div>
</td></tr>
</tbody></table>
</div>
</div>
<br />
<h3 style="text-align: left;">
Dependencies</h3>
<br />
<table class="_1fk6qwo" data-key="54b5a7c216c44bbda5f1782acaeb7921" style="background: rgb(157, 170, 182); border-collapse: collapse; box-sizing: inherit; color: #3b454e; font-family: Roboto, sans-serif; font-size: 16px; outline: none; position: relative; white-space: pre-wrap; width: 477px;"><tbody style="box-sizing: inherit; outline: none;">
<tr class="_1qrb0i4" data-key="b4e0686a09a5446bb884007b9bd3eaff" style="background: rgb(255, 255, 255); border-bottom: 2px solid rgb(230, 236, 241); border-image: initial; border-left: none; border-right: none; border-top: none; box-sizing: inherit; color: #9daab6; outline: none; padding: 10px;"><td class="_1ji9zne" data-key="7fcd9944180146e5a96d6b3a180ec271" data-table="cell" style="-webkit-box-align: start; align-items: start; align-self: start; border-bottom: none; border-right: none; border-top: none; box-sizing: inherit; outline: none; padding: 8px; position: relative; width: auto;"><div class="_ued81cg" data-key="715d6fbcce38455bb8eebf9e3e83f5ce" style="box-sizing: inherit; outline: none; position: relative;">
<span class="_1o3dmghf" style="box-sizing: inherit; line-height: 1.5; outline: none;"><span style="color: black;">List of Plug-ins required by the current plugin. Each plugin would have dependency on the other plugins and uses the code of other plugin. </span><span style="color: rgba(0 , 0 , 0 , 0);">
</span><span style="color: black;">In required Plugin, the version (or range of version) of the Plug-in can also me mentioned which is required.</span></span></div>
<div class="_ued81cg" data-key="81b0093f3744450eac33d57f83c75c81" style="box-sizing: inherit; outline: none; position: relative;">
<span class="_1o3dmghf" style="box-sizing: inherit; line-height: 1.5; outline: none;"><span data-key="20934f5ea23445be81410bc05158b271" style="box-sizing: inherit; outline: none;"><span data-offset-key="20934f5ea23445be81410bc05158b271:0" style="box-sizing: inherit; outline: none;"><span style="color: black;">For example, the basic eclipse plugins are </span></span><span data-offset-key="20934f5ea23445be81410bc05158b271:1" style="box-sizing: inherit; color: inherit; outline: none;"><code class="_146ac1z" spellcheck="false" style="-webkit-box-decoration-break: clone; background-color: #f5f7f9; border-radius: 3px; box-sizing: inherit; display: inline-block; font-family: "Source Code Pro", Menlo, monospace; font-size: 13.6px; margin: 0px 1px; outline: none; padding: 3px 6px;">org.eclipse.ui</code></span><span data-offset-key="20934f5ea23445be81410bc05158b271:2" style="box-sizing: inherit; color: inherit; outline: none;"> </span><span data-offset-key="20934f5ea23445be81410bc05158b271:2" style="box-sizing: inherit; outline: none;"><span style="color: black;">will be used for various UI design.</span></span></span></span></div>
<div class="_ued81cg" data-key="cec0803e40aa433ca9d9e2968541cd16" style="box-sizing: inherit; outline: none; position: relative;">
<span class="_1o3dmghf" style="box-sizing: inherit; line-height: 1.5; outline: none;"><span style="color: black;">Version can me mentioned here : </span><span style="color: rgba(0 , 0 , 0 , 0);"> </span></span></div>
<div class="_ued81cg" data-key="1f016b2ee913495f88739bad7d4209bd" style="box-sizing: inherit; color: inherit; outline: none; position: relative;">
<span class="_1o3dmghf" style="box-sizing: inherit; line-height: 1.5; outline: none;"><span data-key="7db7939319f345bfb9df25e5eedb0142" style="box-sizing: inherit; outline: none;"><span data-offset-key="7db7939319f345bfb9df25e5eedb0142:0" style="box-sizing: inherit; outline: none;"><span data-slate-zero-width="z" style="box-sizing: inherit; outline: none;"></span></span></span><span data-key="c3565e3630ea4e248df98f9df93e1541" data-slate-void="true" style="box-sizing: inherit; outline: none;"><span style="box-sizing: inherit; outline: none;"><span class="_36rlri" data-key="c3565e3630ea4e248df98f9df93e1541" style="box-sizing: inherit; display: inline-block; outline: none;"><img class="_1p03jk75" height="320" src="https://firebasestorage.googleapis.com/v0/b/gitbook-28427.appspot.com/o/assets%2F-LGsE4uqaqG_O_Xhdj1v%2F-LGxwk6DH2JFzKWWngEA%2F-LGxxBcv_m2-SvFFe1Dc%2Feclipse_rcp_manifest_mf_plugin_version.png?alt=media&token=9d34ef5f-93b0-4ada-8238-b0918deb4bf9" style="border: 2px solid transparent; box-sizing: inherit; display: inline-block; max-width: 300px; outline: none; padding: 3px; vertical-align: middle;" width="240" /></span></span></span><span data-key="7c4491ddd72a406c8c103bead276a164" style="box-sizing: inherit; outline: none;"><span data-offset-key="7c4491ddd72a406c8c103bead276a164:0" style="box-sizing: inherit; outline: none;"><span data-slate-zero-width="z" style="box-sizing: inherit; outline: none;"></span></span></span></span></div>
</td></tr>
<tr class="_1qrb0i4" data-key="ff236323331e418b9f174911d039dfd8" style="background: rgb(255, 255, 255); border-bottom: 1px solid rgb(230, 236, 241); border-image: initial; border-left: none; border-right: none; border-top: none; box-sizing: inherit; outline: none; padding: 10px;"><td class="_1ji9zne" data-key="2e69277be1254ff5bd6ba9bf6d9e3d08" data-table="cell" style="-webkit-box-align: start; align-items: start; align-self: start; border-bottom: none; border-right: none; border-top: none; box-sizing: inherit; outline: none; padding: 8px; position: relative; width: auto;"><div class="_ued81cg" data-key="a82d684a6f8040e487f1cca8ff149c3f" style="box-sizing: inherit; color: inherit; outline: none; position: relative;">
<span class="_2he8v2h" style="box-sizing: inherit; line-height: 1.625; outline: none;">Imported Packages</span></div>
</td><td class="_1ji9zne" data-key="9b067210b7f347cdaa68e53b9a4807d4" data-table="cell" style="-webkit-box-align: start; align-items: start; align-self: start; border-bottom: none; border-right: none; border-top: none; box-sizing: inherit; outline: none; padding: 8px; position: relative; width: auto;"><div class="_ued81cg" data-key="04199eb51e424981802cd50c57f664d4" style="box-sizing: inherit; color: inherit; outline: none; position: relative;">
<span class="_2he8v2h" style="box-sizing: inherit; line-height: 1.625; outline: none;">Instead of entire plugin only some specific package of the plugin is required, then it has to be specified here.</span></div>
</td></tr>
</tbody></table>
<br />
<div class="_1fvezoch" style="background-color: white; box-sizing: inherit; color: #3b454e; font-family: Roboto, sans-serif; font-size: 16px; margin: 24px 0px 32px; outline: none; overflow: visible; padding: 0px; position: relative; white-space: pre-wrap;">
</div>
</div>
Harikrushna Vhttp://www.blogger.com/profile/09928292899811466018noreply@blogger.com0tag:blogger.com,1999:blog-1407328464037557308.post-70126858582686612582018-09-09T23:24:00.001-07:002018-09-09T23:24:44.959-07:00Programmatically showing a View from an Eclipse Plug-in<div dir="ltr" style="text-align: left;" trbidi="on">
<h1 class="grid--cell fs-headline1 fl1" itemprop="name" style="background-color: white; border: 0px; box-sizing: inherit; color: #242729; flex: 1 1 auto !important; font-family: Arial, "Helvetica Neue", Helvetica, sans-serif; font-size: 2.07692rem !important; font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; font-weight: inherit; line-height: 1.3; margin: 0px 0px 0.5em; padding: 0px; vertical-align: baseline;">
<a class="question-hyperlink" href="https://stackoverflow.com/questions/171824/programmatically-showing-a-view-from-an-eclipse-plug-in" style="border: 0px; box-sizing: inherit; color: #242729; cursor: pointer; font-size: 24px; font-stretch: inherit; font-style: inherit; font-variant: inherit; line-height: 1.35; margin: 0px 0px 0.5em; padding: 0px; text-decoration-line: none; vertical-align: baseline;">Programmatically showing a View from an Eclipse Plug-in</a></h1>
<div>
There are multiple ways of showing View in Eclipse :</div>
<div>
<br /></div>
<div>
1. get Workbench reference from PlatformUI and open view :</div>
<div>
<br /></div>
<div>
<span style="font-family: Courier New, Courier, monospace;">PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage().showView("MyViewId");</span></div>
<div>
<span style="font-family: Courier New, Courier, monospace;"><br /></span></div>
<div>
2. If you are calling from command then:</div>
<div>
<br /></div>
<div>
<span style="font-family: Courier New, Courier, monospace;">HandlerUtil.getActiveWorkbenchWindow(event).getActivePage().showView(</span><span style="font-family: "Courier New", Courier, monospace;">MyViewId</span><span style="font-family: Courier New, Courier, monospace;">);</span></div>
</div>
Harikrushna Vhttp://www.blogger.com/profile/09928292899811466018noreply@blogger.com1tag:blogger.com,1999:blog-1407328464037557308.post-72465207745450370482018-09-09T22:12:00.000-07:002018-09-09T22:25:15.552-07:00Eclipse collections<div dir="ltr" style="text-align: left;" trbidi="on">
<h2>
Eclipse collections</h2>
<br />
<b>Eclipse Collections</b> is advance Java collection framework. It has some additional data structures and features which is not available in Java Collection Framework.<br />
<br />
Eclipse Collections provides <b>memory efficient</b> implementation of Sets and Maps as well as primitive collections.<br />
<h3 style="text-align: left;">
Maven Dependency:</h3>
<div>
<style type="text/css">
p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Monaco; color: #4e9192}
p.p2 {margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Monaco}
p.p3 {margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Monaco; min-height: 15.0px}
span.s1 {color: #009193}
span.s2 {color: #4e9192}
span.s3 {text-decoration: underline}
span.s4 {color: #000000}
</style>
<br />
<div class="p1">
<span class="s1"><</span>dependency<span class="s1">></span></div>
<div class="p2">
<span class="Apple-converted-space"> </span><span class="s1"><</span><span class="s2">groupId</span><span class="s1">></span>org.eclipse.collections<span class="s1"></</span><span class="s2">groupId</span><span class="s1">></span></div>
<div class="p2">
<span class="Apple-converted-space"> </span><span class="s1"><</span><span class="s2">artifactId</span><span class="s1">></span>eclipse-collections-<span class="s3">api</span><span class="s1"></</span><span class="s2">artifactId</span><span class="s1">></span></div>
<div class="p1">
<span class="s4"> </span><span class="s1"><</span>version<span class="s1">></span><span class="s4">9.2.0</span><span class="s1"></</span>version<span class="s1">></span></div>
<div class="p1">
<span class="s1"></</span>dependency<span class="s1">></span></div>
<div class="p3">
<br /></div>
<div class="p1">
<span class="s1"><</span>dependency<span class="s1">></span></div>
<div class="p2">
<span class="Apple-converted-space"> </span><span class="s1"><</span><span class="s2">groupId</span><span class="s1">></span>org.eclipse.collections<span class="s1"></</span><span class="s2">groupId</span><span class="s1">></span></div>
<div class="p2">
<span class="Apple-converted-space"> </span><span class="s1"><</span><span class="s2">artifactId</span><span class="s1">></span>eclipse-collections<span class="s1"></</span><span class="s2">artifactId</span><span class="s1">></span></div>
<div class="p1">
<span class="s4"> </span><span class="s1"><</span>version<span class="s1">></span><span class="s4">9.2.0</span><span class="s1"></</span>version<span class="s1">></span></div>
<div class="p1">
<span class="s1"></</span>dependency<span class="s1">></span></div>
<div class="p1">
<span class="s1"><br /></span></div>
<div class="p1">
<span class="s1"><br /></span></div>
<h3 style="text-align: left;">
<span style="color: black; font-family: "times"; font-size: small;">Comparison</span><span style="color: black; font-family: "times"; font-size: small;"> with Java</span></h3>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://4.bp.blogspot.com/-vQQ30IvxRVg/W5X53kiQn9I/AAAAAAAAZkU/0M-g_5IbhCE9n5qgOVBx-hSFVmQ4CrnIQCLcBGAs/s1600/Screen%2BShot%2B2018-09-10%2Bat%2B10.27.25%2BAM.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="458" data-original-width="1466" height="196" src="https://4.bp.blogspot.com/-vQQ30IvxRVg/W5X53kiQn9I/AAAAAAAAZkU/0M-g_5IbhCE9n5qgOVBx-hSFVmQ4CrnIQCLcBGAs/s640/Screen%2BShot%2B2018-09-10%2Bat%2B10.27.25%2BAM.png" width="640" /></a></div>
<div>
<span style="color: black; font-family: "times"; font-size: small;"><br /></span></div>
<div class="p1">
<span style="color: black; font-family: "times"; font-size: small;"><br /></span></div>
</div>
<h4 style="text-align: left;">
<span style="font-weight: normal;">ArrayList ( JDK )</span></h4>
<style type="text/css">
p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Monaco}
p.p2 {margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Monaco; color: #7e504f}
p.p3 {margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Monaco; color: #3933ff}
span.s1 {text-decoration: underline}
span.s2 {color: #7e504f}
span.s3 {color: #931a68}
span.s4 {color: #000000}
span.s5 {color: #3933ff}
span.Apple-tab-span {white-space:pre}
</style>
<br />
<div class="p1">
<span class="s1">List</span><String> <span class="s2">comparison</span> = <span class="s3">new</span> <span class="s1">ArrayList</span><String>();</div>
<div class="p2">
comparison<span class="s4">.add(</span><span class="s5">"Bangalore"</span><span class="s4">);</span></div>
<div class="p2">
comparison<span class="s4">.add(</span><span class="s5">"Ahmedabad"</span><span class="s4">);</span></div>
<div class="p3">
<span class="s2">comparison</span><span class="s4">.add(</span>"Pune"<span class="s4">);</span></div>
<div class="p3">
<span class="s2">comparison</span><span class="s4">.add(</span>"Pune"<span class="s4">);</span></div>
<div class="p3">
<span class="s4"><br /></span></div>
<div class="p3">
<span class="s4"></span></div>
<div style="-webkit-text-stroke-width: 0px; color: black; font-family: Times; font-size: medium; font-style: normal; font-variant-caps: normal; font-variant-ligatures: normal; font-weight: 400; letter-spacing: normal; margin: 0px; orphans: 2; text-align: left; text-decoration-color: initial; text-decoration-style: initial; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;">
</div>
<br />
<h4 style="-webkit-text-stroke-width: 0px; color: black; font-family: Times; font-size: medium; font-style: normal; font-variant-caps: normal; font-variant-ligatures: normal; font-weight: 400; letter-spacing: normal; margin: 0px; orphans: 2; text-align: left; text-decoration-color: initial; text-decoration-style: initial; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;">
Fast List ( Eclipse Collection)</h4>
<div class="p1">
<style type="text/css">
p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Monaco}
span.s1 {text-decoration: underline}
span.s2 {color: #7e504f}
span.s3 {color: #3933ff}
</style>
</div>
<div class="p1">
<span class="s1">MutableList</span><String> <span class="s2">comparison</span> = <span class="s1"><b>FastList</b></span>.newListWith(<span class="s3">"Bangalore"</span>, <span class="s3">"Ahmedabad"</span>, <span class="s3">"Pune"</span>, <span class="s3">"Pune"</span>);</div>
<div class="p3">
<span class="s4"><br /></span></div>
<div class="p3">
<span class="s4"><br /></span></div>
<div class="p3">
<br /></div>
Set (JDK)<br />
<style type="text/css">
p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Monaco}
span.s1 {text-decoration: underline}
span.s2 {color: #7e504f}
span.s3 {color: #3933ff}
</style><br />
<div>
<style type="text/css">
p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Monaco}
p.p2 {margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Monaco; color: #3933ff}
p.p3 {margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Monaco; color: #7e504f}
span.s1 {text-decoration: underline}
span.s2 {color: #7e504f}
span.s3 {color: #931a68}
span.s4 {color: #000000}
span.s5 {color: #3933ff}
</style>
<br />
<div class="p1">
<span class="s1">Set</span><String> <span class="s2">comparison</span> = <span class="s3">new</span> <span class="s1">HashSet</span><String>();</div>
<div class="p2">
<span class="s2">comparison</span><span class="s4">.add(</span>"Bangalore"<span class="s4">);</span></div>
<div class="p2">
<span class="s2">comparison</span><span class="s4">.add(</span>"Ahmedabad"<span class="s4">);</span></div>
<div class="p3">
comparison<span class="s4">.add(</span><span class="s5">"Pune"</span><span class="s4">);</span></div>
<div class="p3">
comparison<span class="s4">.add(</span><span class="s5">"Delhi"</span><span class="s4">);</span></div>
<div class="p3">
<span class="s4"><br /></span></div>
</div>
<div>
Unified Set ( Eclipse Collection)</div>
<div>
<style type="text/css">
p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Monaco}
span.s1 {text-decoration: underline}
span.s2 {text-decoration: underline ; color: #7e504f}
span.s3 {color: #3933ff}
</style>
<br />
<div class="p1">
<span class="s1">Set</span><String> <span class="s2">comparison</span> = <span class="s1"><b>UnifiedSet</b></span>.newSetWith(<span class="s3">"Bangalore"</span>, <span class="s3">"Ahmedabad"</span>, <span class="s3">"Pune"</span>, <span class="s3">"Delhi"</span>);</div>
</div>
<div>
<br /></div>
<div>
Map (JDK)<br />
<div>
</div>
</div>
<div>
<style type="text/css">
p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Monaco}
p.p2 {margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Monaco; min-height: 15.0px}
span.s1 {text-decoration: underline}
span.s2 {color: #7e504f}
span.s3 {color: #931a68}
span.s4 {color: #3933ff}
span.s5 {text-decoration: underline ; color: #7e504f}
</style>
<br />
<div class="p1">
<span class="s1">Map</span><Integer, String> <span class="s2">map</span> = <span class="s3">new</span> <span class="s1">HashMap</span><Integer, String>();</div>
<div class="p1">
<span class="s2">map</span>.put(1, <span class="s4">"1"</span>);</div>
<div class="p1">
<span class="s2">map</span>.put(2, <span class="s4">"2"</span>);</div>
<div class="p1">
<span class="s2">map</span>.put(3, <span class="s4">"3"</span>);</div>
<div class="p2">
<br /></div>
<div class="p2">
</div>
<div style="-webkit-text-stroke-width: 0px; color: black; font-family: Times; font-size: medium; font-style: normal; font-variant-caps: normal; font-variant-ligatures: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-decoration-color: initial; text-decoration-style: initial; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;">
</div>
<br />
<div style="-webkit-text-stroke-width: 0px; color: black; font-family: Times; font-size: medium; font-style: normal; font-variant-caps: normal; font-variant-ligatures: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-decoration-color: initial; text-decoration-style: initial; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;">
Unified Map ( Eclipse Collection)</div>
<div class="p1">
<span class="s1">MutableMap</span><Integer, String> <span class="s5">map</span> = <span class="s1"><b>UnifiedMap</b></span>.newWithKeysValues(1, <span class="s4">"1"</span>, 2, <span class="s4">"2"</span>, 3, <span class="s4">"3"</span>);</div>
</div>
<div>
<br /></div>
<div>
<b>Conclusion:</b></div>
<div>
In this blog, I've tried to provide the similar Data structure of JDK and Eclipse Collection.</div>
</div>
Harikrushna Vhttp://www.blogger.com/profile/09928292899811466018noreply@blogger.com0tag:blogger.com,1999:blog-1407328464037557308.post-7876519647657250552018-09-09T05:45:00.001-07:002018-09-09T05:45:34.614-07:00Spring Boot read file on heroku<div dir="ltr" style="text-align: left;" trbidi="on">
<h2 style="text-align: left;">
Spring Boot read file on heroku</h2>
Spring Boot will fail with "getResource()" method to read the file in as on heroku it probably inside of a JAR file, which means it is not a regular file, and must be read as an input stream:<br />
<br />
<style type="text/css">
p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Monaco}
span.s1 {color: #931a68}
span.s2 {color: #0326cc}
</style>
<br />
<div class="p1">
MyService.<span class="s1">class</span>.getClassLoader()</div>
<div class="p1">
<span class="Apple-converted-space"> </span>.getResource("<span class="s2">FILENAME.txt"</span>);</div>
<div class="p1">
<br /></div>
<div class="p1">
<br /></div>
As a solution the file has to be read with "getResourceAsStream()":<div>
<br /><br />
<div>
<style type="text/css">
p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Monaco}
span.s1 {color: #931a68}
span.s2 {color: #0326cc}
</style>
<div class="p1">
MyService.<span class="s1">class</span>.getClassLoader()</div>
<div class="p1">
<span class="Apple-converted-space"> </span>.getResourceAsStream("<span class="s2">FILENAME.txt"</span>);</div>
</div>
</div>
</div>
Harikrushna Vhttp://www.blogger.com/profile/09928292899811466018noreply@blogger.com0tag:blogger.com,1999:blog-1407328464037557308.post-18142846403036057992018-01-25T01:48:00.000-08:002018-01-25T01:48:19.384-08:00Das Produkt konnte nicht gestartet werden, da der zugehörige Arbeitsbereich derzeit von einer anderen Eclipse-Anwendung verwendet wird<div dir="ltr" style="text-align: left;" trbidi="on">
Wenn Sie am Anfang von Eclipse oder einem RCP-basierten Produkt einen Fehler sehen, dann ist hier die Lösung:<br />
<br />
Fehlermeldung:<br />
<br />
"Could not launch the product because the associated workspace is currently in use by another Eclipse application."<br />
<br />
<br />
<div>
oder<br />
<br />
<span style="background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13.2px;">“Workspace in use or cannot be created chose a different one.”</span><br />
<span style="background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13.2px;"><br /></span>
<span style="background-color: white; font-size: 13.2px;"><span style="color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif;">Lösung: </span></span><br />
<span style="background-color: white; font-size: 13.2px;"><span style="color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif;"><br /></span></span>
<span style="background-color: white; font-size: 13.2px;"><span style="color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif;">Gehe zum Arbeitsplatz</span></span><br />
<span style="background-color: white; font-size: 13.2px;"><span style="color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif;">Datei löschen: </span></span><b style="background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13.2px;"><workspace location>/.metadata/.lock</b><br />
<span style="background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13.2px;"><br /></span></div>
<div>
Grund:<br />
Durch Eclipse kann der Benutzer mehrere Arbeitsbereichsspeicherorte erstellen. Ein Arbeitsbereich kann jeweils von einem Benutzer bearbeitet werden. Ein Arbeitsbereich enthält die Daten zu verschiedenen Projektkonfigurationen und lokalen Dateispeichern.<br />
<br />
Um zu vermeiden, dass mehrere Benutzer auf denselben Arbeitsbereich zugreifen, verwaltet eclipse eine ".lock" -Datei im Arbeitsbereich. Eclipse wird diese ".lock" -Datei entfernen, wenn Sie den Eclipse schließen.<br />
<br />
In einigen Fällen stürzt Eclipse jedoch aufgrund eines Fehlers ab, aufgrund dessen die Datei ".lock" nicht aus dem Arbeitsbereich entfernt werden kann. Wenn Sie Eclipse mit demselben Arbeitsbereich öffnen, wird dadurch ein Fehler angezeigt: "Das Produkt konnte nicht gestartet werden, da der zugehörige Arbeitsbereich derzeit von einer anderen Eclipse-Anwendung verwendet wird." oder "Arbeitsbereich in Verwendung oder kann nicht erstellt werden, wählen Sie einen anderen."<br />
<br />
Wenn wir in diesem Fall die Datei ".lock" aus <workspace location>/.metadata /.lock entfernen, wird das Problem behoben.<br />
<br /></div>
</div>
Harikrushna Vhttp://www.blogger.com/profile/09928292899811466018noreply@blogger.com0tag:blogger.com,1999:blog-1407328464037557308.post-83083803979044107942018-01-25T00:21:00.000-08:002018-01-25T01:25:20.913-08:00Lead Engineer-Java<div dir="ltr" style="text-align: left;" trbidi="on">
<h2 style="text-align: left;">
<b>Lead Engineer-Java</b></h2>
<div class="p1">
<b>Responsibilities</b></div>
<style type="text/css">
p.p1 {margin: 0.0px 0.0px 2.0px 0.0px; font: 14.0px 'Helvetica Neue'; color: #454545}
li.li2 {margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px 'Helvetica Neue'; color: #454545}
span.s1 {font: 10.0px Menlo}
span.Apple-tab-span {white-space:pre}
ul.ul1 {list-style-type: disc}
</style>
<br />
<ul class="ul1">
<li class="li2"><span class="s1"></span>Design, development and deployment of backend services in Java or Python Django<br />
</li>
<li class="li2"><span class="s1"></span>Adoption of development best practices like Unit test automation, static testing, TDD and Continuous integration<br />
</li>
<li class="li2"><span class="s1"></span>Create prototypes and build POC for new components with the latest state-of-the-art technologies<br />
</li>
<li class="li2"><span class="s1"></span>Build High Performance, scalable systems that can withstand a daily load of a million hits.<br />
</li>
<li class="li2"><span class="s1"></span>Collaborate with Product Management and business teams to understand the requirements and convert into technical specifications</li>
</ul>
<div>
<style type="text/css">
p.p1 {margin: 0.0px 0.0px 2.0px 0.0px; font: 14.0px 'Helvetica Neue'; color: #454545}
li.li2 {margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px 'Helvetica Neue'; color: #454545}
span.s1 {font: 10.0px Menlo}
span.Apple-tab-span {white-space:pre}
ul.ul1 {list-style-type: disc}
</style>
<br />
<div class="p1">
<b>Minimum Qualifications</b></div>
<ul class="ul1">
<li class="li2"><span class="s1"></span>B Tech degree in any discipline, preferably in Computer science<br />
</li>
<li class="li2"><span class="s1"></span>6-9 years of Software development experience in Java/J2EE<br />
</li>
<li class="li2"><span class="s1"></span>Experience with frameworks like Spring, Struts, Python Django, Restful Webservices is highly desired.<br />
</li>
<li class="li2"><span class="s1"></span>Excellent knowledge of Relational Databases, SQL and ORM technologies (JPA2, Hibernate)<br />
</li>
<li class="li2"><span class="s1"></span>Strong problem-solving skills<br />
</li>
</ul>
<div>
<span style="color: #454545; font-family: "helvetica neue";"><span style="font-size: 12px;"><br /></span></span></div>
</div>
<div>
<style type="text/css">
p.p1 {margin: 0.0px 0.0px 2.0px 0.0px; font: 14.0px 'Helvetica Neue'; color: #454545}
li.li2 {margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px 'Helvetica Neue'; color: #454545}
span.s1 {font: 10.0px Menlo}
ul.ul1 {list-style-type: disc}
</style>
<br />
<div class="p1">
<b>Preferred Qualifications</b></div>
<ul class="ul1">
<li class="li2"><span class="s1"></span>Experience on Solr, Elastic search, Redis, Memcached, MongoDB, Hadoop, Micro</li>
</ul>
<div>
<span style="color: #454545; font-family: "helvetica neue";"><span style="font-size: 12px;"><br /></span></span></div>
<div>
<span style="font-family: "helvetica neue";"><span style="font-size: 12px;"><span style="color: white;"><a href="http://jhva.co/d2t4" style="background-color: #ffe599;">APPLY NOW</a></span><span style="color: #454545;"> </span></span></span></div>
<div>
<span style="color: #454545; font-family: "helvetica neue";"><span style="font-size: 12px;"><br /></span></span></div>
</div>
</div>
Harikrushna Vhttp://www.blogger.com/profile/09928292899811466018noreply@blogger.com0tag:blogger.com,1999:blog-1407328464037557308.post-49523874324873521192018-01-24T21:19:00.000-08:002018-01-25T00:18:38.211-08:00Backend Developer at RoofandFloor (3-5 years)<div dir="ltr" style="text-align: left;" trbidi="on">
<br />
<div class="s-grid-colMd24" style="background-color: white; border: 0px; box-sizing: border-box; float: left; font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; line-height: inherit; margin: 0px; padding: 0px 14px; position: relative; vertical-align: baseline; width: 988px;">
<h1 class="u-colorGray3" style="border: 0px; color: #333333; font-family: "helvetica neue", arial, helvetica, freesans, "liberation sans", "numbus sans l", sans-serif; font-size: 35px; font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; font-weight: 400; letter-spacing: -1px; line-height: 49px; margin: 0px 0px 14px; padding: 0px; text-align: left; vertical-align: baseline;">
Backend Developer at RoofandFloor (3-5 years)</h1>
<h2 style="border: 0px; color: #333333; font-family: inherit; font-size: 24px; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: 400; line-height: inherit; margin: 0px 0px 28px; padding: 14px 0px 0px; vertical-align: baseline;">
Job Description</h2>
<div>
<span style="color: #333333; font-family: "helvetica neue" , "arial" , "helvetica" , "freesans" , "liberation sans" , "numbus sans l" , sans-serif;"><span style="font-size: 13px;"><b>3-5 year experience</b></span></span></div>
<div>
<span style="color: #333333; font-family: "helvetica neue" , "arial" , "helvetica" , "freesans" , "liberation sans" , "numbus sans l" , sans-serif;"><span style="font-size: 13px;"><br /></span></span></div>
</div>
<div class="s-grid-colMd15" style="background-color: white; border: 0px; box-sizing: border-box; float: left; font-family: "helvetica neue", arial, helvetica, freesans, "liberation sans", "numbus sans l", sans-serif; font-size: 13px; font-stretch: inherit; line-height: inherit; margin: 0px; padding: 0px 14px; position: relative; vertical-align: baseline; width: 617.5px;">
<div class="job-description u-fontSize14 u-colorGray6" style="border: 0px; font-family: inherit; font-size: 14px; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: 21px; margin: 0px; padding: 0px; vertical-align: baseline;">
<div style="border: 0px; color: #666666; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin-bottom: 21px; overflow-wrap: break-word; padding: 0px; vertical-align: baseline; word-wrap: break-word;">
Responsibilities<br />
Execute full lifecycle software development<br />
Write well designed, testable, efficient code<br />
Produce specifications and determine operational feasibility<br />
Integrate software components into a fully functional software system<br />
Develop software verification plans and quality assurance procedures<br />
Document and maintain software functionality<br />
Comply with project plans<br />
Requirements<br />
B Tech degree in any discipline, preferably in Computer science<br />
Certification in programming Java or Python other selected languages preferred<br />
Excellent knowledge of Relational Databases, SQL and ORM technologies (JPA2, Hibernate)<br />
Prior experience in programming desired<br />
Strong problem solving skills</div>
<div style="border: 0px; color: #666666; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin-bottom: 21px; overflow-wrap: break-word; padding: 0px; vertical-align: baseline; word-wrap: break-word;">
<br /></div>
<div style="border: 0px; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin-bottom: 21px; overflow-wrap: break-word; padding: 0px; vertical-align: baseline; word-wrap: break-word;">
<a href="http://jhva.co/xgi3" target="_blank"><span style="color: blue;">APPLY NOW</span></a></div>
</div>
</div>
</div>
Harikrushna Vhttp://www.blogger.com/profile/09928292899811466018noreply@blogger.com0tag:blogger.com,1999:blog-1407328464037557308.post-47661687899510471352017-08-26T00:58:00.003-07:002018-11-16T10:04:19.100-08:00Arrays.asList() throws java.lang.UnsupportedOperationException<div dir="ltr" style="text-align: left;" trbidi="on">
<h2 style="text-align: left;">
Arrays.asList() throws java.lang.UnsupportedOperationException</h2>
You might get the UnsupportedException when you tries to use the <b>add() </b>method in the List.<br />
<br />
If your code looks something similar to this :<br />
<br />
<span style="font-family: "courier new" , "courier" , monospace;">String[] data = new String[] {"hari","krushna"};</span><br />
<span style="font-family: "courier new" , "courier" , monospace;">List<String> asList = Arrays.asList(data);</span><br />
<span style="font-family: "courier new" , "courier" , monospace;">asList.add("test");</span><br />
<br />
Then you will see the following exception :<br />
<br />
<span style="font-family: "courier new" , "courier" , monospace;">java.lang.UnsupportedOperationException</span><br />
<span style="font-family: "courier new" , "courier" , monospace;">at java.util.AbstractList.add(Unknown Source)</span><br />
<span style="font-family: "courier new" , "courier" , monospace;">at java.util.AbstractList.add(Unknown Source)</span><br />
<span style="font-family: "courier new" , "courier" , monospace;">at ArrayConvert.trial(ArrayConvert.java:14)</span><br />
<span style="font-family: "courier new" , "courier" , monospace;">at ArrayConvert.main(ArrayConvert.java:8)</span><br />
<span style="font-family: "courier new" , "courier" , monospace;"><br /></span>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://media.giphy.com/media/mq5y2jHRCAqMo/giphy.gif" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="512" data-original-width="512" height="320" src="https://media.giphy.com/media/mq5y2jHRCAqMo/giphy.gif" width="320" /></a></div>
<span style="font-family: "courier new" , "courier" , monospace;"><br /></span>
<br />
<b>Solution </b>of the above problem is :<br />
you need to create an ArrayList or LinkedList and add the objects to the newly created Array/LinkedList:<br />
<br />
<span style="font-family: "courier new" , "courier" , monospace;">String[] data = new String[] {"","",""};</span><br />
<span style="font-family: "courier new" , "courier" , monospace;">List<String> asList = Arrays.asList(data);</span><br />
<b><span style="font-family: "courier new" , "courier" , monospace;">List<String> newList = new LinkedList<>(asList);</span><span style="font-family: "courier new" , "courier" , monospace; white-space: pre;"> </span></b><br />
<span style="font-family: "courier new" , "courier" , monospace;">newList.add("test");</span><br />
<br />
<b>Reason </b>for the UnsupportedOperationException:<br />
<br />
Arrays.asList Method is returning a sub class object of Arrays class : <b>java.util.Arrays.ArrayList</b><br />
<b><br /></b>
Following is the signature of the class :<br />
<br />
<span class="kw" style="background-color: white; color: #7f0055; font-family: monospace; font-weight: bold; white-space: pre;">private</span><span style="background-color: white; font-family: monospace; white-space: pre;"> </span><span class="kw" style="background-color: white; color: #7f0055; font-family: monospace; font-weight: bold; white-space: pre;">static</span><span style="background-color: white; font-family: monospace; white-space: pre;"> </span><span class="kw" style="background-color: white; color: #7f0055; font-family: monospace; font-weight: bold; white-space: pre;">class</span><span style="background-color: white; font-family: monospace; white-space: pre;"> </span>ArrayList<span style="background-color: white; font-family: monospace; white-space: pre;"><E> </span><span class="kw" style="background-color: white; color: #7f0055; font-family: monospace; font-weight: bold; white-space: pre;">extends</span><span style="background-color: white; font-family: monospace; white-space: pre;"> </span><b>AbstractList</b><span style="background-color: white; font-family: monospace; white-space: pre;"><E> </span><span class="kw" style="background-color: white; color: #7f0055; font-family: monospace; font-weight: bold; white-space: pre;">implements</span><span style="background-color: white; font-family: monospace; white-space: pre;"> </span>RandomAccess<span style="background-color: white; font-family: monospace; white-space: pre;">, </span>java<span style="background-color: white; font-family: monospace; white-space: pre;">.</span>io<span style="background-color: white; font-family: monospace; white-space: pre;">.</span>Serializable<br />
<span style="background-color: white; font-family: monospace; white-space: pre;"><br /></span>
Here ArrayList extends java.util.AbstractList class.<br />
<br />
Following are the add() method in AbstractList:<br />
<br />
<div class="line" id="line-107" style="background-color: white; font-family: "Lucida Grande", Tahoma, Verdana, Arial, Helvetica, sans-serif; margin-top: -2px; padding-left: 10px;">
<pre style="display: inline;"><span class="kw" style="color: #7f0055; font-weight: bold;">public</span> <span class="kw" style="color: #7f0055; font-weight: bold;">boolean</span> add(E <span class="mark-0#0">e</span>) {</pre>
</div>
<div class="line" id="line-108" style="background-color: white; font-family: "Lucida Grande", Tahoma, Verdana, Arial, Helvetica, sans-serif; margin-top: -2px; padding-left: 10px;">
<pre style="display: inline;"> add(size(), <span class="mark-0#1">e</span>);</pre>
</div>
<div class="line" id="line-109" style="background-color: white; font-family: "Lucida Grande", Tahoma, Verdana, Arial, Helvetica, sans-serif; margin-top: -2px; padding-left: 10px;">
<pre style="display: inline;"> <span class="kw" style="color: #7f0055; font-weight: bold;">return</span> <span class="kw" style="color: #7f0055; font-weight: bold;">true</span>;</pre>
</div>
<div class="line" id="line-110" style="background-color: white; font-family: "Lucida Grande", Tahoma, Verdana, Arial, Helvetica, sans-serif; margin-top: -2px; padding-left: 10px;">
<pre style="display: inline;">}</pre>
</div>
<div class="line" id="line-110" style="background-color: white; font-family: "Lucida Grande", Tahoma, Verdana, Arial, Helvetica, sans-serif; margin-top: -2px; padding-left: 10px;">
<pre style="display: inline;"></pre>
</div>
<div class="line" id="line-147" style="background-color: white; font-family: "Lucida Grande", Tahoma, Verdana, Arial, Helvetica, sans-serif; margin-top: -2px; padding-left: 10px;">
<pre style="display: inline;"><span class="kw" style="color: #7f0055; font-weight: bold;">public</span> <span class="kw" style="color: #7f0055; font-weight: bold;">void</span> add(<span class="kw" style="color: #7f0055; font-weight: bold;">int</span> <span class="mark-4#0">index</span>, E <span class="mark-5#0">element</span>) {</pre>
</div>
<div class="line" id="line-148" style="background-color: white; font-family: "Lucida Grande", Tahoma, Verdana, Arial, Helvetica, sans-serif; margin-top: -2px; padding-left: 10px;">
<pre style="display: inline;"><span class="kw" style="color: #7f0055; font-weight: bold;"> throw</span> <span class="kw" style="color: #7f0055; font-weight: bold;">new</span> UnsupportedOperationException();</pre>
</div>
<div class="line" id="line-148" style="background-color: white; margin-top: -2px; padding-left: 10px;">
<div style="font-family: "lucida grande", tahoma, verdana, arial, helvetica, sans-serif;">
}</div>
<div style="font-family: "lucida grande", tahoma, verdana, arial, helvetica, sans-serif;">
<br /></div>
As you see above add() method is not implemented, so when add() method is called directly from asList() object then it will throw an Exception.<br />
<br />
This will be Runtime exception so difficult to identify at the time of coding. </div>
<b><br /></b>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://media.giphy.com/media/26gsjCZpPolPr3sBy/giphy.gif" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="500" data-original-width="500" height="200" src="https://media.giphy.com/media/26gsjCZpPolPr3sBy/giphy.gif" width="200" /></a></div>
<b><br /></b>
<br /></div>
Harikrushna Vhttp://www.blogger.com/profile/09928292899811466018noreply@blogger.com0tag:blogger.com,1999:blog-1407328464037557308.post-92076176684798574712017-06-22T23:32:00.001-07:002018-11-21T10:27:19.552-08:00Command Parameter RCP (Eclipse RCP)<div dir="ltr" style="text-align: left;" trbidi="on">
<h2 style="text-align: left;">
Command Parameter RCP (Eclipse RCP)</h2>
<div>
Open MANIFEST.MF file and right click on the Command and select "commandParameter" from "New".</div>
<div>
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://3.bp.blogspot.com/-I8d7KmrpFH8/WUnzeNThLhI/AAAAAAAAYl4/dYErzhqbVGk-6F2CCvytt-3uuH2l32ICwCLcBGAs/s1600/Screen%2BShot%2B2017-06-21%2Bat%2B9.46.05%2BAM.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="836" data-original-width="1098" height="243" src="https://3.bp.blogspot.com/-I8d7KmrpFH8/WUnzeNThLhI/AAAAAAAAYl4/dYErzhqbVGk-6F2CCvytt-3uuH2l32ICwCLcBGAs/s320/Screen%2BShot%2B2017-06-21%2Bat%2B9.46.05%2BAM.png" width="320" /></a></div>
<div>
After creating "commandParameter", enter the details, like "id", "name" and make optional as "false".</div>
<div>
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<a href="https://2.bp.blogspot.com/-KIfPFWOhhls/WUnzg9RGvtI/AAAAAAAAYl8/gLPPBECOTIQGPdTxdMDMnpZOUlof4qp-gCLcBGAs/s1600/Screen%2BShot%2B2017-06-21%2Bat%2B9.46.29%2BAM.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="408" data-original-width="1184" height="110" src="https://2.bp.blogspot.com/-KIfPFWOhhls/WUnzg9RGvtI/AAAAAAAAYl8/gLPPBECOTIQGPdTxdMDMnpZOUlof4qp-gCLcBGAs/s320/Screen%2BShot%2B2017-06-21%2Bat%2B9.46.29%2BAM.png" width="320" /></a><br />
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
After adding the parameter in the command, in View (or Editor) at the time of calling the command set the parameter. Refer the following code to set the parameter at the time of execution.<br />
<br />
<h3 style="text-align: left;">
<span style="font-weight: normal;">Code in View (or Editor):</span></h3>
<br />
<div class="p1">
</div>
<!-- HTML generated using hilite.me --><br />
<div style="background: #f8f8f8; border-width: 0.1em 0.1em 0.1em 0.8em; border: solid gray; overflow: auto; padding: 0.2em 0.6em; width: auto;">
<table><tbody>
<tr><td><pre style="line-height: 125%; margin: 0;"> 1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33</pre>
</td><td><pre style="line-height: 125%; margin: 0;">ICommandService commandService <span style="color: #666666;">=</span> <span style="color: #666666;">(</span>ICommandService<span style="color: #666666;">)</span> getSite<span style="color: #666666;">().</span><span style="color: #7d9029;">getService</span><span style="color: #666666;">(</span>ICommandService<span style="color: #666666;">.</span><span style="color: #7d9029;">class</span><span style="color: #666666;">);</span>
IHandlerService handlerService <span style="color: #666666;">=</span> <span style="color: #666666;">(</span>IHandlerService<span style="color: #666666;">)</span> getSite<span style="color: #666666;">().</span><span style="color: #7d9029;">getService</span><span style="color: #666666;">(</span>IHandlerService<span style="color: #666666;">.</span><span style="color: #7d9029;">class</span><span style="color: #666666;">);</span>
<span style="color: #408080; font-style: italic;">// Enter the ID of the Command as the argument to getCommand() method in next line.</span>
Command sysoComm <span style="color: #666666;">=</span> commandService<span style="color: #666666;">.</span><span style="color: #7d9029;">getCommand</span><span style="color: #666666;">(</span><span style="color: #ba2121;">"ResumeParser.commands.sampleCommand"</span><span style="color: #666666;">);</span>
HashMap<span style="color: #666666;"><</span>String<span style="color: #666666;">,</span> String<span style="color: #666666;">></span> paramsForCommand <span style="color: #666666;">=</span> <span style="color: green; font-weight: bold;">new</span> HashMap<span style="color: #666666;"><</span>String<span style="color: #666666;">,</span> String<span style="color: #666666;">>();</span>
<span style="color: #408080; font-style: italic;">// Enter the Command Parameter id as the Key in the following line.</span>
paramsForCommand<span style="color: #666666;">.</span><span style="color: #7d9029;">put</span><span style="color: #666666;">(</span><span style="color: #ba2121;">"ResumeParser.commandParameter2"</span><span style="color: #666666;">,</span> text<span style="color: #666666;">.</span><span style="color: #7d9029;">getText</span><span style="color: #666666;">());</span>
ParameterizedCommand paramCommand <span style="color: #666666;">=</span> ParameterizedCommand<span style="color: #666666;">.</span><span style="color: #7d9029;">generateCommand</span><span style="color: #666666;">(</span>sysoComm<span style="color: #666666;">,</span> paramsForCommand<span style="color: #666666;">);</span>
<span style="color: green; font-weight: bold;">try</span> <span style="color: #666666;">{</span>
handlerService<span style="color: #666666;">.</span><span style="color: #7d9029;">executeCommand</span><span style="color: #666666;">(</span>paramCommand<span style="color: #666666;">,</span> <span style="color: green; font-weight: bold;">null</span><span style="color: #666666;">);</span>
<span style="color: #666666;">}</span> <span style="color: green; font-weight: bold;">catch</span> <span style="color: #666666;">(</span>Exception ee<span style="color: #666666;">)</span> <span style="color: #666666;">{</span>
ee<span style="color: #666666;">.</span><span style="color: #7d9029;">printStackTrace</span><span style="color: #666666;">();</span>
<span style="color: #666666;">}</span>
</pre>
</td></tr>
</tbody></table>
</div>
<div class="p1">
<br /></div>
<div>
<br />
<h3 style="text-align: left;">
<span style="font-weight: normal;">Following is the code of </span>execute()<span style="font-weight: normal;"> method of the </span>Handler <span style="font-weight: normal;">(AbstractHandler) class.</span></h3>
<style type="text/css">
p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Monaco}
</style>
<br />
<div class="p1">
</div>
<!-- HTML generated using hilite.me --><br />
<div style="background: #f8f8f8; border-width: 0.1em 0.1em 0.1em 0.8em; border: solid gray; overflow: auto; padding: 0.2em 0.6em; width: auto;">
<table><tbody>
<tr><td><pre style="line-height: 125%; margin: 0;"> 1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19</pre>
</td><td><pre style="line-height: 125%; margin: 0;"><span style="color: #408080; font-style: italic;">/**</span>
<span style="color: #408080; font-style: italic;">* the command has been executed, so extract extract the needed information</span>
<span style="color: #408080; font-style: italic;">* from the application context.</span>
<span style="color: #408080; font-style: italic;">*/</span>
<span style="color: green; font-weight: bold;">public</span> Object <span style="color: blue;">execute</span><span style="color: #666666;">(</span>ExecutionEvent event<span style="color: #666666;">)</span> <span style="color: green; font-weight: bold;">throws</span> ExecutionException <span style="color: #666666;">{</span>
<span style="color: #408080; font-style: italic;">// Provide the id of the "Command Parameter" as the argument of the getParameter method.</span>
String commandValue <span style="color: #666666;">=</span> event<span style="color: #666666;">.</span><span style="color: #7d9029;">getParameter</span><span style="color: #666666;">(</span><span style="color: #ba2121;">"ResumeParser.commandParameter2"</span><span style="color: #666666;">);</span>
System<span style="color: #666666;">.</span><span style="color: #7d9029;">out</span><span style="color: #666666;">.</span><span style="color: #7d9029;">println</span><span style="color: #666666;">(</span>commandValue<span style="color: #666666;">);</span>
<span style="color: green; font-weight: bold;">return</span> <span style="color: green; font-weight: bold;">null</span><span style="color: #666666;">;</span>
<span style="color: #666666;">}</span>
</pre>
</td></tr>
</tbody></table>
</div>
</div>
<style type="text/css"> p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Monaco} p.p2 {margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Monaco; min-height: 15.0px} p.p3 {margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Monaco; color: #3933ff} span.s1 {color: #7e504f} span.s2 {color: #931a68} span.s3 {color: #000000} span.s4 {color: #3933ff} span.s5 {color: #0326cc} span.Apple-tab-span {white-space:pre} </style><style type="text/css"> p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Monaco} p.p2 {margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Monaco; min-height: 15.0px} p.p3 {margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Monaco; color: #3933ff} span.s1 {color: #7e504f} span.s2 {color: #931a68} span.s3 {color: #000000} span.s4 {color: #3933ff} span.s5 {color: #0326cc} span.Apple-tab-span {white-space:pre} </style><style type="text/css"> p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Monaco} span.s1 {color: #0326cc} span.s2 {color: #7e504f} </style><br />
<br />
<br />
Thank you ...</div>
Harikrushna Vhttp://www.blogger.com/profile/09928292899811466018noreply@blogger.com0tag:blogger.com,1999:blog-1407328464037557308.post-3497584101267313962017-06-16T21:52:00.002-07:002017-06-16T21:56:04.115-07:00Execute Command from View/Editor in Eclipse RCP<div dir="ltr" style="text-align: left;" trbidi="on">
<h2 style="text-align: left;">
Execute Command from View/Editor in Eclipse RCP</h2>
<div>
All Commands will be registered to IHandlerService. If we get the IHandlerService instance then we can call the desired command and then execute it.</div>
<div>
<br /></div>
<div>
// Get the Instance of IHandlerService from View</div>
<div>
// Alternate way of getting site object is this also:</div>
<div>
// PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage().getActivePart().getSite()</div>
<div>
// But we prefer following so we get the appropriate IWorkbenchPartSite object.</div>
<div>
IHandlerService service = (IHandlerService) getSite().getService(IHandlerService.class); </div>
<div>
try {</div>
<div>
service.executeCommand("ResumeParser.commands.sampleCommand", null); </div>
<div>
} catch (ExecutionException e1) { </div>
<div>
e1.printStackTrace(); </div>
<div>
} catch (NotDefinedException e1) { </div>
<div>
e1.printStackTrace(); </div>
<div>
} catch (NotEnabledException e1) { </div>
<div>
e1.printStackTrace(); </div>
<div>
} catch (NotHandledException e1) { </div>
<div>
e1.printStackTrace(); </div>
<div>
}</div>
<div>
<br /></div>
<div>
<br /></div>
</div>
Harikrushna Vhttp://www.blogger.com/profile/09928292899811466018noreply@blogger.com0tag:blogger.com,1999:blog-1407328464037557308.post-21543067869264041352017-06-11T00:39:00.002-07:002017-06-11T00:39:30.369-07:00Fie Dialog and Folder Dialog in Eclipse RCP<div dir="ltr" style="text-align: left;" trbidi="on">
<br />
Fie Dialog and Folder Dialog in Eclipse RCP<br />
<br />
File Dialog in Eclipse:<br />
- This will only allow you to select the files in the Dialog Box<br />
<xmp>
FileDialog fileDialog = new
FileDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell());
// Following line is Optional if you want to, enable filter for specific files.
//fileDialog.setFilterExtensions(new String[] {"*.txt","*.csv"});
String filePath = fileDialog.open();
System.out.println(filePath);
</xmp>
<br />
<br />
<br />
Folder Dialog in Eclipse:<br />
- This will allow you to select the folder in the Dialog box.<br />
<xmp>
DirectoryDialog directoryDialog =
new DirectoryDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell());
// Optional - if you want to open specific path
//directoryDialog.setFilterPath("/home/hv185014/junk/");
String directoryPath = directoryDialog.open();
System.out.println(directoryPath);
</xmp>
<br />
<style type="text/css"> p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Monaco} p.p2 {margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Monaco; color: #4e9072} span.s1 {color: #7e504f} span.s2 {color: #931a68} span.s3 {text-decoration: underline} span.s4 {color: #0326cc} span.Apple-tab-span {white-space:pre} </style><style type="text/css"> p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Monaco; color: #4e9072} </style><style type="text/css"> p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Monaco} p.p2 {margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Monaco; color: #7e504f} span.s1 {color: #7e504f} span.s2 {color: #931a68} span.s3 {color: #000000} span.s4 {color: #0326cc} span.Apple-tab-span {white-space:pre} </style></div>
Harikrushna Vhttp://www.blogger.com/profile/09928292899811466018noreply@blogger.com0tag:blogger.com,1999:blog-1407328464037557308.post-37874854669949207902017-04-06T08:32:00.003-07:002017-04-06T08:32:59.734-07:00Builder Design Pattern - Java<div dir="ltr" style="text-align: left;" trbidi="on">
<span style="font-size: large;">Builder Design Pattern - Java</span><br />
<span style="font-size: large;"><br /></span> When the construction of the class contains a large number of argument then this Design Pattern is preferred.<br />
<br />
Builder Pattern, as the name suggest, it helps to reduce the complexity in Building Java Object.<br />
<br />
<br />
<xmp>
public class Person {
private String firstname;
private String lastname;
private String address;
private int age;
private String city;
private String state;
public Person(String firstname, String lastname, String address,
int age, String city, String state) {
super();
this.firstname = firstname;
this.lastname = lastname;
this.address = address;
this.age = age;
this.city = city;
this.state = state;
}
}
</xmp>
<br />
<br />
In the above example, you can see, that the construction of the Person class has 6 arguments and few of them can be optional.<br />
<br />
So we can create a new PersonBuilder class which will help to create the Object of the Person class.<br />
<br />
<br />
<xmp>
public class PersonBuilder {
private String firstname;
private String lastname;
private String address;
private int age;
private String city;
private String state;
public PersonBuilder() {
}
public PersonBuilder setFirstname(String firstname) {
this.firstname = firstname;
return this;
}
public PersonBuilder setLastname(String lastname) {
this.lastname = lastname;
return this;
}
public PersonBuilder setAddress(String address) {
this.address = address;
return this;
}
public PersonBuilder setAge(int age) {
this.age = age;
return this;
}
public PersonBuilder setCity(String city) {
this.city = city;
return this;
}
public PersonBuilder setState(String state) {
this.state = state;
return this;
}
public Person build() {
return new Person(firstname, lastname, address, age, city, state);
}
}
</xmp>
<br />
<br />
So, now the Person class can be created as below :
<br />
<br />
If Person is with address and name then it can created as following
<xmp>
new PersonBuilder("firstname", "lastname").setAddress("my address").build();
</xmp>
<br />
<br />
If Person is with state and name then it can created as following
<xmp>
new PersonBuilder("firstname", "lastname").setState("guj").build();
</xmp>
<br /></div>
Harikrushna Vhttp://www.blogger.com/profile/09928292899811466018noreply@blogger.com0tag:blogger.com,1999:blog-1407328464037557308.post-60567230259517094662016-01-08T10:35:00.002-08:002016-11-06T01:25:20.926-07:00Open Eclipse RCP application as maximized<div dir="ltr" style="text-align: left;" trbidi="on">
<h2 style="text-align: left;" itemprop='headline' >
Open Eclipse RCP application as maximized</h2>
<div>
Open File :</div>
<div>
<br /></div>
<div>
ApplicationWorkbenchWindowAdvisor.java in you RCP application and override the method "postWindowOpen()" and write the code as mentioned below :<br />
<br /></div>
<pre class="brush: java">@Override
public void postWindowOpen() {
super.postWindowOpen();
IWorkbenchWindowConfigurer configurer = getWindowConfigurer();
configurer.getWindow().getShell().setMaximized( true );
}
</pre>
<br />
Following Books are good to refer :<br />
<iframe frameborder="0" marginheight="0" marginwidth="0" scrolling="no" src="//ws-in.amazon-adsystem.com/widgets/q?ServiceVersion=20070822&OneJS=1&Operation=GetAdHtml&MarketPlace=IN&source=ac&ref=tf_til&ad_type=product_link&tracking_id=httpharikrusb-21&marketplace=amazon&region=IN&placement=B00XL4KI3Q&asins=B00XL4KI3Q&linkId=&show_border=true&link_opens_in_new_window=true" style="height: 240px; width: 120px;">
</iframe>
<div>
<br />
<br /></div>
</div>
Harikrushna Vhttp://www.blogger.com/profile/09928292899811466018noreply@blogger.com0tag:blogger.com,1999:blog-1407328464037557308.post-78348491958124245752015-12-30T22:12:00.002-08:002016-11-06T01:27:02.045-07:00Show Perspective switch bar in Eclipse RCP application<div dir="ltr" style="text-align: left;" trbidi="on">
<div dir="ltr" style="text-align: left;" trbidi="on">
<br />
<div dir="ltr" style="text-align: left;" trbidi="on">
<h2 style="text-align: left;" itemprop="headline">
Show Perspective switch bar in Eclipse RCP application</h2>
<div>
Open file ApplicationWorkbenchWindowAdvisor.java in your plug-in project.<br />
<br />
Override the method, preWindowOpen and as shown below, setShowPerspectiveBar as True.<br />
<br />
<br />
<pre class="brush: java"> @Override
public void preWindowOpen ()
{
IWorkbenchWindowConfigurer configurer = getWindowConfigurer();
configurer.setShowPerspectiveBar( true );
}
</pre>
</div>
<br />
<br />
Run your RCP application, and on Right side top, you will be able to see perspective Switch.<br />
<br />
Following Books are good to refer :<br/>
<iframe style="width:120px;height:240px;" marginwidth="0" marginheight="0" scrolling="no" frameborder="0" src="//ws-in.amazon-adsystem.com/widgets/q?ServiceVersion=20070822&OneJS=1&Operation=GetAdHtml&MarketPlace=IN&source=ac&ref=tf_til&ad_type=product_link&tracking_id=httpharikrusb-21&marketplace=amazon®ion=IN&placement=B00XL4KI3Q&asins=B00XL4KI3Q&linkId=&show_border=true&link_opens_in_new_window=true">
</iframe>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://4.bp.blogspot.com/-Se3eWXceUpY/VoTHTFoc5VI/AAAAAAAAYDo/VqpdiNxfn8s/s1600/eclipseRcpPerspective.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" src="http://4.bp.blogspot.com/-Se3eWXceUpY/VoTHTFoc5VI/AAAAAAAAYDo/VqpdiNxfn8s/s1600/eclipseRcpPerspective.png" /></a></div>
<br />
<br />
<br />
<br />
<br />
</div>
</div>
</div>Harikrushna Vhttp://www.blogger.com/profile/09928292899811466018noreply@blogger.com0tag:blogger.com,1999:blog-1407328464037557308.post-37260575802265302082015-12-30T09:30:00.001-08:002016-11-06T01:28:05.220-07:00Create (pulldown) Menu in Toolbar in Eclipse RCP<div dir="ltr" style="text-align: left;" trbidi="on">
<h2 style="text-align: left;" itemprop="headline">
<span style="color: #0b5394;">
Create (pulldown) Menu in Toolbar</span></h2>
<div>
<br /></div>
<div>
<span style="color: #0b5394;"><b>Step 1. Create Toolbar with PullDown</b></span></div>
<div>
<span style="color: #0b5394;"><b>Step 2. Create MenuContribution </b></span></div>
<div>
<span style="color: #0b5394;"><b>Step 3. Add items to MenuContribution</b></span></div>
<div>
<span style="color: #0b5394;"><b>Step 4. Run the application</b></span><br />
<span style="color: #0b5394;"><b><br /></b></span>
<span style="color: #0b5394;"><b><br /></b></span></div>
<div>
<br /></div>
<div>
<span style="color: #0b5394;"><b>Step 1. Create Toolbar with PullDown</b></span></div>
<div>
<br /></div>
<div>
Create your Eclipse RCP application ( with mail template).</div>
<div>
<br /></div>
<div>
Suppose open command id is "HarikrushnaVToolbar.open" then create a toolbar with command in it, </div>
<div>
as shown below:</div>
<div>
<br /></div>
<div>
<br />
<div class="separator" style="clear: both; text-align: left;">
<a href="http://2.bp.blogspot.com/-ZVT_Cg_Pl6s/VoQMZqEeCeI/AAAAAAAAYCU/UdD13ya_GwM/s1600/toolbar_1.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="65" src="http://2.bp.blogspot.com/-ZVT_Cg_Pl6s/VoQMZqEeCeI/AAAAAAAAYCU/UdD13ya_GwM/s320/toolbar_1.png" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
now, convert the style to "pulldown".</div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="http://2.bp.blogspot.com/-Ev4Ezv92VaM/VoQNEyLYJ1I/AAAAAAAAYCc/esG469Tpbc4/s1600/toolbar_pulldown.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" height="237" src="http://2.bp.blogspot.com/-Ev4Ezv92VaM/VoQNEyLYJ1I/AAAAAAAAYCc/esG469Tpbc4/s400/toolbar_pulldown.png" width="400" /></a></div>
<div class="separator" style="clear: both; text-align: left;">
Now, if you run the application, you will see a pulldown button next to toolbar icon as follow :</div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="http://3.bp.blogspot.com/-brFpE9nc-q8/VoQNqYpqrLI/AAAAAAAAYCk/Vqz_WfhUc88/s1600/toolbar_pulldown_1.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" src="http://3.bp.blogspot.com/-brFpE9nc-q8/VoQNqYpqrLI/AAAAAAAAYCk/Vqz_WfhUc88/s1600/toolbar_pulldown_1.png" /></a></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
<span style="color: #0b5394;"><b>Step 2: Create MenuContribution</b></span></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
Now, create a MenuContribution, which will define the items for pulldown menu.</div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="http://3.bp.blogspot.com/--AaXmcp-0JQ/VoQOBeRD25I/AAAAAAAAYCs/LNSUwqc4mq8/s1600/new_menu_contribution.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" height="222" src="http://3.bp.blogspot.com/--AaXmcp-0JQ/VoQOBeRD25I/AAAAAAAAYCs/LNSUwqc4mq8/s400/new_menu_contribution.png" width="400" /></a></div>
<div class="separator" style="clear: both; text-align: left;">
Define, locationURI to the same name as the menu:commandId , here we provide the LocationURI as "menu:HarikrushnaVToolbar.open"</div>
<div class="separator" style="clear: both; text-align: left;">
Also Define Class name as "AllMenuItems".</div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="http://2.bp.blogspot.com/-qsRmPAeb6pM/VoQRDjVDg1I/AAAAAAAAYC4/O--59d-n8AY/s1600/pulldown_location_uri_1.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" src="http://2.bp.blogspot.com/-qsRmPAeb6pM/VoQRDjVDg1I/AAAAAAAAYC4/O--59d-n8AY/s1600/pulldown_location_uri_1.png" /></a></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
<span style="color: #0b5394;"><b><br /></b></span></div>
<div class="separator" style="clear: both; text-align: left;">
<span style="color: #0b5394;"><b>Step 3. Add items to MenuContribution</b></span></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
Click on "<u><span style="color: blue;">class</span></u>", you will see the dialogbox as shown below :</div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="http://4.bp.blogspot.com/-Q9tfYtbHYmg/VoQRlAerQSI/AAAAAAAAYDA/cLBgDf5nns4/s1600/AllMenuItems.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" height="640" src="http://4.bp.blogspot.com/-Q9tfYtbHYmg/VoQRlAerQSI/AAAAAAAAYDA/cLBgDf5nns4/s640/AllMenuItems.png" width="585" /></a></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
Click on Finish.</div>
<div class="separator" style="clear: both; text-align: left;">
Now, go to MANIFEST.MF and add "org.eclipse.core.expressions" to "Required Plug-ins".</div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="http://2.bp.blogspot.com/-KrrS6wdmDFw/VoQSNoP7VII/AAAAAAAAYDI/ZklERox3uwE/s1600/metainf_mf.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" src="http://2.bp.blogspot.com/-KrrS6wdmDFw/VoQSNoP7VII/AAAAAAAAYDI/ZklERox3uwE/s1600/metainf_mf.png" /></a></div>
<div class="separator" style="clear: both; text-align: left;">
Enter code as follow in the AllMenuItems.java file</div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="http://4.bp.blogspot.com/-2flxaEV6NCk/VoQSjobWuXI/AAAAAAAAYDQ/h8-HWQHJxUc/s1600/code.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" height="235" src="http://4.bp.blogspot.com/-2flxaEV6NCk/VoQSjobWuXI/AAAAAAAAYDQ/h8-HWQHJxUc/s400/code.png" width="400" /></a></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
Code :</div>
<div class="separator" style="clear: both; text-align: left;">
===========</div>
<div class="separator" style="clear: both;">
<span style="font-family: Courier New, Courier, monospace;"><span class="Apple-tab-span" style="white-space: pre;"> </span>public void createContributionItems(IServiceLocator serviceLocator,</span><span style="font-family: 'Courier New', Courier, monospace;">IContributionRoot additions) {</span></div>
<div class="separator" style="clear: both;">
<span style="font-family: Courier New, Courier, monospace;"><br /></span></div>
<div class="separator" style="clear: both;">
<span style="font-family: Courier New, Courier, monospace;"><span class="Apple-tab-span" style="white-space: pre;"> </span>CommandContributionItemParameter commandContributionItemParameter = new CommandContributionItemParameter(</span></div>
<div class="separator" style="clear: both;">
<span style="font-family: Courier New, Courier, monospace;"> serviceLocator, "",</span></div>
<div class="separator" style="clear: both;">
<span style="font-family: Courier New, Courier, monospace;"> "org.eclipse.ui.file.exit",</span></div>
<div class="separator" style="clear: both;">
<span style="font-family: Courier New, Courier, monospace;"> SWT.PUSH);</span></div>
<div class="separator" style="clear: both;">
<span style="font-family: Courier New, Courier, monospace;"><span class="Apple-tab-span" style="white-space: pre;"> </span>commandContributionItemParameter.label = "Exit the application";</span></div>
<div class="separator" style="clear: both;">
<span style="font-family: Courier New, Courier, monospace;"><span class="Apple-tab-span" style="white-space: pre;"> </span>commandContributionItemParameter.icon = Activator.getImageDescriptor("icons/alt_window_16.gif");</span></div>
<div class="separator" style="clear: both;">
<br /></div>
<div class="separator" style="clear: both;">
<span style="font-family: Courier New, Courier, monospace;"> CommandContributionItem commandContributionItem = new CommandContributionItem(commandContributionItemParameter);</span></div>
<div class="separator" style="clear: both;">
<span style="font-family: Courier New, Courier, monospace;"> commandContributionItem.setVisible(true);</span></div>
<div class="separator" style="clear: both;">
<span style="font-family: Courier New, Courier, monospace;"> additions.addContributionItem(commandContributionItem, null);</span></div>
<div class="separator" style="clear: both;">
<span style="font-family: Courier New, Courier, monospace;"><span class="Apple-tab-span" style="white-space: pre;"> </span>}</span></div>
<div class="separator" style="clear: both;">
<br /></div>
<div class="separator" style="clear: both;">
<br /></div>
<div class="separator" style="clear: both;">
============</div>
<div class="separator" style="clear: both;">
<br /></div>
<div class="separator" style="clear: both;">
<br /></div>
<div class="separator" style="clear: both;">
</div>
<div style="-webkit-text-stroke-width: 0px; color: black; font-family: 'Times New Roman'; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px;">
</div>
<br />
<div style="-webkit-text-stroke-width: 0px; font-family: 'Times New Roman'; font-size: medium; font-style: normal; font-variant: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px;">
<div style="margin: 0px;">
<span style="color: #0b5394;"><b>Step 4. Run the application</b></span></div>
<div style="color: black; font-weight: normal; margin: 0px;">
<br /></div>
<div style="color: black; font-weight: normal; margin: 0px;">
Run your application and your toolbar with Menu is ready.</div>
<div style="color: black; font-weight: normal; margin: 0px;">
<br /></div>
<div class="separator" style="clear: both; color: black; font-weight: normal; text-align: center;">
<a href="http://1.bp.blogspot.com/-gEOOtAdNXEA/VoQTaJdO98I/AAAAAAAAYDY/T8_0T1htQd8/s1600/menu_with_toolbar.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" src="http://1.bp.blogspot.com/-gEOOtAdNXEA/VoQTaJdO98I/AAAAAAAAYDY/T8_0T1htQd8/s1600/menu_with_toolbar.png" /></a></div>
<div style="color: black; font-weight: normal; margin: 0px;">
<br /></div>
</div>
<blockquote class="tr_bq" style="clear: both; text-align: left;">
<br /></blockquote>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
</div>
</div>
Harikrushna Vhttp://www.blogger.com/profile/09928292899811466018noreply@blogger.com0tag:blogger.com,1999:blog-1407328464037557308.post-9083637436283160572015-12-28T12:00:00.002-08:002016-11-06T01:32:50.419-07:00Add Method Body Using EMF ( Add code inside EOperaion)<div dir="ltr" style="text-align: left;" trbidi="on">
<div class="article-header" style="display: table; font-family: 'Helvetica Neue Light', HelveticaNeue-Light, 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 14px; margin: 0px; outline: none; padding: 0px; text-align: center; width: 530px;">
<h1 class="title entry-title" itemprop="name" style="display: table-cell; margin: 0px; padding: 0px 40px 0px 0px; position: relative; text-align: left; vertical-align: middle; width: 490px;">
</h1>
<h2 style="font-weight: normal; text-align: left;" itemprop="headline">
<span style="background-color: white; color: #0b5394; font-size: large;" itemprop="headline">
Add Method Body Using EMF ( Add code inside EOperaion )</span></h2>
<div>
<span style="background-color: white; color: #0b5394; font-size: large;"><br /></span></div>
<span style="font-size: small;"><span style="color: #0b5394;">Steps : </span></span><br />
<ol style="font-weight: normal; text-align: left;"><span style="font-size: small;">
<li>Create Ecore model with Code</li>
<li style="color: #333333;">Create GenModel</li>
<li style="color: #333333;">Verify generated Code</li>
</span></ol>
<span style="color: #333333;"></span><br />
<div class="article-header" style="display: table; font-family: 'Helvetica Neue Light', HelveticaNeue-Light, 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 14px; margin: 0px; outline: none; padding: 0px; text-align: center; width: 530px;">
<span style="color: #333333;"><span style="color: #333333;"><br /></span></span></div>
<span style="color: #333333;">
</span><br />
<ol style="font-weight: normal; text-align: left;"><span style="font-size: small;">
</span></ol>
<span style="font-size: small;">
</span>
<span style="font-size: small;"><span style="color: #0b5394;"><b>1. Create Ecore model with Code</b></span></span><span style="color: #333333; font-size: small; font-weight: normal;">In RCP project create new Ecore model :</span></div>
<div class="article-header" style="display: table; font-family: 'Helvetica Neue Light', HelveticaNeue-Light, 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 14px; margin: 0px; outline: none; padding: 0px; text-align: center; width: 530px;">
<span style="color: #333333; font-size: small; font-weight: normal;"><br /></span></div>
<div class="article-content entry-content" itemprop="articleBody" style="clear: both; color: #333333; font-family: 'Helvetica Neue Light', HelveticaNeue-Light, 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 14px; line-height: 1.4; margin: 10px auto 5px; outline: none; padding: 0px; text-align: justify;">
<div class="separator" style="clear: both; text-align: left;">
<a href="http://3.bp.blogspot.com/-5EPloxMvmlk/VoGEJO3qhQI/AAAAAAAAX_A/9FRWZer2noc/s1600/new_ecore_model.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="249" src="http://3.bp.blogspot.com/-5EPloxMvmlk/VoGEJO3qhQI/AAAAAAAAX_A/9FRWZer2noc/s320/new_ecore_model.png" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
Now, press on Next and give the name of the Ecore model. Here the name of the Ecore model is given as Office.ecore.</div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
<a href="http://4.bp.blogspot.com/-sAPAle7eGjQ/VoGE7050oOI/AAAAAAAAX_I/lUkdCpvLh3M/s1600/new_ecore_model_2.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="249" src="http://4.bp.blogspot.com/-sAPAle7eGjQ/VoGE7050oOI/AAAAAAAAX_I/lUkdCpvLh3M/s320/new_ecore_model_2.png" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
Click on "Finish". It will create Ecore model in project.</div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
Now provide the name to the package. Here the name is given as "Office"</div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
<a href="http://1.bp.blogspot.com/-GJSdC7ZlV_c/VoGFkVjEBII/AAAAAAAAX_U/IRAGPKLoqy8/s1600/ecore_pacakge_name.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="58" src="http://1.bp.blogspot.com/-GJSdC7ZlV_c/VoGFkVjEBII/AAAAAAAAX_U/IRAGPKLoqy8/s320/ecore_pacakge_name.png" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
Add a EClass to the package "Office"</div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
<a href="http://4.bp.blogspot.com/-fNzj71NcYcI/VoGKoFoKoKI/AAAAAAAAX_k/Ej1diVel5j4/s1600/ecore_class_name.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="71" src="http://4.bp.blogspot.com/-fNzj71NcYcI/VoGKoFoKoKI/AAAAAAAAX_k/Ej1diVel5j4/s320/ecore_class_name.png" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
Give the name of the class as "Employee"</div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
<a href="http://4.bp.blogspot.com/-dTaFjJntIis/VoGK7Z_RNyI/AAAAAAAAX_s/FZBDb1AUM5I/s1600/class_to_employee_class.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="51" src="http://4.bp.blogspot.com/-dTaFjJntIis/VoGK7Z_RNyI/AAAAAAAAX_s/FZBDb1AUM5I/s320/class_to_employee_class.png" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: left;">
Add attribute to the Employee class and give name.</div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
<a href="http://3.bp.blogspot.com/-145q3CdNy84/VoGLh9E3pqI/AAAAAAAAX_0/e89dWQWEmkg/s1600/employee_attribute.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="217" src="http://3.bp.blogspot.com/-145q3CdNy84/VoGLh9E3pqI/AAAAAAAAX_0/e89dWQWEmkg/s320/employee_attribute.png" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
Add EOperation to the Class Employee. Give name as "calculateSalary" , set type as "EInt" to the EOperation.</div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
<a href="http://4.bp.blogspot.com/-_aDCQecHOkc/VoGMOEBlzxI/AAAAAAAAYAE/T7nWoMTdbF0/s1600/employee_eattribute_eint.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="225" src="http://4.bp.blogspot.com/-_aDCQecHOkc/VoGMOEBlzxI/AAAAAAAAYAE/T7nWoMTdbF0/s320/employee_eattribute_eint.png" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: left;">
Add, EAnnotation to the EOperation "calculateSalary".</div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
<a href="http://4.bp.blogspot.com/-UmElgDwjrGI/VoGMsGBAFRI/AAAAAAAAYAM/I2_HLL98pF0/s1600/employee_eattribute_eannotation.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="53" src="http://4.bp.blogspot.com/-UmElgDwjrGI/VoGMsGBAFRI/AAAAAAAAYAM/I2_HLL98pF0/s320/employee_eattribute_eannotation.png" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
In properties view, add source to "http://www.eclipse.org/emf/2002/GenModel"</div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
<a href="http://2.bp.blogspot.com/-biCn-yzz1_U/VoGNL5EkFCI/AAAAAAAAYAU/0V3xYVQqWf4/s1600/employee_eannotation_genmode.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="134" src="http://2.bp.blogspot.com/-biCn-yzz1_U/VoGNL5EkFCI/AAAAAAAAYAU/0V3xYVQqWf4/s320/employee_eannotation_genmode.png" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
Now, Add Details Entry by right clicking on EAnnotation and selecting New Child.</div>
<div class="separator" style="clear: both; text-align: left;">
<a href="http://3.bp.blogspot.com/-i7ipZ_p4VuQ/VoGNheD4FWI/AAAAAAAAYAc/otyt3SuTSr4/s1600/employee_Details_entry.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="61" src="http://3.bp.blogspot.com/-i7ipZ_p4VuQ/VoGNheD4FWI/AAAAAAAAYAc/otyt3SuTSr4/s320/employee_Details_entry.png" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: left;">
In Properties view, enter "body" in Key .</div>
<div class="separator" style="clear: both; text-align: left;">
<a href="http://4.bp.blogspot.com/-dpqHxmloLWg/VoGN0Pu8adI/AAAAAAAAYAk/DUGiiRmKNXE/s1600/key.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="149" src="http://4.bp.blogspot.com/-dpqHxmloLWg/VoGN0Pu8adI/AAAAAAAAYAk/DUGiiRmKNXE/s320/key.png" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
In body part, enter the code you want to define in the method</div>
<div class="separator" style="clear: both; text-align: left;">
E.g.</div>
<blockquote class="tr_bq" style="clear: both; text-align: left;">
<div class="separator" style="clear: both;">
<span style="font-family: Courier New, Courier, monospace;">int i=10;</span></div>
<div class="separator" style="clear: both;">
<span style="font-family: Courier New, Courier, monospace;">i=i*200;</span></div>
<div class="separator" style="clear: both;">
<span style="font-family: Courier New, Courier, monospace;">return i;</span></div>
</blockquote>
<div class="separator" style="clear: both; text-align: left;">
<a href="http://1.bp.blogspot.com/-80hs6xhNoSI/VoGQgSNwE7I/AAAAAAAAYBw/CptCMVB52CI/s1600/code.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="166" src="http://1.bp.blogspot.com/-80hs6xhNoSI/VoGQgSNwE7I/AAAAAAAAYBw/CptCMVB52CI/s320/code.png" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: left;">
<b><span style="color: #0b5394;">2. Create Gen model</span></b></div>
<div class="separator" style="clear: both; text-align: left;">
<b><span style="color: purple;"><br /></span></b></div>
<div class="separator" style="clear: both; text-align: left;">
Create Generate Model, by clicking on new and select "EMF Generator Model"</div>
<div class="separator" style="clear: both; text-align: left;">
<a href="http://2.bp.blogspot.com/-Yi2gC63zVB8/VoGOZ9zwodI/AAAAAAAAYA0/SP-nllbvPO8/s1600/GeneratorModel.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="240" src="http://2.bp.blogspot.com/-Yi2gC63zVB8/VoGOZ9zwodI/AAAAAAAAYA0/SP-nllbvPO8/s320/GeneratorModel.png" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
Give name as , "Office.genmodel" to the generator model. ( you can give any name with prefix ".genmodel" to this Generator model file.</div>
<div class="separator" style="clear: both; text-align: left;">
<a href="http://2.bp.blogspot.com/-YT5q6D5kpeo/VoGPE-ZEL7I/AAAAAAAAYBE/etZlitufh-E/s1600/GeneratorModel-1.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="316" src="http://2.bp.blogspot.com/-YT5q6D5kpeo/VoGPE-ZEL7I/AAAAAAAAYBE/etZlitufh-E/s320/GeneratorModel-1.png" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: left;">
Generate the Gen Model from the "Ecore Model" and select the office.ecore model from the directory.</div>
<div class="separator" style="clear: both; text-align: left;">
<a href="http://3.bp.blogspot.com/-kug--WQPJMo/VoGPo3t4wKI/AAAAAAAAYBU/vOCBeR3vFh4/s1600/ecore_import.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://3.bp.blogspot.com/-kug--WQPJMo/VoGPo3t4wKI/AAAAAAAAYBU/vOCBeR3vFh4/s1600/ecore_import.png" /></a></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
<a href="http://1.bp.blogspot.com/-YkpV9XEgj5c/VoGPgdJ7qzI/AAAAAAAAYBM/9kqZl-lW9uo/s1600/office_ecore.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="320" src="http://1.bp.blogspot.com/-YkpV9XEgj5c/VoGPgdJ7qzI/AAAAAAAAYBM/9kqZl-lW9uo/s320/office_ecore.png" width="296" /></a></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
Select Finish and, GenModel is ready now.</div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
<a href="http://4.bp.blogspot.com/-Pr8F5sjOBs0/VoGP5Mx8BSI/AAAAAAAAYBg/BHcWY8Xedyc/s1600/OfficeGenMode.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="177" src="http://4.bp.blogspot.com/-Pr8F5sjOBs0/VoGP5Mx8BSI/AAAAAAAAYBg/BHcWY8Xedyc/s320/OfficeGenMode.png" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
Right click on the Gen model and select "Generate Model Code".</div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
<a href="http://2.bp.blogspot.com/-3QzJZLhsBAI/VoGQVfmMjxI/AAAAAAAAYBo/cAOl4v6BhzQ/s1600/ModelCode.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="168" src="http://2.bp.blogspot.com/-3QzJZLhsBAI/VoGQVfmMjxI/AAAAAAAAYBo/cAOl4v6BhzQ/s320/ModelCode.png" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
<b><span style="color: #0b5394;">3. Verify generated Code</span></b></div>
<div class="separator" style="clear: both; text-align: left;">
<b><span style="color: purple;"><br /></span></b></div>
<div class="separator" style="clear: both; text-align: left;">
In the class EmployeeImpl, you check the method "calculateSalary()", it will contains the code which you want to enter into the method. </div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
<a href="http://2.bp.blogspot.com/-PVk-u-1a6Qw/VoGRgPHblkI/AAAAAAAAYB8/oYhWC1PfREo/s1600/final-code.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="163" src="http://2.bp.blogspot.com/-PVk-u-1a6Qw/VoGRgPHblkI/AAAAAAAAYB8/oYhWC1PfREo/s320/final-code.png" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
</div>
<div class="article-footer" style="clear: both; font-family: 'Helvetica Neue Light', HelveticaNeue-Light, 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 14px; margin: 0px; outline: none; padding: 0px; text-align: center;">
<div class="publish-info" style="color: grey; margin: 0px; outline: none; padding: 5px 0px;">
</div>
</div>
</div>
Harikrushna Vhttp://www.blogger.com/profile/09928292899811466018noreply@blogger.com1