Search in sources :

Example 1 with NewLiferayProjectProvider

use of com.liferay.ide.project.core.NewLiferayProjectProvider in project liferay-ide by liferay.

the class FragmentProjectProviderPossibleValuesService method initPossibleValuesService.

protected void initPossibleValuesService() {
    _possibleValues = new ArrayList<>();
    for (final ILiferayProjectProvider provider : LiferayCore.getProviders("module-fragment")) {
        if (provider instanceof NewLiferayProjectProvider<?>) {
            _possibleValues.add(provider.getShortName());
        }
    }
    Collections.sort(_possibleValues);
}
Also used : ILiferayProjectProvider(com.liferay.ide.core.ILiferayProjectProvider) NewLiferayProjectProvider(com.liferay.ide.project.core.NewLiferayProjectProvider)

Example 2 with NewLiferayProjectProvider

use of com.liferay.ide.project.core.NewLiferayProjectProvider in project liferay-ide by liferay.

the class JSFModuleProjectProviderPossibleValuesService method initPossibleValuesService.

protected void initPossibleValuesService() {
    _possibleValues = new ArrayList<>();
    ILiferayProjectProvider[] jsfProviders = LiferayCore.getProviders("jsf-module");
    for (ILiferayProjectProvider provider : jsfProviders) {
        if (provider instanceof NewLiferayProjectProvider<?>) {
            _possibleValues.add(provider.getShortName());
        }
    }
    Collections.sort(_possibleValues);
}
Also used : ILiferayProjectProvider(com.liferay.ide.core.ILiferayProjectProvider) NewLiferayProjectProvider(com.liferay.ide.project.core.NewLiferayProjectProvider)

Example 3 with NewLiferayProjectProvider

use of com.liferay.ide.project.core.NewLiferayProjectProvider in project liferay-ide by liferay.

the class ModuleProjectProviderPossibleValuesService method initPossibleValuesService.

protected void initPossibleValuesService() {
    _possibleValues = new ArrayList<>();
    for (ILiferayProjectProvider provider : LiferayCore.getProviders("module")) {
        if (provider instanceof NewLiferayProjectProvider<?>) {
            _possibleValues.add(provider.getShortName());
        }
    }
    Collections.sort(_possibleValues);
}
Also used : ILiferayProjectProvider(com.liferay.ide.core.ILiferayProjectProvider) NewLiferayProjectProvider(com.liferay.ide.project.core.NewLiferayProjectProvider)

Aggregations

ILiferayProjectProvider (com.liferay.ide.core.ILiferayProjectProvider)3 NewLiferayProjectProvider (com.liferay.ide.project.core.NewLiferayProjectProvider)3