Exemplo n.º 1
0
 private void cm_aboutActionPerformed(
     java.awt.event.ActionEvent evt) // GEN-FIRST:event_cm_aboutActionPerformed
     { // GEN-HEADEREND:event_cm_aboutActionPerformed
   VersionDialog dia = new VersionDialog(this, true, cmCheck_verbose.isSelected());
   dia.setVisible(true);
   //        JOptionPane.showMessageDialog(this, "Salamander SVG - Created by Mark
   // McKay\nhttp://www.kitfox.com");
 } // GEN-LAST:event_cm_aboutActionPerformed
 private void handleProperties() {
   IStructuredSelection ssel = (IStructuredSelection) fPluginTable.getSelection();
   if (ssel.size() == 1) {
     IProductPlugin plugin = (IProductPlugin) ssel.toArray()[0];
     VersionDialog dialog =
         new VersionDialog(PDEPlugin.getActiveWorkbenchShell(), isEditable(), plugin.getVersion());
     dialog.create();
     SWTUtil.setDialogSize(dialog, 400, 200);
     if (dialog.open() == Window.OK) {
       plugin.setVersion(dialog.getVersion());
     }
   }
 }