use of org.eclipse.sapphire.PropertyContentEvent in project liferay-ide by liferay.
the class GroupIdDefaultValueService method initDefaultValueService.
@Override
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 GroupIdValidationService method initValidationService.
@Override
protected void initValidationService() {
super.initValidationService();
_listener = new FilteredListener<PropertyContentEvent>() {
protected void handleTypedEvent(PropertyContentEvent event) {
refresh();
}
};
NewLiferayPluginProjectOp op = _op();
op.getProjectProvider().attach(_listener);
}
use of org.eclipse.sapphire.PropertyContentEvent in project liferay-ide by liferay.
the class PluginTypeValidationService method initValidationService.
@Override
protected void initValidationService() {
super.initValidationService();
Listener listener = new FilteredListener<PropertyContentEvent>() {
@Override
protected void handleTypedEvent(PropertyContentEvent event) {
refresh();
}
};
NewLiferayPluginProjectOp op = _op();
op.getProjectProvider().attach(listener);
}
use of org.eclipse.sapphire.PropertyContentEvent in project liferay-ide by liferay.
the class PortletFrameworkValidationService method initValidationService.
@Override
protected void initValidationService() {
super.initValidationService();
_listener = new FilteredListener<PropertyContentEvent>() {
@Override
protected void handleTypedEvent(PropertyContentEvent event) {
refresh();
}
};
NewLiferayPluginProjectOp op = _op();
op.property(NewLiferayPluginProjectOp.PROP_PROJECT_PROVIDER).attach(_listener);
}
use of org.eclipse.sapphire.PropertyContentEvent in project liferay-ide by liferay.
the class AddFilesFromOSGiBundleAction method init.
@Override
public void init(SapphireAction action, ActionHandlerDef def) {
super.init(action, def);
final Element element = getModelElement();
final Listener listener = new FilteredListener<PropertyContentEvent>() {
@Override
protected void handleTypedEvent(PropertyContentEvent event) {
refreshEnablementState();
}
};
element.attach(listener, NewModuleFragmentOp.PROP_HOST_OSGI_BUNDLE.name());
attach(new Listener() {
@Override
public void handle(final Event event) {
if (event instanceof DisposeEvent) {
element.detach(listener, NewModuleFragmentOp.PROP_HOST_OSGI_BUNDLE.name());
}
}
});
}
Aggregations