Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » InputDialog, SelectionDialog, etc.
InputDialog, SelectionDialog, etc. [message #55663] Fri, 30 May 2003 06:31 Go to next message
Eclipse UserFriend
Originally posted by: pdrolet.mac.com

Posted with an Unregistered Version of NewsHunter - The Newsgroup Utility for OS X.
Get your copy today at: http://www.parkersoftware.com/products/newshunter/

Hi,

Is there any good examples on the ways to use all those dialogs?

Even though I think Eclipse is a great development tool, where it hurts is the lack of complete and clear examples in the help.

I know, there are sites here and there with examples, I can go through the source codes and look for examples THIS IS NOT EFFICIENT. I am loosing hours going through examples that do not show me the concrete examples I need...

A suggestion: to add to the API an example on the use of each class! I am sure that the developers that wrote those classes how to use their classes!!!

Patrice Drolet
Re: InputDialog, SelectionDialog, etc. [message #57994 is a reply to message #55663] Sun, 01 June 2003 08:58 Go to previous message
Eclipse UserFriend
Originally posted by: pdrolet.mac.com

Hi everyone,

It is weird! No answer or comment for 3 days. Maybe my question was
not relevent to this newsgroup - if so please someone tells me, but I
guess most developers must use those dialogs. If so, can someone simply
cut and paste of of his/her examples? The selectionDialog seems great
but I pass a List to the setInitialElementSelections but the list does
not show up. Here is my createDialogArea.


protected Control createDialogArea(Composite parent) {
Composite dialogArea= (Composite) super.createDialogArea(parent);
dialogArea.setFont(parent.getFont());
createMessageArea(dialogArea);

selectList = new ArrayList();
Choix c1 = new Choix();
c1.setLabel("Premier choix.");
Choix c2 = new Choix();
c2.setLabel("Deuxieme choix.");
Choix c3 = new Choix();
c3.setLabel("Deuxieme choix.");
selectList.add(c1);
selectList.add(c2);
selectList.add(c3);
setInitialElementSelections(selectList);

setToggleButton(createCheckButton(dialogArea, fToggleMessage));
getToggleButton().setSelection(fStore.getBoolean(fPreference Key));
applyDialogFont(dialogArea);
return dialogArea;
}

and Choix:
class Choix {
String label;

/**
* @return
*/
public String getLabel() {
return label;
}

/**
* @param string
*/
public void setLabel(String string) {
label = string;
}

}

So this is pretty simple but I do not see any of the label of the list.

Thanks for your insight!

Patrice Drolet
Previous Topic:get selected RadioGroupFieldEditor
Next Topic:CVS over Wireless Network
Goto Forum:
  


Current Time: Wed May 07 17:29:59 EDT 2025

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

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

Back to the top