Package org.eclipse.dltk.internal.core

Examples of org.eclipse.dltk.internal.core.SourceModule


        }
      }
    } else {
      IModelElement modelElement = sourceModule.getModelElement();
      if (modelElement instanceof SourceModule) {
        SourceModule sm = (SourceModule) modelElement;
        try {
          IField[] fields = sm.getFields();
          for (IField iField : fields) {
            SourceField f = (SourceField) iField;
            int fieldType = RutaParseUtils.getTypeOfIModelElement(f);
            if (RutaTypeConstants.RUTA_TYPE_N == type) {
              if (fieldType == RutaTypeConstants.RUTA_TYPE_N
View Full Code Here


        }
      }
    } else {
      IModelElement modelElement = sourceModule.getModelElement();
      if (modelElement instanceof SourceModule) {
        SourceModule sm = (SourceModule) modelElement;
        try {
          IField[] fields = sm.getFields();
          for (IField iField : fields) {
            SourceField f = (SourceField) iField;
            int fieldType = RutaParseUtils.getTypeOfIModelElement(f);
            if (RutaTypeConstants.RUTA_TYPE_N == type) {
              if (fieldType == RutaTypeConstants.RUTA_TYPE_N || fieldType == RutaTypeConstants.RUTA_TYPE_I
View Full Code Here

    // if the php files are the direct children of a project,
    // even when they are selected,but they will not choosen by default,
    // so make the parent of these php files is ScriptProject instead of
    // ScriptFolder is ok
    if (element instanceof SourceModule && parent instanceof ScriptFolder) {
      SourceModule sourceModule = (SourceModule) element;
      ScriptFolder scriptFolder = (ScriptFolder) parent;
      if (scriptFolder.getPath().segmentCount() == 1) {
        parent = sourceModule.getScriptProject();
        // element = sourceModule.getResource();
      }
    }
    fCurrentTreeSelection = parent;
    // As this is not done from the UI then set the box for updating from
View Full Code Here

        if (imageUrl != null) {

            StringBuffer header = new StringBuffer();
            String imageName = imageUrl.toExternalForm();

            SourceModule module = (SourceModule) template.getSourceModule();
            String name = template.getElementName();

            try {

                if (module.getTypes().length > 0) {
                    IType type = module.getTypes()[0];
                    if (type.getTypes().length > 0) {
                        IType sType = type.getTypes()[0];
                        name = sType.getFullyQualifiedName().replace("$", "\\");

                        body = PHPDocumentationContentAccess.getHTMLContent(sType);
View Full Code Here

        if (imageUrl != null) {

            StringBuffer header = new StringBuffer();
            String imageName = imageUrl.toExternalForm();

            SourceModule module = (SourceModule) controller.getSourceModule();
            String name = controller.getElementName();

            try {

                if (module.getTypes().length > 0) {
                    IType type = module.getTypes()[0];
                    if (type.getTypes().length > 0) {
                        IType sType = type.getTypes()[0];
                        name = sType.getFullyQualifiedName().replace("$", "\\");

                        body = PHPDocumentationContentAccess.getHTMLContent(sType);
View Full Code Here

        if (imageUrl != null) {

            StringBuffer header = new StringBuffer();
            String imageName = imageUrl.toExternalForm();

            SourceModule module = (SourceModule) service.getSourceModule();
            String name = service.getElementName();

            try {

                if (module.getTypes().length > 0) {
                    IType type = module.getTypes()[0];
                    if (type.getTypes().length > 0) {
                        IType sType = type.getTypes()[0];
                        name = sType.getFullyQualifiedName().replace("$", "\\");

                        body = PHPDocumentationContentAccess.getHTMLContent(sType);
View Full Code Here

        if (imageUrl != null) {

            StringBuffer header = new StringBuffer();
            String imageName = imageUrl.toExternalForm();

            SourceModule module = (SourceModule) bundle.getSourceModule();
            String name = bundle.getElementName();

            try {

                if (module.getTypes().length > 0) {
                    IType type = module.getTypes()[0];
                    if (type.getTypes().length > 0) {
                        IType sType = type.getTypes()[0];
                        name = sType.getFullyQualifiedName().replace("$", "\\");

                        body = PHPDocumentationContentAccess.getHTMLContent(sType);
View Full Code Here

        }
       
        IModelElement template = SymfonyModelAccess.getDefault().findTemplate(new ViewPath(path), project);
        if (template != null && template instanceof SourceModule) {
            try {
                SourceModule module = (SourceModule) template;
                return module;
            } catch (Exception e) {
              Logger.logException(e)
            }
        }
View Full Code Here

                    if (template != null && template instanceof SourceModule) {

                        try {

                            SymfonyTemplateResolver resolver = new SymfonyTemplateResolver();
                            SourceModule sourceModule = resolver.revolePath(parent, scriptProject);
                            TwigModuleDeclaration twig = (TwigModuleDeclaration) SourceParserUtil.parseSourceModule(sourceModule);

                            blocks = new LinkedList<String>();
                            if (twig != null) {
                                for (BlockStatement block : twig.getBlocks()) {
View Full Code Here

        String prefix = context.getPrefix();
        SourceRange range = getReplacementRange(context);
       
        for (ITemplateResolver resolver : providers) {
           
            SourceModule sourceModule = resolver.revolePath(path, context.getSourceModule().getScriptProject());
            TwigModuleDeclaration parent = (TwigModuleDeclaration) SourceParserUtil.parseSourceModule(sourceModule);
           
            if (parent != null) {
                for (BlockStatement block : parent.getBlocks()) {
                    BlockName name = block.getName();
View Full Code Here

TOP

Related Classes of org.eclipse.dltk.internal.core.SourceModule

Copyright © 2018 www.massapicom. 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.