Your SlideShare is downloading. ×
Top 10 mistakes in eclipse plug in development
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×
Saving this for later? Get the SlideShare app to save on your phone or tablet. Read anywhere, anytime – even offline.
Text the download link to your phone
Standard text messaging rates apply

Top 10 mistakes in eclipse plug in development

12,532

Published on

Published in: Technology
0 Comments
1 Like
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total Views
12,532
On Slideshare
0
From Embeds
0
Number of Embeds
9
Actions
Shares
0
Downloads
0
Comments
0
Likes
1
Embeds 0
No embeds

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
No notes for slide

Transcript

  • 1. Whats wrong with the snippet? public boolean isNegative(int number) { // use 10 as radix String stringVal = Long.toString(number, 10); char minusSign = stringVal.charAt(0); if(minusSign == '-') return true; //Yes, its -ve number else return false; //Nope, its +ve number } 1
  • 2. Top 10 mistakes in Eclipse plug-in development Prakash G.R. Eclipse Platform UI Team IBM ISL www.eclipse-tips.com 2
  • 3. Agenda ✗ Teach Eclipse plug-in development ✗ Educate about the mistakes ✗ Improve the code quality ✔ Just try to keep you awake 3
  • 4. Top 10 mistakes 10. Not reading the javadoc 9. Not having a default constructor 8. One plugin – do – it – all problem 7. Using 'internal' code 6. Directly setting the classpath 4
  • 5. Top 10 mistakes contn... 5. Ignoring build.properties 4. Empty dispose method 3. Not honoring monitor cancellation 2. I-am-important contributions 1. Long running operations in UI thread 5
  • 6. Back to the question public boolean isNegative(int number) { // use 10 as radix String stringVal = Long.toString(number, 10); char minusSign = stringVal.charAt(0); if(minusSign == '-') return true; //Yes, its a -ve number else return false; //Nope, its a +ve number } 6
  • 7. Back to the question public boolean isNegative(int number) { return number < 0; } 7
  • 8. Bonus Looking into the details is important, but .. Never, ever loose focus on the bigger picture 8
  • 9. Questions & Answers 9
  • 10. Thank you Image Credits http://www.fickr.com/photos/crystaljingsr/sets/72157622354789320/ 10

×