use of com.liferay.ide.hook.core.model.PortalPropertiesFile in project liferay-ide by liferay.
the class PortalPropertiesFileListener method handleTypedEvent.
@Override
protected void handleTypedEvent(PropertyContentEvent event) {
Property prop = event.property();
if (Hook.PROP_PORTAL_PROPERTIES_FILE.equals(prop.definition())) {
Hook hook = prop.element().nearest(Hook.class);
PortalPropertiesFile ppf = hook.getPortalPropertiesFile().content(false);
if (ppf != null) {
Value<Path> value = ppf.getValue();
if (value != null) {
Path path = value.content(false);
if (path == null) {
ppf.initialize();
}
}
}
}
}
Aggregations