Page 1 of 1

1 window for 1 project under os x

Posted: Wed Sep 22, 2004 4:03 pm
by feeef
I am using oxygen under OS X and it is just great! It is all I need for my xml projects!!
The only thing that I think is really missing for the ease of use, is the ability to open several projects into several windows at the same time under os x (I don't know if this already works with other OS). A bit like in xcode. This with Exposé would be perfect! :D

Regards,

Francois.

Posted: Wed Sep 22, 2004 5:22 pm
by george
Hi,

All you can do now is to start two instances of oXygen. For this you have to set the com.oxygenxml.MultipleInstances property to true when you start oXygen.

For instance you can edit the oxygenMac.sh startup script to pass the following argument to java:

-Dcom.oxygenxml.MultipleInstances=true

Another possibility will be to edit the Info.plist file inside the oxygen.app application, in Contents folder and change:

Code: Select all


<key>VMOptions</key>
<string>-Xms32M -Xmx180M</string>
to

Code: Select all


<key>VMOptions</key>
<string>-Xms32M -Xmx180M -Dcom.oxygenxml.MultipleInstances=true</string>

That should enable the "server" mode of oXygen (by default it works in "desktop" mode when starting a new instance will just pass the command line to the running instance).

Best Regards,
George

Posted: Wed Sep 22, 2004 5:42 pm
by feeef
thanks v. much!! :)

Posted: Wed Sep 22, 2004 6:09 pm
by feeef
I have just done what you said (I changed both files) but I was unable to start a new instance. if I double-click on the app I get to the first instance. I also tried to do the following in the terminal :

cd /Applications/oxygen\ Folder
./oxygenMac.sh

and I get the message :
Exception in thread "main" java.lang.NoClassDefFoundError: Folder///plugins
./oxygenMac.sh: line 18: -Dcom.oxygenxml.MultipleInstances=true: command not found

Maybe I am not doing the right thing...

Posted: Wed Sep 22, 2004 6:41 pm
by tavy
Hi,

Copy this to your oxygenMac.sh file and try to launch <oXygen/> again.

Code: Select all


#!/bin/sh
# Oxygen Startup script
# (c) 2003 Syncro Soft Ltd.
case "$0" in
/*)
p=$0
;;
*) p=`/bin/pwd`/$0
;;
esac
p=`dirname "$p"`

CP=$p/classes:$p:$p/oxygen.app/Contents/Resources/Java/oxygen.jar:$p/lib/oxygen.jar
java "-Xdock:name=Oxygen"\
-Dcom.oxygenxml.editor.plugins.dir="$p/plugins"\
-Xmx256m\
-Dcom.oxygenxml.MultipleInstances=true\
-cp "$CP" ro.sync.exml.Oxygen $1 $2 $3 $4 $5 $6 $7 $8 $9

Posted: Thu Sep 23, 2004 1:42 pm
by feeef
Still didn't work with that. It keeps going back to the first instance.
Anyway, don't worry! I don't want to be annoying with that! It is just an idea for a great feature! :)

Thank you v. much for your help!

Regards,

Francois

Posted: Thu Sep 23, 2004 6:48 pm
by george
Hi Francois,

We tested this again and it works here. Are you starting the application in both cases from the Terminal, using oxygenMac.sh with the content as it is in the Tavy's post, right ?

Best Regards,
George