RTSDK : Code clean up
authordaeryong.park <bdragon.park@samsung.com>
Fri, 3 Mar 2017 03:10:38 +0000 (12:10 +0900)
committerdaeryong.park <bdragon.park@samsung.com>
Fri, 3 Mar 2017 03:10:38 +0000 (12:10 +0900)
- Remove trailing white spaces
- Remove unused imports
- Add missing '@Override' annotation
- Format source

Change-Id: If5b3bad715a96cdaead638977e6b8c8de3386266
Signed-off-by: daeryong.park <bdragon.park@samsung.com>
39 files changed:
rt-ide/tizen.rt.product.plugin/src/org/eclipse/egit/ui/internal/clone/RtGitImportWizard.java
rt-ide/tizen.rt.product.plugin/src/org/eclipse/egit/ui/internal/clone/RtGitProjectsImportPage.java
rt-ide/tizen.rt.product.plugin/src/org/eclipse/egit/ui/internal/clone/RtGitSelectWizardPage.java
rt-ide/tizen.rt.product.plugin/src/org/tizen/rt/ide/Activator.java
rt-ide/tizen.rt.product.plugin/src/org/tizen/rt/ide/BuildCommand.java
rt-ide/tizen.rt.product.plugin/src/org/tizen/rt/ide/FlashCommand.java
rt-ide/tizen.rt.product.plugin/src/org/tizen/rt/ide/Messages.java
rt-ide/tizen.rt.product.plugin/src/org/tizen/rt/ide/ResourceManager.java
rt-ide/tizen.rt.product.plugin/src/org/tizen/rt/ide/RtosCommandManager.java
rt-ide/tizen.rt.product.plugin/src/org/tizen/rt/ide/build/BuildBuilder.java
rt-ide/tizen.rt.product.plugin/src/org/tizen/rt/ide/build/BuildOption.java
rt-ide/tizen.rt.product.plugin/src/org/tizen/rt/ide/build/RtosBuildDialogPage.java
rt-ide/tizen.rt.product.plugin/src/org/tizen/rt/ide/build/RtosBuildWizard.java
rt-ide/tizen.rt.product.plugin/src/org/tizen/rt/ide/build/RtosBuildWizardDialog.java
rt-ide/tizen.rt.product.plugin/src/org/tizen/rt/ide/console/ConsoleManager.java
rt-ide/tizen.rt.product.plugin/src/org/tizen/rt/ide/flash/FlashBuilder.java
rt-ide/tizen.rt.product.plugin/src/org/tizen/rt/ide/flash/FlashOption.java
rt-ide/tizen.rt.product.plugin/src/org/tizen/rt/ide/flash/RtosFlashDialogPage.java
rt-ide/tizen.rt.product.plugin/src/org/tizen/rt/ide/flash/RtosFlashWizard.java
rt-ide/tizen.rt.product.plugin/src/org/tizen/rt/ide/flash/RtosFlashWizardDialog.java
rt-ide/tizen.rt.product.plugin/src/org/tizen/rt/ide/handlers/BuildHandler.java
rt-ide/tizen.rt.product.plugin/src/org/tizen/rt/ide/handlers/FlashHandler.java
rt-ide/tizen.rt.product.plugin/src/org/tizen/rt/ide/handlers/TerminalHandler.java
rt-ide/tizen.rt.product.plugin/src/org/tizen/rt/ide/perspectives/TizenRTPerspective.java
rt-ide/tizen.rt.product.plugin/src/org/tizen/rt/ide/util/IReporter.java
rt-ide/tizen.rt.product.plugin/src/org/tizen/rt/ide/util/OSChecker.java
rt-ide/tizen.rt.product.plugin/src/org/tizen/rt/ide/util/ProcUtil.java
rt-ide/tizen.rt.product.plugin/src/org/tizen/rt/ide/util/SDKUtil.java
rt-ide/tizen.rt.product.plugin/src/org/tizen/rt/ide/util/Util.java
rt-ide/tizen.rt.product.plugin/src/org/tizen/rt/ide/util/WorkspaceUtil.java
rt-ide/tizen.rt.product.plugin/src/org/tizen/rt/ide/util/XMLUtil.java
rt-ide/tizen.rt.product.plugin/src/org/tizen/rt/ide/util/ZipUtil.java
rt-ide/tizen.rt.product.plugin/src/org/tizen/rt/ide/wizards/NewArtikProjectWizard.java
rt-ide/tizen.rt.product.plugin/src/org/tizen/rt/ide/wizards/NewArtikProjectWizardPage.java
rt-ide/tizen.rt.product.plugin/src/org/tizen/rt/ide/wizards/NewArtikProjectWizardPage2.java
rt-ide/tizen.rt.product.plugin/src/org/tizen/rt/ide/wizards/NewMakeDefsWizard.java
rt-ide/tizen.rt.product.plugin/src/org/tizen/rt/ide/wizards/NewMakeDefsWizardPage.java
rt-ide/tizen.rt.product.plugin/src/org/tizen/rt/ide/wizards/TemplateData.java
rt-ide/tizen.rt.product.plugin/src/org/tizen/rt/product/RtProjectNature.java

