Package net.sf.myway.calibrator.ui.dialog

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

TOP

Related Classes of net.sf.myway.calibrator.ui.dialog.RenameDialog

Copyright © 2018 www.massapicom. 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.