Monday, August 25, 2014

How to continue code review effectively


Code review is a common software engineering practice employed both in open source and industrial contexts. I will be writing this blog post regarding all aspect of code review:



Code Review Data Structure:

https://blog.jetbrains.com/upsource/2015/08/20/what-to-look-for-in-a-code-review-data-structures/ 
interesting blog post to read:



http://www.infoq.com/news/2008/03/code-review-antipatterns
http://server.dzone.com/articles/dont-waste-time-code-reviews


Code review tools for Eclipse:

FindBugs plug-in:

web: http://findbugs.cs.umd.edu/eclipse/
update site: http://findbugs.cs.umd.edu/eclipse


PMD:
web: http://pmd.sourceforge.net/
update site: http://sourceforge.net/projects/pmd/files/pmd-eclipse/update-site/



Gerrit:
Gerrit is a web based code review system, facilitating online code reviews for projects using the Git version control system.



http://scn.sap.com/docs/DOC-42271
http://www.infoq.com/articles/Gerrit-jenkins-hudson


More Details :

https://blog.jetbrains.com/upsource/category/practices/

How to find a view in Eclipse RCP

The following technique can be used to get the currently active page and any view within that page.


IWorkbenchPage page = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage();
IViewPart view = page.findView(MyView.ID);


The MyView.ID specified the ID of the view as declared in the plugin.xml file.

Open a perspective in a new window

Using the following code we can use a perspective in a separate window:



String myPerspectiveid = "dk.bording.viking.rcp.ui.till.editor.TillDesignerPerspective";
PlatformUI.getWorkbench().getActiveWorkbenchWindow().openPage(myPerspectiveid , null);

Sunday, August 24, 2014

Eclipse RCP: How to Hide or Remove a Contribution Item from a toolbar or Menubar

Using the following code we can hide or remove a Contribution item from a toolbar or menubar



private void hidePinbuttonFromPropertySheet() { IWorkbenchPage page = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage();
IViewPart view = page.findView(IPageLayout.ID_PROP_SHEET);   String id = "";
if(view!=null)
{
for ( IContributionItem item : view.getViewSite().getActionBars().getToolBarManager().getItems()) {
if (item.getId().indexOf("PinPropertySheetAction")!=-1) { id = item.getId();
break;
}
}
view.getViewSite().getActionBars().getToolBarManager().remove(id);
view.getViewSite().getActionBars().getToolBarManager().update(false); } }


5 Strategies for Getting More Work Done in Less Time

Summary.    You’ve got more to do than could possibly get done with your current work style. You’ve prioritized. You’ve planned. You’ve dele...