index fb2b580..28a1346 100644 (file)
@@ -8,11 +8,11 @@
  * Contributors:
  *    Mathias Kinzler (SAP AG) - initial implementation
  *    Stefan Lay (SAP AG) - improvements
- *    
+ *
  * Modified:
  * @since 2017. 2. 8.
  * Daeryong Park <bdragon.park@samsung.com>
- * 
+ *
  *******************************************************************************/
 package org.eclipse.egit.ui.internal.clone;
 
index f66d485..7b430c0 100644 (file)
  * are made available under the terms of the Eclipse Public License v1.0
  * which accompanies this distribution, and is available at
  * http://www.eclipse.org/legal/epl-v10.html
- * 
+ *
  * Modified:
  * @since 2017. 2. 8.
  * Daeryong Park <bdragon.park@samsung.com>
- * 
+ *
  *******************************************************************************/
 
 package org.eclipse.egit.ui.internal.clone;
index 1e2263b..9c8ad95 100644 (file)
@@ -7,11 +7,11 @@
  *
  * Contributors:
  *    Mathias Kinzler (SAP AG) - initial implementation
- *    
+ *
  * Modified:
  * @since 2017. 2. 8.
  * Daeryong Park <bdragon.park@samsung.com>
- * 
+ *
  *******************************************************************************/
 
 package org.eclipse.egit.ui.internal.clone;
index d5820b8..bd9eba3 100644 (file)
@@ -3,9 +3,9 @@
  *
  * Copyright (c) 2000 - 2017 Samsung Electronics Co., Ltd. All rights reserved.
  *
- * Contact: 
+ * Contact:
  * Daeryong Park <bdragon.park@samsung.com>
- * 
+ *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
  * You may obtain a copy of the License at
