* @param evt A PropertyChangeEvent object describing the event source and the property that has changed.
*/
public void propertyChange(PropertyChangeEvent evt)
{
IWeblogAPI type = (IWeblogAPI)vmAPI.getValue();
if (type != null)
{
boolean newEnabled = type.isApiUrlApplicable();
boolean oldEnabled = tfURL.isEnabled();
if (newEnabled != oldEnabled)
{
tfURL.setEnabled(newEnabled);
if (newEnabled)
{
tfURL.setText(lastEnteredURL);
} else
{
lastEnteredURL = tfURL.getText();
tfURL.setText(Strings.message("ptb.prefs.details.setup.not.applicable"));
}
}
taDescription.setText(type.getDescription());
}
}