Personal tools
You are here: Home Forum Office Integration Editor Plugin (NOA4e) OfficePanel in RCP-View stays gray

 • OfficePanel in RCP-View stays gray

Replies: 9   Views: 358
Up one level
Prev topic | Next topic

 • OfficePanel in RCP-View stays gray

Posted by Markus Blaurock at 2007-12-16 15:41:57
Hello,

i am hopelessly lost. I am trying to open a OpenOffice-Calc document in a RCP-application-View using just a simple OfficePanel. It just stays gray whatever i do. Here are the configurations i tried:
* Eclipse 3.3.1
* Windows XP Home + OpenOffice 2.3.1 + Java 1.6.03 and Java 1.5.014 (same results)
* Ubuntu 7.10 + OpenOffice 2.3.0 + Java 1.5.013

With a little tweaking of the buildControls()-Method in OfficePanel-Class i got something to show up under Linux. But these Modifications didn't work with Windows at all - just staying gray there.
Attached i have the modification i needed to make with Linux. Besides this doesn't seem right to me i have to get it working with windows too. I obviously missed a big point, but i have no clue anymore where to search.

The way i created the view is:

public void createPartControl(Composite parent) {
op = new OfficePanel(parent, SWT.NONE);
}

And then using an action to call loadDocument on it.

In the meanwhile i am not even shure if i used the officePanel correctly. Maybe somebody could post a definitifly working example on the Wiki?

a little bit puzzled,
Markus
Markus Blaurock Member
Posts: 2

 • missing Attachment

Posted by Markus Blaurock at 2007-12-16 15:47:09
somehow the attachment was gone..
Markus Blaurock Member
Posts: 2

 • Re: OfficePanel in RCP-View stays gray

Posted by Markus Krueger at 2007-12-17 10:33:26
Hi,
I just tried it using:
* Eclipse 3.3.1.1
* Windows XP Pro
* OpenOffice 2.3.1
* Java 1.5.12

It works smoothly.

I attached my sample view. The "instance" part was just done for quicker testing it from an action calling the loadDoc method on this.

Regards,

Markus
Markus Krueger Manager
Posts: 494

 • Re: OfficePanel in RCP-View stays gray

Posted by gerry at 2008-12-07 11:28:01
Hallo Markus

Ich habe dasselbe Problem wie der Vorredner. Bloss ist bei mir die View weiss mit einem schmalen grauen Rand drumrum (Keine OpenOffice-Menüs etc., nur eine weisse Fläche). Dies passiert auch, wenn ich in meinem RCP eine View genau mit Deinem oben geposteten Code erstelle.

Dies mit OpenOffice 3.0, Eclipse 3.41 und Java 6 unter Windows XP.

Interessant ist: In derselben Umgebung funktioniert NOA4e innerhalb von Eclipse wie erwartet... Bloss in meiner RCP-Anwendung geht es nicht. Es gibt keine Fehlermeldung, die letzte Ausgabe ist "INFO: Opening local OpenOffice.org connection.".
Das UI friert auch nicht ein, ich kann mit dem Rest normal weiterarbeiten.

Tja. Kannst Du Dir einen Reim drauf machen?

(Meine Anwendung ist www.elexis.ch und ich bin immer noch auf OpenOffice 2.03 mit NOA4e, weil ich keine höhere Version zum laufen kriege.)

Herzliche Grüsse,

Gerry
gerry Member
Posts: 16

 • Re: OfficePanel in RCP-View stays gray

Posted by gerry at 2008-12-08 09:46:48
Noch ein Follow-Up nach einem Testsonntag: OOo 3.0 geht doch, aber nur mit Java 1.5 und inkonstant - also meistens erscheint das OOo-Fenster, manchmal nicht. Dann muss man den soffice-Prozess im Hintergrund abschiessen und kann es nochmal probieren.
gerry Member
Posts: 16

 • Re: OfficePanel in RCP-View stays gray

Posted by Markus Krueger at 2008-12-08 13:44:59
Hi,
also das Java 1.5 mit OOo 3.0 nicht konsistent funktioniert kann ich nicht nachvollziehen. Unsere Tests haben alle Funktioniert.
Zum Thema 1.6 hab ich evtl. das Problem gefunden (wird mit der nächsten Version behoben sein).

Bis zur nächsten Version kannst du im Source in dem Plugin "ag.ion.noa4e.ui" in der Klasse "ag.ion.noa4e.ui.widgets.OfficePanel" die Methode "convertToURL" anpassen. Dort einfach den Try block so anpassen, dass der wie folgt aussieht:

try {
if (System.getProperty("os.name" ).toLowerCase().indexOf("windows" ) != -1) {
return new URL("file", "/", documentPath);
}
return new URL("file:////" + documentPath);
}

p.s.: Nächste Version ist noch nicht geplant...

gruß,
Markus
Markus Krueger Manager
Posts: 494

 • Re: OfficePanel in RCP-View stays gray

Posted by gerry at 2008-12-10 11:51:08
Hallo und Vielen Dank!
Die Quellen für 2.0.11 sind aber auf der update site nicht dabei und auch nicht direkt herunterladbar. Oder suche ich jetzt an der falschen Stelle?

Gruss, Gerry
gerry Member
Posts: 16

 • Re: OfficePanel in RCP-View stays gray

Posted by Markus Krueger at 2008-12-10 13:35:34
Tja, da magst du leider Rech haben :(
Muss dich dann leider auf das nächste Release vertrösten, sorry. Aber mit Java 1.5 läuft hier alles ohne Probleme.

Gruß,

Markus
Markus Krueger Manager
Posts: 494

 • Re: OfficePanel in RCP-View stays gray

Posted by Markus Krueger at 2008-12-15 14:59:35
Die neue Version steht nun zur Verfügung.
Ich hoffe es funktioniert besser.

Gruß und frohe Weihnachten,

Markus
Markus Krueger Manager
Posts: 494

 • Re: OfficePanel in RCP-View stays gray

Posted by gerry at 2008-12-15 15:48:58
Na das ging aber schnell :) Ich werde es die nächsten Tage gerne ausprobieren. Vielen Dank und ebenfalls frohe Festtage!

Gerry
gerry Member
Posts: 16

Powered by Plone, the Open Source Content Management System

This site conforms to the following standards: