Got that from the good old boy Andrea Borruso and want to share it with this readers also:
Source: Internazionale
...a summary of how-to-do-(mostly-GIS)-development-things in HortonMachine-gvSIG-Geopaparazzi-uDig-Eclipse-Java as they pass me by...
That's all folks... and code!
Thursday, April 29, 2010
Monday, April 19, 2010
IFile, IFileStore and opening an EditorPart
Eclipse's engines turn around the idea of a project.
If I want to open an Editor on a file, I would have to do:
apart for the fact that IFile refers on a file inside the project, which makes sense inside eclipse, but perhaps not always in an RCP product basing on eclipse.
So to open an editor on an external (external == wherever in the filesystem != in the eclipse project) file, here is what is possible since 3.3:
If I want to open an Editor on a file, I would have to do:
IFile iFile = myIFile;
PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage()
.openEditor(iFile, FormEditor.ID);
apart for the fact that IFile refers on a file inside the project, which makes sense inside eclipse, but perhaps not always in an RCP product basing on eclipse.
So to open an editor on an external (external == wherever in the filesystem != in the eclipse project) file, here is what is possible since 3.3:
File f = new File(path);
IPath ipath = new Path(f.getAbsolutePath());
IFileStore fileLocation = EFS.getLocalFileSystem().getStore(ipath);
FileStoreEditorInput fileStoreEditorInput = new FileStoreEditorInput(
fileLocation);
IWorkbenchPage page = PlatformUI.getWorkbench().getActiveWorkbenchWindow()
.getActivePage();
page.openEditor(fileStoreEditorInput, FormEditor.ID);
Saturday, April 10, 2010
Grass raster datastore finally in geotools
I finally took the time to get the GRASS raster reader into geotools...
It is started now and available in the unsupported land of the geotools svn:
http://svn.osgeo.org/geotools/trunk/modules/unsupported/grassraster
Gonna be funny see geoserver finally serve grass rasters as udig :)
It is started now and available in the unsupported land of the geotools svn:
http://svn.osgeo.org/geotools/trunk/modules/unsupported/grassraster
Gonna be funny see geoserver finally serve grass rasters as udig :)
Wednesday, April 7, 2010
EPL-GPL: the verdict
Some time ago I wrote a post referring to the GPL / EPL licenses incompatibility. To the letter I wrote at that time and sent to both the Eclipse Foundation adn the FSFEurope, I never got and answer from FSFEurope, but I got several directly form the Executive Director of the Eclipse Foundation, Mike Milinkovich, who was very helpful in getting a good picture of what the problems are.
At the time of sending my email, Eclipse Foundation and FSF were discussing the GPL/EPL issue, so I didn't get a direct answer to the questions in the open letter, but now there is a public answer about the issues available:
Here the point of view of the Eclipse Foundation can be found.
And here the public statement of the FSF.
I will definitely not comment here. Wait for you guys in the mailinglists for a nice chat about that.
At the time of sending my email, Eclipse Foundation and FSF were discussing the GPL/EPL issue, so I didn't get a direct answer to the questions in the open letter, but now there is a public answer about the issues available:
Here the point of view of the Eclipse Foundation can be found.
And here the public statement of the FSF.
I will definitely not comment here. Wait for you guys in the mailinglists for a nice chat about that.
Subscribe to:
Posts (Atom)