Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [Dltk-dev] Can't get Activator to start


  the definitions you included does not include a definition for the following a 'org.eclipse.dltk.core.sourceParsers'

  and you are correct about the need for the ui editor, although i'm not sure what to tell you to start w/ first other then looking at the other plugin implementations (feel free to use mine as well).

  you'll at least need an editor implementation, an IDLTKUILanguageToolkit implementation, and whatever class types are returned from that interface. most of that will relate to syntax highlighting, etc so for now you can get away w/ whatever the simplest implementation (sometimes returning null is ok too) you can get away w/. again, the other language implementations will assist you there.

On 7/25/07, Mark Mandel <mark.mandel@xxxxxxxxx> wrote:
We have a source parser definition...it's in the XML I showed, unless
you are referring to something else.

Now, we *don't* have a UI editor, as we've been following the Guide,
and there is no mention of an editor.

So, I'm supposing that I need to create an editor, and associate it
with the same files I wish to be able to edit, (much like any other
plugin), and that will Activate my plguin?

Would that be correct?

Mark

On 7/26/07, Jae Gangemi <jgangemi@xxxxxxxxx> wrote:
>   i believe you're missing a source parser definition as well.
>
>   what does your 'ui' portion look like? i think you are most likely missing
> something there. what editor is currently opening for you when you double
> click the file?
>
>   *grr* - still getting bounced messages as well
>
>
> >
> >
> >
> > On 7/25/07, Mark Mandel < mark.mandel@xxxxxxxxx> wrote:
> > >
> > > Hey guys,
> > >
> > > I'm struggling here to just get the Activator of my Plugin to start
> > > when I open a file of the set type within the LanguageToolkit.
> > >
> > > My plugin.xml looks like this:
> > >
> > > <?xml version=" 1.0" encoding="UTF-8"?>
> > > <?eclipse version="3.2"?>
> > > <plugin>
> > >    <extension
> > >          id="id1"
> > >          point="org.eclipse.core.resources.natures ">
> > >       <runtime>
> > >          <run
> > >
> class="org.cfeclipse.cfml.CFEclipseNature">
> > >          </run>
> > >       </runtime>
> > >    </extension>
> > >    <extension
> > >          point=" org.eclipse.dltk.core.language">
> > >       <language
> > >
> class=" org.cfeclipse.cfml.CFMLLanguageToolkit"
> > >             nature="org.cfeclipse.cfml.nature">
> > >       </language>
> > >    </extension>
> > >    <extension
> > >
> point="org.eclipse.dltk.core.sourceElementParsers">
> > >       <parser
> > >
> class="org.cfeclipse.cfml.parsers.CFMLSourceElementParser "
> > >             nature="org.cfeclipse.cfml.nature">
> > >       </parser>
> > >    </extension>
> > >
> > > </plugin>
> > >
> > > Within the CFMLLanguageToolkit, the following implementation exists:
> > >
> > >         public String getNatureId() {
> > >                 return Activator.PLUGIN_ID + ".nature";
> > >         }
> > >
> > >         public String[] getLanguageFileExtensions() {
> > >                 String[] fileext = {"cfm", "cfml", "cfc"};
> > >                 return fileext;
> > >         }
> > >
> > > And inside my Activator:
> > >
> > > public static final String PLUGIN_ID = " org.cfeclipse.cfml";
> > >
> > >         public void start(BundleContext context) throws Exception {
> > >                 super.start(context);
> > >                 plugin = this;
> > >                 System.out.println("starting....");
> > >         }
> > >
> > > Yet, when I open a .cfc file, I don't see this line come up anywhere?
> > >
> > > I'm obviously missing something, but I have no idea what it is.
> > >
> > > Can someone at least point me in the right direction of what I
> > > *should* be doing?
> > >
> > > Mark
> > >
> > > --
> > > E: mark.mandel@xxxxxxxxx
> > > W: www.compoundtheory.com
> > > _______________________________________________
> > > dltk-dev mailing list
> > > dltk-dev@xxxxxxxxxxx
> > > https://dev.eclipse.org/mailman/listinfo/dltk-dev
> > >
> >
> >
> >
> > --
> > -jae
>
>
>
> --
> -jae
> _______________________________________________
> dltk-dev mailing list
> dltk-dev@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/dltk-dev
>
>


--
E: mark.mandel@xxxxxxxxx
W: www.compoundtheory.com
_______________________________________________
dltk-dev mailing list
dltk-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/dltk-dev



--
-jae

Back to the top