diff options
Diffstat (limited to 'bundles/org.eclipse.wst.sse.ui/src-extensions/org/eclipse/wst/sse/ui/internal/provisional/extensions/breakpoint')
5 files changed, 0 insertions, 236 deletions
diff --git a/bundles/org.eclipse.wst.sse.ui/src-extensions/org/eclipse/wst/sse/ui/internal/provisional/extensions/breakpoint/IBreakpointConstants.java b/bundles/org.eclipse.wst.sse.ui/src-extensions/org/eclipse/wst/sse/ui/internal/provisional/extensions/breakpoint/IBreakpointConstants.java deleted file mode 100644 index bf6c9aee76..0000000000 --- a/bundles/org.eclipse.wst.sse.ui/src-extensions/org/eclipse/wst/sse/ui/internal/provisional/extensions/breakpoint/IBreakpointConstants.java +++ /dev/null @@ -1,25 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2007 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * 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 - * - * Contributors: - * IBM Corporation - initial API and implementation - * Jens Lukowski/Innoopract - initial renaming/restructuring - * - *******************************************************************************/ -package org.eclipse.wst.sse.ui.internal.provisional.extensions.breakpoint; - -/** - * @author pavery - */ -public interface IBreakpointConstants { - String ATTR_HIDDEN = "hidden"; //$NON-NLS-1$ - /** - * Setters of this attribute should use '/'for segment separators when - * representing paths. - */ - String RESOURCE_PATH = "org.eclipse.wst.sse.ui.extensions.breakpoint.path"; //$NON-NLS-1$ -} diff --git a/bundles/org.eclipse.wst.sse.ui/src-extensions/org/eclipse/wst/sse/ui/internal/provisional/extensions/breakpoint/IBreakpointProvider.java b/bundles/org.eclipse.wst.sse.ui/src-extensions/org/eclipse/wst/sse/ui/internal/provisional/extensions/breakpoint/IBreakpointProvider.java deleted file mode 100644 index b10cdf1399..0000000000 --- a/bundles/org.eclipse.wst.sse.ui/src-extensions/org/eclipse/wst/sse/ui/internal/provisional/extensions/breakpoint/IBreakpointProvider.java +++ /dev/null @@ -1,63 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * 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 - * - * Contributors: - * IBM Corporation - initial API and implementation - * Jens Lukowski/Innoopract - initial renaming/restructuring - * - *******************************************************************************/ -package org.eclipse.wst.sse.ui.internal.provisional.extensions.breakpoint; - -import org.eclipse.core.resources.IResource; -import org.eclipse.core.runtime.CoreException; -import org.eclipse.core.runtime.IStatus; -import org.eclipse.jface.text.IDocument; -import org.eclipse.ui.IEditorInput; -import org.eclipse.wst.sse.ui.internal.provisional.extensions.ISourceEditingTextTools; - -/** - * Interface to provide breakpoint creation - */ -public interface IBreakpointProvider { - - /** - * Adds breakpoint to specified position - * - * @param document - * IDocument object - * @param input - * current editor input, not necessarily an IFileEditorInput or - * linked to a resource in any way - * @param lineNumber - * current line number - * @param offset - * current caret offset - * @throws CoreException - * @return IStatus the status after being asked to add a breakpoint. The - * Severity of ERROR should only be used if the location - * information is both valid for a breakpoint and one could not be - * added. Any severity greater than INFO will be logged, and if - * no breakpoints were created, shown to the user. - */ - IStatus addBreakpoint(IDocument document, IEditorInput input, int lineNumber, int offset) throws CoreException; - - /** - * Returns corresponding resource from editor input - * - * @param input - * @return IResource - */ - IResource getResource(IEditorInput input); - - /** - * Set ISourceEditingTextTools object - * - * @param tool - * ISourceEditingTextTools object - */ - void setSourceEditingTextTools(ISourceEditingTextTools tool); -} diff --git a/bundles/org.eclipse.wst.sse.ui/src-extensions/org/eclipse/wst/sse/ui/internal/provisional/extensions/breakpoint/IExtendedStorageEditorInput.java b/bundles/org.eclipse.wst.sse.ui/src-extensions/org/eclipse/wst/sse/ui/internal/provisional/extensions/breakpoint/IExtendedStorageEditorInput.java deleted file mode 100644 index 5e5d7f50ae..0000000000 --- a/bundles/org.eclipse.wst.sse.ui/src-extensions/org/eclipse/wst/sse/ui/internal/provisional/extensions/breakpoint/IExtendedStorageEditorInput.java +++ /dev/null @@ -1,37 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * 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 - * - * Contributors: - * IBM Corporation - initial API and implementation - * Jens Lukowski/Innoopract - initial renaming/restructuring - * - *******************************************************************************/ -package org.eclipse.wst.sse.ui.internal.provisional.extensions.breakpoint; - -import org.eclipse.ui.IStorageEditorInput; -import org.eclipse.ui.texteditor.IElementStateListener; - -public interface IExtendedStorageEditorInput extends IStorageEditorInput { - /** - * Adds the given element state listener to this input. Has no effect if - * an identical listener is already registered. Typically used by the - * IDocumentProvider to register itself for change notification. - * - * @param listener - * the listener - */ - void addElementStateListener(IElementStateListener listener); - - /** - * Removes the given element state listener from this input. Has no affect - * if an identical listener is not registered. - * - * @param listener - * the listener - */ - void removeElementStateListener(IElementStateListener listener); -} diff --git a/bundles/org.eclipse.wst.sse.ui/src-extensions/org/eclipse/wst/sse/ui/internal/provisional/extensions/breakpoint/NodeLocation.java b/bundles/org.eclipse.wst.sse.ui/src-extensions/org/eclipse/wst/sse/ui/internal/provisional/extensions/breakpoint/NodeLocation.java deleted file mode 100644 index ff34c7058f..0000000000 --- a/bundles/org.eclipse.wst.sse.ui/src-extensions/org/eclipse/wst/sse/ui/internal/provisional/extensions/breakpoint/NodeLocation.java +++ /dev/null @@ -1,48 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * 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 - * - * Contributors: - * IBM Corporation - initial API and implementation - * Jens Lukowski/Innoopract - initial renaming/restructuring - * - *******************************************************************************/ -package org.eclipse.wst.sse.ui.internal.provisional.extensions.breakpoint; - - -public interface NodeLocation { - /** - * Returns the document end offset of the end tag, -1 of there is no end - * tag - * - * @return - */ - int getEndTagEndOffset(); - - /** - * Returns the document start offset of the end tag, -1 of there is no end - * tag - * - * @return - */ - int getEndTagStartOffset(); - - /** - * Returns the document end offset of the start tag, -1 of there is no - * start tag - * - * @return - */ - int getStartTagEndOffset(); - - /** - * Returns the document start offset of the start tag, -1 of there is no - * start tag - * - * @return - */ - int getStartTagStartOffset(); -} diff --git a/bundles/org.eclipse.wst.sse.ui/src-extensions/org/eclipse/wst/sse/ui/internal/provisional/extensions/breakpoint/NullSourceEditingTextTools.java b/bundles/org.eclipse.wst.sse.ui/src-extensions/org/eclipse/wst/sse/ui/internal/provisional/extensions/breakpoint/NullSourceEditingTextTools.java deleted file mode 100644 index a926fa7681..0000000000 --- a/bundles/org.eclipse.wst.sse.ui/src-extensions/org/eclipse/wst/sse/ui/internal/provisional/extensions/breakpoint/NullSourceEditingTextTools.java +++ /dev/null @@ -1,63 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * 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 - * - * Contributors: - * IBM Corporation - initial API and implementation - * Jens Lukowski/Innoopract - initial renaming/restructuring - * - *******************************************************************************/ -package org.eclipse.wst.sse.ui.internal.provisional.extensions.breakpoint; - -import org.eclipse.jface.text.IDocument; -import org.eclipse.jface.text.ITextSelection; -import org.eclipse.jface.text.TextSelection; -import org.eclipse.jface.viewers.ISelection; -import org.eclipse.ui.IEditorPart; -import org.eclipse.ui.texteditor.ITextEditor; -import org.eclipse.wst.sse.ui.internal.provisional.extensions.ISourceEditingTextTools; - -public class NullSourceEditingTextTools implements ISourceEditingTextTools { - public static final String ID = "sourceeditingtexttools"; //$NON-NLS-1$ - private ITextEditor fTextEditor; - - /** - * @return - */ - public synchronized static ISourceEditingTextTools getInstance() { - return new NullSourceEditingTextTools(); - } - - private NullSourceEditingTextTools() { - super(); - } - - public int getCaretOffset() { - ISelection sel = fTextEditor.getSelectionProvider().getSelection(); - if (sel instanceof ITextSelection) { - return ((ITextSelection) sel).getOffset(); - } - return -1; - } - - public IDocument getDocument() { - return fTextEditor.getDocumentProvider().getDocument(fTextEditor.getEditorInput()); - } - - public IEditorPart getEditorPart() { - return fTextEditor; - } - - public ITextSelection getSelection() { - if (fTextEditor != null) - return (ITextSelection) fTextEditor.getSelectionProvider().getSelection(); - return TextSelection.emptySelection(); - } - - public void setTextEditor(ITextEditor editor) { - fTextEditor = editor; - } -} |