private void initProjectsAndMetamodels() { for (IProject project : ((INewRefactoringWizard) getWizard()).getProjects()) { projectCombo.add(project.getName()); } Object[] metamodelObjects = EPackage.Registry.INSTANCE.keySet().toArray(new Object[EPackage.Registry.INSTANCE.size()]); Arrays.sort(metamodelObjects); for (Object object : metamodelObjects) { metamodelCombo.add(object.toString()); } }
public RegisteredPackageDialog(final Shell parent) { super( parent, new LabelProvider() { @Override public Image getImage(final Object element) { return ExtendedImageRegistry.getInstance() .getImage( EcoreEditPlugin.INSTANCE.getImage("full/obj16/EPackage")); // $NON-NLS-1$ } }); setMultipleSelection(true); setMessage(Messages.Select_Registered_URI); setTitle(Messages.Package_Selection); Object[] result = EPackage.Registry.INSTANCE .keySet() .toArray(new Object[EPackage.Registry.INSTANCE.size()]); Arrays.sort(result); setElements(result); }
private void initMetaModels() { metaModels = EPackage.Registry.INSTANCE.keySet().toArray(new String[EPackage.Registry.INSTANCE.size()]); Arrays.sort(metaModels); }
protected void updateElements() { Object[] result = EPackage.Registry.INSTANCE.keySet().toArray(new Object[EPackage.Registry.INSTANCE.size()]); Arrays.sort(result); setListElements(result); }