Class FunctionContentProposal

java.lang.Object
org.dawnsci.common.widgets.gda.function.internal.FunctionContentProposal
All Implemented Interfaces:
org.eclipse.core.runtime.IAdaptable, org.eclipse.jface.fieldassist.IContentProposal

public class FunctionContentProposal extends Object implements org.eclipse.jface.fieldassist.IContentProposal, org.eclipse.core.runtime.IAdaptable
Content proposals for simple functions (not jexl)
  • Constructor Details

    • FunctionContentProposal

      public FunctionContentProposal(IFunctionDescriptor functionDescriptor)
  • Method Details

    • getAdapter

      public <T> T getAdapter(Class<T> adapter)
      Specified by:
      getAdapter in interface org.eclipse.core.runtime.IAdaptable
    • getContent

      public String getContent()
      Specified by:
      getContent in interface org.eclipse.jface.fieldassist.IContentProposal
    • getCursorPosition

      public int getCursorPosition()
      Specified by:
      getCursorPosition in interface org.eclipse.jface.fieldassist.IContentProposal
    • getLabel

      public String getLabel()
      Specified by:
      getLabel in interface org.eclipse.jface.fieldassist.IContentProposal
    • getDescription

      public String getDescription()
      Specified by:
      getDescription in interface org.eclipse.jface.fieldassist.IContentProposal
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getImage

      public org.eclipse.swt.graphics.Image getImage()
      Returns an image for the content proposal
      Returns:
      images for IOperators and IFunctions, else null