[udig-devel] RCP Walkthrough Bug

Ingmar Eveslage eveslage at gmail.com
Sat Feb 16 16:12:15 PST 2008


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.



More information about the udig-devel mailing list