Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IEP-1089 , IEP-1062: Project Creation Page updated #846

Merged
merged 12 commits into from
Nov 22, 2023
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,13 @@ public void createControl(Composite parent)
container.setLayoutData(new GridData(GridData.FILL_BOTH));

createAbove(container, 1);
if (templateElements == null || templateElements.getChildren().isEmpty())
{
Dialog.applyDialogFont(container);
setControl(container);
return;
}
alirana01 marked this conversation as resolved.
Show resolved Hide resolved

Label label = new Label(container, SWT.NONE);
label.setText(getLabel());
GridData gd = new GridData();
Expand All @@ -107,7 +114,10 @@ public void createControl(Composite parent)
templateViewer.addDoubleClickListener(event -> doubleClickAction.run());
createDescriptionIn(sashForm);
createBelow(container, 1);
templateViewer.setInput(templateElements);
if (templateElements != null && !templateElements.getChildren().isEmpty())
{
templateViewer.setInput(templateElements);
}
initializeViewer();
templateViewer.addSelectionChangedListener(this);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,11 @@ public class Messages extends NLS
public static String BaseWizardSelectionPage_No_Desc;
public static String TemplateListSelectionPage_SelectTemplate_Desc;
public static String TemplateListSelectionPage_Template_Wizard_Desc;
public static String TemplateListSelectionPage_Templates;
public static String TemplateListSelectionPage_Templates_Desc;
public static String NewProjectWizardPage_Header;
public static String NewProjectWizardPage_DescriptionString;
public static String TemplateSelectionToolTip;
public static String NewProjectWizardPage_NoTemplateFoundMessage;

static
{
// initialize resource bundle
Expand Down
Loading
Loading