XCode PlugIn (Using AppleScript)
XCode PlugIn (Using AppleScript)
- Subject: XCode PlugIn (Using AppleScript)
- From: Robert Morse <email@hidden>
- Date: Sat, 27 Dec 2003 21:27:07 -0500
Hi,
I have created a plug-in for XCode that will help with all the javadoc
and C++ comments
that should be placed in source code. I am sending this to both the
XCode mailing list and
the Applescript-users mailing list to get a wider range of people to
see it. To improve or
criticize it. It is my first applescript "program/script" and the
first time for a plugin.
Now, on to what it does. It adds comments to code along with skeleton
code, for Java Class, Java Method
C++ Class, C++ Method, C Function, and C++/C Include. Below is example
of the Java Class and Java Method,
comments that it produces.
I am releasing this software as pure Freeware. Do with it what you
want. If you make changes to improve or
fix bugs, I would ask that you send me your changes, but it is not
required. Please keep the copyright in
place.
Note: I have had it crash XCode 1.0.1, but so far not under 1.1. So
please save often when using it, I believe
the problem is in XCode but have not tracked down exactly what caused
the problem before upgrading to 1.1.
Oh, where to find it. Go to <http://www.lostinparadise.net/> and click
on the software button. Sorry about the
website, I just made it up quickly. It is stored as a compressed dmg
image.
Example of a Java Class:
It asks in a Dialog [What I filled in]:
Type: (Public/Protected/Private) [Public]
Class: [MyClass]
Extends: [myExtends]
Implements: [myImplements]
Description: [MyDescription]
and it inserts the following:
/**
* Class Name : MyClass
*
* Description: MyDescription
*
* @author : rmorse
* @version :
* @see :
*/
public class MyClass extends MyExtends implements myImplements
{
}
for a Java Method the follow is asked [Filled In]:
Type: (Public/Protected/Private) [Public]
Return: [String]
Method: [MyMethod]
Arguments: [int arg1, int arg2, int arg3]
Throws: [myThrow]
Description: [Just a test]
and inserts the following:
/**
* Method name : MyMethod
*
* Description : Just a test
*
* @param: int arg1
* @param: int arg2
* @param: int arg3
* @return: String
* @exception: myThrow
*/
public String MyMethod(int arg1, int arg2, int arg3) throws myThrow
{
}
The C++/C Include is nice as it adds the #ifndef __FILENAME_H/#define
__FILENAME_H to the file if the
file ends in .h else it does a #include "FILENAME.h". (Where FILENAME
is the name of the file.)
It also can add the ability to say that the header file declares "C"
function and not C++ functions
for when compiling with a C++ compiler.
_______________________________________________
xcode-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/xcode-users
Do not post admin requests to the list. They will be ignored.