Where does Java fit under Macros?

Let us know how we are doing -
Post Reply
User avatar
acknak
Moderator
Posts: 22756
Joined: Mon Oct 08, 2007 1:25 am
Location: USA:NJ:E3

Where does Java fit under Macros?

Post by acknak »

Is Macros/OOoBasic, Python, JS meant only for those languages? What about Java programming? Does Java go in the general "Macros" area?

I just moved a post there, but I'm not sure that's right.
AOO4/LO5 • Linux • Fedora 23
User avatar
floris v
Volunteer
Posts: 4422
Joined: Wed Nov 28, 2007 1:21 pm
Location: Netherlands

Re: Where does Java fit under Macros?

Post by floris v »

Code snippets seems more likely to me.
OpenOffice 4.1.11 on Ubuntu; LibreOffice 6.4 on Linux Mint, LibreOffice 7.6.2.1 on Ubuntu
If your problem has been solved or your question has been answered, please edit the first post in this thread and add [Solved] to the title bar.
Nederlandstalig forum
User avatar
DrewJensen
Volunteer
Posts: 1734
Joined: Sat Oct 06, 2007 9:01 pm
Location: Cumberland, MD - USA

Re: Where does Java fit under Macros?

Post by DrewJensen »

Well, I'll be the first one to admit that when this section of the board was put together it was not done as well as it should have been - Please if you see a better way to layout those forums speak up...it needs something for sure.
Former member of The Document Foundation
Former member of Apache OpenOffice PMC
LibreOffice on Ubuntu 18.04
User avatar
floris v
Volunteer
Posts: 4422
Joined: Wed Nov 28, 2007 1:21 pm
Location: Netherlands

Re: Where does Java fit under Macros?

Post by floris v »

I felt that Java would probably be used for things like or seen as extensions, that's why. Please don't consider my remarks as criticisms.
OpenOffice 4.1.11 on Ubuntu; LibreOffice 6.4 on Linux Mint, LibreOffice 7.6.2.1 on Ubuntu
If your problem has been solved or your question has been answered, please edit the first post in this thread and add [Solved] to the title bar.
Nederlandstalig forum
User avatar
DrewJensen
Volunteer
Posts: 1734
Joined: Sat Oct 06, 2007 9:01 pm
Location: Cumberland, MD - USA

Re: Where does Java fit under Macros?

Post by DrewJensen »

I don't at all - what we need is feedback, no one here is so arrogant that they think we got it all correct on the first pass...
Former member of The Document Foundation
Former member of Apache OpenOffice PMC
LibreOffice on Ubuntu 18.04
hol.sten
Volunteer
Posts: 495
Joined: Mon Oct 08, 2007 1:31 am
Location: Hamburg, Germany

Re: Where does Java fit under Macros?

Post by hol.sten »

DrewJensen wrote:what we need is feedback
In my opinion Java fits right now not very well in this form, because Java code cannot be called a "macro". A macro is something that runs inside of OOo like OOo Basic, Python, BeanShell and JavaScript. Java code which uses the bootstrap connection mechanism or the interprocess connection mechanism uses OOo's UNO API to call some of OOo's functions. And not all of this code has to be written in Java. To call OOo's UNO API is possible from many programming languages.

My suggestions:
- Change "Macros" to "Macros and UNO API" or "Macros and Programming Languages" or "Macros and External Programs"
- Change the subforum "OOoBasic, Python, JS" to "OOo Basic, Python, BeanShell, JavaScript"
- Add "Java" to the description of "External Programs"
- Change the subforum "API - ODF" to something like "UNO API and ODF"

Regards
hol.sten
OOo 3.2.0 on Ubuntu 10.04 • OOo 3.2.1 on Windows 7 64-bit and MS Windows XP
User avatar
DrewJensen
Volunteer
Posts: 1734
Joined: Sat Oct 06, 2007 9:01 pm
Location: Cumberland, MD - USA

Re: Where does Java fit under Macros?

Post by DrewJensen »

That is about where my thinking was at...

I'll wait a few hours at least for anyone else to jump in- but hearing no objections will make that change later tonight.
Former member of The Document Foundation
Former member of Apache OpenOffice PMC
LibreOffice on Ubuntu 18.04
User avatar
floris v
Volunteer
Posts: 4422
Joined: Wed Nov 28, 2007 1:21 pm
Location: Netherlands

Re: Where does Java fit under Macros?

Post by floris v »

I feel that the difference between code snippets and macros is hard to define. I agree with hol.sten that a macro should run inside OOo, but if Python can run inside OOo then I don't see why Java couldn't. If you take a look at oooforum.org and adopt their solution it will at least help the people who are used to those forums migrate.
OpenOffice 4.1.11 on Ubuntu; LibreOffice 6.4 on Linux Mint, LibreOffice 7.6.2.1 on Ubuntu
If your problem has been solved or your question has been answered, please edit the first post in this thread and add [Solved] to the title bar.
Nederlandstalig forum
User avatar
DrewJensen
Volunteer
Posts: 1734
Joined: Sat Oct 06, 2007 9:01 pm
Location: Cumberland, MD - USA

Re: Where does Java fit under Macros?

Post by DrewJensen »

I think there are two things here

The forum for folks looking for help with their own macros, addins and such.
Then the forum for code snippets.

What I propose for the latter

