use of org.eclipse.sapphire.PropertyContentEvent in project liferay-ide by liferay.
the class TaskValidationService method initValidationService.
@Override
protected void initValidationService() {
Assignable assignable = assignable();
if (assignable != null) {
_listener = new FilteredListener<PropertyContentEvent>() {
@Override
protected void handleTypedEvent(PropertyContentEvent event) {
refresh();
}
};
assignable.attach(_listener, "*");
}
}
use of org.eclipse.sapphire.PropertyContentEvent in project liferay-ide by liferay.
the class LiferayVersionDefaultValueService method initDefaultValueService.
@Override
protected void initDefaultValueService() {
super.initDefaultValueService();
PropertyDef def = context().find(PropertyDef.class);
Property property = context(Element.class).property(def);
PossibleValuesService possibleValuesService = property.service(PossibleValuesService.class);
possibleValuesService.attach(new Listener() {
@Override
public void handle(Event event) {
_possibleValues = possibleValuesService.values();
refresh();
}
});
NewLiferayProfile profile = context(NewLiferayProfile.class);
profile.property(NewLiferayProfile.PROP_RUNTIME_NAME).attach(new FilteredListener<PropertyContentEvent>() {
@Override
protected void handleTypedEvent(PropertyContentEvent event) {
_possibleValues = possibleValuesService.values();
_runtimeVersion = null;
refresh();
}
});
_possibleValues = possibleValuesService.values();
}
use of org.eclipse.sapphire.PropertyContentEvent in project liferay-ide by liferay.
the class LocationValidationService method initValidationService.
@Override
protected void initValidationService() {
_listener = new FilteredListener<PropertyContentEvent>() {
@Override
protected void handleTypedEvent(PropertyContentEvent event) {
refresh();
}
};
NewLiferayPluginProjectOp op = _op();
op.getProjectName().attach(_listener);
op.getProjectProvider().attach(_listener);
}
use of org.eclipse.sapphire.PropertyContentEvent in project liferay-ide by liferay.
the class ArtifactVersionDefaultValueService method initDefaultValueService.
protected void initDefaultValueService() {
super.initDefaultValueService();
Listener listener = new FilteredListener<PropertyContentEvent>() {
@Override
protected void handleTypedEvent(PropertyContentEvent event) {
refresh();
}
};
NewLiferayPluginProjectOp op = _op();
op.getLocation().attach(listener);
op.getProjectName().attach(listener);
}
use of org.eclipse.sapphire.PropertyContentEvent in project liferay-ide by liferay.
the class DisplayNameDefaultValueService method initDefaultValueService.
@Override
protected void initDefaultValueService() {
super.initDefaultValueService();
_listener = new FilteredListener<PropertyContentEvent>() {
@Override
protected void handleTypedEvent(PropertyContentEvent event) {
refresh();
}
};
NewLiferayPluginProjectOp op = _op();
op.property(NewLiferayPluginProjectOp.PROP_PROJECT_NAME).attach(_listener);
}
Aggregations