Sunday, January 15, 2012

Tuesday, August 17, 2010

Closing Editors

IWorkbenchPage page = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage();
IEditorReference[] editors = page.getEditorReferences();
for (int i = 0; i < editors.length; i++) {
IEditorInput otherInput;
try {
otherInput = editors[i].getEditorInput();
return page.closeEditor(editors[i].getEditor(false), false);
} catch (PartInitException e) {
handleException(e);
}
}

Reset Perspective

PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage().resetPerspective();

Tuesday, August 10, 2010

Agile - Scrum - Sprint

Working in an agile manner, AGILE meaning Mentally Quick (an agile mind)... is a different experience, where you would require to quantify your tasks.

Understand your tasks
Break them into granular pieces
Estimating them

lotto learn to work as a SCRUM developer... :)

Thursday, August 6, 2009

Is Twitter a flash in the pan or an innovative social networking tool?

Twitter is turning around the way business are done... moving on from a social networking tool to a serious business offering tool.. Twitter has helped out many organizations to leverage themselves with their customers...

for more infm visit Business@Twitter

Friday, July 31, 2009

Tamino Adapter for Integration Server

This was ma first assignment @ Software AG.. writing Tamino Adapter for webMethods Integration Server.

For the ones, who donno wht Tamino is....
* Tamino is a XML Database owned by Software AG... click here

As the customers were migrating from cross vision which was using tamino to webMethods IS which doesn't have a communication channel to tamino... our job was to make it to talk with tamino...

with a lotta hurdles and spins.. finally we got out an release...

Many thanks to Arun who made this to happen....

Friday, August 22, 2008

Exploring Eclipse..........

Eclipse Summit...... the first of itz kind in INDIA.............. watch out...............cumng soon
www.eclipsesummit.com....

It was a gud experience attending Eclipse India Summit... was overjoyed to see the community growing... Some gud presentations... and it gave me a chance to be back in bangalore after a long time... it was gud to be thr.... lookin fwd to it in the cumng years....

i wanna thank my senior Mr. Annamalai Chockalingam who made me to be there... :)

Watching people there... it again made me to think of working in Eclipse RCP... but unfortunately i am not on that nuv... but will always look fwd to work...

Monday, July 28, 2008

Aravind @ Software AG

change to Chennai....and hav just stepped into Software AG..... left out in a new world and trying to grab the walls over here...fairly interesting stuffz... to know more about Software AG.... visit softwareag

Monday, June 9, 2008

Swapping two values without a temp variable.....

Itz done by using XOR Operator...
int a = 2, b = 3;
a ^= b;
b ^= a;
a ^= b;
System.out.println("A Value : " + a + " : " + "B Value : " +b);

a^=b ---> 010(2) ^ 011(3) ---> 001(1) ---> a = 1
b^=a ---> 011(3) ^ 001(1) ---> 010(2) ---> b = 2
a^=b ---> 001(1) ^ 010(2) ---> 011(3) ---> a = 3

Try this out......

Friday, May 30, 2008

How to make an Class immutable...?

Class should be declared final with all members declared as private and no setter methods....
Immutable class in the sense...the content in the Object of the class can't be changed..

Know about Hashing

Everyone might have used HashMap and HashTable.....have you ever thought howz it handling the keys and values inside...? Even i havnt thought about it....:)

HashTable hashTable_Emp = new HashTable();
hashTable_Emp.put("E1","empName");

It transforms your key to a index value using hash function which enables it for a faster searching mechanism...
To know about hash function----> en.wikipedia.org/wiki/Hash_function
And don forget to hav a look over the hashCode() method under Object class...
http://www.cafeaulait.org/course/week4/38.html

Thursday, May 15, 2008

Java Versionz...

  • JDK 1.0 (January 23, 1996)
  • JDK 1.1 (February 19, 1997)
  • J2SE 1.2 (December 8, 1998)
  • J2SE 1.3 (May 8, 2000)
  • J2SE 1.4 (February 6, 2002)------------>Merlin
  • J2SE 5.0 (September 30, 2004)-------->Tiger
  • Java SE 6 (December 11, 2006)-------->Mustang
  • Java SE 6 Update 10
  • Java SE 7------------------------------>Dolphin

Converting String array to a ArrayList

String[] myArray = new String[]{"One", "Two", "Three"};
ArrayList myList = new ArrayList(Arrays.asList(myArray));

Arrays.asList returns you a fixed size list backed by the specified array...

Monday, May 12, 2008

JTable and JScrollPane

If you want to fill up the right corner gap between your JTable and JScrollPane ...
JButton jButton = new JButton(new ImageIcon());
jScrollPane.setCorner(ScrollPaneConstants.UPPER_RIGHT_CORNER, jButton);

If you want the horizontal scrollbar in the scrollpane which contains JTable..
jScrollPane.setHorizontalScrollBarPolicy(
ScrollPaneConstants.HORIZONTAL_SCROLLBAR_ALWAYS);

Achieving KeyEvent in Editable ComboBox

ComboBoxEditor comboBoxEditor = jComboBox1.getEditor();
JComponent jComponent = (JComponent)comboBoxEditor.getEditorComponent();
if(jComponent instanceof JTextField){
jComponent.addKeyListener(new KeyListener(){
public void keyTyped(KeyEvent e) {

}
public void keyPressed(KeyEvent e) {

}
public void keyReleased(KeyEvent e) {
JOptionPane.showMessageDialog(null, "Iam from ComboBox");
}
});
}

Bringing out a ComboBox selection in JOptionPane..

String[] test = {"Java", "Swing", "RCP"};
JOptionPane.showInputDialog(this, "Select Technology", "OptionPaneTitle", JOptionPane.INFORMATION_MESSAGE, icon, test, "Java");

This should bring you an input dialog and the return type would be the selected object...

Adding Popup Menu in Netbeans to a Frame

In the frame mouse clicked event type in the code as
jPopupMenu1.show(this, evt.getX(), evt.getY());
Don't forget to add a menu item to the popup menu......:)

Types of Images in Swing

Toolkit Image, Buffered Image, Volatile Image is H/W accelerated image, Managed Image...

Thursday, May 8, 2008

Be thr @ the Eclipse Demo Camp......

Dont miss the Eclipse Demo Camp - June 2008 -
Ganymede Edition being organized in Bangalore and Chennai ...

Ganymede is the name given for Eclipse 3.4 version. Ganymede is a natural satellite of Jupiter and the largest satellite in the solar system.....

Requesting for Participation and Presentations from the Eclipse
Developers around Bangalore.
Please find more information and for registration please visit the
following ...

About Demo Camp
http://wiki.eclipse.org/Eclipse_DemoCamps_2008_-_Ganymede_Edition

Bangalore :: http://wiki.eclipse.org/Eclipse_DemoCamps_2008_-_Ganymede_Edition/Bangalore
Chennai :: http://wiki.eclipse.org/Eclipse_DemoCamps_2008_-_Ganymede_Edition/Chennai

If you arent able to register .. just send in an email to
democamp@ancitconsulting.com and we would be more than happy to
register you for the event ....

We are also looking for Event Sponsors in terms of providing Space,
Food and Take Aways for the Participants and Speakers ... If you think
your company would be interested to sponsor please do let me know who
i need to contact and talk to to get this organised ....

Looking forward to all your support to make this event a great success
like the two previous events .....
http://wiki.eclipse.org/Bangalore_DemoCamp - Dec 2007
http://wiki.eclipse.org/Bangalore_Eclipse_Community_Meeting_Apr_08

http://www.ancitconsulting.com