Examples of IFXPreviewAdapter


Examples of at.bestsolution.efxclipse.tooling.ui.editor.IFXPreviewAdapter

  public void partActivated(IWorkbenchPart part) {
    updateView(part);
  }

  private void updateView(IWorkbenchPart part) {
    IFXPreviewAdapter adapted;
    if( part instanceof IFXPreviewAdapter ) {
      adapted = (IFXPreviewAdapter) part;
    } else {
      adapted = (IFXPreviewAdapter) part.getAdapter(IFXPreviewAdapter.class);
    }
   
    if( adapted != null ) {
      if( currentEditor == null || ! currentEditor.getEditorPart().equals(adapted.getEditorPart()) ) {
        if( currentEditor != null ) {
          currentEditor.getEditorPart().removePropertyListener(this);
        }
        currentEditor = (IFXPreviewAdapter) adapted;
       
View Full Code Here

Examples of at.bestsolution.efxclipse.tooling.ui.editor.IFXPreviewAdapter

  @SuppressWarnings("rawtypes")
  public Object getAdapter(Object adaptableObject, Class adapterType) {
    if(adapterType == IFXPreviewAdapter.class && adaptableObject instanceof XtextEditor ) {
      final XtextEditor editor = (XtextEditor) adaptableObject;
      if( "at.bestsolution.efxclipse.tooling.css.CssDsl".equals(editor.getLanguageName()) ) {
        return new IFXPreviewAdapter() {
         
          @Override
          public IEditorPart getEditorPart() {
            return editor;
          }
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.