Search in sources :

Example 11 with PropertyContentEvent

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);
}
Also used : FilteredListener(org.eclipse.sapphire.FilteredListener) PropertyContentEvent(org.eclipse.sapphire.PropertyContentEvent) FilteredListener(org.eclipse.sapphire.FilteredListener) Listener(org.eclipse.sapphire.Listener) NewLiferayPluginProjectOp(com.liferay.ide.project.core.model.NewLiferayPluginProjectOp)

Example 12 with PropertyContentEvent

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);
}
Also used : PropertyContentEvent(org.eclipse.sapphire.PropertyContentEvent) NewLiferayPluginProjectOp(com.liferay.ide.project.core.model.NewLiferayPluginProjectOp)

Example 13 with PropertyContentEvent

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);
}
Also used : FilteredListener(org.eclipse.sapphire.FilteredListener) PropertyContentEvent(org.eclipse.sapphire.PropertyContentEvent) FilteredListener(org.eclipse.sapphire.FilteredListener) Listener(org.eclipse.sapphire.Listener) NewLiferayPluginProjectOp(com.liferay.ide.project.core.model.NewLiferayPluginProjectOp)

Example 14 with PropertyContentEvent

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);
}
Also used : PropertyContentEvent(org.eclipse.sapphire.PropertyContentEvent) NewLiferayPluginProjectOp(com.liferay.ide.project.core.model.NewLiferayPluginProjectOp)

Example 15 with PropertyContentEvent

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());
            }
        }
    });
}
Also used : FilteredListener(org.eclipse.sapphire.FilteredListener) PropertyContentEvent(org.eclipse.sapphire.PropertyContentEvent) FilteredListener(org.eclipse.sapphire.FilteredListener) Listener(org.eclipse.sapphire.Listener) Element(org.eclipse.sapphire.Element) PropertyContentEvent(org.eclipse.sapphire.PropertyContentEvent) Event(org.eclipse.sapphire.Event) DisposeEvent(org.eclipse.sapphire.DisposeEvent) DisposeEvent(org.eclipse.sapphire.DisposeEvent)

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