actionBars.setGlobalActionHandler(ITextEditorActionConstants.SELECT_ALL, getAction(ITextEditorActionConstants.SELECT_ALL));
	private void verifyInput(IEditorInput input) throws CoreException {		if (fParent == null || input == null)			return;		IClassFileEditorInput classFileEditorInput= (IClassFileEditorInput) input;		IClassFile file= classFileEditorInput.getClassFile();				boolean wasUsingSourceCopyAction= fSourceCopyAction == getAction(ITextEditorActionConstants.COPY);		// show source attachment form if no source found		if (file.getSourceRange() == null) {			// dispose old source attachment form			if (fSourceAttachmentForm != null)				fSourceAttachmentForm.dispose();			SourceAttachmentForm form= new SourceAttachmentForm(file);			fSourceAttachmentForm= form.createControl(fParent);			fStackLayout.topControl= fSourceAttachmentForm;			fParent.layout();			// Copy action for the no attached source case			if (fNoSourceTextWidget != null) {				final IAction copyAction= new Action() {					public void run() {						fNoSourceTextWidget.copy();					}				};				copyAction.setActionDefinitionId(IWorkbenchActionDefinitionIds.COPY);				setAction(ITextEditorActionConstants.COPY, copyAction);				copyAction.setEnabled(fNoSourceTextWidget.getSelectionText().length() > 0);				fNoSourceTextWidget.addSelectionListener(new SelectionListener() {					public void widgetSelected(SelectionEvent e) {						copyAction.setEnabled(fNoSourceTextWidget.getSelectionText().length() > 0);						}					public void widgetDefaultSelected(SelectionEvent e) {						}				});			}		} else { // show source viewer			if (fSourceAttachmentForm != null) {				fSourceAttachmentForm.dispose();				fSourceAttachmentForm= null;				fStackLayout.topControl= fViewerComposite;				fParent.layout();			}			setAction(ITextEditorActionConstants.COPY, fSourceCopyAction);		}				IAction currentCopyAction= getAction(ITextEditorActionConstants.COPY);		boolean isUsingSourceCopyAction=  fSourceCopyAction == currentCopyAction;		if (wasUsingSourceCopyAction != isUsingSourceCopyAction) {			IActionBars actionBars= getEditorSite().getActionBars();			actionBars.setGlobalActionHandler(ITextEditorActionConstants.COPY, currentCopyAction);			actionBars.updateActionBars();		}			}