diff options
author | Paul Pazderski | 2019-05-14 16:59:31 +0000 |
---|---|---|
committer | Paul Pazderski | 2019-05-18 21:43:29 +0000 |
commit | 32c845cedc17596bbaf5ed0582aaf9b15fd6111d (patch) | |
tree | 14cef350b353965e7b00ce5b45d94187af1f30d3 /org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/model | |
parent | 459b64d7f6361b6f114364f8404fc0fed795db17 (diff) | |
download | eclipse.platform.debug-32c845cedc17596bbaf5ed0582aaf9b15fd6111d.tar.gz eclipse.platform.debug-32c845cedc17596bbaf5ed0582aaf9b15fd6111d.tar.xz eclipse.platform.debug-32c845cedc17596bbaf5ed0582aaf9b15fd6111d.zip |
Bug 547304 - [cleanup] Fix wrong line delimitersS4_12_0_RC2S4_12_0_RC1aS4_12_0_RC1S4_12_0_M3R4_12I20190605-1800I20190605-0600I20190604-1800I20190604-0600I20190603-1800I20190603-0600I20190602-1800I20190602-0600I20190601-1800I20190531-1800I20190531-0245I20190529-2005I20190529-1800I20190529-0600I20190528-1800I20190528-0915I20190528-0850I20190528-0600I20190527-1805I20190527-0600I20190526-1800I20190526-0600I20190525-1800I20190525-0600I20190524-1800I20190524-0135I20190522-1800I20190522-0600I20190521-1800I20190521-0600I20190520-1805I20190520-0600I20190519-1800
This updates all Java files with wrong or mixed line delimiters to use
Unix style delimiters.
The change includes only whitespace formatting and no code changes.
Change-Id: I2b11370da258d1c5952a75647772e983e81db8d2
Diffstat (limited to 'org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/model')
5 files changed, 249 insertions, 249 deletions
diff --git a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/model/elements/BreakpointContainerMementoProvider.java b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/model/elements/BreakpointContainerMementoProvider.java index 9aad3e078..e51601ef4 100644 --- a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/model/elements/BreakpointContainerMementoProvider.java +++ b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/model/elements/BreakpointContainerMementoProvider.java @@ -1,51 +1,51 @@ -/*****************************************************************
- * Copyright (c) 2009 Texas Instruments and others
+/***************************************************************** + * Copyright (c) 2009 Texas Instruments and others * - * This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License 2.0
- * which accompanies this distribution, and is available at
+ * This program and the accompanying materials + * are made available under the terms of the Eclipse Public License 2.0 + * which accompanies this distribution, and is available at * https://www.eclipse.org/legal/epl-2.0/ * - * SPDX-License-Identifier: EPL-2.0
- *
- * Contributors:
- * Patrick Chuong (Texas Instruments) - Initial API and implementation (Bug 238956)
- *****************************************************************/
-package org.eclipse.debug.internal.ui.model.elements;
-
-import org.eclipse.core.runtime.CoreException;
-import org.eclipse.core.runtime.IAdaptable;
-import org.eclipse.debug.internal.ui.breakpoints.provisional.IBreakpointContainer;
-import org.eclipse.debug.internal.ui.viewers.model.provisional.IPresentationContext;
-import org.eclipse.debug.ui.IDebugUIConstants;
-import org.eclipse.ui.model.IWorkbenchAdapter;
-
-/**
- * This class provides memento for the breakpoint container.
- *
- * @since 3.6
- */
-public class BreakpointContainerMementoProvider extends DebugElementMementoProvider {
-
- @Override
- protected String getElementName(Object element, IPresentationContext context) throws CoreException {
- if (element instanceof IBreakpointContainer) {
- IBreakpointContainer container = (IBreakpointContainer) element;
- IAdaptable category = container.getCategory();
- if (category != null) {
- IWorkbenchAdapter adapter = category.getAdapter(IWorkbenchAdapter.class);
- if (adapter != null) {
- return adapter.getLabel(category);
- }
- return container.getOrganizer().getLabel();
- }
- }
- return null;
- }
-
- @Override
- protected boolean supportsContextId(String id) {
- return IDebugUIConstants.ID_BREAKPOINT_VIEW.equals(id);
- }
-
-}
+ * SPDX-License-Identifier: EPL-2.0 + * + * Contributors: + * Patrick Chuong (Texas Instruments) - Initial API and implementation (Bug 238956) + *****************************************************************/ +package org.eclipse.debug.internal.ui.model.elements; + +import org.eclipse.core.runtime.CoreException; +import org.eclipse.core.runtime.IAdaptable; +import org.eclipse.debug.internal.ui.breakpoints.provisional.IBreakpointContainer; +import org.eclipse.debug.internal.ui.viewers.model.provisional.IPresentationContext; +import org.eclipse.debug.ui.IDebugUIConstants; +import org.eclipse.ui.model.IWorkbenchAdapter; + +/** + * This class provides memento for the breakpoint container. + * + * @since 3.6 + */ +public class BreakpointContainerMementoProvider extends DebugElementMementoProvider { + + @Override + protected String getElementName(Object element, IPresentationContext context) throws CoreException { + if (element instanceof IBreakpointContainer) { + IBreakpointContainer container = (IBreakpointContainer) element; + IAdaptable category = container.getCategory(); + if (category != null) { + IWorkbenchAdapter adapter = category.getAdapter(IWorkbenchAdapter.class); + if (adapter != null) { + return adapter.getLabel(category); + } + return container.getOrganizer().getLabel(); + } + } + return null; + } + + @Override + protected boolean supportsContextId(String id) { + return IDebugUIConstants.ID_BREAKPOINT_VIEW.equals(id); + } + +} diff --git a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/model/elements/BreakpointContentProvider.java b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/model/elements/BreakpointContentProvider.java index 43bde9239..8c0a81e79 100644 --- a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/model/elements/BreakpointContentProvider.java +++ b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/model/elements/BreakpointContentProvider.java @@ -1,43 +1,43 @@ -/*****************************************************************
- * Copyright (c) 2009 Texas Instruments and others
+/***************************************************************** + * Copyright (c) 2009 Texas Instruments and others * - * This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License 2.0
- * which accompanies this distribution, and is available at
+ * This program and the accompanying materials + * are made available under the terms of the Eclipse Public License 2.0 + * which accompanies this distribution, and is available at * https://www.eclipse.org/legal/epl-2.0/ * - * SPDX-License-Identifier: EPL-2.0
- *
- * Contributors:
- * Patrick Chuong (Texas Instruments) - Initial API and implementation (Bug 238956)
- *****************************************************************/
-package org.eclipse.debug.internal.ui.model.elements;
-
-import org.eclipse.core.runtime.CoreException;
-import org.eclipse.debug.internal.ui.viewers.model.provisional.IPresentationContext;
-import org.eclipse.debug.internal.ui.viewers.model.provisional.IViewerUpdate;
-import org.eclipse.debug.ui.IDebugUIConstants;
-
-/**
- * Breakpoint content provider.
- *
- * @since 3.6
- */
-public class BreakpointContentProvider extends ElementContentProvider {
-
- @Override
- protected int getChildCount(Object element, IPresentationContext context, IViewerUpdate monitor) throws CoreException {
- return 0;
- }
-
- @Override
- protected Object[] getChildren(Object parent, int index, int length, IPresentationContext context, IViewerUpdate monitor) throws CoreException {
- return null;
- }
-
- @Override
- protected boolean supportsContextId(String id) {
- return id.equals(IDebugUIConstants.ID_BREAKPOINT_VIEW);
- }
-
-}
+ * SPDX-License-Identifier: EPL-2.0 + * + * Contributors: + * Patrick Chuong (Texas Instruments) - Initial API and implementation (Bug 238956) + *****************************************************************/ +package org.eclipse.debug.internal.ui.model.elements; + +import org.eclipse.core.runtime.CoreException; +import org.eclipse.debug.internal.ui.viewers.model.provisional.IPresentationContext; +import org.eclipse.debug.internal.ui.viewers.model.provisional.IViewerUpdate; +import org.eclipse.debug.ui.IDebugUIConstants; + +/** + * Breakpoint content provider. + * + * @since 3.6 + */ +public class BreakpointContentProvider extends ElementContentProvider { + + @Override + protected int getChildCount(Object element, IPresentationContext context, IViewerUpdate monitor) throws CoreException { + return 0; + } + + @Override + protected Object[] getChildren(Object parent, int index, int length, IPresentationContext context, IViewerUpdate monitor) throws CoreException { + return null; + } + + @Override + protected boolean supportsContextId(String id) { + return id.equals(IDebugUIConstants.ID_BREAKPOINT_VIEW); + } + +} diff --git a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/model/elements/BreakpointManagerInputMementoProvider.java b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/model/elements/BreakpointManagerInputMementoProvider.java index e51cf3390..64f05d0b9 100644 --- a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/model/elements/BreakpointManagerInputMementoProvider.java +++ b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/model/elements/BreakpointManagerInputMementoProvider.java @@ -1,36 +1,36 @@ -/*****************************************************************
- * Copyright (c) 2009 Texas Instruments and others
+/***************************************************************** + * Copyright (c) 2009 Texas Instruments and others * - * This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License 2.0
- * which accompanies this distribution, and is available at
+ * This program and the accompanying materials + * are made available under the terms of the Eclipse Public License 2.0 + * which accompanies this distribution, and is available at * https://www.eclipse.org/legal/epl-2.0/ * - * SPDX-License-Identifier: EPL-2.0
- *
- * Contributors:
- * Patrick Chuong (Texas Instruments) - Initial API and implementation (Bug 238956)
- *****************************************************************/
-package org.eclipse.debug.internal.ui.model.elements;
-
-import org.eclipse.core.runtime.CoreException;
-import org.eclipse.debug.internal.ui.viewers.model.provisional.IPresentationContext;
-import org.eclipse.debug.ui.IDebugUIConstants;
-
-/**
- * Breakpoint manager input memento provider.
- *
- * @since 3.6
- */
-public class BreakpointManagerInputMementoProvider extends DebugElementMementoProvider {
-
- @Override
- protected String getElementName(Object element, IPresentationContext context) throws CoreException {
- return "BreakpointInputMemento"; //$NON-NLS-1$
- }
-
- @Override
- protected boolean supportsContextId(String id) {
- return IDebugUIConstants.ID_BREAKPOINT_VIEW.equals(id);
- }
-}
+ * SPDX-License-Identifier: EPL-2.0 + * + * Contributors: + * Patrick Chuong (Texas Instruments) - Initial API and implementation (Bug 238956) + *****************************************************************/ +package org.eclipse.debug.internal.ui.model.elements; + +import org.eclipse.core.runtime.CoreException; +import org.eclipse.debug.internal.ui.viewers.model.provisional.IPresentationContext; +import org.eclipse.debug.ui.IDebugUIConstants; + +/** + * Breakpoint manager input memento provider. + * + * @since 3.6 + */ +public class BreakpointManagerInputMementoProvider extends DebugElementMementoProvider { + + @Override + protected String getElementName(Object element, IPresentationContext context) throws CoreException { + return "BreakpointInputMemento"; //$NON-NLS-1$ + } + + @Override + protected boolean supportsContextId(String id) { + return IDebugUIConstants.ID_BREAKPOINT_VIEW.equals(id); + } +} diff --git a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/model/elements/BreakpointMementoProvider.java b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/model/elements/BreakpointMementoProvider.java index 33cf6ce57..98b6ca432 100644 --- a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/model/elements/BreakpointMementoProvider.java +++ b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/model/elements/BreakpointMementoProvider.java @@ -1,90 +1,90 @@ -/*******************************************************************************
- * Copyright (c) 2009 Freescale Semiconductor and others.
+/******************************************************************************* + * Copyright (c) 2009 Freescale Semiconductor and others. * - * This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License 2.0
- * which accompanies this distribution, and is available at
+ * This program and the accompanying materials + * are made available under the terms of the Eclipse Public License 2.0 + * which accompanies this distribution, and is available at * https://www.eclipse.org/legal/epl-2.0/ * - * SPDX-License-Identifier: EPL-2.0
- *
- * Contributors:
- * 2009 Freescale - initial API and implementation (Bug 238956)
- *******************************************************************************/
-package org.eclipse.debug.internal.ui.model.elements;
-
-import org.eclipse.core.resources.IMarker;
-import org.eclipse.core.runtime.CoreException;
-import org.eclipse.core.runtime.IPath;
-import org.eclipse.debug.core.model.IBreakpoint;
-import org.eclipse.debug.internal.ui.viewers.model.provisional.IPresentationContext;
-import org.eclipse.debug.ui.IDebugUIConstants;
-import org.eclipse.ui.IMemento;
-
-/**
- * Memento provider for breakpoints
- *
- * @since 3.6
- */
-public class BreakpointMementoProvider extends ElementMementoProvider {
-
- /**
- * Marker ID. Stored as string in order to support the full range of the long type.
- */
- private static final String MARKER_ID = "MARKER_ID"; //$NON-NLS-1$
-
- /**
- * Full path from the workspace to the resource referred to by the breakpoint marker.
- *
- * Stored as String.
- */
- private static final String RESOURCE_PATH = "RESOURCE_PATH"; //$NON-NLS-1$
-
- protected boolean supportsContextId(String id) {
- return IDebugUIConstants.ID_BREAKPOINT_VIEW.equals(id);
- }
-
- @Override
- protected boolean encodeElement(Object element, IMemento memento, IPresentationContext context) throws CoreException {
- if (element instanceof IBreakpoint) {
-
- IMarker marker = ((IBreakpoint)element).getMarker();
- if (marker != null) {
-
- long markerId = marker.getId();
- memento.putString(MARKER_ID, Long.toString(markerId));
-
- IPath fullPath = marker.getResource().getFullPath();
- String path = fullPath.toString();
- memento.putString(RESOURCE_PATH, path);
- return true;
- }
- }
-
- return false;
- }
-
- @Override
- protected boolean isEqual(Object element, IMemento memento, IPresentationContext context) throws CoreException {
- if (element instanceof IBreakpoint) {
- IBreakpoint breakpoint =(IBreakpoint)element;
- IMarker marker = breakpoint.getMarker();
-
- long markerId = marker.getId();
- String mementoMarkerId = memento.getString(MARKER_ID);
- if (!Long.toString(markerId).equals(mementoMarkerId)) {
- return false;
- }
-
- IPath fullPath = marker.getResource().getFullPath();
- String path = fullPath.toString();
- String mementoPath = memento.getString(RESOURCE_PATH);
- if (!path.equals(mementoPath)) {
- return false;
- }
- return true;
- }
- return false;
- }
-
-}
+ * SPDX-License-Identifier: EPL-2.0 + * + * Contributors: + * 2009 Freescale - initial API and implementation (Bug 238956) + *******************************************************************************/ +package org.eclipse.debug.internal.ui.model.elements; + +import org.eclipse.core.resources.IMarker; +import org.eclipse.core.runtime.CoreException; +import org.eclipse.core.runtime.IPath; +import org.eclipse.debug.core.model.IBreakpoint; +import org.eclipse.debug.internal.ui.viewers.model.provisional.IPresentationContext; +import org.eclipse.debug.ui.IDebugUIConstants; +import org.eclipse.ui.IMemento; + +/** + * Memento provider for breakpoints + * + * @since 3.6 + */ +public class BreakpointMementoProvider extends ElementMementoProvider { + + /** + * Marker ID. Stored as string in order to support the full range of the long type. + */ + private static final String MARKER_ID = "MARKER_ID"; //$NON-NLS-1$ + + /** + * Full path from the workspace to the resource referred to by the breakpoint marker. + * + * Stored as String. + */ + private static final String RESOURCE_PATH = "RESOURCE_PATH"; //$NON-NLS-1$ + + protected boolean supportsContextId(String id) { + return IDebugUIConstants.ID_BREAKPOINT_VIEW.equals(id); + } + + @Override + protected boolean encodeElement(Object element, IMemento memento, IPresentationContext context) throws CoreException { + if (element instanceof IBreakpoint) { + + IMarker marker = ((IBreakpoint)element).getMarker(); + if (marker != null) { + + long markerId = marker.getId(); + memento.putString(MARKER_ID, Long.toString(markerId)); + + IPath fullPath = marker.getResource().getFullPath(); + String path = fullPath.toString(); + memento.putString(RESOURCE_PATH, path); + return true; + } + } + + return false; + } + + @Override + protected boolean isEqual(Object element, IMemento memento, IPresentationContext context) throws CoreException { + if (element instanceof IBreakpoint) { + IBreakpoint breakpoint =(IBreakpoint)element; + IMarker marker = breakpoint.getMarker(); + + long markerId = marker.getId(); + String mementoMarkerId = memento.getString(MARKER_ID); + if (!Long.toString(markerId).equals(mementoMarkerId)) { + return false; + } + + IPath fullPath = marker.getResource().getFullPath(); + String path = fullPath.toString(); + String mementoPath = memento.getString(RESOURCE_PATH); + if (!path.equals(mementoPath)) { + return false; + } + return true; + } + return false; + } + +} diff --git a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/model/elements/ProcessContentProvider.java b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/model/elements/ProcessContentProvider.java index 84ab157b6..59736ee11 100644 --- a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/model/elements/ProcessContentProvider.java +++ b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/model/elements/ProcessContentProvider.java @@ -1,44 +1,44 @@ -/*******************************************************************************
- * Copyright (c) 2010 Wind River Systems and others.
+/******************************************************************************* + * Copyright (c) 2010 Wind River Systems and others. * - * This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License 2.0
- * which accompanies this distribution, and is available at
+ * This program and the accompanying materials + * are made available under the terms of the Eclipse Public License 2.0 + * which accompanies this distribution, and is available at * https://www.eclipse.org/legal/epl-2.0/ * - * SPDX-License-Identifier: EPL-2.0
- *
- * Contributors:
- * Wind River Systems - initial API and implementation
- *******************************************************************************/
-package org.eclipse.debug.internal.ui.model.elements;
-
-import org.eclipse.debug.internal.ui.viewers.model.provisional.IPresentationContext;
-import org.eclipse.debug.internal.ui.viewers.model.provisional.IViewerUpdate;
-import org.eclipse.debug.ui.IDebugUIConstants;
-
-/**
- * Default content provider for process objects. Even though process objects
- * have no children by default, they still need a content provider to ensure
- * proper display (see bug
- *
- * @since 3.6
- */
-public class ProcessContentProvider extends ElementContentProvider {
-
- @Override
- protected Object[] getChildren(Object parent, int index, int length, IPresentationContext context, IViewerUpdate monitor) {
- return EMPTY;
- }
-
- @Override
- protected int getChildCount(Object element, IPresentationContext context, IViewerUpdate monitor) {
- return 0;
- }
-
- @Override
- protected boolean supportsContextId(String id) {
- return IDebugUIConstants.ID_DEBUG_VIEW.equals(id);
- }
-
-}
+ * SPDX-License-Identifier: EPL-2.0 + * + * Contributors: + * Wind River Systems - initial API and implementation + *******************************************************************************/ +package org.eclipse.debug.internal.ui.model.elements; + +import org.eclipse.debug.internal.ui.viewers.model.provisional.IPresentationContext; +import org.eclipse.debug.internal.ui.viewers.model.provisional.IViewerUpdate; +import org.eclipse.debug.ui.IDebugUIConstants; + +/** + * Default content provider for process objects. Even though process objects + * have no children by default, they still need a content provider to ensure + * proper display (see bug + * + * @since 3.6 + */ +public class ProcessContentProvider extends ElementContentProvider { + + @Override + protected Object[] getChildren(Object parent, int index, int length, IPresentationContext context, IViewerUpdate monitor) { + return EMPTY; + } + + @Override + protected int getChildCount(Object element, IPresentationContext context, IViewerUpdate monitor) { + return 0; + } + + @Override + protected boolean supportsContextId(String id) { + return IDebugUIConstants.ID_DEBUG_VIEW.equals(id); + } + +} |