Bug 5765 New Class button in empty workspace should be more supportive
User feedback: "Confused how to create my first project" We should be more supportive in the UI for this special case since it is a first time experience with the UI. Therefore when the workbench is empty we should offer to create a new Java project. Minimal solution is to show an info dialog that explains that user should create a project first and offer a button to open the Java project wizard. The same is true for the new package and new interface buttons.
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/wizards/NewGroup.java
} catch (JavaModelException e) {
			JavaPlugin.log(e.getStatus());
		}
		return false;
	}
	
	static boolean isInArchive(Object obj) {
		if (obj instanceof IJavaElement) {
			IPackageFragmentRoot root= JavaModelUtil.getPackageFragmentRoot((IJavaElement)obj);
			return (root != null) && root.isArchive();
		}
		return false;
	}	
			
	/**
	 * fill the context menu with new-wizard actions
	 */
	public void fill(IMenuManager menu, GroupContext context) {
		createActions();
		
		int i= 0;
		MenuManager manager= new MenuManager(NewWizardMessages.getString("NewGroup.wizards_add")); 
		if (fNewProjectAction.canActionBeAdded()) {
			manager.add(fNewProjectAction);
			i++;
		}		
		if (fNewPackageRootAction.canActionBeAdded()) {
			manager.add(fNewPackageRootAction);
			i++;
		}