Example usage for org.eclipse.jdt.internal.codeassist InternalCompletionContext getExpectedTypesSignatures

List of usage examples for org.eclipse.jdt.internal.codeassist InternalCompletionContext getExpectedTypesSignatures

Introduction

In this page you can find the example usage for org.eclipse.jdt.internal.codeassist InternalCompletionContext getExpectedTypesSignatures.

Prototype

@Override
    public char[][] getExpectedTypesSignatures() 

Source Link

Usage

From source file:org.eclipse.recommenders.completion.rcp.RecommendersCompletionContext.java

License:Open Source License

@Override
public Optional<String> getExpectedTypeSignature() {
    InternalCompletionContext coreContext = doGetCoreContext();
    if (coreContext == null) {
        return absent();
    }/*from  www.jav  a  2  s .  c o  m*/
    // keys contain '/' instead of dots and may end with ';'
    final char[][] keys = coreContext.getExpectedTypesSignatures();
    if (keys == null) {
        return absent();
    }
    if (keys.length < 1) {
        return absent();
    }
    final String res = new String(keys[0]);
    return of(res);
}