Package org.eclipse.jdt.core

Examples of org.eclipse.jdt.core.ITypeRoot


        }
        return null;
    }

    public IResource getLaunchableResource(IEditorPart editorPart) {
        ITypeRoot element = JavaUI.getEditorInputTypeRoot(editorPart.getEditorInput());
        if (element != null) {
            try {
                return element.getCorrespondingResource();
            } catch (JavaModelException e) {}
        }
        return null;
    }
View Full Code Here


    if (region == null || !(textEditor instanceof JavaEditor))
    {
      return null;
    }

    ITypeRoot input = EditorUtility.getEditorInputJavaElement(textEditor, false);
    if (input == null)
    {
      return null;
    }
View Full Code Here

        }
        return null;
    }

    public IResource getLaunchableResource(IEditorPart editorPart) {
        ITypeRoot element = JavaUI.getEditorInputTypeRoot(editorPart.getEditorInput());
        if (element != null) {
            try {
                return element.getCorrespondingResource();
            } catch (JavaModelException e) {}
        }
        return null;
    }
View Full Code Here

                        if (project.isInBundleClasspath(root))
                        {
                            for (IJavaElement e1 : JavaHelper.findTypes(root,
                                IJavaElement.COMPILATION_UNIT, IJavaElement.CLASS_FILE))
                            {
                                ITypeRoot typeRoot = (ITypeRoot) e1;
                                IType type = (IType) JavaHelper.findType(typeRoot,
                                    IJavaElement.TYPE);
                                if (JavaHelper.isAssignableTo(ifaceOrParentClass, type))
                                {
                                    dialog.addElement(type.getFullyQualifiedName());
View Full Code Here

      }
      IJavaElement input= EditorUtility.getEditorInputJavaElement(fPart, false);
      if (!(input instanceof ITypeRoot)) {
        return;
      }
      final ITypeRoot typeRoot= (ITypeRoot) input;
     
     
      fCurrentJob= new Job(JavaUIMessages.SelectionListenerWithASTManager_job_title)
      {
        public IStatus run(IProgressMonitor monitor)
View Full Code Here

    /* (non-Javadoc)
     * @see org.eclipse.debug.ui.ILaunchShortcut#launch(org.eclipse.ui.IEditorPart, java.lang.String)
     */
    public void launch(IEditorPart editor, String mode)
    {
        ITypeRoot element = JavaUI.getEditorInputTypeRoot(editor.getEditorInput());
        if (element != null)
        {
            IMethod selectedMethod = resolveSelectedMethodName(editor, element);
            if (selectedMethod != null)
            {
View Full Code Here

     *
     * @since 3.4
     */
    public ILaunchConfiguration[] getLaunchConfigurations(final IEditorPart editor)
    {
        final ITypeRoot element = JavaUI.getEditorInputTypeRoot(editor.getEditorInput());
        if (element != null)
        {
            IMethod selectedMethod = null;
            if (Display.getCurrent() == null)
            {
View Full Code Here

     *
     * @since 3.4
     */
    public IResource getLaunchableResource(IEditorPart editor)
    {
        ITypeRoot element = JavaUI.getEditorInputTypeRoot(editor.getEditorInput());
        if (element != null)
        {
            try
            {
                return element.getCorrespondingResource();
            }
            catch (JavaModelException e)
            {
            }
        }
View Full Code Here

      return;
    }
    logger.debug("Make sure the recommendations view is present...");
    PluginUI.showRecommendationsView();
    logger.debug("Fetch source from active editor");
    ITypeRoot typeRoot = JavaUI.getEditorInputTypeRoot(editor
        .getEditorInput());
    Query query = new Query(typeRoot);
    logger.debug("Sourcecode\r\n" + query.getSource() + "\r\n");
    logger.debug("Query: " + query.getMqlQuery());
    final StandardSearch search = new StandardSearch(editor, "Search for ",
View Full Code Here

      return;
    }
    logger.debug("Make sure the recommendations view is present...");
    PluginUI.showRecommendationsView();
    logger.debug("Fetch source from active editor");
    ITypeRoot typeRoot = JavaUI.getEditorInputTypeRoot(editor
        .getEditorInput());
    Query query = new Query(typeRoot);
    logger.debug("Sourcecode\r\n" + query.getSource() + "\r\n");
    logger.debug("Query: " + query.getMqlQuery());
    final StandardSearch search = new StandardSearch(editor, "Search for ",
View Full Code Here

TOP

Related Classes of org.eclipse.jdt.core.ITypeRoot

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.