Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[no subject]

--Apple-Mail-2-866723313
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
	charset=us-ascii

It is more that you should not include net.refractions.udig.catalog.ui =
if you don't want what it is offering.

Rather than change a copy of the source code; eclipse does offer a way =
to "hide" things. It is just advanced because all of eclipse is about =
adding stuff (removing things is actually against the rules).
- =
http://www.eclipse.org/articles/Article-Plug-in-architecture/plugin_archit=
ecture.html

The easy way to turn things off is for uDig to advertise an "actionSet" =
controlling the functionality; indeed the data menu may already be =
controlled by an action set; if not we would happily accept a patch =
placing it under actionSet control.

Indeed the data menu is controlled by an ActionSet =
"net.refractions.udig.catalog.ui.data.menu"and this is on Page 18 of the =
Custom App tutorial. Just don't include this actionset in your =
perspective and this menu will not be added.

The hard way (and more general purpose) suitable for projects that are =
not quite as open as uDig is to make use of an advanced eclipse Platform =
facility called activities.

Remember that when stuff is connected up - we make use of the Platform =
class to ask for all the extensions (in the case of the data menu it =
would be the eclipse menu system doing the processing).

The actual data structure (IExtensionRegistery.) the platform provides:
- is based on the plugin.xml file
- merged with any plugin.xml files added by a "fragment" (consider it a =
hot patch)
- modified by magic (activities)

Activities allows you to fliter or strip out plugin contributions:
- =
http://help.eclipse.org/helios/index.jsp?topic=3D/org.eclipse.platform.doc=
.isv/reference/extension-points/org_eclipse_ui_activities.html

(And yes I only know this because I teach this stuff; I have never had a =
cause to use it on any of my own applications).

Jody

Links:
- =
http://help.eclipse.org/helios/topic/org.eclipse.platform.doc.isv/guide/pr=
oduct_def_plugins.htm
- =
http://stackoverflow.com/questions/1415700/disable-plugin-contributions-in=
-eclipse-rcp-application
- http://www.eobjectsoft.com/product/EclipseInterviewQuestions.htm#q15



On 16/08/2010, at 11:27 PM, Farzad Mahdikhani wrote:

> it seems that you are right and there is no straight forward way to do =
this. For example I looked at net.refractions.udig.catalog.ui plug-in =
which seems to be where the "Data" menu is added to the udig (in the =
plugin.xml file). So, it seems that I could disable or change the "Data" =
menu from here.
> So I need to probe the source code to see where a menu is added to the =
uDig and disable or change it from there, m I right?=20
>=20
> From: Miles Parker <milesparker@xxxxxxxxx>
> To: User-friendly Desktop Internet GIS =
<udig-devel@xxxxxxxxxxxxxxxxxxxxx>
> Sent: Thu, August 12, 2010 9:49:43 PM
> Subject: Re: [udig-devel] two questions
>=20
>=20
> Ferez,
>=20
> For 1) check out this insanely cool little nugget:
>=20
> =
http://pookzilla.net/wp/2006/01/how-can-i-give-my-eclipse-blob-icon-in/com=
ment-page-1/
>=20
> For 2) you're going to have to get deeply into the bowels of product =
packaging and so that's not really a simple answer. To put it briefly, =
with Eclipse there is no clean way to disable someone (i.e. another =
feature developer's) contribution. But there are hooks to rename these =
things in product.ini, or you could go mucking around with product =
configurations or one of about half a dozen orthogonal ways that Eclipse =
sort of manages this. Have fun, but bottom line is that it had better be =
really really important for you to want to do this. ;)
> cheers,
>=20
> Miles
>=20
> On Aug 12, 2010, at 9:00 AM, Farzad Mahdikhani wrote:
>=20
>> I got two questions:
>>=20
>> 1- when you open the about dialog (Help menu > About uDig...) there =
are 3 icons at the bottom, namely, udig.refractions.net, Eclipse =
Modeling Project, Eclipse.org. How can I add a new icon or remove one of =
them?
>>=20
>> 2- How can I remove a menu option, lets say, Help contents option =
from the Help menu.
>>=20
>> Cheers,
>> Ferez
>>=20
>> _______________________________________________
>> User-friendly Desktop Internet GIS (uDig)
>> http://udig.refractions.net
>> http://lists.refractions.net/mailman/listinfo/udig-devel
>=20
>=20
> _______________________________________________
> User-friendly Desktop Internet GIS (uDig)
> http://udig.refractions.net
> http://lists.refractions.net/mailman/listinfo/udig-devel


--Apple-Mail-2-866723313
Content-Transfer-Encoding: quoted-printable
Content-Type: text/html;
	charset=us-ascii

