if (!(element instanceof IPackageFragment))
if (!(element instanceof IPackageFragment) && !(element instanceof IPackageFragmentRoot))
	public static boolean mustDisableJavaModelAction(Shell shell, Object element) throws JavaModelException{		if (!(element instanceof IPackageFragment))			return false;				IResource resource= ResourceUtil.getResource(element);		if (resource == null || ! resource.isLinked())			return false;					MessageDialog.openInformation(shell, ActionMessages.getString("ActionUtil.not_possible"), ActionMessages.getString("ActionUtil.no_linked_packages")); //$NON-NLS-1$ //$NON-NLS-2$		return true;	}