I suppose you have a RCP application, now if you want to migrate it to RAP platform. You can refer to the following article Transform RCP Applications to Web Applications Using RAP i am one of the authors.
The Rich Client Platform (RCP) enables you to build rich desktop applications. The Rich Ajax Platform (RAP) lets you build Ajax-enabled web applications using the Eclipse development model. With the assistance of RAP, existing RCP applications can be run as web applications with only minor changes. In this article, explore the key features of RAP, and follow example code for a simple HTML viewer to learn how to migrate RCP applications to the web using RAP.
The article mentioned above will introduce you to migrate RCP to RAP step-by-step. I think it will be helpful for you.