use of org.eclipse.sapphire.PropertyContentEvent in project liferay-ide by liferay.
the class TaskScriptedAssignmentCondition method initCondition.
@Override
protected void initCondition(ISapphirePart part, String parameter) {
super.initCondition(part, parameter);
Task task = _task();
Listener assignmentTypeListener = new FilteredListener<PropertyContentEvent>() {
@Override
public void handleTypedEvent(PropertyContentEvent event) {
updateConditionState();
}
};
if (task != null) {
task.attach(assignmentTypeListener, Task.PROP_SCRIPTED_ASSIGNMENT.name());
}
updateConditionState();
}
use of org.eclipse.sapphire.PropertyContentEvent in project liferay-ide by liferay.
the class CurrentAssignmentsCondition method initCondition.
@Override
protected void initCondition(ISapphirePart part, String parameter) {
super.initCondition(part, parameter);
_parameter = parameter;
Assignable assignable = _op();
Listener assignmentTypeListener = new FilteredListener<PropertyContentEvent>() {
@Override
public void handleTypedEvent(PropertyContentEvent event) {
updateConditionState();
}
};
assignable.attach(assignmentTypeListener, "*");
updateConditionState();
}
use of org.eclipse.sapphire.PropertyContentEvent in project liferay-ide by liferay.
the class SDKLocationValidationService 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);
op.property(NewLiferayPluginProjectOp.PROP_PROJECT_NAME).attach(_listener);
op.property(NewLiferayPluginProjectOp.PROP_PORTLET_FRAMEWORK).attach(_listener);
op.property(NewLiferayPluginProjectOp.PROP_PLUGIN_TYPE).attach(_listener);
}
use of org.eclipse.sapphire.PropertyContentEvent in project liferay-ide by liferay.
the class ModuleProjectArtifactVersionDefaultValueService 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);
}
use of org.eclipse.sapphire.PropertyContentEvent in project liferay-ide by liferay.
the class ProjectNameValidationService method initValidationService.
@Override
protected void initValidationService() {
super.initValidationService();
_listener = new FilteredListener<PropertyContentEvent>() {
@Override
protected void handleTypedEvent(PropertyContentEvent event) {
PropertyDef def = event.property().definition();
if (!def.equals(NewLiferayPluginProjectOp.PROP_DISPLAY_NAME) && !def.equals(NewLiferayPluginProjectOp.PROP_FINAL_PROJECT_NAME) && !def.equals(NewLiferayPluginProjectOp.PROP_PORTLET_NAME) && !def.equals(NewLiferayPluginProjectOp.PROP_PROJECT_NAMES) && !def.equals(NewLiferayPluginProjectOp.PROP_PROJECT_NAME)) {
try {
refresh();
} catch (Exception e) {
ProjectCore.logError(e);
}
}
}
};
NewLiferayPluginProjectOp op = _op();
op.attach(_listener, "*");
}
Aggregations