<html><head><base href=3D"x-msg://39/"></head><body style=3D"word-wrap: =
break-word; -webkit-nbsp-mode: space; -webkit-line-break: =
after-white-space; ">It is more that you should not include =
net.refractions.udig.catalog.ui if you don't want what it is =
offering.<div><br></div><div>Rather than change a copy of the source =
code; eclipse does offer a way to "hide" things. It is just advanced =
because all of eclipse is about adding stuff (removing things is =
actually against the rules).</div><div>-&nbsp;<a =
href=3D"http://www.eclipse.org/articles/Article-Plug-in-architecture/plugi=
n_architecture.html">http://www.eclipse.org/articles/Article-Plug-in-archi=
tecture/plugin_architecture.html</a></div><div><br></div><div>The easy =
way to turn things off is for uDig to advertise an "actionSet" =
controlling the functionality; indeed the data menu may already be =
controlled by an action set; if not we would happily accept a patch =
placing it under actionSet control.</div><div><br></div><div>Indeed the =
data menu is controlled by an ActionSet =
"net.refractions.udig.catalog.ui.data.menu"and this is on Page 18 of the =
Custom App tutorial. Just don't include this actionset in your =
perspective and this menu will not be =
added.</div><div><br></div><div>The hard way (and more general purpose) =
suitable for projects that are not quite as open as uDig is to make use =
of an advanced eclipse Platform facility called =
activities.</div><div><br></div><div>Remember that when stuff is =
connected up - we make use of the Platform class to ask for all the =
extensions (in the case of the data menu it would be the eclipse menu =
system doing the processing).</div><div><br></div><div>The actual data =
structure (IExtensionRegistery.)&nbsp;the platform provides:</div><div>- =
is based on the plugin.xml file</div><div>- merged with any plugin.xml =
files added by a "fragment" (consider it a hot patch)</div><div>- =
modified by magic (activities)</div><div><br></div><div>Activities =
allows you to fliter or strip out plugin =
contributions:</div><div>-&nbsp;<a =
href=3D"http://help.eclipse.org/helios/index.jsp?topic=3D/org.eclipse.plat=
form.doc.isv/reference/extension-points/org_eclipse_ui_activities.html">ht=
tp://help.eclipse.org/helios/index.jsp?topic=3D/org.eclipse.platform.doc.i=
sv/reference/extension-points/org_eclipse_ui_activities.html</a></div><div=
><br></div><div>(And yes I only know this because I teach this stuff; I =
have never had a cause to use it on any of my own =
applications).</div><div><br></div><div>Jody</div><div><br></div><div>Link=
s:</div><div>-&nbsp;<a =
href=3D"http://help.eclipse.org/helios/topic/org.eclipse.platform.doc.isv/=
guide/product_def_plugins.htm">http://help.eclipse.org/helios/topic/org.ec=
lipse.platform.doc.isv/guide/product_def_plugins.htm</a></div><div>-&nbsp;=
<a =
href=3D"http://stackoverflow.com/questions/1415700/disable-plugin-contribu=
tions-in-eclipse-rcp-application">http://stackoverflow.com/questions/14157=
00/disable-plugin-contributions-in-eclipse-rcp-application</a></div><div>-=
 <a =
