[udig-devel] RCP Walkthrough Bug

Jesse Eichar jeichar at refractions.net
Sat Feb 16 16:16:49 PST 2008


Hi The walkthrough only works for RC14. We made modifications to RC14  
so that a custom application could be nicely made, rather than  
requiring ugly hacks.

Jesse

Le 16-Feb-08 à 4:12 PM, Ingmar Eveslage a écrit :

>
> Hello,
>
> i found a mistake in the uDig walkthrough documentation depending the
> initial perspective id:
>
> chapter 5 point 9 says that you overwrite the method
> createWorkbenchAdvisor() but this isnt implemented in  
> UDIGApplication. so
> the modified perspective id is never used. you should change in
> UDIGApplication.java:
>
>   public Object start( IApplicationContext context ) throws  
> Exception {
>        WorkbenchAdvisor workbenchAdvisor = new UDIGWorkbenchAdvisor();
> ......
>
> to:
>
>   public Object start( IApplicationContext context ) throws  
> Exception {
>        WorkbenchAdvisor workbenchAdvisor = createWorkbenchAdvisor();
> ......
>
> and the method:
>
> 	protected WorkbenchAdvisor createWorkbenchAdvisor() {	  		
> 		return new UDIGWorkbenchAdvisor();
> 	}
>
> then i could overwrite this method start my rcp with my own  
> perspective
>
> 	protected WorkbenchAdvisor createWorkbenchAdvisor() {	  		
> 		return new UDIGWorkbenchAdvisor() {
> 	        public String getInitialWindowPerspectiveId() {
> 	            return "MY_PERSPECTIVE";
> 	        }
> 	    };
> 	}
>
> I am using the SDK RC13. Or is this already modified in RC14?
>
> Greats ingmar
> -- 
> View this message in context: http://www.nabble.com/RCP-Walkthrough-Bug-tp15518903p15518903.html
> Sent from the udig-devel mailing list archive at Nabble.com.
>
> _______________________________________________
> User-friendly Desktop Internet GIS (uDig)
> http://udig.refractions.net
> http://lists.refractions.net/mailman/listinfo/udig-devel



More information about the udig-devel mailing list