Esempio n. 1
0
 public void mostrarPanel(ModoEdicion modoEdicion) {
   try {
     this.modoEdicion = modoEdicion;
     mostrar();
   } catch (Exception ex) {
     DialogManager.mostrarError(getShell(), ex);
   }
 }
Esempio n. 2
0
  private void mostrar() {
    try {
      cargarDatos();
      enlazarDatos();
      accionesGui();

    } catch (Exception e) {
      DialogManager.mostrarError(getShell(), e);
    }
  }
Esempio n. 3
0
 public void setEditable(Composite composite, boolean editable) {
   try {
     Control[] controles = composite.getChildren();
     if (controles != null) {
       for (Control c : controles) {
         if (c instanceof Button && (((Button) c).getStyle() & SWT.CHECK) != 0)
           ((Button) c).setEnabled(editable);
         else if (c instanceof Text) ((Text) c).setEditable(editable);
         else if (c instanceof Combo) ((Combo) c).setEnabled(editable);
         else if (c instanceof Composite) setEditable((Composite) c, editable);
       }
     }
   } catch (Exception ex) {
     DialogManager.mostrarError(getShell(), ex);
   }
 }
Esempio n. 4
0
 private void mostrarErroresGuardado(Exception e) {
   DialogManager.mostrarError(getShell(), e);
 }