Bug 11257 Java Templates
In the build 1203 i have the following problems: 1> If i edit a template of JAVA like stderr then the dialog that gets opend will display: JAVA_DOC as type. 2> Filecomment and Typecomment are there but empty is this wanted?
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/preferences/EditTemplateDialog.java
viewer.getTextWidget().addKeyListener(new KeyListener() {
			public void keyPressed(KeyEvent e) {
				handleKeyPressed(e);
			}
			public void keyReleased(KeyEvent e) {}
		});
		
		return viewer;
	}
	private void handleKeyPressed(KeyEvent event) {
		if (event.stateMask != SWT.CTRL)
			return;
			
		switch (event.character) {
			case ' ':
				fPatternEditor.doOperation(ISourceViewer.CONTENTASSIST_PROPOSALS);
				break;
			
			case (int) 'z' - (int) 'a' + 1:
				fPatternEditor.doOperation(ITextOperationTarget.UNDO);
				break;				
		}
	}
	private void initializeActions() {
		TextViewerAction action= new TextViewerAction(fPatternEditor, fPatternEditor.UNDO);
		action.setText(TemplateMessages.getString("EditTemplateDialog.undo")); 
		fGlobalActions.put(ITextEditorActionConstants.UNDO, action);
		action= new TextViewerAction(fPatternEditor, fPatternEditor.CUT);
		action.setText(TemplateMessages.getString("EditTemplateDialog.cut"));