Examples of LayerDescriptor


Examples of com.intellij.openapi.editor.ex.util.LayerDescriptor

          if(language != null) type = language.getAssociatedFileType();
            if(type == null) type = StdFileTypes.HTML;
        }
        SyntaxHighlighter outerHighlighter = SyntaxHighlighter.PROVIDER.create(type, project, virtualFile);

        registerLayer(LatteTokenTypes.HTML_TEXT, new LayerDescriptor(outerHighlighter, ""));
    }
View Full Code Here

Examples of com.intellij.openapi.editor.ex.util.LayerDescriptor

      if (type == null) type = HbLanguage.getDefaultTemplateLang();
    }
    @SuppressWarnings("deprecation") // deprecated in IDEA 12, still needed in IDEA 11 TODO remove when IDEA 11 support is dropped
      SyntaxHighlighter outerHighlighter = SyntaxHighlighter.PROVIDER.create(type, project, virtualFile);

    registerLayer(HbTokenTypes.CONTENT, new LayerDescriptor(outerHighlighter, ""));
  }
View Full Code Here

Examples of com.intellij.openapi.editor.ex.util.LayerDescriptor

public class CfmlHighlighter extends LayeredLexerEditorHighlighter {
  public CfmlHighlighter(@Nullable final Project project,
                         @Nullable final VirtualFile virtualFile,
                         @NotNull final EditorColorsScheme colors) {
    super(new CfmlFileHighlighter(project), colors);
    registerLayer(CfmlElementTypes.TEMPLATE_TEXT, new LayerDescriptor(
      SyntaxHighlighterFactory.getSyntaxHighlighter(StdFileTypes.HTML, project, virtualFile), ""));
    registerLayer(CfmlElementTypes.SQL,
                  new LayerDescriptor(SyntaxHighlighterFactory.getSyntaxHighlighter(SqlFileType.INSTANCE, project, virtualFile), ""));
  }
View Full Code Here

Examples of org.qi4j.api.structure.LayerDescriptor

                public boolean visitEnter( Object visited )
                    throws Exception
                {
                    if( visited instanceof LayerDescriptor )
                    {
                        LayerDescriptor layerDescriptor = (LayerDescriptor) visited;
                        layer = application.findLayer( layerDescriptor.name() );

                        LayerBean layerBean = new LayerBean( layer, layerDescriptor );
                        ObjectName objectName = new ObjectName( "Qi4j:application=" + application.name() + ",layer=" + layer
                            .name() );
                        names.push( objectName );

                        RequiredModelMBean mbean = new ModelMBeanBuilder( objectName, layerDescriptor.name(), LayerBean.class
                            .getName() ).
                            attribute( "uses", "Layer usages", String.class.getName(), "Other layers that this layer uses", "getUses", null )
                            .
                                operation( "restart", "Restart layer", String.class.getName(), MBeanOperationInfo.ACTION_INFO )
                            .
View Full Code Here

Examples of org.qi4j.api.structure.LayerDescriptor

                        current.push( application );
                    }
                    else if( visited instanceof LayerDescriptor )
                    {
                        LayerDescriptor layerDescriptor = (LayerDescriptor) visited;
                        Node layer = document.createElement( "layer" );

                        addAttribute( "name", layerDescriptor.name(), layer );

                        current.push( layer );
                    }
                    else if( visited instanceof ModuleDescriptor )
                    {
View Full Code Here

Examples of org.qi4j.api.structure.LayerDescriptor

            context.setNameAndType( appUri, applicationDescriptor.name(), Qi4jRdf.TYPE_APPLICATION );
        }

        if( visited instanceof LayerDescriptor )
        {
            LayerDescriptor layerDescriptor = (LayerDescriptor) visited;
            layerUri = context.createLayerUri( appUri, layerDescriptor.name() );
            context.setNameAndType( layerUri, layerDescriptor.name(), Qi4jRdf.TYPE_LAYER );
            context.addRelationship( appUri, Qi4jRdf.RELATIONSHIP_LAYER, layerUri );
        }

        if( visited instanceof ModuleDescriptor )
        {
View Full Code Here

Examples of org.qi4j.api.structure.LayerDescriptor

            {
                applicationDescriptor = new ApplicationDetailDescriptor( (ApplicationDescriptor) visited );
            }
            else if( visited instanceof LayerDescriptor )
            {
                LayerDescriptor layerDescriptor = (LayerDescriptor) visited;
                currLayerDescriptor = getLayerDetailDescriptor( layerDescriptor );
                applicationDescriptor.addLayer( currLayerDescriptor );

                UsedLayersDescriptor usedLayesDescriptor = layerDescriptor.usedLayers();
                Iterable<? extends LayerDescriptor> usedLayers = usedLayesDescriptor.layers();
                for( LayerDescriptor usedLayer : usedLayers )
                {
                    LayerDetailDescriptor usedLayerDetailDesc = getLayerDetailDescriptor( usedLayer );
                    currLayerDescriptor.addUsedLayer( usedLayerDetailDesc );
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.