use of org.eclipse.wst.server.core.util.PublishAdapter in project liferay-ide by liferay.
the class AbstractPortalServerEditorSection method addChangeListeners.
protected void addChangeListeners() {
listener = new PropertyChangeListener() {
public void propertyChange(PropertyChangeEvent event) {
if (updating) {
return;
}
updating = true;
addPropertyListeners(event);
updating = false;
}
};
server.addPropertyChangeListener(listener);
publishListener = new PublishAdapter() {
public void publishFinished(IServer server2, IStatus status) {
boolean flag = false;
if (status.isOK() && server2.getModules().length == 0)
flag = true;
if (flag != allowRestrictedEditing) {
allowRestrictedEditing = flag;
}
}
};
server.getOriginal().addPublishListener(publishListener);
}
Aggregations