tmf/lttng: Remove unneeded (non-Javadoc) comments
[deliverable/tracecompass.git] / org.eclipse.linuxtools.tmf.ui / src / org / eclipse / linuxtools / tmf / ui / project / wizards / RenameExperimentDialog.java
index db3dc63be7f1b3d2e6176cd0ad02b441e976e607..2a63546a530549dd25bf9386bf99f021b5db6c91 100644 (file)
@@ -55,6 +55,7 @@ import org.eclipse.ui.part.FileEditorInput;
 /**
  * Implementation of a dialog box to rename an experiment.
  * <p>
+ *
  * @version 1.0
  * @author Francois Chouinard
  */
@@ -64,8 +65,8 @@ public class RenameExperimentDialog extends SelectionStatusDialog {
     // Members
     // ------------------------------------------------------------------------
 
-       private final TmfExperimentElement fExperiment;
-       private Text fNewExperimentName;
+    private final TmfExperimentElement fExperiment;
+    private Text fNewExperimentName;
     private final IContainer fExperimentFolder;
     private final TmfProjectElement fProject;
 
@@ -75,8 +76,11 @@ public class RenameExperimentDialog extends SelectionStatusDialog {
 
     /**
      * Constructor
-     * @param shell The parent shell
-     * @param experiment The experiment element rename
+     *
+     * @param shell
+     *            The parent shell
+     * @param experiment
+     *            The experiment element rename
      */
     public RenameExperimentDialog(Shell shell, TmfExperimentElement experiment) {
         super(shell);
@@ -91,10 +95,7 @@ public class RenameExperimentDialog extends SelectionStatusDialog {
     // ------------------------------------------------------------------------
     // Dialog
     // ------------------------------------------------------------------------
-    /*
-     * (non-Javadoc)
-     * @see org.eclipse.jface.dialogs.Dialog#createDialogArea(org.eclipse.swt.widgets.Composite)
-     */
+
     @Override
     protected Control createDialogArea(Composite parent) {
         Composite composite = (Composite) super.createDialogArea(parent);
@@ -141,25 +142,25 @@ public class RenameExperimentDialog extends SelectionStatusDialog {
         fNewExperimentName.addListener(SWT.Modify, new Listener() {
             @Override
             public void handleEvent(Event event) {
-               validateNewExperimentName();
+                validateNewExperimentName();
             }
         });
     }
 
     private void validateNewExperimentName() {
 
-       String name = fNewExperimentName.getText();
+        String name = fNewExperimentName.getText();
         IWorkspace workspace = fExperimentFolder.getWorkspace();
         IStatus nameStatus = workspace.validateName(name, IResource.FOLDER);
 
         if ("".equals(name)) { //$NON-NLS-1$
-               updateStatus(new Status(IStatus.ERROR, Activator.PLUGIN_ID, IStatus.ERROR, Messages.Dialog_EmptyNameError, null));
-               return;
+            updateStatus(new Status(IStatus.ERROR, Activator.PLUGIN_ID, IStatus.ERROR, Messages.Dialog_EmptyNameError, null));
+            return;
         }
 
         if (!nameStatus.isOK()) {
-               updateStatus(nameStatus);
-               return;
+            updateStatus(nameStatus);
+            return;
         }
 
         IPath path = new Path(name);
@@ -174,28 +175,17 @@ public class RenameExperimentDialog extends SelectionStatusDialog {
     // ------------------------------------------------------------------------
     // SelectionStatusDialog
     // ------------------------------------------------------------------------
-    /*
-     * (non-Javadoc)
-     * @see org.eclipse.ui.dialogs.SelectionStatusDialog#computeResult()
-     */
+
     @Override
     protected void computeResult() {
     }
 
-    /*
-     * (non-Javadoc)
-     * @see org.eclipse.ui.dialogs.SelectionStatusDialog#create()
-     */
     @Override
     public void create() {
         super.create();
         getButton(IDialogConstants.OK_ID).setEnabled(false);
     }
 
-    /*
-     * (non-Javadoc)
-     * @see org.eclipse.ui.dialogs.SelectionStatusDialog#okPressed()
-     */
     @Override
     protected void okPressed() {
         IFolder folder = renameExperiment(fNewExperimentName.getText());
@@ -212,10 +202,10 @@ public class RenameExperimentDialog extends SelectionStatusDialog {
 
     private IFolder renameExperiment(final String newName) {
 
-       IPath oldPath = fExperiment.getResource().getFullPath();
-       final IPath newPath = oldPath.append("../" + newName); //$NON-NLS-1$
+        IPath oldPath = fExperiment.getResource().getFullPath();
+        final IPath newPath = oldPath.append("../" + newName); //$NON-NLS-1$
 
-       WorkspaceModifyOperation operation = new WorkspaceModifyOperation() {
+        WorkspaceModifyOperation operation = new WorkspaceModifyOperation() {
             @Override
             public void execute(IProgressMonitor monitor) throws CoreException {
                 try {
@@ -248,7 +238,7 @@ public class RenameExperimentDialog extends SelectionStatusDialog {
                     }
 
                     fExperiment.renameSupplementaryFolder(newName);
-                       fExperiment.getResource().move(newPath, IResource.FORCE | IResource.SHALLOW, null);
+                    fExperiment.getResource().move(newPath, IResource.FORCE | IResource.SHALLOW, null);
                     if (monitor.isCanceled()) {
                         throw new OperationCanceledException();
                     }
This page took 0.02571 seconds and 5 git commands to generate.