You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@openoffice.apache.org by Carl Marcum <cm...@apache.org> on 2013/09/16 00:35:40 UTC
[DEVTOOLS] Updating Netbeans plugin for 3 layer removal
Hi,
I'm going on an assumption that the 3-layer removal is a directory
structure change putting the sdk under the AOO program directory.
I have a question on the directory layout of sdk on platforms other than
linux.
In netbeans plugin current code is broken for AOO4.
private void skeletonmaker(AddOn addon) {
String platform = PlatformInfo.getPlatformBinDir(); // returns
"linux"
String sdkPath = (String)wiz.getProperty("SdkPath"); // returns
"/opt/openoffice4/sdk"
String sdkBinPath =
sdkPath.concat(File.separator).concat(platform).concat(File.separator).concat("bin");
// returns "/opt/openoffice4/sdk/linux/bin"
if
(OpenOfficeLocation.getOpenOfficeLocation().isThreeLayerOffice()) {
sdkBinPath = sdkPath.concat(File.separator).concat("bin");
// would return "/opt/openoffice4/sdk/bin"
}
Since isThreeLayerOffice is false, if I change this to:
if (!OpenOfficeLocation.getOpenOfficeLocation().isThreeLayerOffice()) {
sdkBinPath = sdkPath.concat(File.separator).concat("bin");
// returns "/opt/openoffice4/sdk/bin"
}
It now works.
My question is would this break other platforms?
Thanks,
Carl
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@openoffice.apache.org
For additional commands, e-mail: dev-help@openoffice.apache.org
Re: [DEVTOOLS] Updating Netbeans plugin for 3 layer removal
Posted by Carl Marcum <cm...@apache.org>.
On 11/07/2013 02:26 AM, Jürgen Schmidt wrote:
> On 11/6/13 12:07 PM, Carl Marcum wrote:
>> On 09/22/2013 07:41 PM, Carl Marcum wrote:
>>> Hi all,
>>>
>>> Just to update, I have documented my work on the Netbeans plugin related
>>> to 3-Layer removal changes here:
>>> https://issues.apache.org/ooo/show_bug.cgi?id=123266
>>>
>>> I seem to have the plugin working on Netbeans 7.2 and AOO 4.0.0 at least
>>> for linux (tested on Fedora 17 x86-64).
>>> I have tested a simple AddOn for Writer, AddIn for Calc, and a Client
>>> Application.
>>>
>>> It's possible more work is needed for Mac and Windows.
>>>
>>> I have upload an updated NBM file to:
>>> http://people.apache.org/~cmarcum/devtools/
>>> select org-openoffice-extensions-4.0.5.alpha.nbm
>>>
>>> Thanks,
>>> Carl
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: dev-unsubscribe@openoffice.apache.org
>>> For additional commands, e-mail: dev-help@openoffice.apache.org
>>>
>>
>> Has anyone tried to use this update?
>>
>
> not yet but I will give it try later. I should check and merge it with
> my changes ...
>
> Juergen
>
Okay, I had all my changes checked in.
Thanks,
Carl
---------------------------------------------------------------------
To unsubscribe, e-mail: api-unsubscribe@openoffice.apache.org
For additional commands, e-mail: api-help@openoffice.apache.org
Re: [DEVTOOLS] Updating Netbeans plugin for 3 layer removal
Posted by Jürgen Schmidt <jo...@gmail.com>.
On 11/6/13 12:07 PM, Carl Marcum wrote:
> On 09/22/2013 07:41 PM, Carl Marcum wrote:
>> Hi all,
>>
>> Just to update, I have documented my work on the Netbeans plugin related
>> to 3-Layer removal changes here:
>> https://issues.apache.org/ooo/show_bug.cgi?id=123266
>>
>> I seem to have the plugin working on Netbeans 7.2 and AOO 4.0.0 at least
>> for linux (tested on Fedora 17 x86-64).
>> I have tested a simple AddOn for Writer, AddIn for Calc, and a Client
>> Application.
>>
>> It's possible more work is needed for Mac and Windows.
>>
>> I have upload an updated NBM file to:
>> http://people.apache.org/~cmarcum/devtools/
>> select org-openoffice-extensions-4.0.5.alpha.nbm
>>
>> Thanks,
>> Carl
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: dev-unsubscribe@openoffice.apache.org
>> For additional commands, e-mail: dev-help@openoffice.apache.org
>>
>
> Has anyone tried to use this update?
>
not yet but I will give it try later. I should check and merge it with
my changes ...
Juergen
> Thanks,
> Carl
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: api-unsubscribe@openoffice.apache.org
> For additional commands, e-mail: api-help@openoffice.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: api-unsubscribe@openoffice.apache.org
For additional commands, e-mail: api-help@openoffice.apache.org
Re: [DEVTOOLS] Updating Netbeans plugin for 3 layer removal
Posted by Carl Marcum <cm...@apache.org>.
On 09/22/2013 07:41 PM, Carl Marcum wrote:
> Hi all,
>
> Just to update, I have documented my work on the Netbeans plugin related
> to 3-Layer removal changes here:
> https://issues.apache.org/ooo/show_bug.cgi?id=123266
>
> I seem to have the plugin working on Netbeans 7.2 and AOO 4.0.0 at least
> for linux (tested on Fedora 17 x86-64).
> I have tested a simple AddOn for Writer, AddIn for Calc, and a Client
> Application.
>
> It's possible more work is needed for Mac and Windows.
>
> I have upload an updated NBM file to:
> http://people.apache.org/~cmarcum/devtools/
> select org-openoffice-extensions-4.0.5.alpha.nbm
>
> Thanks,
> Carl
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@openoffice.apache.org
> For additional commands, e-mail: dev-help@openoffice.apache.org
>
Has anyone tried to use this update?
Thanks,
Carl
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@openoffice.apache.org
For additional commands, e-mail: dev-help@openoffice.apache.org
Re: [DEVTOOLS] Updating Netbeans plugin for 3 layer removal
Posted by Carl Marcum <cm...@apache.org>.
On 09/22/2013 07:41 PM, Carl Marcum wrote:
> Hi all,
>
> Just to update, I have documented my work on the Netbeans plugin related
> to 3-Layer removal changes here:
> https://issues.apache.org/ooo/show_bug.cgi?id=123266
>
> I seem to have the plugin working on Netbeans 7.2 and AOO 4.0.0 at least
> for linux (tested on Fedora 17 x86-64).
> I have tested a simple AddOn for Writer, AddIn for Calc, and a Client
> Application.
>
> It's possible more work is needed for Mac and Windows.
>
> I have upload an updated NBM file to:
> http://people.apache.org/~cmarcum/devtools/
> select org-openoffice-extensions-4.0.5.alpha.nbm
>
> Thanks,
> Carl
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@openoffice.apache.org
> For additional commands, e-mail: dev-help@openoffice.apache.org
>
Has anyone tried to use this update?
Thanks,
Carl
---------------------------------------------------------------------
To unsubscribe, e-mail: api-unsubscribe@openoffice.apache.org
For additional commands, e-mail: api-help@openoffice.apache.org
Re: [DEVTOOLS] Updating Netbeans plugin for 3 layer removal
Posted by Carl Marcum <cm...@apache.org>.
Hi all,
Just to update, I have documented my work on the Netbeans plugin related
to 3-Layer removal changes here:
https://issues.apache.org/ooo/show_bug.cgi?id=123266
I seem to have the plugin working on Netbeans 7.2 and AOO 4.0.0 at least
for linux (tested on Fedora 17 x86-64).
I have tested a simple AddOn for Writer, AddIn for Calc, and a Client
Application.
It's possible more work is needed for Mac and Windows.
I have upload an updated NBM file to:
http://people.apache.org/~cmarcum/devtools/
select org-openoffice-extensions-4.0.5.alpha.nbm
Thanks,
Carl
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@openoffice.apache.org
For additional commands, e-mail: dev-help@openoffice.apache.org
Re: [DEVTOOLS] Updating Netbeans plugin for 3 layer removal
Posted by Carl Marcum <cm...@apache.org>.
Hi all,
Just to update, I have documented my work on the Netbeans plugin related
to 3-Layer removal changes here:
https://issues.apache.org/ooo/show_bug.cgi?id=123266
I seem to have the plugin working on Netbeans 7.2 and AOO 4.0.0 at least
for linux (tested on Fedora 17 x86-64).
I have tested a simple AddOn for Writer, AddIn for Calc, and a Client
Application.
It's possible more work is needed for Mac and Windows.
I have upload an updated NBM file to:
http://people.apache.org/~cmarcum/devtools/
select org-openoffice-extensions-4.0.5.alpha.nbm
Thanks,
Carl
---------------------------------------------------------------------
To unsubscribe, e-mail: api-unsubscribe@openoffice.apache.org
For additional commands, e-mail: api-help@openoffice.apache.org
Re: [DEVTOOLS] Updating Netbeans plugin for 3 layer removal
Posted by Jürgen Schmidt <jo...@gmail.com>.
On 9/16/13 12:35 AM, Carl Marcum wrote:
> Hi,
>
> I'm going on an assumption that the 3-layer removal is a directory
> structure change putting the sdk under the AOO program directory.
>
> I have a question on the directory layout of sdk on platforms other than
> linux.
>
> In netbeans plugin current code is broken for AOO4.
>
> private void skeletonmaker(AddOn addon) {
> String platform = PlatformInfo.getPlatformBinDir(); // returns
> "linux"
> String sdkPath = (String)wiz.getProperty("SdkPath"); // returns
> "/opt/openoffice4/sdk"
> String sdkBinPath =
> sdkPath.concat(File.separator).concat(platform).concat(File.separator).concat("bin");
> // returns "/opt/openoffice4/sdk/linux/bin"
>
> if
> (OpenOfficeLocation.getOpenOfficeLocation().isThreeLayerOffice()) {
> sdkBinPath = sdkPath.concat(File.separator).concat("bin");
> // would return "/opt/openoffice4/sdk/bin"
> }
>
> Since isThreeLayerOffice is false, if I change this to:
>
> if (!OpenOfficeLocation.getOpenOfficeLocation().isThreeLayerOffice()) {
> sdkBinPath = sdkPath.concat(File.separator).concat("bin");
> // returns "/opt/openoffice4/sdk/bin"
> }
> It now works.
>
> My question is would this break other platforms?
not 100% checked but I assume not. The whole code have to be reworked
and I started this work for MacOS already ....
The SDK is installed in the openoffice4 folder on Linux and Windows. Mac
was always differently.
Some more tweaks are necessary in the project templates. At least addon
and remote client app.
I will try to have a look on this after my vacation.
Juergen
>
> Thanks,
> Carl
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@openoffice.apache.org
> For additional commands, e-mail: dev-help@openoffice.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@openoffice.apache.org
For additional commands, e-mail: dev-help@openoffice.apache.org