use of org.eclipse.sapphire.Listener in project liferay-ide by liferay.
the class NewLiferayProfileIdDefaultValueService method initDefaultValueService.
@Override
protected void initDefaultValueService() {
super.initDefaultValueService();
Listener listener = new FilteredListener<PropertyContentEvent>() {
@Override
protected void handleTypedEvent(PropertyContentEvent event) {
refresh();
}
};
NewLiferayProfile profile = _newLiferayProfile();
profile.getRuntimeName().attach(listener);
}
use of org.eclipse.sapphire.Listener in project liferay-ide by liferay.
the class ProjectTemplateNameValidationService method initValidationService.
@Override
protected void initValidationService() {
super.initValidationService();
NewLiferayModuleProjectOp op = context(NewLiferayModuleProjectOp.class);
ProjectTemplateNamePossibleValuesService pvs = op.property(NewLiferayModuleProjectOp.PROP_PROJECT_TEMPLATE_NAME).service(ProjectTemplateNamePossibleValuesService.class);
Set<String> templateNames = pvs.values();
if (ListUtil.isNotEmpty(templateNames)) {
_templateNameStatus = Status.createOkStatus();
} else {
pvs.attach(new Listener() {
@Override
public void handle(Event event) {
_templateNameStatus = Status.createOkStatus();
refresh();
}
});
}
}
use of org.eclipse.sapphire.Listener in project liferay-ide by liferay.
the class ModuleProjectGroupIdDefaultValueService method initDefaultValueService.
@Override
protected void initDefaultValueService() {
super.initDefaultValueService();
Listener listener = new FilteredListener<PropertyContentEvent>() {
@Override
protected void handleTypedEvent(PropertyContentEvent event) {
refresh();
}
};
NewLiferayModuleProjectOp op = _op();
op.getLocation().attach(listener);
op.getProjectName().attach(listener);
op.getPackageName().attach(listener);
}
Aggregations