Hi,

> It should be possible to learn that from the differences?

I tried that, but i can't see a real difference. The old file contained
A not used ImageIdentifier for the entries, and the name was different
I've uploaded them:
http://web.student.tuwien.ac.at/~e0828302/Addons.xcu (new)
http://web.student.tuwien.ac.at/~e0828302/Addons.win.xcu (old)
http://web.student.tuwien.ac.at/~e0828302/CalcWindowState.xcu (new, not
working on linux, but on windows)
http://web.student.tuwien.ac.at/~e0828302/CalcWindowState.win.xcu (old)


> Maybe if you can post relevant code here, people can help (with
> difficult problems others more often than me).
I'm having one major problem:
I need to provide some tools with my extension. To run them I try to detect
the location of my package in the filesystem. With Windows no problem.
On Linux if the package the path is always empty. 
My code, runs without an exception, but the URL seems to be empty:
try
{
        XPackageInformationProvider xPackageInformationProvider=
PackageInformationProvider
                .get(m_xContext);
                        
        String location= xPackageInformationProvider
                .getPackageLocation("at.univie.midicsdext"); //has to be the
id from description.xml
                        
        Object oTransformer= m_xContext.getServiceManager()
        
.createInstanceWithContext("com.sun.star.util.URLTransformer",
                        m_xContext);
        XURLTransformer xTransformer= (XURLTransformer) UnoRuntime
                .queryInterface(XURLTransformer.class, oTransformer);
                        
        com.sun.star.util.URL[] oURL= new com.sun.star.util.URL[1];
        oURL[0]= new com.sun.star.util.URL();
        oURL[0].Complete= location + "/midicsv/";
        xTransformer.parseStrict(oURL);
                        
        PackagePath= oURL[0].Path + oURL[0].Name;
        Debug.showMessage("Packpath: " + PackagePath);
}
catch (com.sun.star.uno.Exception ex)
{
        Debug.showException(ex, "MidiCSD::updatePackagePath");
        System.out.println(ex);
        System.out.println(ex.getStackTrace());
}


Is there something like a guide about differences between programming
windows and Unix systems. Or about things I run into with windows which will
not work with Unix?

Thanks,
  Martin 




---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@api.openoffice.org
For additional commands, e-mail: dev-h...@api.openoffice.org

Reply via email to