Tag Archives: eclipse

Introduction To RCP (Rich Client Platform)

Rich Client Platform in Eclipse consists of a core, a standard bundling,a framework, a portable widget toolkit, file buffers, text handling, text editors, a workbench (views, editors, perspectives, wizards), Update Manager etc. With RCPs developers can build their own applications on existing platforms, without spending much time on building platforms . Instead of having to write a complete application from scratch, they can benefit from proven and tested features of the framework provided by the platform. Building on a platform facilitates faster application development and integration. Rich Client Application (RCA) ( an application built on RCPs ) normally in the form of a stand-alone executable with a graphical interface composed of several controls for the user.

Making a rich client application in eclipse is quite similar to plug-in development work, with a little different approach. Here it is discussed in steps.

Read more »

Building A Java Project In Eclipse

Eclipse IDE not only manages Java code for Projects but Programmer can compile their Java source code using features of IDE. Suppose you have a Java Project with source code and the Jar files needed to compile the project in the project claspath. IDE provides you the option to build Java code and putting that to the output directory. Here is the brief introduction for each option available.

Read more »

Debugging Java Application in Eclipse IDE

A Programmer many times try to locate and fix the bugs (errors) in the program code. Basic meaning of debugging a program is to start with a problem, isolate the source of the problem, and then fix it. When a programmer says he has debugged the program it means bugs has been worked out and bugs no longer exist.

From a Java Programmer there are a varieties of tools but if you are using an editor then it becomes quite easy for you to debug the program.

Read more »

Java Command Line Arguments In Eclipse IDE

The signature of main method is:

public static void main(String[] args) {

which means that it takes a string array as the input argument. How can those be passed while running as a standalone class with in the Eclipse IDE? How can we use those input parameters with in a program? These are the some of the questions discussed here.

Read more »

Private: AnyEdit Plugin For Eclipse

“AnyEdit” is a simple plugin for Eclipse that adds few tools to the Eclipse menu, toolbars and to the output consoles. These added features are very useful for the coders and save time in simple operations.

First step is installing the plugin. As with other Eclipse plugin, its really very easy to install and configure AnyEdit.

  1. Download the plugin from here.
  2. Unzip the file and copy ” de.loskutov.anyedit.AnyEditTools_1.8.0.jar ” to ” Plugins ” folder under Eclipse.
  3. Open Eclispe and everything is read to use.

Suppose we have following Test class:

Read more »

XMLBuddy for Eclipse

XML stands for EXtensible Markup Language. It is a markup language much like HTML and it is used to describe data. XML is a popular format in many advanced protocols. Many of the application configuration files are now converted to XML format. Now a days the XML data is also used for inter application communications to a wide extend.

There are many XML plug-ins available for the XML manipulations, but the most popular one is XMLBuddy . Its a free-ware plug-in and allows XML editing features in Eclipse environment.

First download the plug-in from http://www.xmlbuddy.com. Unzip it and move the folder named com.objfac.xmleditor_2.0.9 to the plugins folder under Eclipse directory. Now simple open the Eclipse. XML plug-in is read to use.

Read more »

An Introduction to Eclipse PDE – File Creation

Eclipse is a platform which is itself comprised of plugins.Eclipse itself is not only a Developement environment for Java pr C++ But also an IDE for plugins for itself or standalone plugins.

As stated above Eclipse can be used as a Plugin Development Environment (PDE) which is a set of tools that help the developers in developing, testing, debugging, building, and deploying Eclipse plugins.

The plugin Development Environment (PDE) has its Wizard template to create plugins. The plugin,to be created will associate Eclipse with the file extension “.myext”. The plugin’s wizard will enable the user to create files with this extension, and when the user double-clicks on those files, they’ll appear in the plugin’s editor.

Read more »

Using Junit In Eclipse

Unit testing is defined as “ Each module is tested alone in an attempt to discover any errors in its code ”. Its always a good practice to test each unit of your project independently as it saves time and effort while integrating the modules.

JUnit provides close relationship between testing and development. As developers write the code, they use the JUnit test runners to verify how much it deviates from the intended goal. Normally it is a standard practice that the code developers themselves write unit tests for their code.

Read more »

Generating Undeclared Methods

Eclipse has many features that make the job of a programmer easy. Here a simple project is created and will use few of those features to demonstrate how easy programming can be using Eclipse. Most of the new programmers, ignore these and prefer to code everything themselves which is time consuming.

Read more »

Concurrent Versions System (CVS)

Eclipse comes with support for teams in the form of CVS, Concurrent Versions System. CVS is an open source tool to keep track of every version of a set of files. The versions and files are kept in a repository that is able to respond to requests like, “ give me version 1.9 of file Abc.java ”.

Let’s assume that you are working on a file “ TestClass.java ”. When the file is new, it is added to the repository, which basically means that file becomes known to the repository, and from that point onwards, the repository will keep record of the file and all its versions. After adding the file, some editing is made, and then those edits are “ checked in ” to the repository, which instructs the repository to watch the difference, store the difference, and then make the checked in file the current/latest copy of the file. After you have checked in your changes, the file version beomces 1.1, and any other user that has access to the repository can update their local copy with this version 1.1 from the repository. With the time, the file continues to be edited and newer and newer version are checked in, Since the repository has the file and all the old versions of that file, you are table to ask the repository for “ TestClass.java 1.2 “ ( 1.2 is the version no), even when the latest version is 1.56.

Read more »