Search in sources :

Example 21 with PropertyContentEvent

use of org.eclipse.sapphire.PropertyContentEvent in project liferay-ide by liferay.

the class SDKImportVersionDerivedValueService method initDerivedValueService.

@Override
protected void initDerivedValueService() {
    super.initDerivedValueService();
    _listener = new FilteredListener<PropertyContentEvent>() {

        @Override
        protected void handleTypedEvent(PropertyContentEvent event) {
            refresh();
        }
    };
    SDKProjectsImportOp op = _op();
    op.property(SDKProjectsImportOp.PROP_SDK_LOCATION).attach(_listener);
}
Also used : PropertyContentEvent(org.eclipse.sapphire.PropertyContentEvent) SDKProjectsImportOp(com.liferay.ide.project.core.model.SDKProjectsImportOp)

Example 22 with PropertyContentEvent

use of org.eclipse.sapphire.PropertyContentEvent in project liferay-ide by liferay.

the class ArchetypeDefaultValueService method initDefaultValueService.

@Override
protected void initDefaultValueService() {
    _listener = new FilteredListener<PropertyContentEvent>() {

        @Override
        protected void handleTypedEvent(PropertyContentEvent event) {
            refresh();
        }
    };
    NewLiferayPluginProjectOp op = _op();
    op.property(NewLiferayPluginProjectOp.PROP_PORTLET_FRAMEWORK).attach(_listener);
    op.property(NewLiferayPluginProjectOp.PROP_PORTLET_FRAMEWORK_ADVANCED).attach(_listener);
}
Also used : PropertyContentEvent(org.eclipse.sapphire.PropertyContentEvent) NewLiferayPluginProjectOp(com.liferay.ide.project.core.model.NewLiferayPluginProjectOp)

Example 23 with PropertyContentEvent

use of org.eclipse.sapphire.PropertyContentEvent in project liferay-ide by liferay.

the class NewLiferayProfileIdDefaultValueService method initDefaultValueService.

@Override
protected void initDefaultValueService() {
    super.initDefaultValueService();
    Listener listener = new FilteredListener<PropertyContentEvent>() {

        @Override
        protected void handleTypedEvent(PropertyContentEvent event) {
            refresh();
        }
    };
    NewLiferayProfile profile = _newLiferayProfile();
    profile.getRuntimeName().attach(listener);
}
Also used : FilteredListener(org.eclipse.sapphire.FilteredListener) PropertyContentEvent(org.eclipse.sapphire.PropertyContentEvent) FilteredListener(org.eclipse.sapphire.FilteredListener) Listener(org.eclipse.sapphire.Listener) NewLiferayProfile(com.liferay.ide.project.core.model.NewLiferayProfile)

Example 24 with PropertyContentEvent

use of org.eclipse.sapphire.PropertyContentEvent in project liferay-ide by liferay.

the class ModuleProjectGroupIdDefaultValueService 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);
    op.getPackageName().attach(listener);
}
Also used : FilteredListener(org.eclipse.sapphire.FilteredListener) PropertyContentEvent(org.eclipse.sapphire.PropertyContentEvent) FilteredListener(org.eclipse.sapphire.FilteredListener) Listener(org.eclipse.sapphire.Listener)

Example 25 with PropertyContentEvent

use of org.eclipse.sapphire.PropertyContentEvent in project liferay-ide by liferay.

the class UserValidationService method initValidationService.

@Override
protected void initValidationService() {
    User user = context(User.class);
    if (user != null) {
        _listener = new FilteredListener<PropertyContentEvent>() {

            @Override
            protected void handleTypedEvent(PropertyContentEvent event) {
                refresh();
            }
        };
        user.attach(_listener, "*");
    }
}
Also used : PropertyContentEvent(org.eclipse.sapphire.PropertyContentEvent) User(com.liferay.ide.kaleo.core.model.User)

Aggregations

PropertyContentEvent (org.eclipse.sapphire.PropertyContentEvent)25 FilteredListener (org.eclipse.sapphire.FilteredListener)14 Listener (org.eclipse.sapphire.Listener)14 NewLiferayPluginProjectOp (com.liferay.ide.project.core.model.NewLiferayPluginProjectOp)10 Assignable (com.liferay.ide.kaleo.core.model.Assignable)2 NewLiferayProfile (com.liferay.ide.project.core.model.NewLiferayProfile)2 Element (org.eclipse.sapphire.Element)2 Event (org.eclipse.sapphire.Event)2 Property (org.eclipse.sapphire.Property)2 PropertyDef (org.eclipse.sapphire.PropertyDef)2 ServiceWrapper (com.liferay.ide.hook.core.model.ServiceWrapper)1 Scriptable (com.liferay.ide.kaleo.core.model.Scriptable)1 Task (com.liferay.ide.kaleo.core.model.Task)1 User (com.liferay.ide.kaleo.core.model.User)1 PortletApp (com.liferay.ide.portlet.core.model.PortletApp)1 ParentSDKProjectImportOp (com.liferay.ide.project.core.model.ParentSDKProjectImportOp)1 SDKProjectsImportOp (com.liferay.ide.project.core.model.SDKProjectsImportOp)1 CoreException (org.eclipse.core.runtime.CoreException)1 DisposeEvent (org.eclipse.sapphire.DisposeEvent)1 PossibleValuesService (org.eclipse.sapphire.PossibleValuesService)1