Tuesday Apr 28, 2009

Python and NetBeans


Introduction to Python support in NB prepared by Blanka:


"Some time ago you could notice that in the main download page new menu item appeared.

It is Python Early Access.

Python is a dynamic object-oriented programming language that can be used for many kinds of software development. You can download it by clicking on that item or is also available as a plugin for NetBeans 6.5 in Tools - Plugins.

Let's go thought creating a new project. Python is displayed as the project when only the Python EA version of the IDE has been installed on your machine. Other categories may appear if Python EA was added to the IDE as a plugin. New Project wizard offers you creating of a new python project from a template, or importing existing projects.

In the next step you enter the Project Name and select the version of Python you want to use from the drop down list. You can manage this at any time in the Properties of the project (right click on the project). Then click Finish to create the project.

Note that the project is open in the Source Editor of the IDE, displaying basic information, as seen in the following image. Netbeans IDE automatically documents the author and date of the project along with providing a short sample print "Hello" program.


The NetBeans editor for Python supports Smart Indent, Outdent, and Pair matching, additional to syntactic and semantic highlighting, code folding, instant rename refactoring, mark occurrences, finding undefined names, and Quick Fixes. Code completion is available for local function and variable names as well as Python keywords. The editor also assists you by inserting and fixing import statements.


If you want to try more than just creating the new project, you can follow Python tutorials on the netbeans pages: Developing a Python Application Using NetBeans IDE or Introduction to Python EA in NetBeans IDE."


Wednesday Apr 08, 2009

NetBeans 6.7 Milestone 3 and its new features

Recently Blanka was playing with the newest build of NetBeans 6.7. The IDE in version 6.7, which is still under development, achieved its Milestone #3!
Here are Blanka's comments on few new NB M3 features:


"What is new in NetBeans 6.7

NetBeans team releases NB 6.7 Milestone 3, that offers new interesting features like Kenai Integration or new features in PHP, C/C++, Profiler or Maven. Let's have a look at the most interesting ones. First of all you can Download NetBeans IDE 6.7 Milestone 3.

First you will register some changes in the main menu. Instead of items “Profile” and “Versioning”, there is only “Team”. Also some sub-menus differed.





Totally new thing is that the IDE now integrates with Kenai.com to support typical developer workflow. You can find it under the new item “Team - Kenai”.
To start playing with the Kenai integration in the IDE, you can first try to search and open existing projects on Kenai and get their sources, which does not require login. To get more involved, create an account on Kenai.com, and bookmark some projects or ask for membership. To create your own project, you need to ask for project creation permission first (will not be required when NB 6.7 is released).
More you can see in the Kenai window (Kenai under the item “Window” in the main menu), get projects' sources, issues, and other associated services and information or open, edit and create issues for given Kenai projects, directly in the IDE.

Maven is a framework that provides help with managing the project lifecycle, including building and managing dependencies. Maven projects follow a set of standards that are described with a project object model (POM) to ensure consistency between projects. You can create new project “File – New Project – Maven”.
New multi-tabbed artifact details viewer is now available, accessible from Maven Repository Browser (“Window – Other – Maven Repository Browser”) or Maven section of Quick Search toolbar field.
"Basic" tab shows basic artifact's info, versions and related artifacts.
"Project" tab shows artifact project's info like links to bug tracking, source management, mailing lists etc.
"Classpath" tab shows direct dependencies in lists
"Graph" tab shows transitive dependency graph, see special section below





Hudson monitors executions of repeated jobs, such as building a software project or jobs run by cron. Among those things, current Hudson focuses on the following two jobs: Building/testing software projects continuously and Monitoring executions of externally-run jobs

Start by specifying the location of your Hudson server under “Window - Services” and there should be Hudson.

If you don't have a job for your project, the IDE can help you make one. Currently Maven and Java SE project types are supported, as are Subversion and Mercurial for the SCM. You can right-click your server node, or use “Team - New Continuous Build”. Browse your hosted jobs and their builds. You can also browse the job's workspace, and artifacts from a build. The console from a build can be viewed in the IDE's output window. You should also get notifications in the status bar when a build fails."