[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [udig-devel] MapEditor no tools
|
Hi Guys,
Thanks for the excellent help. I have added the MapEditorActionBarContributor class to my editor and all is working as expected.
Regards Andrew
On 17 April 2010 11:11, Jody Garnett
<jody.garnett@xxxxxxxxx> wrote:
As andrea indicated actions sets are part of eclipse; it is just that we check to see if there is an actionset when adding tools.
The class that does all the work is the ToolManager; but it is actually called from somewhere let me check where.
... time passes ...
In the "net.refractions.udig.project.ui.editor" plug-in is where the Map Editor is defined; you may want to check that over and look for differences?
As part of the definition it refers to this class:
- net.refractions.udig.project.ui.internal.MapEditorActionBarContributor
Which is responsible for adding stuff to the menu and toolbars...
In the contributeToCoolbar method there is the following code:
ToolBarManager modalToolBarManager = new ToolBarManager(SWT.FLAT);
ApplicationGIS.getToolManager().contributeModalTools(modalToolBarManager, getActionBars());
if ( modalToolBarManager.getItems().length > 0){
IContributionItem item = subManager.find(ToolConstants.MODAL_TOOLBAR_ID);
if(item != null){
subManager.remove(ToolConstants.MODAL_TOOLBAR_ID);
}
ToolBarContributionItem toolBarContributionItem = new ToolBarContributionItem(modalToolBarManager, ToolConstants.MODAL_TOOLBAR_ID);
subManager.add(toolBarContributionItem);
}
On 17/04/2010, at 5:00 PM, Andrew Cleveland wrote:
Thanks Jody, can you please point me to the Udig actionSet documentation.
Do you have a specific actionSet that enables the toolbar ?
Thanks Andrew
On 17 April 2010 04:08, Jody Garnett
<jody.garnett@xxxxxxxxx> wrote:
No ideas yet; I recommend butting break points in the code that contributes the tools. I also note that we try and allow control of tool contributions in the same manner as other toolbar contributions (using "actionSets" ).
Jody
On 17/04/2010, at 1:28 AM, Andrew Cleveland wrote:
> Hi Guys,
>
> I have created my own RCP and have an editor extending the Udig MapEditor. It works fine except I do not get any of the udig tools when I open the editor. If I exit the application the map is saved and when I open the application again the tools are visible.
>
> Any ideas ?
>
> Thanks Andrew
_______________________________________________
User-friendly Desktop Internet GIS (uDig)
http://udig.refractions.net
http://lists.refractions.net/mailman/listinfo/udig-devel
_______________________________________________
User-friendly Desktop Internet GIS (uDig)
http://udig.refractions.net
http://lists.refractions.net/mailman/listinfo/udig-devel