org.eclipse.cdt.ui.newui
Class ProjectContentsArea

java.lang.Object
  extended by org.eclipse.cdt.ui.newui.ProjectContentsArea

public class ProjectContentsArea
extends java.lang.Object


Nested Class Summary
static interface ProjectContentsArea.IErrorMessageReporter
          IErrorMessageReporter is an interface for type that allow message reporting.
 
Constructor Summary
ProjectContentsArea(ProjectContentsArea.IErrorMessageReporter er, org.eclipse.swt.widgets.Composite composite)
          Create a new instance of a ProjectContentsLocationArea.
 
Method Summary
 org.eclipse.swt.widgets.Button getBrowseButton()
          Return the browse button.
 java.lang.String getProjectLocation()
          Return the location for the project.
 java.net.URI getProjectLocationURI()
          Get the URI for the location field if possible.
 boolean isDefault()
          Return whether or not we are currently showing the default location for the project.
 void updateProjectName(java.lang.String newName)
          Set the text to the default or clear it if not using the defaults.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProjectContentsArea

public ProjectContentsArea(ProjectContentsArea.IErrorMessageReporter er,
                           org.eclipse.swt.widgets.Composite composite)
Create a new instance of a ProjectContentsLocationArea.

Parameters:
composite -
Method Detail

isDefault

public boolean isDefault()
Return whether or not we are currently showing the default location for the project.

Returns:
boolean

getBrowseButton

public org.eclipse.swt.widgets.Button getBrowseButton()
Return the browse button. Usually referenced in order to set the layout data for a dialog.

Returns:
Button

getProjectLocationURI

public java.net.URI getProjectLocationURI()
Get the URI for the location field if possible.

Returns:
URI or null if it is not valid.

updateProjectName

public void updateProjectName(java.lang.String newName)
Set the text to the default or clear it if not using the defaults.

Parameters:
newName - the name of the project to use. If null use the existing project name.

getProjectLocation

public java.lang.String getProjectLocation()
Return the location for the project. If we are using defaults then return the workspace root so that core creates it with default values.

Returns:
String