* 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;
* 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;
*
* 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;
*
* 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
* (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"));
* (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);
*
* 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
*
* 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
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;
*
* 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
*
* 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
*
* 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
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
*
* 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.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 {
rtosWizardDialog.create();
int result = rtosWizardDialog.open();
- if (result == Dialog.OK) {
+ if (result == Window.OK) {
return true;
} else {
// logger.error("failed to open BuildWizard ");
*
* 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
public String getBoard() {
return board;
}
-
+
public String getBuildOption() {
return buildOption;
}
*
* 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
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()) {
}
});
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()) {
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);
*
* 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
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);
*
* 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
}
// @Override
+ @Override
protected void createButtonsForButtonBar(Composite p) {
this.parent = p;
super.createButtonsForButtonBar(parent);
*
* 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
*/
public void clear() {
Runnable runnable = new Runnable() {
+ @Override
public void run() {
IDocument document = console.getDocument();
if (document != null) {
*/
public void show() {
Runnable runnable = new Runnable() {
+ @Override
public void run() {
IWorkbenchPage page = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage();
String id = IConsoleConstants.ID_CONSOLE_VIEW;
this.color = color;
}
+ @Override
public void run() {
setStringStyle(this.fontStyle, this.color);
}
*
* 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 {
rtosWizardDialog.create();
int result = rtosWizardDialog.open();
- if (result == Dialog.OK) {
+ if (result == Window.OK) {
return true;
} else {
// logger.error("failed to open BuildWizard ");
*
* 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
public String getBoard() {
return board;
}
-
+
public String getFlashOption() {
return flashOption;
}
*
* 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 java.util.List;
+
import org.eclipse.jface.layout.TableColumnLayout;
import org.eclipse.jface.viewers.ArrayContentProvider;
import org.eclipse.jface.viewers.ColumnPixelData;
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()) {
*
* 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
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);
*
* 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
}
// @Override
+ @Override
protected void createButtonsForButtonBar(Composite p) {
this.parent = p;
super.createButtonsForButtonBar(parent);
*
* 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
*
* 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
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;
}
}
*
* 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
*
* 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
super();
}
+ @Override
public void createInitialLayout(IPageLayout factory) {
this.factory = factory;
addViews();
*
* 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
*
* 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
/* 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();
* 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
*
* 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
*
* 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
*
* 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
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;
+ }
+
}
*
* 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
*
* 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
*
* 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
* Adding the page to the wizard.
*/
+ @Override
public void addPages() {
page = new NewArtikProjectWizardPage(selection);
addPage(page);
/**
* 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();
}
IRunnableWithProgress op = new IRunnableWithProgress() {
+ @Override
public void run(IProgressMonitor monitor) throws InvocationTargetException {
try {
doFinish(boardName, fileName, newProjectHandle, location, monitor);
* 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;
}
*
* 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
*
* 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
/**
* @see IDialogPage#createControl(Composite)
*/
+ @Override
public void createControl(Composite parent) {
Composite container = new Composite(parent, SWT.NONE);
container.setLayout(new GridLayout(2, false));
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));
*
* 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
* Adding the page to the wizard.
*/
+ @Override
public void addPages() {
page = new NewMakeDefsWizardPage(selection);
addPage(page);
/**
* 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);
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 {
* 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;
}
*
* 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
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;
/**
* @see IDialogPage#createControl(Composite)
*/
+ @Override
public void createControl(Composite parent) {
Composite container = new Composite(parent, SWT.NULL);
GridLayout layout = new GridLayout();
GridData gd = new GridData(GridData.FILL_HORIZONTAL);
containerText.setLayoutData(gd);
containerText.addModifyListener(new ModifyListener() {
+ @Override
public void modifyText(ModifyEvent e) {
dialogChanged();
}
Button button = new Button(container, SWT.PUSH);
button.setText("Browse...");
button.addSelectionListener(new SelectionAdapter() {
+ @Override
public void widgetSelected(SelectionEvent e) {
handleBrowse();
}
gd = new GridData(GridData.FILL_HORIZONTAL);
fileText.setLayoutData(gd);
fileText.addModifyListener(new ModifyListener() {
+ @Override
public void modifyText(ModifyEvent e) {
dialogChanged();
}
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());
*
* 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
*
* 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
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;
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
return fProject;
}
- /* (non-Javadoc)
+ /*
+ * (non-Javadoc)
* @see org.eclipse.core.resources.IProjectNature#setProject(org.eclipse.core.resources.IProject)
*/
@Override