Skip to main content



      Home
Home » Eclipse Projects » Remote Application Platform (RAP) » How to iterate from all components in a shell in org.eclipse.jface.dialogs.dialog
How to iterate from all components in a shell in org.eclipse.jface.dialogs.dialog [message #69953] Mon, 14 January 2008 11:34 Go to next message
Eclipse UserFriend
Originally posted by: augcampos.mailinator.com

Hi there,

The folloing code iterates for all components in a composite
====
for (int i = 0; i < this.getShell().getChildren().length; i++) {
final Control control = this.getShell().getChildren()[i];
control.setEnabled(false);
}
===


How can I do the same in a dialog (org.eclipse.jface.dialogs.dialog)

Augusto Campos
Critical Software
Re: How to iterate from all components in a shell in org.eclipse.jface.dialogs.dialog [message #69972 is a reply to message #69953] Mon, 14 January 2008 12:38 Go to previous messageGo to next message
Eclipse UserFriend
Hi,

as Dialog is a subclass of the JFace Window you can use
Window#getShell() in the same manner. Usually this is a question for the
rcp/newcomer/platform newsgroups.

Greets
Benny

Augusto Campos wrote:
> Hi there,
>
> The folloing code iterates for all components in a composite
> ====
> for (int i = 0; i < this.getShell().getChildren().length; i++) {
> final Control control = this.getShell().getChildren()[i];
> control.setEnabled(false);
> }
> ===
>
>
> How can I do the same in a dialog (org.eclipse.jface.dialogs.dialog)
>
> Augusto Campos
> Critical Software
Re: How to iterate from all components in a shell in org.eclipse.jface.dialogs.dialog [message #69992 is a reply to message #69972] Mon, 14 January 2008 13:01 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: augcampos.mailinator.com

Hi again...

I already try that but on configureShell but I get null! Do I have to user it on a different method
(is a modal dialog)

Thanks in advance.

Benjamin Muskalla wrote:
> Hi,
>
> as Dialog is a subclass of the JFace Window you can use
> Window#getShell() in the same manner. Usually this is a question for the
> rcp/newcomer/platform newsgroups.
>
> Greets
> Benny
>
> Augusto Campos wrote:
>> Hi there,
>>
>> The folloing code iterates for all components in a composite
>> ====
>> for (int i = 0; i < this.getShell().getChildren().length; i++) {
>> final Control control = this.getShell().getChildren()[i];
>> control.setEnabled(false);
>> }
>> ===
>>
>>
>> How can I do the same in a dialog (org.eclipse.jface.dialogs.dialog)
>>
>> Augusto Campos
>> Critical Software
Re: How to iterate from all components in a shell in org.eclipse.jface.dialogs.dialog [message #70089 is a reply to message #69992] Tue, 15 January 2008 03:49 Go to previous message
Eclipse UserFriend
Originally posted by: fappel.innoopract.com

Hi,

I assume that configureShell is too early in the dialog's lifecycle. Maybe
you are luckier using createContents...


Ciao
Frank


"Augusto Campos" <augcampos@mailinator.com> schrieb im Newsbeitrag
news:fmg81e$iif$1@build.eclipse.org...
> Hi again...
>
> I already try that but on configureShell but I get null! Do I have to user
> it on a different method (is a modal dialog)
>
> Thanks in advance.
>
> Benjamin Muskalla wrote:
>> Hi,
>>
>> as Dialog is a subclass of the JFace Window you can use Window#getShell()
>> in the same manner. Usually this is a question for the
>> rcp/newcomer/platform newsgroups.
>>
>> Greets
>> Benny
>>
>> Augusto Campos wrote:
>>> Hi there,
>>>
>>> The folloing code iterates for all components in a composite
>>> ====
>>> for (int i = 0; i < this.getShell().getChildren().length; i++) {
>>> final Control control = this.getShell().getChildren()[i];
>>> control.setEnabled(false);
>>> }
>>> ===
>>>
>>>
>>> How can I do the same in a dialog (org.eclipse.jface.dialogs.dialog)
>>>
>>> Augusto Campos
>>> Critical Software
Previous Topic:Nebula widgets in RAP
Next Topic:Tomcat deployment without Equinox
Goto Forum:
  


Current Time: Fri Jun 06 01:36:38 EDT 2025

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

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

Back to the top