Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » Intro as a login page
Intro as a login page [message #265932] Sun, 08 August 2004 14:49 Go to next message
Eclipse UserFriend
Originally posted by: mauro.automaware.com.br

Hi,
Based on Rich Client Tutorial Part 2 I resolved use the intro as a login
page in my rcp.Application plugin.

I subclassed IntroPart in my SecurityIntroPart and override the show window
in my Advisor so it integrates with spring and Acegi.

My question if I can set the Intro closable to false like I can do with the
views layout?

Thanks

Mauro
Re: Intro as a login page [message #265939 is a reply to message #265932] Sun, 08 August 2004 15:11 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: mauro.automaware.com.br

I mean override the openIntro(IWorkbenchWindowConfigurer configurer)
"Mauro" <mauro@automaware.com.br> escreveu na mensagem
news:cf5sg5$ld5$1@eclipse.org...
> Hi,
> Based on Rich Client Tutorial Part 2 I resolved use the intro as a login
> page in my rcp.Application plugin.
>
> I subclassed IntroPart in my SecurityIntroPart and override the show
window
> in my Advisor so it integrates with spring and Acegi.
>
> My question if I can set the Intro closable to false like I can do with
the
> views layout?
>
> Thanks
>
> Mauro
>
>
>
>
Re: Intro as a login page [message #266048 is a reply to message #265939] Mon, 09 August 2004 07:09 Go to previous messageGo to next message
Eclipse UserFriend
Hello Mauro,

Mauro schrieb:
> I mean override the openIntro(IWorkbenchWindowConfigurer configurer)
> "Mauro" <mauro@automaware.com.br> escreveu na mensagem
> news:cf5sg5$ld5$1@eclipse.org...
>
>>Hi,
>>Based on Rich Client Tutorial Part 2 I resolved use the intro as a login
>>page in my rcp.Application plugin.
>>
>>I subclassed IntroPart in my SecurityIntroPart and override the show
>
> window
>
>>in my Advisor so it integrates with spring and Acegi.
>>
>>My question if I can set the Intro closable to false like I can do with
>
> the
>
>>views layout?
>>

I stumbled about the same problem. To my opinion, there does not exist a
clean way to use openIntro in the mentioned scenario, although it is
recommended in the RCP tutorial (It would be interesting to hear a
contardictin opinion!).
Currently I use my IPlatformRunnable run() implementation to receive the
effect (I was lead to that idea by another poster who brought the link

http://www.coconut-palm-software.com/the_visual_editor/eclip se_rcp/login.comments

to my attention):

public class MyPlatformRunnable implements IPlatformRunnable {

/* (non-Javadoc)
* @see org.eclipse.core.runtime.IPlatformRunnable#run(java.lang.Obj ect)
*/
public Object run(Object args) throws Exception {
final WorkbenchAdvisor workbenchAdvisor = new MyWorkbenchAdvisor();
final Display display = PlatformUI.createDisplay();

if (authenticate(display)) {
try {
final int returnCode = PlatformUI.createAndRunWorkbench(display,
workbenchAdvisor);

return (returnCode == PlatformUI.RETURN_RESTART) ?
IPlatformRunnable.EXIT_RESTART :
IPlatformRunnable.EXIT_OK;
}
finally {
display.dispose();
}
}
else {
return IPlatformRunnable.EXIT_OK;
}
}

Greetings from Bremen,

Daniel Krügler
Re: Intro as a login page [message #266158 is a reply to message #266048] Mon, 09 August 2004 21:21 Go to previous messageGo to next message
Eclipse UserFriend
I agree; doing the login in the IPlatformRunnable (the RCP main program) has
worked out better for people so I've taken out that suggestion about using
openIntro() or initialize() for logins in the tutorial. Thanks for the
input.

--
Ed Burnette, co-author, Eclipse in Action
www.manning.com/gallardo
www.eclipsepowered.org


"Daniel Kr
Re: Intro as a login page [message #266170 is a reply to message #266158] Mon, 09 August 2004 22:08 Go to previous message
Eclipse UserFriend
Originally posted by: mauro.automaware.com.br

Thank you both for answer

"Ed Burnette" <ed.burnette@sas.com> escreveu na mensagem
news:cf97qq$48r$1@eclipse.org...
> I agree; doing the login in the IPlatformRunnable (the RCP main program)
has
> worked out better for people so I've taken out that suggestion about using
> openIntro() or initialize() for logins in the tutorial. Thanks for the
> input.
>
> --
> Ed Burnette, co-author, Eclipse in Action
> www.manning.com/gallardo
> www.eclipsepowered.org
>
>
> "Daniel Kr
Previous Topic:Documentation for Writing Eclipse Plugins
Next Topic:Various download choices
Goto Forum:
  


Current Time: Fri Jul 18 03:35:23 EDT 2025

Powered by FUDForum. Page generated in 0.29828 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top