Custom
Write your own detector: Get Code
- Import all UCDetector projects using this eclipse project set.
Or: projectsorg.ucdetector and org.ucdetector.additional from SVN:svn co http://svn.code.sf.net/p/ucdetector/code/trunk/org.ucdetector org.ucdetector svn co http://svn.code.sf.net/p/ucdetector/code/trunk/org.ucdetector.additional org.ucdetector.additional
Create custom marker
Create your own problem markers! I already provided example code for
- Detect naming conventions for classes, methods or fields and create markers
 - Detect class names which are not unique
 - Detect no java files
 - Find all comments which contain "TODO"
 
This code is easy to extend. Look at this example:
  protected void handleType(IType type) throws CoreException {
    String className = type.getElementName();
    if (!type.isAnonymous() && !startsWithUpper(className)) {
      markerFactory.createMarker(type,
        "Class name must start with upper case");
    }
				
	
To create your own detector plugin:
- Change code of example above found in 
CheckNameConventionIterator.java - Create plugin with ant build file: 
/org.ucdetector/build/build.xml(ant build works only inside Eclipse!) - Put create plugins in 
ECLIPSE_HOME/dropinsdirectory - Restart Eclipse
 
     
	
Debug your changes
Cool: Debug a running eclipse IDE.Create a new Eclipse run configuration. Menu:
- Run
 - Run Configurations...
 - Eclipse Application
 - See screenshots
 - Click button 'Debug'
 
		
	
		
	
		
	
UCDetector