How to open a map and display it on workspace

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

How to open a map and display it on workspace

nanithehaddock
This post has NOT been accepted by the mailing list yet.
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();
        }