use of org.erlide.cover.ui.launch.helpers.ProjectLabelProvider in project erlide_eclipse by erlang.
the class CoverMainTab method createModuleGroup.
private void createModuleGroup(final Composite comp) {
final ElementListSelectionDialog projectDialog = new ElementListSelectionDialog(getShell(), new ProjectLabelProvider());
final Object[] elements = createProjectArray();
projectDialog.setElements(elements);
projectDialog.setTitle("Select project");
projectDialog.setMessage("Select Erlang project: ");
moduleDialog = new ElementListSelectionDialog(getShell(), new ProjectLabelProvider());
moduleDialog.setElements(new Object[0]);
moduleDialog.setTitle("Select module");
moduleDialog.setMessage("Select Erlang module: ");
projectMBr = browserWithLabel(comp, "Project:", projectDialog);
projectMBr.addModifyListener(new ModifyListener() {
@Override
public void modifyText(final ModifyEvent e) {
updateLaunchConfigurationDialog();
final String projectName = projectMBr.getText();
if (projectName != null && !projectName.isEmpty()) {
final IErlProject p = ErlangEngine.getInstance().getModel().getErlangProject(ResourcesPlugin.getWorkspace().getRoot().getProject(projectName));
if (p != null) {
moduleDialog.setElements(createModuleArray(p));
}
}
}
});
moduleBr = browserWithLabel(comp, "Module:", moduleDialog);
moduleBr.addModifyListener(basicModifyListener);
}
use of org.erlide.cover.ui.launch.helpers.ProjectLabelProvider in project erlide_eclipse by erlang.
the class CoverMainTab method createAllTestsGroup.
private void createAllTestsGroup(final Composite comp) {
final ElementListSelectionDialog projectDialog = new ElementListSelectionDialog(getShell(), new ProjectLabelProvider());
final Object[] elements = createProjectArray();
projectDialog.setElements(elements);
projectDialog.setTitle("Select project");
projectDialog.setMessage("Select Erlang project: ");
fileBr = new ItemBrowser(comp, SWT.SINGLE | SWT.BORDER, projectDialog);
fileBr.setFiledLength(600);
fileBr.getTextGridData().horizontalSpan = 2;
fileBr.addModifyListener(basicModifyListener);
}
Aggregations