Hi all,
here is the definition of my extension point. Can't figure out a conflict, so
am also attaching the whole xml file and the java class as well. I am running
the application from with in eclipse.
<extension
id="ie.tcd.cs.dsg.desna.DMTool.tools"
name="Domain Modeling Tools"
point="net.refractions.udig.project.ui.tool">
<category
icon="icons/tools/sensors.gif"
id="ie.tcd.cs.dsg.desna.DMTool.category.Sensor">
</category>
<modalTool
categoryId="ie.tcd.cs.dsg.desna.DMTool.category.Sensor"
class="ie.tcd.cs.dsg.desna.dmtool.tools.InstallSensor"
icon="icons/tools/IconEye.gif"
id="ie.tcd.cs.dsg.desna.DMTool.tools.installsensortool"
name="Install Sensor"
onToolbar="true"
tooltip="Select this tool and then double click on the map to install a sensor">
<cursor
hotspotX="10"
hotspotY="10"
image="icons/pointers/installSensor.gif">
</cursor>
</modalTool>
<modalTool
categoryId="ie.tcd.cs.dsg.desna.DMTool.category.Sensor"
class="ie.tcd.cs.dsg.desna.dmtool.tools.RetrieveSensors"
icon="icons/tools/retrieve.gif"
id="ie.tcd.cs.dsg.desna.DMTool.tools.retrievesensortool"
name="Retrieve Sensor"
onToolbar="true"
tooltip="Retreive Sensor Info">
</modalTool>
</extension>
Regards,
Farrukh.
--- On Fri, 8/8/08, Jody Garnett <[EMAIL PROTECTED]> wrote:
From: Jody Garnett <[EMAIL PROTECTED]>
Subject: Re: [Geotools-gt2-users] uDig multiple extension point problem
To: [EMAIL PROTECTED]
Cc: [email protected], "User-friendly Desktop Internet
GIS" <[EMAIL PROTECTED]>
Date: Friday, August 8, 2008, 4:26 AM
Hi Mr Farrykh - I must of missed your email to udig-devel :-) We try and
stay on top of things there but it has been busy lately.
Ideas to try:
- You should set some breakpoints in your tools (and confirm that the
tool is not getting control).
- Check the various "id" tags in the plugin.xml and make sure that
there
is no conflict; perhaps control is being sent to another class with the
same id string?
If you can find where your tool is mentioned in your plugin.xml file and
cut and paste just that xml fragment to the list here we should be able
to point out either a problem; or where an error may occur.
Finally I assume you are running with -consoleLog enabled (perhaps there
is a tool conflict and you are missing a warning?).
Cheers,
Jody
Mirza Farrukh wrote:
> Hi all,
>
> I know i am posting at the wrong mailing list but I am desperate.
>
> I had followed the uDig's RCP branding walk through and have
> successfully developed an application on top of uDig. Later I have
> also developed an modal tool extension point of type
> net.refractions.udig.project.ui.tool. inherited from SimpleTool. It is
> working.
>
> The problem is that I am now trying to develop another modal tool of
> the same type and every thing, but ofcourse a different Class. This
> tool as well gets deployed, but it doesn't work at all when i select
> it. It seems like the control is not sent to the class.
>
> I hope you guys might have a solution for this type of problem and you
> understand the problem. If not, please feel free to ask for
> clarifications.
>
> Regards,
>
> Farrukh.
>
>
> ------------------------------------------------------------------------
>
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's
challenge
> Build the coolest Linux based applications with Moblin SDK & win great
prizes
> Grand prize is a trip for two to an Open Source event anywhere in the
world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> ------------------------------------------------------------------------
>
> _______________________________________________
> Geotools-gt2-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
>
<?xml version="1.0" encoding="UTF-8"?>
<?eclipse version="3.2"?>
<plugin>
<extension
id="id1"
point="org.eclipse.core.runtime.applications">
<application
cardinality="singleton-global"
thread="main"
visible="true">
<run
class="ie.tcd.cs.dsg.desna.dmtool.DMTool">
</run>
</application>
</extension>
<extension
point="org.eclipse.ui.perspectives">
<perspective
class="ie.tcd.cs.dsg.desna.dmtool.DMPerspectiveFactory"
icon="icons/obj16/world_obj.gif"
id="ie.tcd.cs.dsg.desna.DMTool.perspective"
name="DM Perspective">
</perspective>
</extension>
<extension
point="org.eclipse.ui.perspectiveExtensions">
<perspectiveExtension
targetID="ie.tcd.cs.dsg.desna.DMTool.perspective">
<actionSet
id="net.refractions.udig.project.ui.LayerActions">
</actionSet>
</perspectiveExtension>
</extension>
<extension
id="DMTool"
point="org.eclipse.core.runtime.products">
<product
application="ie.tcd.cs.dsg.desna.DMTool.id1"
name="Domain Modeller">
<property
name="appName"
value="Domain Modeller">
</property>
<property
name="aboutImage"
value="nl/en/about.gif">
</property>
<property
name="aboutText"
value="Domain Modeling Tool

 DESNA
