Examples of RenameDialog


Examples of com.intellij.refactoring.rename.RenameDialog

  }

  @Override
  public RenameDialog createRenameDialog(Project project, final PsiElement element, PsiElement nameSuggestionContext, Editor editor) {
    final String directiveName = DirectiveUtil.attributeToDirective(((PsiNamedElement)element).getName());
    return new RenameDialog(project, element, nameSuggestionContext, editor) {
      @Override
      public String[] getSuggestedNames() {
        return new String[] {directiveName};
      }
    };
View Full Code Here

Examples of net.sf.myway.calibrator.ui.dialog.RenameDialog

        final Shell shell = new Shell(window.getShell().getDisplay());
        final Object obj = ((IStructuredSelection) getViewer().getSelection())
          .getFirstElement();
        final String oldName = obj instanceof Folder ? ((Folder) obj).getName()
          : obj instanceof ScannedMap ? ((ScannedMap) obj).getName() : ""; //$NON-NLS-1$
        final RenameDialog renameDialog = new RenameDialog(shell, oldName);
        renameDialog.setBlockOnOpen(true);
        renameDialog.open();
        final String newName = renameDialog.getNewName();
        if (newName != null) {
          if (obj instanceof Folder) {
            final Folder f = (Folder) obj;
            getBL().rename(f, newName);
          }
View Full Code Here

Examples of ptolemy.actor.gui.RenameDialog

                return;
            }
            // Create a dialog for configuring the object.
            // First, identify the top parent frame.
            Frame parent = getFrame();
            new RenameDialog(parent, target);
        } catch (Throwable throwable) {
            // Giotto code generator on giotto/demo/Hierarchy/Hierarchy.xml
            // was throwing an exception here that was not being displayed
            // in the UI.
            MessageHandler.error(
View Full Code Here

Examples of ptolemy.actor.gui.RenameDialog

                while (parent.getParent() != null) {
                    parent = parent.getParent();
                }

                if (parent instanceof Frame) {
                    new RenameDialog((Frame) parent, target);
                } else {
                    new RenameDialog(null, target);
                }
            }
        };

        return menu.add(action, name);
View Full Code Here

Examples of slash.navigation.converter.gui.dialogs.RenameDialog

    public RenamePositionListAction(FormatAndRoutesModel formatAndRoutesModel) {
        this.formatAndRoutesModel = formatAndRoutesModel;
    }

    public void run() {
        RenameDialog dialog = new RenameDialog(formatAndRoutesModel.getPositionsModel().getRoute().getName(),
                formatAndRoutesModel.getFormat());
        dialog.pack();
        dialog.restoreLocation();
        dialog.setVisible(true);
    }
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.