Package org.eclipse.emf.edit.command

Examples of org.eclipse.emf.edit.command.RemoveCommand.canExecute()


   * @return true if value was deleted, and false otherwise.
   */
  private boolean handleRemoveMetaInfFile( final KeyValuePair value ) {
    if ( MessageDialog.openConfirm( getSite().getShell(), "Confirm delete", "Would really like to remove the selected META-INF file" ) ) {
      RemoveCommand cmd = new RemoveCommand( editingDomain, getTask().getFiles(), value );
      if ( cmd.canExecute() ) {
        cmd.execute();
        return true;
      }
    }
    return false;
View Full Code Here


   * @return true if value was deleted, and false otherwise.
   */
  private boolean handleRemoveFont( final KeyValuePair value ) {
    if ( MessageDialog.openConfirm( getSite().getShell(), "Confirm delete", "Would really like to remove the selected font" ) ) {
      RemoveCommand cmd = new RemoveCommand( editingDomain, getTask().getFonts(), value );
      if ( cmd.canExecute() ) {
        cmd.execute();
        return true;
      }
    }
    return false;
View Full Code Here

   * @return true if value was deleted, and false otherwise.
   */
  private boolean handleRemoveManifestAttr( final Param value ) {
    if ( MessageDialog.openConfirm( getSite().getShell(), "Confirm delete", "Would really like to remove the selected attribute" ) ) {
      RemoveCommand cmd = new RemoveCommand( editingDomain, getTask().getManifestEntries(), value );
      if ( cmd.canExecute() ) {
        cmd.execute();
        return true;
      }
    }
    return false;
View Full Code Here

   * @return true if value was deleted, and false otherwise.
   */
  private boolean handleRemoveIcon( final Icon value ) {
    if ( MessageDialog.openConfirm( getSite().getShell(), "Confirm delete", "Would really like to remove the selected icon" ) ) {
      RemoveCommand cmd = new RemoveCommand( editingDomain, getTask().getDeploy().getInfo().getIcon(), value );
      if ( cmd.canExecute() ) {
        cmd.execute();
        return true;
      }
    }
    return false;
View Full Code Here

   * @return true if value was deleted, and false otherwise.
   */
  private boolean handleRemoveSplash( final Splash value ) {
    if ( MessageDialog.openConfirm( getSite().getShell(), "Confirm delete", "Would really like to remove the selected splash" ) ) {
      RemoveCommand cmd = new RemoveCommand( editingDomain, getTask().getDeploy().getInfo().getSplash(), value );
      if ( cmd.canExecute() ) {
        cmd.execute();
        return true;
      }
    }
    return false;
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.