Пример #1
0
 private void addProfile() {
   try {
     TeaVMProfile profile = settings.createProfile();
     TableItem item = createItemForProfile(profile);
     storeItem(item);
     TeaVMProfileDialog dialog = new TeaVMProfileDialog(getShell(), settings, profile);
     dialog.setProject(project);
     dialog.open();
     updateItem(item);
   } catch (CoreException e) {
     reportStatus(e.getStatus());
   }
 }
Пример #2
0
 private void editProfile() {
   if (profilesTable.getSelectionCount() != 1) {
     return;
   }
   try {
     TableItem item = profilesTable.getSelection()[0];
     TeaVMProfile profile = (TeaVMProfile) item.getData();
     storeItem(item);
     TeaVMProfileDialog dialog = new TeaVMProfileDialog(getShell(), settings, profile);
     dialog.setProject(project);
     dialog.open();
     updateItem(item);
   } catch (CoreException e) {
     reportStatus(e.getStatus());
   }
 }