Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[udig-devel] How to open a map and display it on workspace

please give some code to open a map and display it on workspace..

Shell shell = new Shell(Display.getDefault());
		FileDialog dialog = new FileDialog(shell);
		String fileSelected = dialog.open();
		StyleView styleView = null;
        try{
            IWorkbenchPage page  =
PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage();
            page.showView( fileSelected );
        }catch(Exception e)
        {
        	
        	e.printStackTrace();
        }


--
View this message in context: http://gis.19327.n5.nabble.com/How-to-open-a-map-and-display-it-on-workspace-tp5634657p5634657.html
Sent from the uDig Developer mailing list archive at Nabble.com.


Back to the top