Obtain Information from the JavaEditor [message #14592] |
Tue, 29 July 2008 13:26 |
Eclipse User |
|
|
|
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
|
|
|
Powered by
FUDForum. Page generated in 0.25116 seconds