Search in sources :

Example 11 with ValueProperty

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

the class ProviderValueServiceConditon method applicable.

@Override
public boolean applicable(final ServiceContext context) {
    ValueProperty prop = context.find(ValueProperty.class);
    ValueProperty property = BaseModuleOp.PROP_PROJECT_PROVIDER;
    if ((prop != null) && prop.name().equals(property.name())) {
        return true;
    }
    return false;
}
Also used : ValueProperty(org.eclipse.sapphire.ValueProperty)

Aggregations

ValueProperty (org.eclipse.sapphire.ValueProperty)11 Element (org.eclipse.sapphire.Element)7 IFile (org.eclipse.core.resources.IFile)5 IProject (org.eclipse.core.resources.IProject)4 IPath (org.eclipse.core.runtime.IPath)4 IWorkspaceRoot (org.eclipse.core.resources.IWorkspaceRoot)3 Property (org.eclipse.sapphire.Property)3 Path (org.eclipse.sapphire.modeling.Path)3 ArrayList (java.util.ArrayList)2 IWorkspace (org.eclipse.core.resources.IWorkspace)2 IClasspathEntry (org.eclipse.jdt.core.IClasspathEntry)2 PortletApp (com.liferay.ide.portlet.core.model.PortletApp)1 ByteArrayInputStream (java.io.ByteArrayInputStream)1 InputStream (java.io.InputStream)1 IFolder (org.eclipse.core.resources.IFolder)1 DocumentEvent (org.eclipse.jface.text.DocumentEvent)1 IDocument (org.eclipse.jface.text.IDocument)1 IDocumentListener (org.eclipse.jface.text.IDocumentListener)1 DisposeEvent (org.eclipse.sapphire.DisposeEvent)1 Event (org.eclipse.sapphire.Event)1