Home » Eclipse Projects » Remote Application Platform (RAP) » Creating an empty project, using the article in the current eclipse magazine
|
Re: Creating an empty project, using the article in the current eclipse magazine [message #46935 is a reply to message #46905] |
Thu, 13 September 2007 12:06   |
Benjamin Muskalla Messages: 237 Registered: July 2009 |
Senior Member |
|
|
Hi Alex,
nice that you want to give RAP a try.
You said the RCP Mail template isn't available. Did you create a new
plug-in project with the settings mentioned in the article? If you have
no choice to select Plug-in project you are missing PDE. Be sure you
have Eclipse for RCP/Plugin Development or Eclipse Classic installed.
The ApplicationWorkbenchAdvisor is normally created by the Mail template
generator. As you don't have the mail template it's ok that there is no
such file. If you really want to start from scratch you need to define
it yourself. Take a look at the DemoWorkbenchAdvisior in the RAP demo.
As this is a RCP concept you should also find several good
articles/tutorials about creating RCP applications from scratch on the net.
Hope that helps!
Greets
Benny
Alexander forschner wrote:
> Hey folks.
>
> I just got the current release of the german eclipse magazine and I'm
> trying to build my first own project, using RAP.
>
> The RAP demo works fine, as well as modifications of the demo do.
>
> The article describes, how to change the RCP Mail Template, which should
> be shipped with eclipse (it's not present here) to get it work with RAP.
>
> I tried to create an empty Project to use RAP from scratch. In listing 1
> in the article, there is a line
> "PlatfomrUI.createAndRunWorkbench(display, new
> ApplicationWorkbenchAdvisor());" but the ApplicationWorkbenchAdvisor can
> not be found on my system. There is no import that provides this class.
> Only the abstract class WorkbenchAdvisor is available.
>
> Has anyone an idea, where to get this advisor?
>
> Greez
> Alex
|
|
|
Re: Creating an empty project, using the article in the current eclipse magazine [message #46964 is a reply to message #46935] |
Thu, 13 September 2007 12:30   |
Alexander Forschnr Messages: 21 Registered: July 2009 |
Junior Member |
|
|
Benjamin Muskalla schrieb:
> Hi Alex,
>
> nice that you want to give RAP a try.
I know RAP now for only a fiew weeks and I think it's the most useful
framework for creating real web applications.
> You said the RCP Mail template isn't available. Did you create a new
> plug-in project with the settings mentioned in the article? If you have
> no choice to select Plug-in project you are missing PDE. Be sure you
> have Eclipse for RCP/Plugin Development or Eclipse Classic installed.
I created a new Plug-In project, but didn't notice the small area, that
is named "Rich Client Application". Therefor, I overlooked the question
"Would you like to create a rich client application", so there was now
Mail temlate and no "Hello World" template, which creates exactly the
plugin-project, I was looking for.
> Hope that helps!
It did, but a closer look would have helped, too ;-)
Thanks a lot for RAP, I'm sure, this is not our last conversation.
Greez
Alex
|
|
|
Re: Creating an empty project, using the article in the current eclipse magazine [message #46994 is a reply to message #46964] |
Thu, 13 September 2007 12:44   |
Benjamin Muskalla Messages: 237 Registered: July 2009 |
Senior Member |
|
|
Alexander forschner wrote:
> Benjamin Muskalla schrieb:
>> Hi Alex,
>>
>> nice that you want to give RAP a try.
>
> I know RAP now for only a fiew weeks and I think it's the most useful
> framework for creating real web applications.
>
>> You said the RCP Mail template isn't available. Did you create a new
>> plug-in project with the settings mentioned in the article? If you
>> have no choice to select Plug-in project you are missing PDE. Be sure
>> you have Eclipse for RCP/Plugin Development or Eclipse Classic installed.
>
> I created a new Plug-In project, but didn't notice the small area, that
> is named "Rich Client Application". Therefor, I overlooked the question
> "Would you like to create a rich client application", so there was now
> Mail temlate and no "Hello World" template, which creates exactly the
> plugin-project, I was looking for.
That's the reason why we included the screenshot ;-)
>
>> Hope that helps!
>
> It did, but a closer look would have helped, too ;-)
>
> Thanks a lot for RAP, I'm sure, this is not our last conversation.
I hope so!
Greets
Benny
>
> Greez
> Alex
|
|
|
Re: Creating an empty project, using the article in the current eclipse magazine [message #47023 is a reply to message #46994] |
Thu, 13 September 2007 13:28   |
Alexander Forschnr Messages: 21 Registered: July 2009 |
Junior Member |
|
|
Benjamin Muskalla schrieb:
> That's the reason why we included the screenshot ;-)
Oh, I think, I held the magazine there *g*
If I'm not completely wrong, Fig. 1 and 2 should be switched, to match
the text.
Maybe two more centences, regarding the options for the wizzard would
help impatient readers like me.
As you complained about having no time to create a "first steps" howto,
would it be helpful, if I would create one? Should be no problem, as I'd
write "Form beginner for beginners".
Greez
Alex
|
|
|
Re: Creating an empty project, using the article in the current eclipse magazine [message #49341 is a reply to message #47023] |
Mon, 24 September 2007 09:33   |
Eclipse User |
|
|
|
Originally posted by: fappel.innoopract.com
Hi,
since time is a very limiting factor, it would be very nice if you could do
such an howto. What about the RAP-Wiki pages. I think it's enough to have an
bugzilla account to edit those pages. You could create a new one with your
howto, how does this sound?
Ciao
Frank
"Alexander forschner" <alexander.forschner@uni-ulm.de> schrieb im
Newsbeitrag news:fcbdtj$enn$1@build.eclipse.org...
> Benjamin Muskalla schrieb:
>> That's the reason why we included the screenshot ;-)
>
>
> Oh, I think, I held the magazine there *g*
> If I'm not completely wrong, Fig. 1 and 2 should be switched, to match the
> text.
>
> Maybe two more centences, regarding the options for the wizzard would help
> impatient readers like me.
>
> As you complained about having no time to create a "first steps" howto,
> would it be helpful, if I would create one? Should be no problem, as I'd
> write "Form beginner for beginners".
>
> Greez
> Alex
|
|
| |
Re: Creating an empty project, using the article in the current eclipse magazine [message #52411 is a reply to message #49341] |
Wed, 17 October 2007 12:34   |
Alexander Forschnr Messages: 21 Registered: July 2009 |
Junior Member |
|
|
Frank Appel schrieb:
> Hi,
>
> since time is a very limiting factor, it would be very nice if you could do
> such an howto. What about the RAP-Wiki pages. I think it's enough to have an
> bugzilla account to edit those pages. You could create a new one with your
> howto, how does this sound?
Do I get it right, that there is such a how-to by now?
If you have other topics, I could work on, with my knowledge, limited to
RAP basics, just tell me.
Greez
Alex
|
|
|
Re: Creating an empty project, using the article in the current eclipse magazine [message #52838 is a reply to message #52411] |
Thu, 18 October 2007 06:12   |
Eclipse User |
|
|
|
Originally posted by: fappel.innoopract.com
Hi,
we added some documentation with the new tooling support for RAP. But I
guess there are still a lot of uncovered topics. We try to get things as
easy as possible for people to start with RAP. But as we are very familiar
with the whole stuff, it is quite difficult to say what's missing most. What
kind of trouble did you (or other people who reading this) run into starting
with RAP and could this be worth a how-to to help others to avoid the same
problems?
Ciao
Frank
"Alexander Forschner" <alexander.forschner@uni-ulm.de> schrieb im
Newsbeitrag news:ff4vgm$62t$1@build.eclipse.org...
> Frank Appel schrieb:
>> Hi,
>>
>> since time is a very limiting factor, it would be very nice if you could
>> do such an howto. What about the RAP-Wiki pages. I think it's enough to
>> have an bugzilla account to edit those pages. You could create a new one
>> with your howto, how does this sound?
>
> Do I get it right, that there is such a how-to by now?
>
> If you have other topics, I could work on, with my knowledge, limited to
> RAP basics, just tell me.
>
> Greez
> Alex
|
|
|
Re: Creating an empty project, using the article in the current eclipse magazine [message #53195 is a reply to message #52838] |
Thu, 18 October 2007 08:41  |
Alexander Forschnr Messages: 21 Registered: July 2009 |
Junior Member |
|
|
Frank Appel schrieb:
> Hi,
>
> we added some documentation with the new tooling support for RAP. But I
> guess there are still a lot of uncovered topics. We try to get things as
> easy as possible for people to start with RAP. But as we are very familiar
> with the whole stuff, it is quite difficult to say what's missing most. What
> kind of trouble did you (or other people who reading this) run into starting
> with RAP and could this be worth a how-to to help others to avoid the same
> problems?
If the how-to contains information, about how to read printed text
correctly, it could help others avoid most of the problems I had.
When I was looking for a "first steps" howto, the article in the eclipse
magazine was the only source for this information.
In the meantime, there is an article on the web, which covers the whole
installation and a "hello world" project.
I'm about to try out this "hello world" project and I'm stuck with the
first problem:
I installed RAP via eclipse' update machanism and installed it as target
platform via the RAP welcome page. For my test, I created a new
workspace, which has plain old eclipse settings (eclipse welcome page,
default target platform).
It would be very interesting, where to get the target platform for a new
workspace, when rap is already installed.
(Solution: go to the welcome screen, click "overview", and follow the
steps on the web [Rich Ajax Platform (RAP) -> Install Target Platform])
Second thing, I noticed, is the inconsistency between the article in
eclipse mag and the article on the web "getting started/RAP examples":
In eclipse mag is mentioned, that one should create a rich client
application, on the web, this option is _not_ to set.
In the web article about the "hello world" example, nothing is said
about this option.
With my experience, I think it is necessary to create a rich client
application, if you want to test RAP?
I created a new plugin, without the option for rich client applications.
When I'm trying to launch the application, using the Equinox launcher,
there is no Plug-Ins-Tab, as stated in the article "launching RAP
applications".
I can start the jetty server, using a specified port, but I'm not able
to access my plugin, neither via localhost:9090/ nor via localhost:9090/rap/
I couldn't find the RAP Launcher, as it is named "RAP application".
After I found it, it started the RAP demo application, which I do not
see in my projects.
I removed them from my launch cofniguration. Now jetty complains about a
non existing entry point, but the entry point exists!?
Okay, I decided to start with the Hellow World PlugIn from scratch.
Chapter 3. should be named "Create a workbench advisor
HelloWorldWorkbenchAdvisor extending the WorkbenchAdvisor class".
The import is named "org.eclipse.ui.application.WorkbenchAdvisor", not
"org.eclipse.ui.entrypoint.WorkbenchAdvisor".
It is very confusing, to create an entry point for a class, that does
not yet exist. I'd prefere to create the class first, so I can select it
from the list of classes in the configuration of the extension point.
In chapter 5., there is a similar problem: it's confusing to create a
class, configure the extension and fill the formerly created class with
content afterwards.
In the end, I think it's more intuitive, to create all classes first,
and configure the extensions en block.
After finishing the hello world plugin, jetty still complains about a
non existing entrypoint, but I'm sure, that this entry point exists (I
selected it from the list).
When I change the class of the entry point to the one from my project
(grrr), jetty complains, that the class did not return a display.
Okay, this was a copy-and-paste mistake. When I copy all class content
correctly from the web, I only get the error, that
"org.eclipse.swt.lifecycle.IEntryPoint" does not exist. That's true, it
is named "org.eclipse.rwt.lifecycle.IEntryPoint" (rwt instead of swt).
In the end, anything works fine and I get the hello world in my browser.
In my opinion, it people would get faster into a working "hello world",
if the article would first describe, how to create all the classes and
after that, how to create the extensions.
Hope, that helps improving the howtos for beginners ;-)
Greez
Alex
PS: more questions? Ask me.
|
|
|
Goto Forum:
Current Time: Sat Jun 10 05:37:59 GMT 2023
Powered by FUDForum. Page generated in 0.02243 seconds
|