Distributed Systems Group
Trinity College Dublin

http://www.dsg.cs.tcd.ie

Farrukh Mirza (pgrmsc)
It is developed using uDig SDK">
</property>
<property
name="windowImages"
value="icons/world16.gif,icons/world32.gif,icons/world48.gif,icons/world64.gif,icons/world128.gif">
</property>
<property
name="startupForegroundColor"
value="000000">
</property>
<property
name="startupMessageRect"
value="7,180,445,16">
</property>
<property
name="startupProgressRect"
value="0,275,500,5">
</property>
<property
name="preferenceCustomization"
value="plugin_customization.ini">
</property>
</product>
</extension>
<extension
id="ie.tcd.cs.dsg.desna.DMTool.tools"
name="Domain Modeling Tools"
point="net.refractions.udig.project.ui.tool">
<category
icon="icons/tools/sensors.gif"
id="ie.tcd.cs.dsg.desna.DMTool.category.Sensor">
</category>
<modalTool
categoryId="ie.tcd.cs.dsg.desna.DMTool.category.Sensor"
class="ie.tcd.cs.dsg.desna.dmtool.tools.InstallSensor"
icon="icons/tools/IconEye.gif"
id="ie.tcd.cs.dsg.desna.DMTool.tools.installsensortool"
name="Install Sensor"
onToolbar="true"
tooltip="Select this tool and then double click on the map to install a sensor">
<cursor
hotspotX="10"
hotspotY="10"
image="icons/pointers/installSensor.gif">
</cursor>
</modalTool>
<modalTool
categoryId="ie.tcd.cs.dsg.desna.DMTool.category.Sensor"
class="ie.tcd.cs.dsg.desna.dmtool.tools.RetrieveSensors"
icon="icons/tools/retrieve.gif"
id="ie.tcd.cs.dsg.desna.DMTool.tools.retrievesensortool"
name="Retrieve Sensor"
onToolbar="true"
tooltip="Retreive Sensor Info">
</modalTool>
</extension>
</plugin>
package ie.tcd.cs.dsg.desna.dmtool.tools;
import net.refractions.udig.project.ui.render.displayAdapter.MapMouseEvent;
import net.refractions.udig.project.ui.tool.SimpleTool;
public class RetrieveSensors extends SimpleTool {
@Override
protected void onMouseDoubleClicked(MapMouseEvent e) {
// TODO Auto-generated method stub
super.onMouseDoubleClicked(e);
}
@Override
public void setActive(boolean active) {
// TODO Auto-generated method stub
System.out.println("Retrieve Set Active");
super.setActive(active);
}
@Override
public void setEnabled(boolean enabled) {
// TODO Auto-generated method stub
System.out.println("Retrieve Set Enabled");
super.setEnabled(enabled);
}
}
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Geotools-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users