Examples of IClassFileEditorInput


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

     * the original document.
     */
    public IDocument getDocument(Object element) {
        IDocument document = super.getDocument(element);
        if (element instanceof IClassFileEditorInput && isDebuggerCall()) {
            IClassFileEditorInput input = (IClassFileEditorInput) element;

            return new DocumentProxy4Debugger(document, input.getClassFile());
        }
        return document;
    }
View Full Code Here

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

                setDecompiled(false);
            }
        } else if (input instanceof FileEditorInput) {
            FileEditorInput fileEditorInput = (FileEditorInput) input;
            // make class file from that
            IClassFileEditorInput cfi = (IClassFileEditorInput) transformEditorInput(input);
            // return changed reference
            input = cfi;
            setDecompiled(true);
            IClassFile cf = cfi.getClassFile();
            char[] src = getSourceMapper().getSource(
                fileEditorInput.getFile(), cf, decompilerFlags);
            changeBufferContent(cf, src);
        }
        return input;
View Full Code Here

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

            Constructor cons;
            try {
                cons = ExternalClassFileEditorInput.class
                    .getDeclaredConstructor(new Class[]{IFile.class});
                cons.setAccessible(true);
                IClassFileEditorInput classFileInput = (IClassFileEditorInput) cons
                    .newInstance(new Object[]{file});
                return classFileInput;
            } catch (Exception e) {
                BytecodeOutlinePlugin.log(e, IStatus.ERROR);
            }
View Full Code Here

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

        /*
         * @see Runnable#run()
         */
        public void run() {

            IClassFileEditorInput input;
            synchronized (this) {
                input = fClassFileEditorInput;
            }

            try {
View Full Code Here

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

   
    /**
     * Override super implementation to set the WOJ source mapper on the Jar containing the classfile
     */
    protected IEditorInput transformEditorInput(IEditorInput input) {
        IClassFileEditorInput iClassFileEditorInput = (IClassFileEditorInput) super.transformEditorInput(input);
        ClassFile classFile = (ClassFile) iClassFileEditorInput.getClassFile();
        if(wojKnowThisModule(classFile)) {
          JavaSourceHook.installSourceMapper(classFile.getPackageFragmentRoot());
        }
        return iClassFileEditorInput;
    }
View Full Code Here

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

    /**
     * @return
     */
    private IClassFile getClassFile() {
        IClassFileEditorInput iClassFileEditorInput = (IClassFileEditorInput) getEditorInput();
        return iClassFileEditorInput.getClassFile();
    }
View Full Code Here

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

        IWorkingCopyManager manager = JavaPlugin.getDefault().getWorkingCopyManager();
        input = manager.getWorkingCopy(editor.getEditorInput());

      }
      else if (editor instanceof ClassFileEditor) {
        IClassFileEditorInput editorInput = (IClassFileEditorInput) editor.getEditorInput();
        input = editorInput.getClassFile();
      }

      if (input != null) {
        ProjectionAnnotationModel model = (ProjectionAnnotationModel) editor.getAdapter(ProjectionAnnotationModel.class);
        reconciler.initialize(model, (IJavaElement) input);
View Full Code Here

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

        IWorkingCopyManager manager = JavaPlugin.getDefault().getWorkingCopyManager();
        input = manager.getWorkingCopy(editor.getEditorInput());

      }
      else if (editor instanceof ClassFileEditor) {
        IClassFileEditorInput editorInput = (IClassFileEditorInput) editor.getEditorInput();
        input = editorInput.getClassFile();
      }

      if (input != null) {
        ProjectionAnnotationModel model = (ProjectionAnnotationModel) editor.getAdapter(ProjectionAnnotationModel.class);
        reconciler.initialize(model, (IJavaElement) input);
View Full Code Here

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

    mSeenFirstSourceMapperCall = true;
    boolean attachDecompiled = true;

    if (mInput instanceof IClassFileEditorInput)
    {
      IClassFileEditorInput classFileEditorInput = (IClassFileEditorInput) mInput;
      IClassFile classFile = classFileEditorInput.getClassFile();
      PackageFragmentRoot root = SelectUtils.getRoot(classFile);

      if (root != null)
      {
        try
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.