[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[ews.eclipse.technology.rap] Re: RAP example, looking like a website

Hi,

not sure which application you mean. The actionbar advisor of 
eclipsediscovery is implemented similar to the snippet available here:

http://dev.eclipse.org/newslists/news.eclipse.technology.rap/msg00794.html

The new demo's source isn't available yet. But we plan to publish the source 
in the sandbox module of the CVS soon.The demo application does nothing 
unusual in the actionbar advisor, but there is one little hack in the 
postWindowOpen() method of the WorkbenchWindowAdvisor to place the banner 
between toolbar and workbench page on the main perspective. We cast the 
IWorkbenchPage to the internal type WorkbenchPage (ugly, ugly - I know) to 
get access to the client composite of the page.

    WorkbenchPage wPage = ( 
WorkbenchPage )getWindowConfigurer().getWindow().getActivePage();
    Composite clientComposite = wPage.getClientComposite();

After that we are able to use a control listener to react on resizes of the 
shell for example to readjust the page. The banner is made of some simple 
labels with images parented to the shell.

Ciao
Frank

"Benedikt Arnold" <benedikt.arnold@xxxxxxxxxxxxx> schrieb im Newsbeitrag 
news:ffhk8m$3fn$1@xxxxxxxxxxxxxxxxxxxx
> Hi,
>
> is it possible to get the source code for the WorkbenchWindowAdvisor of 
> this application? Or is it available somewhere in the repository?
>
> Greetings,
> Ben
>
>
> "Benjamin Muskalla" <bmuskalla@xxxxxxxxxxxxxx> schrieb im Newsbeitrag 
> news:feqvvi$55k$1@xxxxxxxxxxxxxxxxxxxx
>> Hi Alex,
>>
>> i think you're talking about www.eclipsediscovery.org
>>
>> Just a few days ago we deployed another sample application with a web 
>> look&feel at http://rap.eclipse.org/rapdemo/rms
>>
>> Greets
>>   Benny
>>
>> Alexander Forschner wrote:
>>> Hi Stefan.
>>>
>>> Stefan Röck schrieb:
>>>>
>>>> what exactly do you want to do? Hiding the bar of the main shell and 
>>>> the menu bar can be achieved by some lines of code in your 
>>>> implementation of the WorkbenchWindowAdvisor.
>>> [...]
>>>> For theming, take a look at the RAP wiki: 
>>>> http://wiki.eclipse.org/RAP_Theming
>>>
>>> Thanks for this very detailed explanation, but I'm only looking for this 
>>> example webpages.
>>>
>>> I'll come back to your code snippets and the theming later, 'cause I 
>>> first want to demonstrate the pages to those, who are intrested in the 
>>> rap technology.
>>>
>>> Greets
>>> Alex
>
>