Package org.eclipse.jdt.internal.ui.javaeditor

Examples of org.eclipse.jdt.internal.ui.javaeditor.ExternalClassFileEditorInput


            if (origSrc == null || (force && !reuseSource)) {
                setDecompiled(true);
                char[] src;
                if (input instanceof ExternalClassFileEditorInput) {
                    ExternalClassFileEditorInput extInput = (ExternalClassFileEditorInput) input;
                    src = getSourceMapper().getSource(
                        extInput.getFile(), cf, decompilerFlags);
                } else {
                    src = getSourceMapper().getSource(cf, decompilerFlags);
                }
                changeBufferContent(cf, src);
            } else {
View Full Code Here


    return ClassEditor.ID;
  }
 
  public IEditorInput getEditorInput(Object element) {
    IFile file = ResourcesPlugin.getWorkspace().getRoot().getFile((IPath) element);
    ExternalClassFileEditorInput editorInput;
    try {
      editorInput = (ExternalClassFileEditorInput) HookUtil.newInstance("org.eclipse.jdt.internal.ui.javaeditor.ExternalClassFileEditorInput", new Class[]{org.eclipse.core.resources.IFile.class}, new Object[]{file});
    } catch (Exception e) {
      return null;
    }
View Full Code Here

TOP

Related Classes of org.eclipse.jdt.internal.ui.javaeditor.ExternalClassFileEditorInput

Copyright © 2018 www.massapicom. 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.