Skip to main content



      Home
Home » Eclipse Projects » Plugin Development Environment (PDE) » Obtain Information from the JavaEditor
Obtain Information from the JavaEditor [message #14592] Tue, 29 July 2008 13:26
Eclipse UserFriend
Originally posted by: alana.cordick.gmail.com

I am working on a plugin that needs to determine the what the method the
user is currently in at any point in time (i.e. on fixed intervals, not
necessarily everytime it has been changed).

My solution so far involves customizing the JavaEditor and JavaOutlinePage
so that I can obtain this information. However, this involves creating a
new editor and outline page by extending these other two files. At the
moment, I cannot replicate the existing JavaEditor due to an error in my
plugin.xml file. As well, I have not been able to locate the xml file for
the JavaEditor.
Here is my plugin.xml file which is based on the example java editor:

<?xml version="1.0" encoding="UTF-8"?>
<?eclipse version="3.0"?>
<plugin>

<extension
point="org.eclipse.ui.editors">
<editor
name="%Java Debug Editor"
icon="icons/java.gif"
extensions="java"

contributorClass="org.eclipse.ui.examples.javaeditor.JavaActionContributor "
class="debugoutline.ui.debugjavaeditor"
id="org.eclipse.ui.JavaEditor">
</editor>
</extension>

<extension
id="ExampleJavaDocumentSetupParticipant"
name="%documentSetupParticipantName"
point="org.eclipse.core.filebuffers.documentSetup">
<participant
extensions="java"

class=" org.eclipse.jdt.internal.ui.javaeditor.JavaDocumentSetupPart icipant ">
</participant>
</extension>
</plugin>

Could someone please let me know what I'm missing? Or where I could find
the xml code for the built in JavaEditor? Or if I should be taking a
different approach to this problem!?

Thanks,
Alana
Previous Topic:Referencing Java Projects
Next Topic:Obtain Information from the JavaEditor
Goto Forum:
  


Current Time: Mon Jul 14 23:32:55 EDT 2025

Powered by FUDForum. Page generated in 0.25116 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top