href=3D"http://www.eobjectsoft.com/product/EclipseInterviewQuestions.htm#q=
15">http://www.eobjectsoft.com/product/EclipseInterviewQuestions.htm#q15</=
a></div><div><br></div><div><br></div><div><br><div><div>On 16/08/2010, =
at 11:27 PM, Farzad Mahdikhani wrote:</div><br =
class=3D"Apple-interchange-newline"><blockquote type=3D"cite"><div><div =
style=3D"margin-top: 0px; margin-right: 0px; margin-bottom: 0px; =
margin-left: 0px; font-family: 'times new roman', 'new york', times, =
serif; font-size: 14pt; "><div style=3D"margin-top: 0px; margin-right: =
0px; margin-bottom: 0px; margin-left: 0px; color: rgb(0, 0, 255); =
"><font size=3D"3">it seems that you are right and there is no straight =
forward way to do this. For example I looked at =
net.refractions.udig.catalog.ui plug-in which seems to be where the =
"Data"&nbsp;</font><font size=3D"3">menu is added to the udig (in the =
plugin.xml file)</font><font size=3D"3">. So, it seems that I could =
disable or change the "Data" menu from here.</font></div><div =
style=3D"margin-top: 0px; margin-right: 0px; margin-bottom: 0px; =
margin-left: 0px; "><font size=3D"3">So I need to probe the source code =
to see where a menu is added to the uDig and disable or change it from =
there, m I right?<span =
class=3D"Apple-converted-space">&nbsp;</span></font><br></div><div =
style=3D"margin-top: 0px; margin-right: 0px; margin-bottom: 0px; =
margin-left: 0px; font-family: 'times new roman', 'new york', times, =
serif; font-size: 14pt; "><br><div style=3D"margin-top: 0px; =
margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font-family: =
'times new roman', 'new york', times, serif; font-size: 12pt; "><font =
size=3D"2" face=3D"Tahoma"><hr size=3D"1"><b><span style=3D"font-weight: =
bold; ">From:</span></b><span =
class=3D"Apple-converted-space">&nbsp;</span>Miles Parker &lt;<a =
href=3D"mailto:milesparker@xxxxxxxxx";>milesparker@xxxxxxxxx</a>&gt;<br><b>=
<span style=3D"font-weight: bold; ">To:</span></b><span =
class=3D"Apple-converted-space">&nbsp;</span>User-friendly Desktop =
Internet GIS &lt;<a =
href=3D"mailto:udig-devel@xxxxxxxxxxxxxxxxxxxxx";>udig-devel@lists.refracti=
ons.net</a>&gt;<br><b><span style=3D"font-weight: bold; =
">Sent:</span></b><span class=3D"Apple-converted-space">&nbsp;</span>Thu, =
August 12, 2010 9:49:43 PM<br><b><span style=3D"font-weight: bold; =
">Subject:</span></b><span =
class=3D"Apple-converted-space">&nbsp;</span>Re: [udig-devel] two =
questions<br></font><br><div style=3D"margin-top: 0px; margin-right: =
0px; margin-bottom: 0px; margin-left: 0px; "><br></div><div =
style=3D"margin-top: 0px; margin-right: 0px; margin-bottom: 0px; =
margin-left: 0px; ">Ferez,</div><div style=3D"margin-top: 0px; =
margin-right: 0px; margin-bottom: 0px; margin-left: 0px; =
"><br></div><div style=3D"margin-top: 0px; margin-right: 0px; =
margin-bottom: 0px; margin-left: 0px; ">For 1) check out this insanely =
cool little nugget:</div><div style=3D"margin-top: 0px; margin-right: =
0px; margin-bottom: 0px; margin-left: 0px; "><br></div><div =
style=3D"margin-top: 0px; margin-right: 0px; margin-bottom: 0px; =
margin-left: 0px; "><span><a target=3D"_blank" =
href=3D"http://pookzilla.net/wp/2006/01/how-can-i-give-my-eclipse-blob-ico=
n-in/comment-page-1/">http://pookzilla.net/wp/2006/01/how-can-i-give-my-ec=
lipse-blob-icon-in/comment-page-1/</a></span></div><div =
style=3D"margin-top: 0px; margin-right: 0px; margin-bottom: 0px; =
margin-left: 0px; "><br></div><div style=3D"margin-top: 0px; =
margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">For 2) you're =
going to have to get deeply into the bowels of product packaging and so =
that's not really a simple answer. To put it briefly, with Eclipse there =
is no clean way to disable someone (i.e. another feature developer's) =
contribution. But there are hooks to rename these things in product.ini, =
or you could go mucking around with product configurations or one of =
about half a dozen orthogonal ways that Eclipse sort of manages this. =
Have fun, but bottom line is that it had better be really really =
important for you to want to do this. ;)</div><div style=3D"margin-top: =
0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; =
">cheers,</div><div style=3D"margin-top: 0px; margin-right: 0px; =
margin-bottom: 0px; margin-left: 0px; "><br></div><div =
style=3D"margin-top: 0px; margin-right: 0px; margin-bottom: 0px; =
margin-left: 0px; ">Miles</div><br><div style=3D"margin-top: 0px; =
margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><div =
style=3D"margin-top: 0px; margin-right: 0px; margin-bottom: 0px; =
margin-left: 0px; ">On Aug 12, 2010, at 9:00 AM, Farzad Mahdikhani =
wrote:</div><br class=3D"Apple-interchange-newline"><blockquote =
type=3D"cite"><div style=3D"margin-top: 0px; margin-right: 0px; =
margin-bottom: 0px; margin-left: 0px; "><div style=3D"margin-top: 0px; =
margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font-family: =
times, serif; font-size: 12pt; ">I got two questions:<br><br>1- when you =
open the about dialog (Help menu &gt; About uDig...) there are 3 icons =
at the bottom, namely,<span =
class=3D"Apple-converted-space">&nbsp;</span><a rel=3D"nofollow" =
target=3D"_blank" =
href=3D"http://udig.refractions.net";>udig.refractions.net</a>, Eclipse =
Modeling Project,<span class=3D"Apple-converted-space">&nbsp;</span><a =
rel=3D"nofollow" target=3D"_blank" =
href=3D"http://Eclipse.org";>Eclipse.org</a>. How can I add a new icon or =
remove one of them?<br><br>2- How can I remove a menu option, lets say, =
Help contents option from the Help menu.<br><br><div style=3D"margin-top: =
0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; =
">Cheers,<br>Ferez<br></div></div><br>____________________________________=
___________<br>User-friendly Desktop Internet GIS (uDig)<br><span><a =
target=3D"_blank" =
href=3D"http://udig.refractions.net";>http://udig.refractions.net</a></span=
><br><span><a target=3D"_blank" =
href=3D"http://lists.refractions.net/mailman/listinfo/udig-devel";>http://l=
ists.refractions.net/mailman/listinfo/udig-devel</a></span><br></div></blo=
ckquote></div><br></div></div></div><br>__________________________________=
_____________<br>User-friendly Desktop Internet GIS (uDig)<br><a =
href=3D"http://udig.refractions.net";>http://udig.refractions.net</a><br><a=
 =
href=3D"http://lists.refractions.net/mailman/listinfo/udig-devel";>http://l=
ists.refractions.net/mailman/listinfo/udig-devel</a><br></div></blockquote=
></div><br></div></body></html>=

--Apple-Mail-2-866723313--


Back to the top