use of com.liferay.ide.project.core.model.NewLiferayPluginProjectOp in project liferay-ide by liferay.
the class ThemeFrameworkValidationService method compute.
@Override
protected Status compute() {
Status retval = Status.createOkStatus();
NewLiferayPluginProjectOp op = _op();
String currentThemeFramework = op.getThemeFramework().content();
if (currentThemeFramework.equals("JSP")) {
retval = Status.createWarningStatus("For advanced theme developers only.");
}
return retval;
}
use of com.liferay.ide.project.core.model.NewLiferayPluginProjectOp in project liferay-ide by liferay.
the class UseDefaultLocationValidationService method dispose.
@Override
public void dispose() {
NewLiferayPluginProjectOp op = _op();
if ((op != null) && !op.disposed()) {
op.getProjectProvider().detach(_listener);
op.getProjectName().detach(_listener);
}
}
use of com.liferay.ide.project.core.model.NewLiferayPluginProjectOp in project liferay-ide by liferay.
the class UseDefaultLocationValidationService method initValidationService.
@Override
protected void initValidationService() {
super.initValidationService();
_listener = new FilteredListener<Event>() {
@Override
protected void handleTypedEvent(Event event) {
refresh();
}
};
final NewLiferayPluginProjectOp op = _op();
op.getProjectProvider().attach(_listener);
op.getProjectName().attach(_listener);
}
use of com.liferay.ide.project.core.model.NewLiferayPluginProjectOp in project liferay-ide by liferay.
the class ActiveProfilesValidationService method initValidationService.
@Override
protected void initValidationService() {
super.initValidationService();
_listener = new FilteredListener<Event>() {
protected void handleTypedEvent(Event event) {
refresh();
}
};
NewLiferayPluginProjectOp op = _op();
op.getProjectProvider().attach(_listener);
}
use of com.liferay.ide.project.core.model.NewLiferayPluginProjectOp in project liferay-ide by liferay.
the class ArchetypeDefaultValueService method dispose.
@Override
public void dispose() {
NewLiferayPluginProjectOp op = _op();
op.property(NewLiferayPluginProjectOp.PROP_PORTLET_FRAMEWORK).detach(_listener);
op.property(NewLiferayPluginProjectOp.PROP_PORTLET_FRAMEWORK_ADVANCED).detach(_listener);
super.dispose();
}
Aggregations