org.gcn.plinguaplugin.wizardCommonComponents
Class ExistingResourceListener

java.lang.Object
  extended by org.gcn.plinguaplugin.wizardCommonComponents.AbstractTextListener
      extended by org.gcn.plinguaplugin.wizardCommonComponents.ExistingResourceListener
All Implemented Interfaces:
java.util.EventListener, org.eclipse.swt.events.ModifyListener, org.eclipse.swt.internal.SWTEventListener
Direct Known Subclasses:
AbstractPackageListener, AbstractProjectListener

public abstract class ExistingResourceListener
extends AbstractTextListener

This class checks if the text in the specific resource text field exists and updates its PsystemWizard instance wizard speficic field

Author:
Manuel Garcia-Quismondo-Fernandez

Constructor Summary
ExistingResourceListener(org.eclipse.jface.wizard.WizardPage paramPage, org.eclipse.swt.widgets.Text textField)
          Creates a new ExistingResourceListener instance which contains the text field given as parameter
 
Method Summary
abstract  java.lang.String getResourceRoute(java.lang.String field)
          Gets the resource route for the specific class
 void setField(java.lang.String field)
          Sets the text field content
abstract  void setValue(java.lang.String value, boolean change)
          Sets the resource field value for the specific class
 
Methods inherited from class org.gcn.plinguaplugin.wizardCommonComponents.AbstractTextListener
getFieldName, getParamPage, modifyText
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExistingResourceListener

public ExistingResourceListener(org.eclipse.jface.wizard.WizardPage paramPage,
                                org.eclipse.swt.widgets.Text textField)
Creates a new ExistingResourceListener instance which contains the text field given as parameter

Parameters:
paramPage - the page which the text field belongs to
textField - the resource text field to listen for changes
Method Detail

setField

public void setField(java.lang.String field)
Description copied from class: AbstractTextListener
Sets the text field content

Specified by:
setField in class AbstractTextListener
Parameters:
field - the text field content to set
See Also:
AbstractTextListener.setField(java.lang.String)

getResourceRoute

public abstract java.lang.String getResourceRoute(java.lang.String field)
Gets the resource route for the specific class

Parameters:
field - the base resource text
Returns:
the resource route for the specific class

setValue

public abstract void setValue(java.lang.String value,
                              boolean change)
Sets the resource field value for the specific class

Parameters:
value - the resource field value for the specific class
change - a boolean representing if the resource field should be updated on the parameters page