net.officefloor.eclipse.wizard.file
Class OfficeItemNewWizardPage

java.lang.Object
  extended by org.eclipse.jface.dialogs.DialogPage
      extended by org.eclipse.jface.wizard.WizardPage
          extended by net.officefloor.eclipse.wizard.file.OfficeItemNewWizardPage
All Implemented Interfaces:
org.eclipse.jface.dialogs.IDialogPage, org.eclipse.jface.dialogs.IMessageProvider, org.eclipse.jface.wizard.IWizardPage

public class OfficeItemNewWizardPage
extends org.eclipse.jface.wizard.WizardPage

Page to create a new OfficeFloor item.

Author:
Daniel Sagenschneider

Field Summary
 
Fields inherited from interface org.eclipse.jface.dialogs.IMessageProvider
ERROR, INFORMATION, NONE, WARNING
 
Constructor Summary
OfficeItemNewWizardPage(org.eclipse.jface.viewers.IStructuredSelection selection, String pageName, String title, String description, String initialItemName, String extension)
          Initiate.
 
Method Summary
 void createControl(org.eclipse.swt.widgets.Composite parent)
           
 org.eclipse.core.resources.IResource getItemContainer()
          Obtains the IResource container.
 String getItemContainerName()
          Obtains the IContainer name.
 String getItemFullName()
          Obtain the full item name including the extension.
 String getItemName()
          Obtains the item name.
protected  void handleContainerBrowse()
          Handle browsing for a container.
 
Methods inherited from class org.eclipse.jface.wizard.WizardPage
canFlipToNextPage, getContainer, getDialogSettings, getImage, getName, getNextPage, getPreviousPage, getShell, getWizard, isCurrentPage, isPageComplete, setDescription, setErrorMessage, setImageDescriptor, setMessage, setPageComplete, setPreviousPage, setTitle, setWizard, toString
 
Methods inherited from class org.eclipse.jface.dialogs.DialogPage
convertHeightInCharsToPixels, convertHorizontalDLUsToPixels, convertVerticalDLUsToPixels, convertWidthInCharsToPixels, dispose, getControl, getDescription, getDialogFontName, getErrorMessage, getFont, getMessage, getMessageType, getTitle, getToolTipText, initializeDialogUnits, isControlCreated, performHelp, setButtonLayoutData, setControl, setMessage, setVisible
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.eclipse.jface.dialogs.IDialogPage
dispose, getControl, getDescription, getErrorMessage, getMessage, getTitle, performHelp, setVisible
 

Constructor Detail

OfficeItemNewWizardPage

public OfficeItemNewWizardPage(org.eclipse.jface.viewers.IStructuredSelection selection,
                               String pageName,
                               String title,
                               String description,
                               String initialItemName,
                               String extension)
Initiate.

Parameters:
selection - IStructuredSelection.
pageName - Name of the page.
title - Title of the page.
description - Description of the page.
initialItemName - Initial item name.
extension - Extension of the item.
Method Detail

getItemContainer

public org.eclipse.core.resources.IResource getItemContainer()
Obtains the IResource container.


getItemContainerName

public String getItemContainerName()
Obtains the IContainer name.

Returns:
IContainer name.

getItemFullName

public String getItemFullName()
Obtain the full item name including the extension.

Returns:
Full item name.

getItemName

public String getItemName()
Obtains the item name.

Returns:
Item name.

createControl

public void createControl(org.eclipse.swt.widgets.Composite parent)

handleContainerBrowse

protected void handleContainerBrowse()
Handle browsing for a container.



Copyright © 2005-2013. All Rights Reserved.