public FindOccurrencesInFileAction(JavaEditor editor) { this(editor.getEditorSite()); fEditor= editor; setEnabled(getEditorInput(editor) != null);
public FindOccurrencesInFileAction(IViewPart part) { this(part.getSite());
	public FindOccurrencesInFileAction(JavaEditor editor) {		this(editor.getEditorSite());		fEditor= editor;		setEnabled(getEditorInput(editor) != null);	}