Page 1 of 1

Where does Java fit under Macros?

Posted: Fri Nov 30, 2007 7:49 pm
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.

Re: Where does Java fit under Macros?

Posted: Sun Dec 02, 2007 7:14 pm
by floris v
Code snippets seems more likely to me.

Re: Where does Java fit under Macros?

Posted: Sun Dec 02, 2007 7:19 pm
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.

Re: Where does Java fit under Macros?

Posted: Sun Dec 02, 2007 7:36 pm
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.

Re: Where does Java fit under Macros?

Posted: Sun Dec 02, 2007 7:43 pm
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...

Re: Where does Java fit under Macros?

Posted: Sun Dec 02, 2007 10:11 pm
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

Re: Where does Java fit under Macros?

Posted: Sun Dec 02, 2007 10:13 pm
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.

Re: Where does Java fit under Macros?

Posted: Sun Dec 02, 2007 10:18 pm
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.

Re: Where does Java fit under Macros?

Posted: Sun Dec 02, 2007 10:28 pm
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...

???

Re: Where does Java fit under Macros?

Posted: Sun Dec 02, 2007 10:34 pm
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

Re: Where does Java fit under Macros?

Posted: Sun Dec 02, 2007 10:37 pm
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.

Re: Where does Java fit under Macros?

Posted: Sat Dec 15, 2007 10:58 am
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

Re: Where does Java fit under Macros?

Posted: Sat Dec 15, 2007 11:09 am
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..

Re: Where does Java fit under Macros?

Posted: Tue Dec 18, 2007 11:46 pm
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

Re: Where does Java fit under Macros?

Posted: Tue Dec 18, 2007 11:49 pm
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...

Re: Where does Java fit under Macros?

Posted: Wed Dec 19, 2007 1:20 am
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-)

Re: Where does Java fit under Macros?

Posted: Thu Dec 20, 2007 7:44 pm
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.