Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[atf-dev] Re: Snippets DND function in Eclipse Application

Hi, All

Thanks for your help!

I tried your resolutions but seems all didn't work. I added org.eclipse.wst.common.snipppets into the dependencies and got same result. And in the console I can see the status of org.eclipse.wst.common.snippets is ACTIVE. I can't figure out why it happened. I met this error if I set the snippet template to be very simple "Hello world", if I input the snippet according to the dojo samples, all worked well.

Message: 1
Date: Mon, 16 Oct 2006 15:23:51 -0400
From: Nitin Dahyabhai <nitind@xxxxxxxxxx>
Subject: Re: [atf-dev] Snippets DND function in Eclipse Application
To: AJAX Toolkit Framework discussion <atf-dev@xxxxxxxxxxx>
Message-ID: <4533DC47.4090100@xxxxxxxxxx>
Content-Type: text/plain; charset=UTF-8; format=flowed

Song Wei Shan wrote:
> Hi, All
> Now I'm trying to build a custom personality using ATF personality
> builder. The personality is created successfully and I could launch them
> using "Run as--> Eclipse Application", but I found in the second eclipse
> workspace, I couldn't drag the snippet code into the file. I tried to
> drag the dojo sample code to a _javascript_ file which worked well in the
> original eclipse workspace, but it's said that "An error has occured,
> See error log for more details". The log is attached in the below. And
> even more, if I exported the created plugins into the workspace of
> original eclipse workspace, the snippet DND functions didn't work in the
> original workspace, either. And If I removed the exported plugins for
> the custom personality from the original eclipse, all was ok...Could
> anyone please tell me if I did something wrong leading to this problem?
> Thanks!
> Error Log:
> ENTRY org.eclipse.jface 4 2 2006-10-16 22:43:53.116
> !MESSAGE Problems occurred when invoking code from plug-in:
> "org.eclipse.jface".
> !STACK 0
> java.lang.NoClassDefFoundError
>                 at
> org.eclipse.atf.templates.util.TemplateInsertion2.computeInsertString(
>                 at
> org.eclipse.atf.templates.util.TemplateInsertion2.dragSetData(

A java.lang.NoClassDefFoundError classically means a class was
present when you compiled the code but it isn't present at runtime.
 Does the plugin from which you contributed the snippet have
org.eclipse.wst.common.snippets in its requirements?

Back to the top