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/ContainerPage.java
}	
	
	/**
	 * Returns the PackageFragmentRoot corresponding to the current input.
	 * @return the PackageFragmentRoot or <code>null</code> if the current
	 * input is not a valid source folder
	 */ 
	public IPackageFragmentRoot getPackageFragmentRoot() {
		return fCurrRoot;
	}
	/**
	 * Returns the text of the container field.
	 */ 	
	public String getContainerText() {
		return fContainerDialogField.getText();
	}
	
	
	/**
	 * Sets the current PackageFragmentRoot (model and text field).
	 * @param canBeModified Selects if the container field can be changed by the user
	 */ 
	public void setPackageFragmentRoot(IPackageFragmentRoot root, boolean canBeModified) {
		fCurrRoot= root;
		String str= (root == null) ? "" : root.getPath().makeRelative().toString(); 
		fContainerDialogField.setText(str);
		fContainerDialogField.setEnabled(canBeModified);
	}