Class GraphicalSchemeStringLiteralProposalProvider

    • Constructor Detail

      • GraphicalSchemeStringLiteralProposalProvider

        public GraphicalSchemeStringLiteralProposalProvider()
    • Method Detail

      • isAppropriate

        public boolean isAppropriate​(org.eclipse.xtext.util.Triple<org.eclipse.emf.ecore.EObject,​List<Expression>,​Integer> context)
        Description copied from interface: IAvailableStringLiteralProviderExtension
        Checks context for availability of proposals
        Parameters:
        context - contains
        • parentObject object contains string literal in its parameters
        • allExpr all parameters of parentObject
        • paramNumber number of string literal in parameter method's list
        Returns:
        true if proposals available for this context
      • getExportedName

        public Collection<org.eclipse.xtext.naming.QualifiedName> getExportedName​(org.eclipse.xtext.util.Triple<org.eclipse.emf.ecore.EObject,​List<Expression>,​Integer> context,
                                                                                  org.eclipse.xtext.scoping.IScopeProvider scopeProvider)
        Description copied from interface: IAvailableStringLiteralProviderImportedNamesExtension
        Gets imported names provided by string literals
        Parameters:
        context - contains
        • parentObject object contains string literal in its parameters
        • allExpr all parameters of parentObject
        • paramNumber number of string literal in parameter method's list
        Returns:
        found imported names or empty collection if string literal doesn't provide anything imported names
      • getReferenceDescriptions

        public List<org.eclipse.xtext.resource.IReferenceDescription> getReferenceDescriptions​(org.eclipse.xtext.util.Triple<org.eclipse.emf.ecore.EObject,​List<Expression>,​Integer> context,
                                                                                               org.eclipse.xtext.scoping.IScopeProvider scopeProvider)
        Description copied from interface: IAvailableStringLiteralProviderImportedNamesExtension
        Gets reference descriptions by string literals
        Parameters:
        context - contains
        • parentObject object contains string literal in its parameters
        • allExpr all parameters of parentObject
        • paramNumber number of string literal in parameter method's list
        Returns:
        reference descriptions or empty list if string literal doesn't provide anything reference descriptions, never null