@@ -52,6 +52,7 @@ public class Activator extends AbstractUIPlugin {
      * (non-Javadoc)
      * @see org.eclipse.ui.plugin.AbstractUIPlugin#start(org.osgi.framework.BundleContext)
      */
+    @Override
     public void start(BundleContext context) throws Exception {
         super.start(context);
         PropertyConfigurator.configure(Activator.class.getResource("log4j.properties"));
@@ -62,6 +63,7 @@ public class Activator extends AbstractUIPlugin {
      * (non-Javadoc)
      * @see org.eclipse.ui.plugin.AbstractUIPlugin#stop(org.osgi.framework.BundleContext)
      */
+    @Override
     public void stop(BundleContext context) throws Exception {
         plugin = null;
         super.stop(context);
index 304ac83..e4c815c 100644 (file)
@@ -3,9 +3,9 @@
 *
 * Copyright (c) 2000 - 2015 Samsung Electronics Co., Ltd. All rights reserved.
 *
-* Contact: 
+* Contact:
 * jm.jemin.kim <jm.jemin.kim@samsung.com>
-* 
+*
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
index 04d9b31..9e5279a 100644 (file)
@@ -3,9 +3,9 @@
 *
 * Copyright (c) 2000 - 2015 Samsung Electronics Co., Ltd. All rights reserved.
 *
-* Contact: 
+* Contact:
 * jm.jemin.kim <jm.jemin.kim@samsung.com>
-* 
+*
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
@@ -30,17 +30,8 @@ import java.io.FilenameFilter;
 import java.util.ArrayList;
 import java.util.List;
 
-import org.eclipse.core.resources.IFile;
 import org.eclipse.core.resources.IProject;
-import org.eclipse.core.resources.IResource;
 import org.eclipse.core.runtime.IProgressMonitor;
-import org.eclipse.jface.viewers.ISelection;
-import org.eclipse.jface.viewers.IStructuredSelection;
-import org.eclipse.ui.IEditorPart;
-import org.eclipse.ui.IFileEditorInput;
-import org.eclipse.ui.ISelectionService;
-import org.eclipse.ui.IWorkbenchWindow;
-import org.eclipse.ui.PlatformUI;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 import org.tizen.rt.ide.console.ConsoleManager;
index 81ad280..590ef5d 100644 (file)
@@ -5,9 +5,9 @@
  *
  * Copyright (c) 2000 - 2015 Samsung Electronics Co., Ltd. All rights reserved.
  *
- * Contact: 
+ * Contact:
  * Daeryong Park <bdragon.park@samsung.com>
- * 
+ *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
  * You may obtain a copy of the License at
index e19ff80..1349e57 100644 (file)
@@ -5,9 +5,9 @@
  *
  * Copyright (c) 2000 - 2015 Samsung Electronics Co., Ltd. All rights reserved.
  *
- * Contact: 
+ * Contact:
  * Daeryong Park <bdragon.park@samsung.com>
- * 
+ *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
  * You may obtain a copy of the License at
index 06a7de1..3ccba19 100644 (file)
@@ -3,9 +3,9 @@
 *
 * Copyright (c) 2000 - 2015 Samsung Electronics Co., Ltd. All rights reserved.
 *
-* Contact: 
+* Contact:
 * jm.jemin.kim <jm.jemin.kim@samsung.com>
-* 
+*
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
@@ -40,7 +40,6 @@ import org.slf4j.LoggerFactory;
 import org.tizen.rt.ide.build.BuildOption;
 import org.tizen.rt.ide.console.ConsoleManager;
 import org.tizen.rt.ide.flash.FlashOption;
-import org.tizen.rt.ide.util.OSChecker;
 
 /**
  * RtosCommandManager
index 35eaf28..80697f3 100644 (file)
@@ -3,9 +3,9 @@
 *
 * Copyright (c) 2000 - 2015 Samsung Electronics Co., Ltd. All rights reserved.
 *
-* Contact: 
+* Contact:
 * jm.jemin.kim <jm.jemin.kim@samsung.com>
-* 
+*
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
@@ -26,9 +26,7 @@
 package org.tizen.rt.ide.build;
 
 import org.eclipse.core.resources.IProject;
-import org.eclipse.jface.dialogs.Dialog;
-import org.slf4j.Logger;
-import org.slf4j.LoggerFactory;
+import org.eclipse.jface.window.Window;
 import org.tizen.rt.ide.util.Util;
 
 public class BuildBuilder {
@@ -51,7 +49,7 @@ public class BuildBuilder {
         rtosWizardDialog.create();
         int result = rtosWizardDialog.open();
 
-        if (result == Dialog.OK) {
+        if (result == Window.OK) {
             return true;
         } else {
             // logger.error("failed to open BuildWizard ");
index 42e6a2b..7333ba3 100644 (file)
@@ -3,9 +3,9 @@
 *
 * Copyright (c) 2000 - 2015 Samsung Electronics Co., Ltd. All rights reserved.
 *
-* Contact: 
+* Contact:
 * jm.jemin.kim <jm.jemin.kim@samsung.com>
-* 
+*
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
@@ -41,7 +41,7 @@ public class BuildOption {
     public String getBoard() {
         return board;
     }
-    
+
     public String getBuildOption() {
         return buildOption;
     }
index b4fcefc..1e2f9d1 100644 (file)
@@ -3,9 +3,9 @@
 *
 * Copyright (c) 2000 - 2015 Samsung Electronics Co., Ltd. All rights reserved.
 *
-* Contact: 
+* Contact:
 * jm.jemin.kim <jm.jemin.kim@samsung.com>
-* 
+*
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
@@ -98,6 +98,7 @@ public class RtosBuildDialogPage extends WizardPage {
         tableViewer_1.setLabelProvider(new TableViewerProvider_1());
         tableViewer_1.setContentProvider(new ArrayContentProvider());
         tableViewer_1.addSelectionChangedListener(new ISelectionChangedListener() {
+            @Override
             public void selectionChanged(SelectionChangedEvent event) {
                 IStructuredSelection selection = (IStructuredSelection) event.getSelection();
                 for (Object o : selection.toArray()) {
@@ -110,18 +111,19 @@ public class RtosBuildDialogPage extends WizardPage {
             }
         });
         tableViewer_1.setInput(boardList);
-        
+
         table_1 = tableViewer_1.getTable();
         table_1.setLinesVisible(true);
         table_1.setHeaderVisible(true);
         table_1.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true));
-        
+
         TableColumn tblclmnNewColumn_1 = new TableColumn(table_1, SWT.NONE);
         tblclmnNewColumn_1.setWidth(200);
         tblclmnNewColumn_1.setText("Boards");
 
         tableViewer = new TableViewer(composite, SWT.BORDER | SWT.FULL_SELECTION);
         tableViewer.addSelectionChangedListener(new ISelectionChangedListener() {
+            @Override
             public void selectionChanged(SelectionChangedEvent event) {
                 IStructuredSelection selection = (IStructuredSelection) event.getSelection();
                 for (Object o : selection.toArray()) {
@@ -186,9 +188,8 @@ public class RtosBuildDialogPage extends WizardPage {
         List<BuildOption> testList = RtosCommandManager.getBuildOptions(selectedBoard);
 
         RtosBuildWizard wizard = (RtosBuildWizard) getWizard();
-        //RtosBuildWizardDialog dialog = (RtosBuildWizardDialog) wizard.getContainer();
-        
-        
+        // RtosBuildWizardDialog dialog = (RtosBuildWizardDialog) wizard.getContainer();
+
         if (testList != null && testList.size() != 0) {
             // set HighlightEntryList
             rtosCommandMAnager.setHighlightListener(shell, table);
index 947a034..a372d48 100644 (file)
@@ -3,9 +3,9 @@
 *
 * Copyright (c) 2000 - 2015 Samsung Electronics Co., Ltd. All rights reserved.
 *
-* Contact: 
+* Contact:
 * jm.jemin.kim <jm.jemin.kim@samsung.com>
-* 
+*
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
@@ -70,6 +70,7 @@ public class RtosBuildWizard extends Wizard implements IPageChangedListener {
         IWizardContainer container = getContainer();
         try {
             container.run(true, false, new IRunnableWithProgress() {
+                @Override
                 public void run(IProgressMonitor monitor) throws InvocationTargetException, InterruptedException {
                     // String selectedDeviceName =
                     monitor.beginTask("Build", 4);
index 82d04ce..5f58abe 100644 (file)
@@ -3,9 +3,9 @@
 *
 * Copyright (c) 2000 - 2015 Samsung Electronics Co., Ltd. All rights reserved.
 *
-* Contact: 
+* Contact:
 * jm.jemin.kim <jm.jemin.kim@samsung.com>
-* 
+*
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
@@ -93,6 +93,7 @@ public class RtosBuildWizardDialog extends WizardDialog {
     }
 
     // @Override
+    @Override
     protected void createButtonsForButtonBar(Composite p) {
         this.parent = p;
         super.createButtonsForButtonBar(parent);
index 57a817d..59f75eb 100644 (file)
@@ -5,9 +5,9 @@
  *
  * Copyright (c) 2000 - 2015 Samsung Electronics Co., Ltd. All rights reserved.
  *
- * Contact: 
+ * Contact:
  * Daeryong Park <bdragon.park@samsung.com>
- * 
+ *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
  * You may obtain a copy of the License at
@@ -210,6 +210,7 @@ public class ConsoleManager {
      */
     public void clear() {
         Runnable runnable = new Runnable() {
+            @Override
             public void run() {
                 IDocument document = console.getDocument();
                 if (document != null) {
@@ -225,6 +226,7 @@ public class ConsoleManager {
      */
     public void show() {
         Runnable runnable = new Runnable() {
+            @Override
             public void run() {
                 IWorkbenchPage page = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage();
                 String id = IConsoleConstants.ID_CONSOLE_VIEW;
@@ -251,6 +253,7 @@ public class ConsoleManager {
             this.color = color;
         }
 
+        @Override
         public void run() {
             setStringStyle(this.fontStyle, this.color);
         }
index de66381..490616f 100644 (file)
@@ -3,9 +3,9 @@
 *
 * Copyright (c) 2000 - 2015 Samsung Electronics Co., Ltd. All rights reserved.
 *
-* Contact: 
+* Contact:
 * jm.jemin.kim <jm.jemin.kim@samsung.com>
-* 
+*
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 
 package org.tizen.rt.ide.flash;
 
-import org.eclipse.jface.dialogs.Dialog;
-import org.slf4j.Logger;
-import org.slf4j.LoggerFactory;
-import org.tizen.rt.ide.build.RtosBuildWizard;
-import org.tizen.rt.ide.build.RtosBuildWizardDialog;
+import org.eclipse.jface.window.Window;
 import org.tizen.rt.ide.util.Util;
 
 public class FlashBuilder {
@@ -52,7 +48,7 @@ public class FlashBuilder {
         rtosWizardDialog.create();
         int result = rtosWizardDialog.open();
 
-        if (result == Dialog.OK) {
+        if (result == Window.OK) {
             return true;
         } else {
             // logger.error("failed to open BuildWizard ");
index d68a36f..a32dea4 100644 (file)
@@ -3,9 +3,9 @@
 *
 * Copyright (c) 2000 - 2015 Samsung Electronics Co., Ltd. All rights reserved.
 *
-* Contact: 
+* Contact:
 * jm.jemin.kim <jm.jemin.kim@samsung.com>
-* 
+*
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
@@ -41,7 +41,7 @@ public class FlashOption {
     public String getBoard() {
         return board;
     }
-    
+
     public String getFlashOption() {
         return flashOption;
     }
index 96bdcb6..1894278 100644 (file)
@@ -3,9 +3,9 @@
 *
 * Copyright (c) 2000 - 2015 Samsung Electronics Co., Ltd. All rights reserved.
 *
-* Contact: 
+* Contact:
 * jm.jemin.kim <jm.jemin.kim@samsung.com>
-* 
+*
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
@@ -26,6 +26,7 @@
 package org.tizen.rt.ide.flash;
 
 import java.util.List;
+
 import org.eclipse.jface.layout.TableColumnLayout;
 import org.eclipse.jface.viewers.ArrayContentProvider;
 import org.eclipse.jface.viewers.ColumnPixelData;
@@ -91,6 +92,7 @@ public class RtosFlashDialogPage extends WizardPage {
 
         tableViewer = new TableViewer(composite, SWT.BORDER | SWT.FULL_SELECTION);
         tableViewer.addSelectionChangedListener(new ISelectionChangedListener() {
+            @Override
             public void selectionChanged(SelectionChangedEvent event) {
                 IStructuredSelection selection = (IStructuredSelection) event.getSelection();
                 for (Object o : selection.toArray()) {
index 3ab4824..2d72b02 100644 (file)
@@ -3,9 +3,9 @@
 *
 * Copyright (c) 2000 - 2015 Samsung Electronics Co., Ltd. All rights reserved.
 *
-* Contact: 
+* Contact:
 * jm.jemin.kim <jm.jemin.kim@samsung.com>
-* 
+*
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
@@ -67,6 +67,7 @@ public class RtosFlashWizard extends Wizard implements IPageChangedListener {
         IWizardContainer container = getContainer();
         try {
             container.run(true, false, new IRunnableWithProgress() {
+                @Override
                 public void run(IProgressMonitor monitor) throws InvocationTargetException, InterruptedException {
                     // String selectedDeviceName =
                     monitor.beginTask("Build", 4);
index 19af94d..dc47806 100644 (file)
@@ -3,9 +3,9 @@
 *
 * Copyright (c) 2000 - 2015 Samsung Electronics Co., Ltd. All rights reserved.
 *
-* Contact: 
+* Contact:
 * jm.jemin.kim <jm.jemin.kim@samsung.com>
-* 
+*
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
@@ -87,6 +87,7 @@ public class RtosFlashWizardDialog extends WizardDialog {
     }
 
     // @Override
+    @Override
     protected void createButtonsForButtonBar(Composite p) {
         this.parent = p;
         super.createButtonsForButtonBar(parent);
index f0b00e7..04f3948 100644 (file)
@@ -3,9 +3,9 @@
  *
  * Copyright (c) 2000 - 2017 Samsung Electronics Co., Ltd. All rights reserved.
  *
- * Contact: 
+ * Contact:
  * Daeryong Park <bdragon.park@samsung.com>
- * 
+ *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
  * You may obtain a copy of the License at
index 4347685..6ef07df 100644 (file)
@@ -3,9 +3,9 @@
  *
  * Copyright (c) 2000 - 2017 Samsung Electronics Co., Ltd. All rights reserved.
  *
- * Contact: 
+ * Contact:
  * Daeryong Park <bdragon.park@samsung.com>
- * 
+ *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
  * You may obtain a copy of the License at
@@ -72,9 +72,9 @@ public class FlashHandler extends AbstractHandler {
                 FlashBuilder rtosBuilder = new FlashBuilder();
                 boolean result = rtosBuilder.openFlashWizard(board);
                 if (result) {
-                    //logger.info("succeed to open rtos Builder Wizard");
+                    // logger.info("succeed to open rtos Builder Wizard");
                 } else {
-                    //logger.warn("fail to open rtos Builder Wizard");
+                    // logger.warn("fail to open rtos Builder Wizard");
                     return;
                 }
             }
index 2ba417d..8a25f63 100644 (file)
@@ -3,9 +3,9 @@
  *
  * Copyright (c) 2000 - 2017 Samsung Electronics Co., Ltd. All rights reserved.
  *
- * Contact: 
+ * Contact:
  * Daeryong Park <bdragon.park@samsung.com>
- * 
+ *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
  * You may obtain a copy of the License at
index e7f2705..6ed9c65 100644 (file)
@@ -3,9 +3,9 @@
  *
  * Copyright (c) 2000 - 2017 Samsung Electronics Co., Ltd. All rights reserved.
  *
- * Contact: 
+ * Contact:
  * Daeryong Park <bdragon.park@samsung.com>
- * 
+ *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
  * You may obtain a copy of the License at
@@ -43,6 +43,7 @@ public class TizenRTPerspective implements IPerspectiveFactory {
         super();
     }
 
+    @Override
     public void createInitialLayout(IPageLayout factory) {
         this.factory = factory;
         addViews();
index ffaac06..75dcc69 100644 (file)
@@ -3,9 +3,9 @@
  *
  * Copyright (c) 2000 - 2017 Samsung Electronics Co., Ltd. All rights reserved.
  *
- * Contact: 
+ * Contact:
  * Daeryong Park <bdragon.park@samsung.com>
- * 
+ *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
  * You may obtain a copy of the License at
index 59e85e2..7de66ee 100644 (file)
@@ -3,9 +3,9 @@
 *
 * Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved.
 *
-* Contact: 
+* Contact:
 * Kangho Kim <kh5325.kim@samsung.com>
-* 
+*
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
@@ -57,15 +57,8 @@ public class OSChecker {
     /* static initializer */
     static {
         /*
-         * OS                : arch      name         version
-         * solaris 7         : sparc     Solaris      2.x
-         * redhat 6.2(black) : x86       Linux        2.2.15-2.5.0
-         * redhat 6.2(ibm)   : i686      Linux        #1 Sat Feb 5 00:28:02 EST 2000.2.2.15-2.5.0
-         * win2000(jdk1.1.8) : x86       Windows NT   5.0
-         * win2000(jdk1.2.2) : x86       Windows NT   5.0       
-         * win2000(jdk1.3)   : x86       Windows 2000 5.0
-         * Mac OS 9          : PowerPC   Mac OS       9
-         * AIX 5.1           : ppc       AIX          5.1 (vendor : IBM Corporation)
+         * OS : arch name version solaris 7 : sparc Solaris 2.x redhat 6.2(black) : x86 Linux 2.2.15-2.5.0 redhat 6.2(ibm) : i686 Linux #1 Sat Feb 5 00:28:02 EST 2000.2.2.15-2.5.0 win2000(jdk1.1.8) :
+         * x86 Windows NT 5.0 win2000(jdk1.2.2) : x86 Windows NT 5.0 win2000(jdk1.3) : x86 Windows 2000 5.0 Mac OS 9 : PowerPC Mac OS 9 AIX 5.1 : ppc AIX 5.1 (vendor : IBM Corporation)
          */
         osID = 0;
         String osName = System.getProperty("os.name").toUpperCase();
index f8a2032..419d08f 100644 (file)
@@ -6,7 +6,7 @@
  * Contact:
  * Hyunsik Noh <hyunsik.noh@samsung.com>
  * Hyeongseok Heo <hyeongseok.heo@samsung.com>
- * 
+ *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
  * You may obtain a copy of the License at
index cd60934..9cf2ddf 100644 (file)
@@ -3,9 +3,9 @@
  *
  * Copyright (c) 2000 - 2017 Samsung Electronics Co., Ltd. All rights reserved.
  *
- * Contact: 
+ * Contact:
  * Daeryong Park <bdragon.park@samsung.com>
- * 
+ *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
  * You may obtain a copy of the License at
index 980ad80..3b68513 100644 (file)
@@ -3,9 +3,9 @@
  *
  * Copyright (c) 2000 - 2017 Samsung Electronics Co., Ltd. All rights reserved.
  *
- * Contact: 
+ * Contact:
  * Daeryong Park <bdragon.park@samsung.com>
- * 
+ *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
  * You may obtain a copy of the License at
index d6a8faf..7470bc8 100644 (file)
@@ -3,9 +3,9 @@
  *
  * Copyright (c) 2000 - 2017 Samsung Electronics Co., Ltd. All rights reserved.
  *
- * Contact: 
+ * Contact:
  * Daeryong Park <bdragon.park@samsung.com>
- * 
+ *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
  * You may obtain a copy of the License at
@@ -37,31 +37,31 @@ import org.eclipse.ui.PlatformUI;
 
 public class WorkspaceUtil {
 
-       public static String getCurrentProjectPath() {
-               String projPath = null;
-               
-           IWorkbenchWindow window = PlatformUI.getWorkbench().getActiveWorkbenchWindow();
-           IEditorPart editorPart = window.getActivePage().getActiveEditor();
-           if (editorPart != null) {
-               IFileEditorInput input = (IFileEditorInput) editorPart.getEditorInput();
-               IFile file = input.getFile();
-               IProject activeProject = file.getProject();
-               projPath = activeProject.getLocation().toString();
-           } else {
-               ISelectionService selectionService = window.getSelectionService();
-               if (selectionService != null) {
-                   ISelection selection = selectionService.getSelection();
-                   if (selection instanceof IStructuredSelection) {
-                       Object firstElement = ((IStructuredSelection) selection).getFirstElement();
-                       if (firstElement instanceof IResource) {
-                           IProject activeProject = ((IResource) firstElement).getProject();
-                           projPath = activeProject.getLocation().toString();
-                       }
-                   }
-               }
-           }
-           
-           return projPath;
-       }
-       
+    public static String getCurrentProjectPath() {
+        String projPath = null;
+
+        IWorkbenchWindow window = PlatformUI.getWorkbench().getActiveWorkbenchWindow();
+        IEditorPart editorPart = window.getActivePage().getActiveEditor();
+        if (editorPart != null) {
+            IFileEditorInput input = (IFileEditorInput) editorPart.getEditorInput();
+            IFile file = input.getFile();
+            IProject activeProject = file.getProject();
+            projPath = activeProject.getLocation().toString();
+        } else {
+            ISelectionService selectionService = window.getSelectionService();
+            if (selectionService != null) {
+                ISelection selection = selectionService.getSelection();
+                if (selection instanceof IStructuredSelection) {
+                    Object firstElement = ((IStructuredSelection) selection).getFirstElement();
+                    if (firstElement instanceof IResource) {
+                        IProject activeProject = ((IResource) firstElement).getProject();
+                        projPath = activeProject.getLocation().toString();
+                    }
+                }
+            }
+        }
+
+        return projPath;
+    }
+
 }
index 2c64276..825b455 100644 (file)
@@ -5,7 +5,7 @@
  *
  * Contact:
  * Gyeongmin Ju <gyeongmin.ju@samsung.com>
- * 
+ *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
  * You may obtain a copy of the License at
index 828af36..d83014c 100644 (file)
@@ -3,10 +3,10 @@
 *
 * Copyright (c) 2000 - 2015 Samsung Electronics Co., Ltd. All rights reserved.
 *
-* Contact: 
+* Contact:
 * GyeongSeok Seo <gyeongseok.seo@samsung.com>
 * Taeyoung Son <taeyoung2.son@samsung.com>
-* 
+*
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
index d64742e..6ea737f 100644 (file)
@@ -3,9 +3,9 @@
  *
  * Copyright (c) 2000 - 2017 Samsung Electronics Co., Ltd. All rights reserved.
  *
- * Contact: 
+ * Contact:
  * Daeryong Park <bdragon.park@samsung.com>
- * 
+ *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
  * You may obtain a copy of the License at
@@ -93,6 +93,7 @@ public class NewArtikProjectWizard extends BasicNewResourceWizard implements IEx
      * Adding the page to the wizard.
      */
 
+    @Override
     public void addPages() {
         page = new NewArtikProjectWizardPage(selection);
         addPage(page);
@@ -105,6 +106,7 @@ public class NewArtikProjectWizard extends BasicNewResourceWizard implements IEx
     /**
      * This method is called when 'Finish' button is pressed in the wizard. We will create an operation and run it using wizard as execution context.
      */
+    @Override
     public boolean performFinish() {
         final String boardName = boardPage.getBoardName();
         final String fileName = page.getProjectName();
@@ -121,6 +123,7 @@ public class NewArtikProjectWizard extends BasicNewResourceWizard implements IEx
         }
 
         IRunnableWithProgress op = new IRunnableWithProgress() {
+            @Override
             public void run(IProgressMonitor monitor) throws InvocationTargetException {
                 try {
                     doFinish(boardName, fileName, newProjectHandle, location, monitor);
@@ -320,6 +323,7 @@ public class NewArtikProjectWizard extends BasicNewResourceWizard implements IEx
      * We will accept the selection in the workbench to see if we can initialize from it.
      * @see IWorkbenchWizard#init(IWorkbench, IStructuredSelection)
      */
+    @Override
     public void init(IWorkbench workbench, IStructuredSelection selection) {
         this.selection = selection;
     }
index 0160237..1cdb3a9 100644 (file)
@@ -3,9 +3,9 @@
  *
  * Copyright (c) 2000 - 2017 Samsung Electronics Co., Ltd. All rights reserved.
  *
- * Contact: 
+ * Contact:
  * Daeryong Park <bdragon.park@samsung.com>
- * 
+ *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
  * You may obtain a copy of the License at
index 4eeb718..1fd88ff 100644 (file)
@@ -3,9 +3,9 @@
  *
  * Copyright (c) 2000 - 2017 Samsung Electronics Co., Ltd. All rights reserved.
  *
- * Contact: 
+ * Contact:
  * Daeryong Park <bdragon.park@samsung.com>
- * 
+ *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
  * You may obtain a copy of the License at
@@ -86,6 +86,7 @@ public class NewArtikProjectWizardPage2 extends WizardPage {
     /**
      * @see IDialogPage#createControl(Composite)
      */
+    @Override
     public void createControl(Composite parent) {
         Composite container = new Composite(parent, SWT.NONE);
         container.setLayout(new GridLayout(2, false));
@@ -186,6 +187,7 @@ public class NewArtikProjectWizardPage2 extends WizardPage {
 
     private void initialize() {
         table.addListener(SWT.Selection, new Listener() {
+            @Override
             public void handleEvent(Event e) {
                 int selection = table.getSelectionIndex();
                 Object data = table.getData(String.valueOf(selection));
index 747e58e..e30f06f 100644 (file)
@@ -3,9 +3,9 @@
  *
  * Copyright (c) 2000 - 2017 Samsung Electronics Co., Ltd. All rights reserved.
  *
- * Contact: 
+ * Contact:
  * Daeryong Park <bdragon.park@samsung.com>
- * 
+ *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
  * You may obtain a copy of the License at
@@ -74,6 +74,7 @@ public class NewMakeDefsWizard extends Wizard implements INewWizard {
      * Adding the page to the wizard.
      */
 
+    @Override
     public void addPages() {
         page = new NewMakeDefsWizardPage(selection);
         addPage(page);
@@ -82,10 +83,12 @@ public class NewMakeDefsWizard extends Wizard implements INewWizard {
     /**
      * This method is called when 'Finish' button is pressed in the wizard. We will create an operation and run it using wizard as execution context.
      */
+    @Override
     public boolean performFinish() {
         final String containerName = page.getContainerName();
         final String fileName = page.getFileName();
         IRunnableWithProgress op = new IRunnableWithProgress() {
+            @Override
             public void run(IProgressMonitor monitor) throws InvocationTargetException {
                 try {
                     doFinish(containerName, fileName, monitor);
@@ -139,6 +142,7 @@ public class NewMakeDefsWizard extends Wizard implements INewWizard {
         monitor.worked(1);
         monitor.setTaskName("Opening file for editing...");
         getShell().getDisplay().asyncExec(new Runnable() {
+            @Override
             public void run() {
                 IWorkbenchPage page = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage();
                 try {
@@ -168,6 +172,7 @@ public class NewMakeDefsWizard extends Wizard implements INewWizard {
      * We will accept the selection in the workbench to see if we can initialize from it.
      * @see IWorkbenchWizard#init(IWorkbench, IStructuredSelection)
      */
+    @Override
     public void init(IWorkbench workbench, IStructuredSelection selection) {
         this.selection = selection;
     }
index 3d42e37..47989c8 100644 (file)
@@ -3,9 +3,9 @@
  *
  * Copyright (c) 2000 - 2017 Samsung Electronics Co., Ltd. All rights reserved.
  *
- * Contact: 
+ * Contact:
  * Daeryong Park <bdragon.park@samsung.com>
- * 
+ *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
  * You may obtain a copy of the License at
@@ -31,6 +31,7 @@ import org.eclipse.core.runtime.Path;
 import org.eclipse.jface.dialogs.IDialogPage;
 import org.eclipse.jface.viewers.ISelection;
 import org.eclipse.jface.viewers.IStructuredSelection;
+import org.eclipse.jface.window.Window;
 import org.eclipse.jface.wizard.WizardPage;
 import org.eclipse.swt.SWT;
 import org.eclipse.swt.events.ModifyEvent;
@@ -71,6 +72,7 @@ public class NewMakeDefsWizardPage extends WizardPage {
     /**
      * @see IDialogPage#createControl(Composite)
      */
+    @Override
     public void createControl(Composite parent) {
         Composite container = new Composite(parent, SWT.NULL);
         GridLayout layout = new GridLayout();
@@ -84,6 +86,7 @@ public class NewMakeDefsWizardPage extends WizardPage {
         GridData gd = new GridData(GridData.FILL_HORIZONTAL);
         containerText.setLayoutData(gd);
         containerText.addModifyListener(new ModifyListener() {
+            @Override
             public void modifyText(ModifyEvent e) {
                 dialogChanged();
             }
@@ -92,6 +95,7 @@ public class NewMakeDefsWizardPage extends WizardPage {
         Button button = new Button(container, SWT.PUSH);
         button.setText("Browse...");
         button.addSelectionListener(new SelectionAdapter() {
+            @Override
             public void widgetSelected(SelectionEvent e) {
                 handleBrowse();
             }
@@ -103,6 +107,7 @@ public class NewMakeDefsWizardPage extends WizardPage {
         gd = new GridData(GridData.FILL_HORIZONTAL);
         fileText.setLayoutData(gd);
         fileText.addModifyListener(new ModifyListener() {
+            @Override
             public void modifyText(ModifyEvent e) {
                 dialogChanged();
             }
@@ -143,7 +148,7 @@ public class NewMakeDefsWizardPage extends WizardPage {
         ContainerSelectionDialog dialog = new ContainerSelectionDialog(
                 getShell(), ResourcesPlugin.getWorkspace().getRoot(), false,
                 "Select new file container");
-        if (dialog.open() == ContainerSelectionDialog.OK) {
+        if (dialog.open() == Window.OK) {
             Object[] result = dialog.getResult();
             if (result.length == 1) {
                 containerText.setText(((Path) result[0]).toString());
index 4907fb7..8d9acf5 100644 (file)
@@ -3,9 +3,9 @@
  *
  * Copyright (c) 2000 - 2017 Samsung Electronics Co., Ltd. All rights reserved.
  *
- * Contact: 
+ * Contact:
  * Daeryong Park <bdragon.park@samsung.com>
- * 
+ *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
  * You may obtain a copy of the License at
index e344754..aaf8dc5 100644 (file)
@@ -5,9 +5,9 @@
  *
  * Copyright (c) 2000 - 2015 Samsung Electronics Co., Ltd. All rights reserved.
  *
- * Contact: 
+ * Contact:
  * Daeryong Park <bdragon.park@samsung.com>
- * 
+ *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
  * You may obtain a copy of the License at
@@ -45,7 +45,7 @@ import org.tizen.rt.ide.Activator;
 
 public class RtProjectNature implements IProjectNature {
 
-       public static final String RT_NATURE_ID = Activator.PLUGIN_ID + ".RtProjectNature";
+    public static final String RT_NATURE_ID = Activator.PLUGIN_ID + ".RtProjectNature";
     private static final Logger logger = LoggerFactory.getLogger(RtProjectNature.class);
 
     private IProject fProject;
@@ -130,21 +130,24 @@ public class RtProjectNature implements IProjectNature {
         return projectHandle;
     }
 
-    /* (non-Javadoc)
+    /*
+     * (non-Javadoc)
      * @see org.eclipse.core.resources.IProjectNature#configure()
      */
     @Override
     public void configure() throws CoreException {
     }
 
-    /* (non-Javadoc)
+    /*
+     * (non-Javadoc)
      * @see org.eclipse.core.resources.IProjectNature#deconfigure()
      */
     @Override
     public void deconfigure() throws CoreException {
     }
 
-    /* (non-Javadoc)
+    /*
+     * (non-Javadoc)
      * @see org.eclipse.core.resources.IProjectNature#getProject()
      */
     @Override
@@ -152,7 +155,8 @@ public class RtProjectNature implements IProjectNature {
         return fProject;
     }
 
-    /* (non-Javadoc)
+    /*
+     * (non-Javadoc)
      * @see org.eclipse.core.resources.IProjectNature#setProject(org.eclipse.core.resources.IProject)
      */
     @Override