One forum for code snippets with two sub-forums
Extension Repository - A link forum - redirects to extensions.services.openoffice.org
Macro Repository - A link forum - redirects to ooomacros
The actual forum - just like the one in Oooforum.org

EDIT - the sub-forms would not be displayed on the top level forum line...

???
Former member of The Document Foundation
Former member of Apache OpenOffice PMC
LibreOffice on Ubuntu 18.04
hol.sten
Volunteer
Posts: 495
Joined: Mon Oct 08, 2007 1:31 am
Location: Hamburg, Germany

Re: Where does Java fit under Macros?

Post by hol.sten »

floris v wrote:I feel that the difference between code snippets and macros is hard to define.
I like to have one "Coding" forum for questions and one for working code. But you are right: The disadvantage is, that a lot of times a moderator has to move questions from Snippets to Macros.
floris v wrote:a macro should run inside OOo, but if Python can run inside OOo then I don't see why Java couldn't.
This is caused by OOo's scripting framework. It supports Python, BeanShell (which is a lot like Java) and JavaScript. But it does not support Java. Although you can call Java code from BeanShell...

Regards
hol.sten
OOo 3.2.0 on Ubuntu 10.04 • OOo 3.2.1 on Windows 7 64-bit and MS Windows XP
User avatar
DrewJensen
Volunteer
Posts: 1734
Joined: Sat Oct 06, 2007 9:01 pm
Location: Cumberland, MD - USA

Re: Where does Java fit under Macros?

Post by DrewJensen »

Another thing about this..

Under this theme a small instruction pane can be added to the top any forum - Rules for this Forum - I believe is the title it get - could add then a small blurb to the top of the code snippet forum covering what it is intended for - it won't stop everyone but should cut down on how many folks ask questions in what is to be a repository.
Former member of The Document Foundation
Former member of Apache OpenOffice PMC
LibreOffice on Ubuntu 18.04
hol.sten
Volunteer
Posts: 495
Joined: Mon Oct 08, 2007 1:31 am
Location: Hamburg, Germany

Re: Where does Java fit under Macros?

Post by hol.sten »

hol.sten wrote:
DrewJensen wrote:what we need is feedback
- Add "Java"
Question: Will Java ever get mentioned in the "Customizing and Extending" part of this forum? In my opinion Java is still not fitting anywhere here.

Regards
hol.sten
OOo 3.2.0 on Ubuntu 10.04 • OOo 3.2.1 on Windows 7 64-bit and MS Windows XP
User avatar
DrewJensen
Volunteer
Posts: 1734
Joined: Sat Oct 06, 2007 9:01 pm
Location: Cumberland, MD - USA

Re: Where does Java fit under Macros?

Post by DrewJensen »

ARRRGH.... Sorry - that just fell right off my radar screen of things to do..

Let me take you earlier naming change suggestions and run them by a couple of people today - I'll PM them to get their opinions and my thought after reading again just now is to go with your overall idea...Whatever the change, it will happen today sometime..
Former member of The Document Foundation
Former member of Apache OpenOffice PMC
LibreOffice on Ubuntu 18.04
hol.sten
Volunteer
Posts: 495
Joined: Mon Oct 08, 2007 1:31 am
Location: Hamburg, Germany

Re: Where does Java fit under Macros?

Post by hol.sten »

DrewJensen wrote:that just fell right off my radar screen of things to do..
Do you have a radar screen at all? ;-)
DrewJensen wrote:Whatever the change, it will happen today sometime..
Which "today"? Or did I miss something?

Regards
hol.sten
OOo 3.2.0 on Ubuntu 10.04 • OOo 3.2.1 on Windows 7 64-bit and MS Windows XP
User avatar
DrewJensen
Volunteer
Posts: 1734
Joined: Sat Oct 06, 2007 9:01 pm
Location: Cumberland, MD - USA

Re: Where does Java fit under Macros?

Post by DrewJensen »

Darn...so close,,
- was on the phone talking to Terry this afternoon and this subject was part of it....I was thinking afterwards that I needed to get a move on before you came back and asked what happened - again... :oops:

I'm gong to make the changes tonight...
Former member of The Document Foundation
Former member of Apache OpenOffice PMC
LibreOffice on Ubuntu 18.04
User avatar
floris v
Volunteer
Posts: 4422
Joined: Wed Nov 28, 2007 1:21 pm
Location: Netherlands

Re: Where does Java fit under Macros?

Post by floris v »

Never mind. I'm reminded of a forum admin on another website who was/is famous for the length of his to-do list. 8-)
OpenOffice 4.1.11 on Ubuntu; LibreOffice 6.4 on Linux Mint, LibreOffice 7.6.2.1 on Ubuntu
If your problem has been solved or your question has been answered, please edit the first post in this thread and add [Solved] to the title bar.
Nederlandstalig forum
User avatar
DrewJensen
Volunteer
Posts: 1734
Joined: Sat Oct 06, 2007 9:01 pm
Location: Cumberland, MD - USA

Re: Where does Java fit under Macros?

Post by DrewJensen »

Made the suggested changes - now looking at it, still not sure it is correct...or the best solution...will ponder this a bit and see what others think also.
Former member of The Document Foundation
Former member of Apache OpenOffice PMC
LibreOffice on Ubuntu 18.04
Post Reply