Bug 5755 Open Type dialog is missing types
I can't find any of the classes in some of my packages in the Open Type(Ctrl- Shift-T) dialog. They just aren't there... Class files exist for them. 20011106
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/wizards/TypePage.java
/**
	 * Called from createType to get a type comment. 
	 * Returns source or null, if no type comment should be added
	 */		
	protected String getTypeComment(ICompilationUnit parentCU) {
		if (CodeGenerationPreferencePage.doCreateComments()) {
			return getTemplate("typecomment", parentCU);
		}
		return null;
	}
	
	protected String getTemplate(String name, ICompilationUnit parentCU) {
		Template[] templates= Templates.getInstance().getTemplates();
		for (int i= 0; i < templates.length; i++) {
			if (name.equals(templates[i].getName())) {
				return evaluateTemplate(templates[i], parentCU);
			}
		}
		return null;
	}	
	private String evaluateTemplate(Template template, ICompilationUnit compilationUnit) {
		
		ContextType contextType= ContextTypeRegistry.getInstance().getContextType("java");
		if (contextType == null)
			return null;
		try {
			String string= compilationUnit.getSource();
			int position= 0;
			JavaContext context= new JavaContext(contextType, string, position, compilationUnit);
			context.setForceEvaluation(true);