diff options
author | nitind | 2005-04-13 19:12:49 +0000 |
---|---|---|
committer | nitind | 2005-04-13 19:12:49 +0000 |
commit | 292ded1b4de2f6030e4038b92a37ea5914d3ea7d (patch) | |
tree | 44e67d379b97f7e2b353212e4103815636679fec /bundles/org.eclipse.wst.sse.ui/src-extensions/org/eclipse/wst/sse/ui/extensions/breakpoint | |
parent | 20cb84d3fe65f82e36498d9946b3b951273a4a4d (diff) | |
download | webtools.sourceediting-20050413_1525.tar.gz webtools.sourceediting-20050413_1525.tar.xz webtools.sourceediting-20050413_1525.zip |
This commit was manufactured by cvs2svn to create tag 'v20050413_1525'.v20050413_1525
Diffstat (limited to 'bundles/org.eclipse.wst.sse.ui/src-extensions/org/eclipse/wst/sse/ui/extensions/breakpoint')
6 files changed, 0 insertions, 313 deletions
diff --git a/bundles/org.eclipse.wst.sse.ui/src-extensions/org/eclipse/wst/sse/ui/extensions/breakpoint/IBreakpointConstants.java b/bundles/org.eclipse.wst.sse.ui/src-extensions/org/eclipse/wst/sse/ui/extensions/breakpoint/IBreakpointConstants.java deleted file mode 100644 index e6ff39f0cd..0000000000 --- a/bundles/org.eclipse.wst.sse.ui/src-extensions/org/eclipse/wst/sse/ui/extensions/breakpoint/IBreakpointConstants.java +++ /dev/null @@ -1,21 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2004 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.extensions.breakpoint; - -/** - * @author pavery - */ -public interface IBreakpointConstants { - String ATTR_HIDDEN = "hidden"; //$NON-NLS-1$ - 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/extensions/breakpoint/IBreakpointProvider.java b/bundles/org.eclipse.wst.sse.ui/src-extensions/org/eclipse/wst/sse/ui/extensions/breakpoint/IBreakpointProvider.java deleted file mode 100644 index a9d32330d2..0000000000 --- a/bundles/org.eclipse.wst.sse.ui/src-extensions/org/eclipse/wst/sse/ui/extensions/breakpoint/IBreakpointProvider.java +++ /dev/null @@ -1,69 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2004 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.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.w3c.dom.Document; -import org.w3c.dom.Node; - -/** - * Interface to provide breakpoint creation - */ -public interface IBreakpointProvider { - - /** - * Adds breakpoint to specified position - * - * @param doc - * w3c DOM Document object or <code>null</code> if called - * from a non-DOM based editor plugin - * @param idoc - * IDocument object - * @param input - * current editor input, not necessarily an IFileEditorInput or - * linked to a resource in any way - * @param node - * current caret node or <code>null</code> if called from a - * non-DOM based editor plugin - * @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. - */ - IStatus addBreakpoint(Document doc, IDocument idoc, IEditorInput input, Node node, int lineNumber, int offset) throws CoreException; - - /** - * Returns corresponding resource from editor input - * - * @param input - * @return IResource - */ - IResource getResource(IEditorInput input); - - /** - * Set SourceEditingTextTools object - * - * @param tool - * SourceEditingTextTools object - */ - void setSourceEditingTextTools(SourceEditingTextTools tool); -} diff --git a/bundles/org.eclipse.wst.sse.ui/src-extensions/org/eclipse/wst/sse/ui/extensions/breakpoint/IExtendedStorageEditorInput.java b/bundles/org.eclipse.wst.sse.ui/src-extensions/org/eclipse/wst/sse/ui/extensions/breakpoint/IExtendedStorageEditorInput.java deleted file mode 100644 index 711df2cea9..0000000000 --- a/bundles/org.eclipse.wst.sse.ui/src-extensions/org/eclipse/wst/sse/ui/extensions/breakpoint/IExtendedStorageEditorInput.java +++ /dev/null @@ -1,37 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2004 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.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/extensions/breakpoint/NodeLocation.java b/bundles/org.eclipse.wst.sse.ui/src-extensions/org/eclipse/wst/sse/ui/extensions/breakpoint/NodeLocation.java deleted file mode 100644 index 2e5e8d9eb6..0000000000 --- a/bundles/org.eclipse.wst.sse.ui/src-extensions/org/eclipse/wst/sse/ui/extensions/breakpoint/NodeLocation.java +++ /dev/null @@ -1,48 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2004 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.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/extensions/breakpoint/NullSourceEditingTextTools.java b/bundles/org.eclipse.wst.sse.ui/src-extensions/org/eclipse/wst/sse/ui/extensions/breakpoint/NullSourceEditingTextTools.java deleted file mode 100644 index ff65d0cd02..0000000000 --- a/bundles/org.eclipse.wst.sse.ui/src-extensions/org/eclipse/wst/sse/ui/extensions/breakpoint/NullSourceEditingTextTools.java +++ /dev/null @@ -1,72 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2004 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.extensions.breakpoint; - -import org.eclipse.core.resources.IMarker; -import org.w3c.dom.Document; -import org.w3c.dom.Node; - -public class NullSourceEditingTextTools implements SourceEditingTextTools { - public static final String ID = "sourceeditingtexttools"; //$NON-NLS-1$ - private static NullSourceEditingTextTools instance; - - /** - * @return - */ - public synchronized static SourceEditingTextTools getInstance() { - if (instance == null) - instance = new NullSourceEditingTextTools(); - return instance; - } - - private NullSourceEditingTextTools() { - super(); - } - - /* - * (non-Javadoc) - * - * @see org.eclipse.wst.sse.ui.extensions.breakpoint.SourceEditingTextTools#getDOMDocument(org.eclipse.core.resources.IMarker) - */ - public Document getDOMDocument(IMarker marker) { - return null; - } - - /* - * (non-Javadoc) - * - * @see org.eclipse.wst.sse.ui.extensions.breakpoint.SourceEditingTextTools#getNodeLocation(org.w3c.dom.Node) - */ - public NodeLocation getNodeLocation(Node node) { - return null; - } - - /* - * (non-Javadoc) - * - * @see org.eclipse.wst.sse.ui.extensions.breakpoint.SourceEditingTextTools#getPageLanguage(org.w3c.dom.Node) - */ - public String getPageLanguage(Node node) { - return null; - } - - /* - * (non-Javadoc) - * - * @see org.eclipse.wst.sse.ui.extensions.breakpoint.SourceEditingTextTools#getStartOffset(org.w3c.dom.Node) - */ - public int getStartOffset(Node node) { - return 0; - } - -} diff --git a/bundles/org.eclipse.wst.sse.ui/src-extensions/org/eclipse/wst/sse/ui/extensions/breakpoint/SourceEditingTextTools.java b/bundles/org.eclipse.wst.sse.ui/src-extensions/org/eclipse/wst/sse/ui/extensions/breakpoint/SourceEditingTextTools.java deleted file mode 100644 index 4a16f9ed58..0000000000 --- a/bundles/org.eclipse.wst.sse.ui/src-extensions/org/eclipse/wst/sse/ui/extensions/breakpoint/SourceEditingTextTools.java +++ /dev/null @@ -1,66 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2004 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.extensions.breakpoint; - - - -import org.eclipse.core.resources.IMarker; -import org.w3c.dom.Document; -import org.w3c.dom.Node; - -/** - * Interface to provide convenient functions for a plugin which doesn't want - * to depends on sed.editor or sed.model plugins, but needs some information - * which the sed functions provide as a convenience to clients - */ -public interface SourceEditingTextTools { - - - /** - * Returns w3c DOM document for a given marker - * - * @param marker - * marker object to check - * @return Document w3c DOM document object or <code>null</code> if - * corresponding document does not exist - */ - Document getDOMDocument(IMarker marker); - - /** - * Returns a NodeLocation object describing the position information of - * the Node's start and end tags. Returns null for unsupported Node types - * (Nodes which are not Elements or in a supported Document). - * - * @param node - * @return - */ - NodeLocation getNodeLocation(Node node); - - /** - * Returns the current server-side page language for the Document of the - * given Node. - * - * @return - */ - String getPageLanguage(Node node); - - /** - * Returns start offset of given Node - * - * @param node - * w3c <code>Node</code> object to check - * @return int start offset or -1 for error - */ - int getStartOffset(Node node); - -} |