Examples of Language


Examples of com.intellij.lang.Language

        super("PL/SQL", "PL/SQL (DBN)");
    }

    @Override
    public boolean isInContext(@NotNull PsiFile file, int offset) {
        Language language = file.getLanguage();
        if (language instanceof DBLanguage) {
            // support PSQL in SQL language
            LeafPsiElement leafPsiElement = PsiUtil.lookupLeafBeforeOffset(file, offset);
            if (leafPsiElement != null) {
                if (leafPsiElement.getLanguage() instanceof PSQLLanguage) {
View Full Code Here

Examples of com.intellij.lang.Language

        super("SQL", "SQL (DBN)");
    }

    @Override
    public boolean isInContext(@NotNull PsiFile file, int offset) {
        Language language = file.getLanguage();
        if (language instanceof SQLLanguage) {
            LeafPsiElement leafPsiElement = PsiUtil.lookupLeafBeforeOffset(file, offset);
            if (leafPsiElement != null) {
                if (leafPsiElement.getLanguage() instanceof SQLLanguage) {
                    return !leafPsiElement.getEnclosingScopePsiElement().getTextRange().contains(offset);
View Full Code Here

Examples of com.intellij.lang.Language

    public CodeStyleCaseSettings getCodeStyleCaseSettings(DBLanguage language) {
        return language.getCodeStyleSettings(getProject()).getCaseSettings();
    }

    private void format(Document document, PsiElement psiElement, int startOffset, int endOffset){
        Language language = PsiUtil.getLanguage(psiElement);
        if (language instanceof DBLanguage) {
            CodeStyleCaseSettings styleCaseSettings = getCodeStyleCaseSettings((DBLanguage) language);
            PsiElement child = psiElement.getFirstChild();
            while (child != null) {
                if (child instanceof LeafPsiElement) {
View Full Code Here

Examples of com.intellij.lang.Language

        if (virtualFile instanceof DatabaseContentFile) {
            DatabaseContentFile contentFile = (DatabaseContentFile) virtualFile;
            return contentFile.getLanguageDialect();
        }
       
        Language language = getLanguage();
        if (language instanceof DBLanguage) {
            DBLanguage dbLanguage = (DBLanguage) language;
            ConnectionHandler connectionHandler = getActiveConnection();
            if (connectionHandler != null) {
View Full Code Here

Examples of com.intellij.lang.Language

        }
        return formatting;
    }

    private SharedTokenTypeBundle getSharedTokenTypes() {
        Language lang = getLanguage();
        if (lang instanceof DBLanguageDialect) {
            DBLanguageDialect languageDialect = (DBLanguageDialect) lang;
            return languageDialect.getSharedTokenTypes();
        } else if (lang instanceof DBLanguage) {
            DBLanguage language = (DBLanguage) lang;
View Full Code Here

Examples of com.intellij.lang.Language

    /**
     * @deprecated
     */
    private CodeStyleCustomSettings getCodeStyleSettings(PsiFile psiFile) {
        Language language = psiFile.getLanguage();
        Project project = psiFile.getProject();
        if (language instanceof DBLanguage) {
            DBLanguage dbLanguage = (DBLanguage) language;
            return dbLanguage.getCodeStyleSettings(project);
        } else if (language instanceof DBLanguageDialect) {
View Full Code Here

Examples of com.intellij.lang.Language

        return null;
    }

    public static Language getLanguage(PsiElement element) {
        Language language = element.getLanguage();
        if (language instanceof LanguageDialect) {
            LanguageDialect languageDialect = (LanguageDialect) language;
            language = languageDialect.getBaseLanguage();
        }
        return language;
View Full Code Here

Examples of com.itextpdf.text.pdf.fonts.otf.Language

       
        return new String(charEncodedGlyphCodes).getBytes(CJKFont.CJK_ENCODING);
    }
   
    private GlyphRepositioner getGlyphRepositioner() {
      Language language = ttu.getSupportedLanguage();
     
      if (language == null) {
        throw new IllegalArgumentException("The supported language field cannot be null in " + ttu.getClass().getName());
      }
     
View Full Code Here

Examples of com.jada.jpa.entity.Language

      String commentId = request.getParameter("commentId");
      String alertType = request.getParameter("alertType");
      ContentBean contentBean = getContentBean(request);
    Customer customer = getCustomer(request);
    if (customer == null) {
        Language language = contentBean.getContentSessionBean().getSiteProfile().getSiteProfileClass().getLanguage();
        JSONEscapeObject jsonResult = new JSONEscapeObject();
      jsonResult.put("status", Constants.WEBSERVICE_STATUS_SIGNIN);
      jsonResult.put("message", Languages.getLangTranValue(language.getLangId(), "content.text.comment.signin"));
      String jsonString = jsonResult.toHtmlString();
      streamWebService(response, jsonString);
      return null;
    }
   
View Full Code Here

Examples of com.jgaap.generics.Language

    }
    return builder.build();
  }
 
  public static Language getLanguage(String action) throws Exception{
    Language language;
    action = action.toLowerCase().trim();
    if(languages.containsKey(action)){
      language = languages.get(action).getClass().newInstance();
    }else {
      throw new Exception("Language "+action+" was not found!");
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.