if (trigger == '(' && JavaPlugin.getDefault().getPreferenceStore().getBoolean(PreferenceConstants.EDITOR_CLOSE_BRACKETS)) {
if (trigger == '(' && autocloseBrackets()) {
	public void apply(IDocument document, char trigger, int offset) {		try {			super.apply(document, trigger, offset);			if (fImportStructure != null && fImportStructure.hasChanges()) {				int oldLen= document.getLength();				fImportStructure.getResultingEdits(document, new NullProgressMonitor()).apply(document, TextEdit.UPDATE_REGIONS);				setReplacementOffset(getReplacementOffset() + document.getLength() - oldLen);			}						if (trigger == '(' && JavaPlugin.getDefault().getPreferenceStore().getBoolean(PreferenceConstants.EDITOR_CLOSE_BRACKETS)) {				document.replace(getReplacementOffset() + getCursorPosition(), 0, ")"); //$NON-NLS-1$				setUpLinkedMode(document, ')');			}		} catch (CoreException e) {			JavaPlugin.log(e);		} catch (BadLocationException e) {			JavaPlugin.log(e);		}	}