org.apache.cactus.eclipse.webapp.internal.ui
Class WebAppConfigurationBlock

java.lang.Object
  extended by org.apache.cactus.eclipse.webapp.internal.ui.WebAppConfigurationBlock

public class WebAppConfigurationBlock
extends java.lang.Object

UI block which shows a list of jar entries.

Version:
$Id: WebAppConfigurationBlock.java 238816 2004-02-29 16:36:46Z vmassol $

Constructor Summary
WebAppConfigurationBlock(org.eclipse.swt.widgets.Shell theShell, org.eclipse.jdt.core.IJavaProject theJavaProject, java.lang.String theOutput, java.lang.String theDir, org.eclipse.jdt.core.IClasspathEntry[] theEntries)
          Constructor.
 
Method Summary
 org.eclipse.swt.widgets.Control createContents(org.eclipse.swt.widgets.Composite theParent)
          Returns the UI control for this block.
 java.lang.String getOutput()
          Returns the text entered in the output field.
 org.eclipse.jdt.core.IClasspathEntry[] getWebappClasspath()
          Returns the array of jar entries selected in the libraryPage.
 java.lang.String getWebappDir()
          Returns the text entered in the webapp field.
 void refresh()
          Refreshes the control.
 void update(java.lang.String theOutput, java.lang.String theDir, org.eclipse.jdt.core.IClasspathEntry[] theEntries)
          Refreshes the control with the given values.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WebAppConfigurationBlock

public WebAppConfigurationBlock(org.eclipse.swt.widgets.Shell theShell,
                                org.eclipse.jdt.core.IJavaProject theJavaProject,
                                java.lang.String theOutput,
                                java.lang.String theDir,
                                org.eclipse.jdt.core.IClasspathEntry[] theEntries)
Constructor.

Parameters:
theShell - The shell used by dialog popups (directory and file choosers)
theJavaProject - Java project needed for libraryPage initialization
theOutput - initial output field value
theDir - initial webapp directory value
theEntries - initial list of entries
Method Detail

createContents

public final org.eclipse.swt.widgets.Control createContents(org.eclipse.swt.widgets.Composite theParent)
Returns the UI control for this block.

Parameters:
theParent - the parent control.
Returns:
Control the created control

getOutput

public final java.lang.String getOutput()
Returns the text entered in the output field.

Returns:
String the text entered

getWebappDir

public final java.lang.String getWebappDir()
Returns the text entered in the webapp field.

Returns:
String the text entered

getWebappClasspath

public final org.eclipse.jdt.core.IClasspathEntry[] getWebappClasspath()
Returns the array of jar entries selected in the libraryPage.

Returns:
IClasspathEntry[] the array of jar entries selected

update

public final void update(java.lang.String theOutput,
                         java.lang.String theDir,
                         org.eclipse.jdt.core.IClasspathEntry[] theEntries)
Refreshes the control with the given values.

Parameters:
theOutput - webapp output war location
theDir - webapp directory
theEntries - jar entries for the webapp

refresh

public final void refresh()
Refreshes the control.



Copyright © 2001-2009 The Apache Software Foundation. All Rights Reserved.