Sync trunk and gavotte editor_api_update_200701010345
authoryaroslavskiy@netbeans.org
Fri, 29 Dec 2006 12:04:23 +0000
changeset 278bfdcdec449b
parent 26 151cdabf701c
child 28 947c9814d4a9
Sync trunk and gavotte
bpel.debugger.api/build.xml
bpel.debugger.api/manifest.mf
bpel.debugger.api/nbproject/project.properties
bpel.debugger.api/nbproject/project.xml
bpel.debugger.api/src/org/netbeans/modules/bpel/debugger/api/AnnotationType.java
bpel.debugger.api/src/org/netbeans/modules/bpel/debugger/api/AttachingCookie.java
bpel.debugger.api/src/org/netbeans/modules/bpel/debugger/api/BpelDebugger.java
bpel.debugger.api/src/org/netbeans/modules/bpel/debugger/api/Bundle.properties
bpel.debugger.api/src/org/netbeans/modules/bpel/debugger/api/DebugException.java
bpel.debugger.api/src/org/netbeans/modules/bpel/debugger/api/EditorContextBridge.java
bpel.debugger.api/src/org/netbeans/modules/bpel/debugger/api/Position.java
bpel.debugger.api/src/org/netbeans/modules/bpel/debugger/api/ProcessDICookie.java
bpel.debugger.api/src/org/netbeans/modules/bpel/debugger/api/ProcessInstance.java
bpel.debugger.api/src/org/netbeans/modules/bpel/debugger/api/ProcessInstancesModel.java
bpel.debugger.api/src/org/netbeans/modules/bpel/debugger/api/SourcePath.java
bpel.debugger.api/src/org/netbeans/modules/bpel/debugger/api/Tracer.java
bpel.debugger.api/src/org/netbeans/modules/bpel/debugger/api/TracerAccess.java
bpel.debugger.api/src/org/netbeans/modules/bpel/debugger/api/TracerFactory.java
bpel.debugger.api/src/org/netbeans/modules/bpel/debugger/api/breakpoints/BpelBreakpoint.java
bpel.debugger.api/src/org/netbeans/modules/bpel/debugger/api/breakpoints/LineBreakpoint.java
bpel.debugger.api/src/org/netbeans/modules/bpel/debugger/api/breakpoints/package.html
bpel.debugger.api/src/org/netbeans/modules/bpel/debugger/api/package.html
bpel.debugger.api/src/org/netbeans/modules/bpel/debugger/api/resources/Bundle.properties
bpel.debugger.api/src/org/netbeans/modules/bpel/debugger/spi/EditorContext.java
bpel.debugger.api/src/org/netbeans/modules/bpel/debugger/spi/package.html
bpel.debugger.api/src/org/netbeans/modules/bpel/debugger/spi/plugin/BpelDebuggerPlugin.java
bpel.debugger.api/src/org/netbeans/modules/bpel/debugger/spi/plugin/BpelEngine.java
bpel.debugger.api/src/org/netbeans/modules/bpel/debugger/spi/plugin/BpelEngineDisconnectedException.java
bpel.debugger.api/src/org/netbeans/modules/bpel/debugger/spi/plugin/BpelEngineInternalException.java
bpel.debugger.api/src/org/netbeans/modules/bpel/debugger/spi/plugin/BpelEngineMismatchException.java
bpel.debugger.api/src/org/netbeans/modules/bpel/debugger/spi/plugin/Connector.java
bpel.debugger.api/src/org/netbeans/modules/bpel/debugger/spi/plugin/IllegalConnectorArgumentsException.java
bpel.debugger.api/src/org/netbeans/modules/bpel/debugger/spi/plugin/IncompatibleProcessInstanceStateException.java
bpel.debugger.api/src/org/netbeans/modules/bpel/debugger/spi/plugin/InvalidPositionException.java
bpel.debugger.api/src/org/netbeans/modules/bpel/debugger/spi/plugin/InvalidProcessInstanceException.java
bpel.debugger.api/src/org/netbeans/modules/bpel/debugger/spi/plugin/InvalidProcessTypeException.java
bpel.debugger.api/src/org/netbeans/modules/bpel/debugger/spi/plugin/def/AbstractScopeDeclaration.java
bpel.debugger.api/src/org/netbeans/modules/bpel/debugger/spi/plugin/def/BpelElement.java
bpel.debugger.api/src/org/netbeans/modules/bpel/debugger/spi/plugin/def/NamedBpelElement.java
bpel.debugger.api/src/org/netbeans/modules/bpel/debugger/spi/plugin/def/Position.java
bpel.debugger.api/src/org/netbeans/modules/bpel/debugger/spi/plugin/def/ProcessType.java
bpel.debugger.api/src/org/netbeans/modules/bpel/debugger/spi/plugin/def/ValueType.java
bpel.debugger.api/src/org/netbeans/modules/bpel/debugger/spi/plugin/def/VariableDeclaration.java
bpel.debugger.api/src/org/netbeans/modules/bpel/debugger/spi/plugin/def/WsdlMessageValueType.java
bpel.debugger.api/src/org/netbeans/modules/bpel/debugger/spi/plugin/def/XmlElementValueType.java
bpel.debugger.api/src/org/netbeans/modules/bpel/debugger/spi/plugin/def/XsdTypeValueType.java
bpel.debugger.api/src/org/netbeans/modules/bpel/debugger/spi/plugin/event/BpelEngineDisconnectedEvent.java
bpel.debugger.api/src/org/netbeans/modules/bpel/debugger/spi/plugin/event/BreakpointReachedEvent.java
bpel.debugger.api/src/org/netbeans/modules/bpel/debugger/spi/plugin/event/Event.java
bpel.debugger.api/src/org/netbeans/modules/bpel/debugger/spi/plugin/event/EventQueue.java
bpel.debugger.api/src/org/netbeans/modules/bpel/debugger/spi/plugin/event/EventSet.java
bpel.debugger.api/src/org/netbeans/modules/bpel/debugger/spi/plugin/event/LocatableEvent.java
bpel.debugger.api/src/org/netbeans/modules/bpel/debugger/spi/plugin/event/ProcessInstanceCompletedEvent.java
bpel.debugger.api/src/org/netbeans/modules/bpel/debugger/spi/plugin/event/ProcessInstanceCreatedEvent.java
bpel.debugger.api/src/org/netbeans/modules/bpel/debugger/spi/plugin/event/StepCompletedEvent.java
bpel.debugger.api/src/org/netbeans/modules/bpel/debugger/spi/plugin/event/package.html
bpel.debugger.api/src/org/netbeans/modules/bpel/debugger/spi/plugin/exec/ProcessInstance.java
bpel.debugger.api/src/org/netbeans/modules/bpel/debugger/spi/plugin/exec/ScopeInstance.java
bpel.debugger.api/src/org/netbeans/modules/bpel/debugger/spi/plugin/exec/Value.java
bpel.debugger.api/src/org/netbeans/modules/bpel/debugger/spi/plugin/package.html
bpel.debugger.api/src/org/netbeans/modules/bpel/debugger/spi/plugin/request/BreakpointReachedRequest.java
bpel.debugger.api/src/org/netbeans/modules/bpel/debugger/spi/plugin/request/DuplicateRequestException.java
bpel.debugger.api/src/org/netbeans/modules/bpel/debugger/spi/plugin/request/EventRequest.java
bpel.debugger.api/src/org/netbeans/modules/bpel/debugger/spi/plugin/request/EventRequestManager.java
bpel.debugger.api/src/org/netbeans/modules/bpel/debugger/spi/plugin/request/InvalidRequestStateException.java
bpel.debugger.api/src/org/netbeans/modules/bpel/debugger/spi/plugin/request/ProcessInstanceCompletedRequest.java
bpel.debugger.api/src/org/netbeans/modules/bpel/debugger/spi/plugin/request/ProcessInstanceCreatedRequest.java
bpel.debugger.api/src/org/netbeans/modules/bpel/debugger/spi/plugin/request/StepCompletedRequest.java
bpel.debugger.api/src/org/netbeans/modules/bpel/debugger/spi/plugin/request/package.html
bpel.debugger.bdi/build.xml
bpel.debugger.bdi/manifest.mf
bpel.debugger.bdi/nbproject/project.xml
bpel.debugger.bdi/src/org/netbeans/modules/bpel/debuggerbdi/resources/Bundle.properties
bpel.debugger.ui/build.xml
bpel.debugger.ui/manifest.mf
bpel.debugger.ui/nbproject/project.properties
bpel.debugger.ui/nbproject/project.xml
bpel.debugger.ui/src/META-INF/debugger/BreakpointsView/org.netbeans.spi.viewmodel.NodeActionsProviderFilter
bpel.debugger.ui/src/META-INF/debugger/ProcessView/org.netbeans.spi.viewmodel.ColumnModel
bpel.debugger.ui/src/META-INF/debugger/org.netbeans.api.debugger.LazyDebuggerManagerListener
bpel.debugger.ui/src/META-INF/debugger/org.netbeans.api.debugger.Properties$Reader
bpel.debugger.ui/src/META-INF/debugger/org.netbeans.modules.bpel.debugger.api.TracerFactory
bpel.debugger.ui/src/META-INF/debugger/org.netbeans.modules.bpel.debugger.api.breakpoints.BreakpointLineTranslator
bpel.debugger.ui/src/META-INF/debugger/org.netbeans.modules.bpel.debugger.spi.EditorContext
bpel.debugger.ui/src/META-INF/debugger/org.netbeans.modules.bpel.debugger.ui.breakpoint.BpelBreakpointListener
bpel.debugger.ui/src/META-INF/debugger/org.netbeans.spi.debugger.ActionsProvider
bpel.debugger.ui/src/META-INF/debugger/org.netbeans.spi.debugger.ui.AttachType
bpel.debugger.ui/src/org/netbeans/modules/bpel/debugger/ui/BpelAttachType.java
bpel.debugger.ui/src/org/netbeans/modules/bpel/debugger/ui/BpelConnectPanel.java
bpel.debugger.ui/src/org/netbeans/modules/bpel/debugger/ui/Bundle.properties
bpel.debugger.ui/src/org/netbeans/modules/bpel/debugger/ui/CurrentPositionAnnotationListener.java
bpel.debugger.ui/src/org/netbeans/modules/bpel/debugger/ui/action/Action.java
bpel.debugger.ui/src/org/netbeans/modules/bpel/debugger/ui/action/BpelActionsProviderSupport.java
bpel.debugger.ui/src/org/netbeans/modules/bpel/debugger/ui/action/Breakpoint.java
bpel.debugger.ui/src/org/netbeans/modules/bpel/debugger/ui/action/Bundle.properties
bpel.debugger.ui/src/org/netbeans/modules/bpel/debugger/ui/action/Console.java
bpel.debugger.ui/src/org/netbeans/modules/bpel/debugger/ui/action/ContinueActionProvider.java
bpel.debugger.ui/src/org/netbeans/modules/bpel/debugger/ui/action/KillActionProvider.java
bpel.debugger.ui/src/org/netbeans/modules/bpel/debugger/ui/action/PauseActionProvider.java
bpel.debugger.ui/src/org/netbeans/modules/bpel/debugger/ui/action/Process.java
bpel.debugger.ui/src/org/netbeans/modules/bpel/debugger/ui/action/RunToCursorActionProvider.java
bpel.debugger.ui/src/org/netbeans/modules/bpel/debugger/ui/action/RunToCursorUtil.java
bpel.debugger.ui/src/org/netbeans/modules/bpel/debugger/ui/action/StepIntoActionProvider.java
bpel.debugger.ui/src/org/netbeans/modules/bpel/debugger/ui/breakpoint/BPELActivityFinderSaxHandler.java
bpel.debugger.ui/src/org/netbeans/modules/bpel/debugger/ui/breakpoint/BPELNode.java
bpel.debugger.ui/src/org/netbeans/modules/bpel/debugger/ui/breakpoint/BpelBreakpointFilter.java
bpel.debugger.ui/src/org/netbeans/modules/bpel/debugger/ui/breakpoint/BpelBreakpointListener.java
bpel.debugger.ui/src/org/netbeans/modules/bpel/debugger/ui/breakpoint/BpelBreakpointView.java
bpel.debugger.ui/src/org/netbeans/modules/bpel/debugger/ui/breakpoint/BpelLineBreakpointView.java
bpel.debugger.ui/src/org/netbeans/modules/bpel/debugger/ui/breakpoint/BreakpointTranslator.java
bpel.debugger.ui/src/org/netbeans/modules/bpel/debugger/ui/breakpoint/BreakpointsReader.java
bpel.debugger.ui/src/org/netbeans/modules/bpel/debugger/ui/breakpoint/Bundle.properties
bpel.debugger.ui/src/org/netbeans/modules/bpel/debugger/ui/breakpoint/PersistenceManager.java
bpel.debugger.ui/src/org/netbeans/modules/bpel/debugger/ui/editor/BpelAnnotation.java
bpel.debugger.ui/src/org/netbeans/modules/bpel/debugger/ui/editor/BpelAnnotationsObserver.java
bpel.debugger.ui/src/org/netbeans/modules/bpel/debugger/ui/editor/BpelEditorContext.java
bpel.debugger.ui/src/org/netbeans/modules/bpel/debugger/ui/editor/EditorObserver.java
bpel.debugger.ui/src/org/netbeans/modules/bpel/debugger/ui/output/BpelOutputView.java
bpel.debugger.ui/src/org/netbeans/modules/bpel/debugger/ui/output/BpelOutputViewFactory.java
bpel.debugger.ui/src/org/netbeans/modules/bpel/debugger/ui/output/Bundle.properties
bpel.debugger.ui/src/org/netbeans/modules/bpel/debugger/ui/process/Bundle.properties
bpel.debugger.ui/src/org/netbeans/modules/bpel/debugger/ui/resources/Bundle.properties
bpel.debugger.ui/src/org/netbeans/modules/bpel/debugger/ui/resources/layer.xml
bpel.debugger.ui/src/org/netbeans/modules/bpel/debugger/ui/resources/process.settings
bpel.debugger.ui/src/org/netbeans/modules/bpel/debugger/ui/resources/process.wstcgrp
bpel.debugger.ui/src/org/netbeans/modules/bpel/debugger/ui/resources/process.wstcref
bpel.debugger.ui/src/org/netbeans/modules/bpel/debugger/ui/session/BpelSessionView.java
bpel.debugger.ui/src/org/netbeans/modules/bpel/debugger/ui/session/Bundle.properties
bpel.debugger.ui/src/org/netbeans/modules/bpel/debugger/ui/source/SourcePathImpl.java
bpel.debugger.ui/src/org/netbeans/modules/bpel/debugger/ui/util/Log.java
bpel.debugger.ui/src/org/netbeans/modules/bpel/debugger/ui/util/ModelUtil.java
bpel.debugger.ui/src/org/netbeans/modules/bpel/debugger/ui/variable/Bundle.properties
bpel.debugger.ui/src/org/netbeans/modules/bpel/debugger/ui/watch/Bundle.properties
bpel.debugger.ui/src/org/netbeans/modules/bpel/debugger/ui/watch/WatchesActionsProvider.java
     1.1 --- a/bpel.debugger.api/build.xml	Fri Dec 29 11:53:50 2006 +0000
     1.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.3 @@ -1,31 +0,0 @@
     1.4 -<?xml version="1.0" encoding="UTF-8"?>
     1.5 -
     1.6 -<!--
     1.7 -The contents of this file are subject to the terms of the Common Development
     1.8 -and Distribution License (the License). You may not use this file except in
     1.9 -compliance with the License.
    1.10 -
    1.11 - You can obtain a copy of the License at http://www.netbeans.org/cddl.html
    1.12 -or http://www.netbeans.org/cddl.txt.
    1.13 -
    1.14 -When distributing Covered Code, include this CDDL Header Notice in each file
    1.15 -and include the License file at http://www.netbeans.org/cddl.txt.
    1.16 -If applicable, add the following below the CDDL Header, with the fields
    1.17 -enclosed by brackets [] replaced by your own identifying information:
    1.18 -"Portions Copyrighted [year] [name of copyright owner]"
    1.19 -
    1.20 - The Original Software is NetBeans. The Initial Developer of the Original
    1.21 -Software is Sun Microsystems, Inc. Portions Copyright 1997-2006 Sun
    1.22 - Microsystems, Inc. All Rights Reserved.
    1.23 --->
    1.24 -
    1.25 -
    1.26 -<project name="org.netbeans.modules.bpel.debugger.api" default="netbeans" basedir=".">
    1.27 -    <import file="nbproject/build-impl.xml"/>
    1.28 -
    1.29 -    <target name="check">
    1.30 -        <ant dir="../../../codereview" inheritAll="true">
    1.31 -            <property name="check.dir" value="${basedir}"/>
    1.32 -        </ant>
    1.33 -    </target>
    1.34 -</project>
     2.1 --- a/bpel.debugger.api/manifest.mf	Fri Dec 29 11:53:50 2006 +0000
     2.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.3 @@ -1,4 +0,0 @@
     2.4 -Manifest-Version: 1.0
     2.5 -OpenIDE-Module-Specification-Version: 1.1
     2.6 -OpenIDE-Module: org.netbeans.modules.bpel.debugger.api/1
     2.7 -OpenIDE-Module-Localizing-Bundle: org/netbeans/modules/bpel/debugger/api/resources/Bundle.properties
     3.1 --- a/bpel.debugger.api/nbproject/project.properties	Fri Dec 29 11:53:50 2006 +0000
     3.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     3.3 @@ -1,20 +0,0 @@
     3.4 -#
     3.5 -# The contents of this file are subject to the terms of the Common Development
     3.6 -# and Distribution License (the License). You may not use this file except in
     3.7 -# compliance with the License.
     3.8 -#
     3.9 -# You can obtain a copy of the License at http://www.netbeans.org/cddl.html
    3.10 -# or http://www.netbeans.org/cddl.txt.
    3.11 -
    3.12 -# When distributing Covered Code, include this CDDL Header Notice in each file
    3.13 -# and include the License file at http://www.netbeans.org/cddl.txt.
    3.14 -# If applicable, add the following below the CDDL Header, with the fields
    3.15 -# enclosed by brackets [] replaced by your own identifying information:
    3.16 -# "Portions Copyrighted [year] [name of copyright owner]"
    3.17 -#
    3.18 -# The Original Software is NetBeans. The Initial Developer of the Original
    3.19 -# Software is Sun Microsystems, Inc. Portions Copyright 1997-2006 Sun
    3.20 -# Microsystems, Inc. All Rights Reserved.
    3.21 -#
    3.22 -
    3.23 -javac.source=1.5
     4.1 --- a/bpel.debugger.api/nbproject/project.xml	Fri Dec 29 11:53:50 2006 +0000
     4.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     4.3 @@ -1,53 +0,0 @@
     4.4 -<?xml version="1.0" encoding="UTF-8"?>
     4.5 -<!--
     4.6 -The contents of this file are subject to the terms of the Common Development
     4.7 -and Distribution License (the License). You may not use this file except in
     4.8 -compliance with the License.
     4.9 -
    4.10 - You can obtain a copy of the License at http://www.netbeans.org/cddl.html
    4.11 -or http://www.netbeans.org/cddl.txt.
    4.12 -
    4.13 -When distributing Covered Code, include this CDDL Header Notice in each file
    4.14 -and include the License file at http://www.netbeans.org/cddl.txt.
    4.15 -If applicable, add the following below the CDDL Header, with the fields
    4.16 -enclosed by brackets [] replaced by your own identifying information:
    4.17 -"Portions Copyrighted [year] [name of copyright owner]"
    4.18 -
    4.19 - The Original Software is NetBeans. The Initial Developer of the Original
    4.20 -Software is Sun Microsystems, Inc. Portions Copyright 1997-2006 Sun
    4.21 - Microsystems, Inc. All Rights Reserved.
    4.22 --->
    4.23 -<project xmlns="http://www.netbeans.org/ns/project/1">
    4.24 -    <type>org.netbeans.modules.apisupport.project</type>
    4.25 -    <configuration>
    4.26 -        <data xmlns="http://www.netbeans.org/ns/nb-module-project/2">
    4.27 -            <code-name-base>org.netbeans.modules.bpel.debugger.api</code-name-base>
    4.28 -            <suite-component/>
    4.29 -            <module-dependencies>
    4.30 -                <dependency>
    4.31 -                    <code-name-base>org.netbeans.api.debugger</code-name-base>
    4.32 -                    <build-prerequisite/>
    4.33 -                    <compile-dependency/>
    4.34 -                    <run-dependency>
    4.35 -                        <release-version>1</release-version>
    4.36 -                    </run-dependency>
    4.37 -                </dependency>
    4.38 -                <dependency>
    4.39 -                    <code-name-base>org.openide.util</code-name-base>
    4.40 -                    <build-prerequisite/>
    4.41 -                    <compile-dependency/>
    4.42 -                    <run-dependency>
    4.43 -                        <specification-version>6.8.11</specification-version>
    4.44 -                    </run-dependency>
    4.45 -                </dependency>
    4.46 -            </module-dependencies>
    4.47 -            <friend-packages>
    4.48 -                <friend>org.netbeans.modules.bpel.debugger.se</friend>
    4.49 -                <friend>org.netbeans.modules.bpel.debugger.ui</friend>
    4.50 -                <package>org.netbeans.modules.bpel.debugger.api</package>
    4.51 -                <package>org.netbeans.modules.bpel.debugger.api.breakpoints</package>
    4.52 -                <package>org.netbeans.modules.bpel.debugger.spi</package>
    4.53 -            </friend-packages>
    4.54 -        </data>
    4.55 -    </configuration>
    4.56 -</project>
     5.1 --- a/bpel.debugger.api/src/org/netbeans/modules/bpel/debugger/api/AnnotationType.java	Fri Dec 29 11:53:50 2006 +0000
     5.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     5.3 @@ -1,84 +0,0 @@
     5.4 -/*
     5.5 - * The contents of this file are subject to the terms of the Common Development
     5.6 - * and Distribution License (the License). You may not use this file except in
     5.7 - * compliance with the License.
     5.8 - *
     5.9 - * You can obtain a copy of the License at http://www.netbeans.org/cddl.html
    5.10 - * or http://www.netbeans.org/cddl.txt.
    5.11 -
    5.12 - * When distributing Covered Code, include this CDDL Header Notice in each file
    5.13 - * and include the License file at http://www.netbeans.org/cddl.txt.
    5.14 - * If applicable, add the following below the CDDL Header, with the fields
    5.15 - * enclosed by brackets [] replaced by your own identifying information:
    5.16 - * "Portions Copyrighted [year] [name of copyright owner]"
    5.17 - *
    5.18 - * The Original Software is NetBeans. The Initial Developer of the Original
    5.19 - * Software is Sun Microsystems, Inc. Portions Copyright 1997-2006 Sun
    5.20 - * Microsystems, Inc. All Rights Reserved.
    5.21 - */
    5.22 -
    5.23 -package org.netbeans.modules.bpel.debugger.api;
    5.24 -
    5.25 -import org.openide.util.NbBundle;
    5.26 -
    5.27 -/**
    5.28 - *
    5.29 - * @author Vladimir Yaroslavskiy
    5.30 - */
    5.31 -public final class AnnotationType {
    5.32 -
    5.33 -    public static final AnnotationType CURRENT_POSITION = new AnnotationType(
    5.34 -            "CurrentPC", "LBL_Current_Position"); // NOI18N
    5.35 -
    5.36 -    public static final AnnotationType ENABLED_BREAKPOINT = new AnnotationType(
    5.37 -            "Breakpoint", "LBL_Enabled_Breakpoint"); // NOI18N
    5.38 -
    5.39 -    public static final AnnotationType DISABLED_BREAKPOINT = new AnnotationType(
    5.40 -            "DisabledBreakpoint", "LBL_Disabled_Breakpoint"); // NOI18N
    5.41 -    
    5.42 -    
    5.43 -    private String myType;
    5.44 -    private String myDescription;
    5.45 -    private boolean myIsForDiagram;
    5.46 -    private boolean myIsForSourceEditor;
    5.47 -    
    5.48 -    private AnnotationType(String type, String nlsDescKey) {
    5.49 -        this(type, nlsDescKey, true, true);
    5.50 -    }
    5.51 -    
    5.52 -    private AnnotationType(
    5.53 -            String type,
    5.54 -            String nlsDescKey,
    5.55 -            boolean isForDiagram,
    5.56 -            boolean isForSourceEditor)
    5.57 -    {
    5.58 -        myType = type;
    5.59 -        myDescription = NbBundle.getMessage(AnnotationType.class, nlsDescKey);
    5.60 -        myIsForDiagram = isForDiagram;
    5.61 -        myIsForSourceEditor = isForSourceEditor;
    5.62 -    }
    5.63 -    
    5.64 -    /**
    5.65 -     * Returns user friendly description for this annotation type.
    5.66 -     * @return user friendly description for this annotation type
    5.67 -     */
    5.68 -    public String getDescription() {
    5.69 -        return myDescription;
    5.70 -    }
    5.71 -    
    5.72 -    /**
    5.73 -     * Returns key <code>String</code> for this annotation type. 
    5.74 -     * @return key <code>String</code> for this annotation type
    5.75 -     */
    5.76 -    public String getType() {
    5.77 -        return myType;
    5.78 -    }
    5.79 -    
    5.80 -    public boolean isForDiagram() {
    5.81 -        return myIsForDiagram;
    5.82 -    }
    5.83 -    
    5.84 -    public boolean isForSourceEditor() {
    5.85 -        return myIsForSourceEditor;
    5.86 -    }
    5.87 -}
     6.1 --- a/bpel.debugger.api/src/org/netbeans/modules/bpel/debugger/api/AttachingCookie.java	Fri Dec 29 11:53:50 2006 +0000
     6.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     6.3 @@ -1,100 +0,0 @@
     6.4 -/*
     6.5 - * The contents of this file are subject to the terms of the Common Development
     6.6 - * and Distribution License (the License). You may not use this file except in
     6.7 - * compliance with the License.
     6.8 - *
     6.9 - * You can obtain a copy of the License at http://www.netbeans.org/cddl.html
    6.10 - * or http://www.netbeans.org/cddl.txt.
    6.11 -
    6.12 - * When distributing Covered Code, include this CDDL Header Notice in each file
    6.13 - * and include the License file at http://www.netbeans.org/cddl.txt.
    6.14 - * If applicable, add the following below the CDDL Header, with the fields
    6.15 - * enclosed by brackets [] replaced by your own identifying information:
    6.16 - * "Portions Copyrighted [year] [name of copyright owner]"
    6.17 - *
    6.18 - * The Original Software is NetBeans. The Initial Developer of the Original
    6.19 - * Software is Sun Microsystems, Inc. Portions Copyright 1997-2006 Sun
    6.20 - * Microsystems, Inc. All Rights Reserved.
    6.21 - */
    6.22 -
    6.23 -
    6.24 -package org.netbeans.modules.bpel.debugger.api;
    6.25 -
    6.26 -
    6.27 -/**
    6.28 - * Mechanism to store host and port number of a
    6.29 - * BPEL service engine that we are attaching to.
    6.30 - *
    6.31 - * @author Sun Microsystems
    6.32 - */
    6.33 -public final class AttachingCookie {
    6.34 -
    6.35 -    /**
    6.36 -     * Public ID used for registration in Meta-inf/debugger.
    6.37 -     */
    6.38 -    public static final String ID = "netbeans-bpel-AttachingDICookie";
    6.39 -
    6.40 -    private String mHost;
    6.41 -    private int mPort;
    6.42 -
    6.43 -
    6.44 -    private AttachingCookie(String host, String port) {
    6.45 -        mHost = host;
    6.46 -        mPort = Integer.parseInt(port);
    6.47 -    }
    6.48 -    
    6.49 -    
    6.50 -    /**
    6.51 -     * Creates a new instance of AttachingDICookie for given parameters.
    6.52 -     *
    6.53 -     * @param hostName a name of computer to attach to
    6.54 -     * @param portNumber a potr number
    6.55 -     * @return a new instance of AttachingDICookie for given parameters
    6.56 -     */
    6.57 -    public static AttachingCookie create (String host, String port) {
    6.58 -        return new AttachingCookie(host, port);
    6.59 -        
    6.60 -        
    6.61 -    }
    6.62 -
    6.63 -    /**
    6.64 -     * Returns port number.
    6.65 -     *
    6.66 -     * @return port number
    6.67 -     */
    6.68 -    public int getPort() {
    6.69 -        return mPort;
    6.70 -    }
    6.71 -
    6.72 -    /**
    6.73 -     * Returns name of computer.
    6.74 -     *
    6.75 -     * @return name of computer
    6.76 -     */
    6.77 -    public String getHost() {
    6.78 -        return mHost;
    6.79 -    }
    6.80 -
    6.81 -
    6.82 -    @Override
    6.83 -    public int hashCode() {
    6.84 -        // TODO Auto-generated method stub
    6.85 -        return mHost.hashCode()*37 +  mPort*7;
    6.86 -    }
    6.87 -
    6.88 -
    6.89 -    @Override
    6.90 -    public String toString() {
    6.91 -        // TODO Auto-generated method stub
    6.92 -        return mHost + "/" + mPort;
    6.93 -    }
    6.94 -
    6.95 -
    6.96 -    @Override
    6.97 -    public boolean equals(Object obj) {
    6.98 -        // TODO Auto-generated method stub
    6.99 -        if (! (obj instanceof AttachingCookie)) 
   6.100 -            return false;
   6.101 -        return ((AttachingCookie)obj).mHost.equals(mHost) && (((AttachingCookie)obj).mPort == mPort);
   6.102 -    }
   6.103 -}
     7.1 --- a/bpel.debugger.api/src/org/netbeans/modules/bpel/debugger/api/BpelDebugger.java	Fri Dec 29 11:53:50 2006 +0000
     7.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     7.3 @@ -1,272 +0,0 @@
     7.4 -/*
     7.5 - * The contents of this file are subject to the terms of the Common Development
     7.6 - * and Distribution License (the License). You may not use this file except in
     7.7 - * compliance with the License.
     7.8 - *
     7.9 - * You can obtain a copy of the License at http://www.netbeans.org/cddl.html
    7.10 - * or http://www.netbeans.org/cddl.txt.
    7.11 -
    7.12 - * When distributing Covered Code, include this CDDL Header Notice in each file
    7.13 - * and include the License file at http://www.netbeans.org/cddl.txt.
    7.14 - * If applicable, add the following below the CDDL Header, with the fields
    7.15 - * enclosed by brackets [] replaced by your own identifying information:
    7.16 - * "Portions Copyrighted [year] [name of copyright owner]"
    7.17 - *
    7.18 - * The Original Software is NetBeans. The Initial Developer of the Original
    7.19 - * Software is Sun Microsystems, Inc. Portions Copyright 1997-2006 Sun
    7.20 - * Microsystems, Inc. All Rights Reserved.
    7.21 - */
    7.22 -
    7.23 -package org.netbeans.modules.bpel.debugger.api;
    7.24 -
    7.25 -import java.beans.PropertyChangeListener;
    7.26 -import java.beans.PropertyChangeSupport;
    7.27 -import java.util.List;
    7.28 -import java.util.Properties;
    7.29 -import org.netbeans.api.debugger.DebuggerInfo;
    7.30 -import org.netbeans.api.debugger.DebuggerManager;
    7.31 -import org.netbeans.modules.bpel.debugger.api.breakpoints.LineBreakpoint;
    7.32 -import org.netbeans.spi.debugger.ContextProvider;
    7.33 -import org.netbeans.spi.debugger.DebuggerEngineProvider;
    7.34 -
    7.35 -/**
    7.36 - *
    7.37 - * @author Alexander Zgursky
    7.38 - */
    7.39 -public abstract class BpelDebugger {
    7.40 -
    7.41 -    /**
    7.42 -     * Public ID used for registration in Meta-inf/debugger.
    7.43 -     */
    7.44 -    public static final String SESSION_ID = "netbeans-BpelSession"; // NOI18N
    7.45 -    
    7.46 -    /** Name of property for state of debugger. */
    7.47 -    public static final String          PROP_STATE = "state"; // NOI18N
    7.48 -    
    7.49 -    /** Name of property for current process instance. */
    7.50 -    public static final String          PROP_CURRENT_PROCESS_INSTANCE = 
    7.51 -            "currentProcessInstance";   //NOI18N
    7.52 -    
    7.53 -    /** Name of property for current process instance. */
    7.54 -    public static final String          PROP_CURRENT_PROCESS_INSTANCE_STATE = 
    7.55 -            "currentProcessInstanceState";  //NOI18N
    7.56 -    
    7.57 -    /** Name of property for current position. */
    7.58 -    public static final String          PROP_CURRENT_POSITION = 
    7.59 -            "currentPosition";  //NOI18N
    7.60 -    
    7.61 -    /** Debugger state constant. */
    7.62 -    public static final int             STATE_STARTING = 1;
    7.63 -    /** Debugger state constant. */
    7.64 -    public static final int             STATE_RUNNING = 2;
    7.65 -    /** Debugger state constant. */
    7.66 -    public static final int             STATE_DISCONNECTED = 4;
    7.67 -    
    7.68 -    private PropertyChangeSupport         myPcs;
    7.69 -    private ContextProvider               myLookupProvider;
    7.70 -    private BpelDebuggerEngineProvider    myDebuggerEngineProvider;
    7.71 -    private Tracer mTracer;
    7.72 -
    7.73 -        
    7.74 -    protected BpelDebugger(ContextProvider lookupProvider) {
    7.75 -        myLookupProvider = lookupProvider;
    7.76 -        
    7.77 -        myPcs = new PropertyChangeSupport(this);
    7.78 -        List l = lookupProvider.lookup(null, DebuggerEngineProvider.class);
    7.79 -        int i;
    7.80 -        int k = l.size();
    7.81 -        
    7.82 -        for (i = 0; i < k; i++) {
    7.83 -            if (l.get(i) instanceof BpelDebuggerEngineProvider) {
    7.84 -                myDebuggerEngineProvider = (BpelDebuggerEngineProvider) l.get(i);
    7.85 -            }
    7.86 -        }
    7.87 -        
    7.88 -        if (myDebuggerEngineProvider == null) {
    7.89 -            throw new IllegalArgumentException
    7.90 -                    ("BpelDebuggerEngineProvider have to be used " + // NOI18N
    7.91 -                    "to start BpelDebugger!");  // NOI18N
    7.92 -        }
    7.93 -    }
    7.94 -    
    7.95 -    /**
    7.96 -     * Returns tracer to be used for the current debug session.
    7.97 -     * 
    7.98 -     * @return tracer to be used for the current debug session
    7.99 -     */
   7.100 -    public Tracer getTracer() {
   7.101 -        if (mTracer == null) {
   7.102 -            mTracer = TracerAccess.getTracer(getLookupProvider());
   7.103 -        }
   7.104 -        return mTracer;
   7.105 -    }
   7.106 -
   7.107 -    /**
   7.108 -     * Starts BPEL debug session.
   7.109 -     * @param props properties to be used to start a debug session
   7.110 -     */
   7.111 -    public static void start(Properties props) {
   7.112 -        ProcessDICookie cookie = ProcessDICookie.create(props);
   7.113 -        
   7.114 -        DebuggerManager.getDebuggerManager().startDebugging(
   7.115 -                DebuggerInfo.create(ProcessDICookie.ID,
   7.116 -                    new Object [] {cookie}));
   7.117 -    }
   7.118 -    
   7.119 -    
   7.120 -    /**
   7.121 -     * Stops the debugger and terminates the debugging session.
   7.122 -     */
   7.123 -    public abstract void finish();
   7.124 -    
   7.125 -    /**
   7.126 -     * Causes current process instance to do a step into or does nothing if
   7.127 -     * there's no current process instance or it's not in the suspended state.
   7.128 -     */
   7.129 -    public abstract void stepInto();
   7.130 -    
   7.131 -    /**
   7.132 -     * Causes current process instance to do a step over or does nothing if
   7.133 -     * there's no current process instance or it's not in the suspended state.
   7.134 -     */
   7.135 -    //public abstract void stepOver();
   7.136 -    
   7.137 -    /**
   7.138 -     * Resumes the execution of the current process instance or does nothing if
   7.139 -     * there's no current process instance or it's not in the suspended state.
   7.140 -     */
   7.141 -    public abstract void resume();
   7.142 -    
   7.143 -    /**
   7.144 -     * Returns current state of BPEL debugger.
   7.145 -     *
   7.146 -     * @return current state of BPEL debugger
   7.147 -     * @see #STATE_STARTING
   7.148 -     * @see #STATE_RUNNING
   7.149 -     * @see #STATE_DISCONNECTED
   7.150 -     */
   7.151 -    public abstract int getState();
   7.152 -    
   7.153 -    public abstract ProcessInstancesModel getProcessInstancesModel();
   7.154 -    
   7.155 -    /**
   7.156 -     * Returns state of the current process instance.
   7.157 -     *
   7.158 -     * @return state of the the current process instance or
   7.159 -     *         {@link ProcessInstance#STATE_UNKNOWN} if there's no
   7.160 -     *         current instance
   7.161 -     *
   7.162 -     * @see ProcessInstance#STATE_UNKNOWN
   7.163 -     * @see ProcessInstance#STATE_RUNNING
   7.164 -     * @see ProcessInstance#STATE_SUSPENDED
   7.165 -     * @see ProcessInstance#STATE_COMPLETED
   7.166 -     * @see ProcessInstance#STATE_FAILED
   7.167 -     * @see ProcessInstance#STATE_TERMINATED
   7.168 -     */
   7.169 -    public abstract int getCurrentProcessInstanceState();
   7.170 -    
   7.171 -    /**
   7.172 -     * Returns current process instance.
   7.173 -     *
   7.174 -     * @return current process instance
   7.175 -     *         or null if there's no current process instance
   7.176 -     */
   7.177 -    public abstract ProcessInstance getCurrentProcessInstance();
   7.178 -    
   7.179 -    /**
   7.180 -     * Sets the current process instance. Does nothing if given process instance
   7.181 -     * doesn't exist in the model.
   7.182 -     *
   7.183 -     * @param processInstance process instance to set as current
   7.184 -     */
   7.185 -    public abstract void setCurrentProcessInstance(
   7.186 -            ProcessInstance processInstance);
   7.187 -    
   7.188 -    /**
   7.189 -     * Returns position at which current process instance has been suspended.
   7.190 -     *
   7.191 -     * @return  current position at which current process instance has been
   7.192 -     *          suspended or <code>null</code> if there's no current process
   7.193 -     *          instance or it's not suspended
   7.194 -     *
   7.195 -     * @see #getCurrentProcessInstance()
   7.196 -     * @see ProcessInstance#getState()
   7.197 -     * @see ProcessInstance#getCurrentPosition
   7.198 -     */
   7.199 -    public abstract Position getCurrentPosition();
   7.200 -    
   7.201 -    /**
   7.202 -     * Returns an exception that caused debugger to disconnect.
   7.203 -     *
   7.204 -     * @return an exception that caused debugger to disconnect or null if
   7.205 -     *          there was no exception
   7.206 -     */
   7.207 -    public abstract Exception getException();
   7.208 -    
   7.209 -    /**
   7.210 -     * Fires property change.
   7.211 -     */
   7.212 -    protected final void firePropertyChange(String name, Object o, Object n) {
   7.213 -        myPcs.firePropertyChange(name, o, n);
   7.214 -    }
   7.215 -    
   7.216 -    /**
   7.217 -     * Adds property change listener.
   7.218 -     *
   7.219 -     * @param l new listener.
   7.220 -     */
   7.221 -    public final void addPropertyChangeListener(PropertyChangeListener l) {
   7.222 -        myPcs.addPropertyChangeListener(l);
   7.223 -    }
   7.224 -    
   7.225 -    /**
   7.226 -     * Removes property change listener.
   7.227 -     *
   7.228 -     * @param l removed listener.
   7.229 -     */
   7.230 -    public final void removePropertyChangeListener(PropertyChangeListener l) {
   7.231 -        myPcs.removePropertyChangeListener(l);
   7.232 -    }
   7.233 -    
   7.234 -    /**
   7.235 -     * Adds property change listener.
   7.236 -     *
   7.237 -     * @param propertyName property name to add listener for
   7.238 -     * @param l new listener.
   7.239 -     */
   7.240 -    public final void addPropertyChangeListener(
   7.241 -            String propertyName, PropertyChangeListener l)
   7.242 -    {
   7.243 -        myPcs.addPropertyChangeListener(propertyName, l);
   7.244 -    }
   7.245 -    
   7.246 -    /**
   7.247 -     * Removes property change listener.
   7.248 -     *
   7.249 -     * @param propertyName property name to remove listener for
   7.250 -     * @param l listener to remove
   7.251 -     */
   7.252 -    public final void removePropertyChangeListener(
   7.253 -            String propertyName, PropertyChangeListener l)
   7.254 -    {
   7.255 -        myPcs.removePropertyChangeListener(propertyName, l);
   7.256 -    }
   7.257 -    
   7.258 -    /**
   7.259 -     * Returns the context of the debugger.
   7.260 -     *
   7.261 -     * @return the context of the debugger
   7.262 -     */
   7.263 -    public final ContextProvider getLookupProvider() {
   7.264 -        return myLookupProvider;
   7.265 -    }
   7.266 -    
   7.267 -    /**
   7.268 -     * Returns the debugger engine provider.
   7.269 -     *
   7.270 -     * @return the debugger engine provider
   7.271 -     */
   7.272 -    public final BpelDebuggerEngineProvider getEngineProvider() {
   7.273 -        return myDebuggerEngineProvider;
   7.274 -    }
   7.275 -}
     8.1 --- a/bpel.debugger.api/src/org/netbeans/modules/bpel/debugger/api/Bundle.properties	Fri Dec 29 11:53:50 2006 +0000
     8.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     8.3 @@ -1,21 +0,0 @@
     8.4 -# The contents of this file are subject to the terms of the Common Development
     8.5 -# and Distribution License (the License). You may not use this file except in
     8.6 -# compliance with the License.
     8.7 -#
     8.8 -#  You can obtain a copy of the License at http://www.netbeans.org/cddl.html
     8.9 -# or http://www.netbeans.org/cddl.txt.
    8.10 -
    8.11 -# When distributing Covered Code, include this CDDL Header Notice in each file
    8.12 -# and include the License file at http://www.netbeans.org/cddl.txt.
    8.13 -# If applicable, add the following below the CDDL Header, with the fields
    8.14 -# enclosed by brackets [] replaced by your own identifying information:
    8.15 -# "Portions Copyrighted [year] [name of copyright owner]"
    8.16 -#
    8.17 -#  The Original Software is NetBeans. The Initial Developer of the Original
    8.18 -# Software is Sun Microsystems, Inc. Portions Copyright 1997-2006 Sun
    8.19 -#  Microsystems, Inc. All Rights Reserved.
    8.20 -
    8.21 -# AnnotationType
    8.22 -LBL_Current_Position=Current Position
    8.23 -LBL_Enabled_Breakpoint=Breakpoint
    8.24 -LBL_Disabled_Breakpoint=Disabled Breakpoint
     9.1 --- a/bpel.debugger.api/src/org/netbeans/modules/bpel/debugger/api/DebugException.java	Fri Dec 29 11:53:50 2006 +0000
     9.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     9.3 @@ -1,43 +0,0 @@
     9.4 -/*
     9.5 - * The contents of this file are subject to the terms of the Common Development
     9.6 - * and Distribution License (the License). You may not use this file except in
     9.7 - * compliance with the License.
     9.8 - *
     9.9 - * You can obtain a copy of the License at http://www.netbeans.org/cddl.html
    9.10 - * or http://www.netbeans.org/cddl.txt.
    9.11 -
    9.12 - * When distributing Covered Code, include this CDDL Header Notice in each file
    9.13 - * and include the License file at http://www.netbeans.org/cddl.txt.
    9.14 - * If applicable, add the following below the CDDL Header, with the fields
    9.15 - * enclosed by brackets [] replaced by your own identifying information:
    9.16 - * "Portions Copyrighted [year] [name of copyright owner]"
    9.17 - *
    9.18 - * The Original Software is NetBeans. The Initial Developer of the Original
    9.19 - * Software is Sun Microsystems, Inc. Portions Copyright 1997-2006 Sun
    9.20 - * Microsystems, Inc. All Rights Reserved.
    9.21 - */
    9.22 -
    9.23 -package org.netbeans.modules.bpel.debugger.api;
    9.24 -
    9.25 -/**
    9.26 - */
    9.27 -public class DebugException extends Exception {
    9.28 -
    9.29 -    public DebugException() {
    9.30 -        super();
    9.31 -        // TODO Auto-generated constructor stub
    9.32 -    }
    9.33 -
    9.34 -    public DebugException(String message, Throwable cause) {
    9.35 -        super(message, cause);
    9.36 -    }
    9.37 -
    9.38 -    public DebugException(String message) {
    9.39 -        super(message);
    9.40 -    }
    9.41 -
    9.42 -    public DebugException(Throwable cause) {
    9.43 -        super(cause);
    9.44 -    }
    9.45 -
    9.46 -}
    10.1 --- a/bpel.debugger.api/src/org/netbeans/modules/bpel/debugger/api/EditorContextBridge.java	Fri Dec 29 11:53:50 2006 +0000
    10.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
    10.3 @@ -1,319 +0,0 @@
    10.4 -/*
    10.5 - * The contents of this file are subject to the terms of the Common Development
    10.6 - * and Distribution License (the License). You may not use this file except in
    10.7 - * compliance with the License.
    10.8 - *
    10.9 - * You can obtain a copy of the License at http://www.netbeans.org/cddl.html
   10.10 - * or http://www.netbeans.org/cddl.txt.
   10.11 -
   10.12 - * When distributing Covered Code, include this CDDL Header Notice in each file
   10.13 - * and include the License file at http://www.netbeans.org/cddl.txt.
   10.14 - * If applicable, add the following below the CDDL Header, with the fields
   10.15 - * enclosed by brackets [] replaced by your own identifying information:
   10.16 - * "Portions Copyrighted [year] [name of copyright owner]"
   10.17 - *
   10.18 - * The Original Software is NetBeans. The Initial Developer of the Original
   10.19 - * Software is Sun Microsystems, Inc. Portions Copyright 1997-2006 Sun
   10.20 - * Microsystems, Inc. All Rights Reserved.
   10.21 - */
   10.22 -
   10.23 -package org.netbeans.modules.bpel.debugger.api;
   10.24 -
   10.25 -import java.awt.Color;
   10.26 -import java.beans.PropertyChangeListener;
   10.27 -import java.util.List;
   10.28 -import java.util.StringTokenizer;
   10.29 -import javax.xml.namespace.QName;
   10.30 -
   10.31 -import org.netbeans.api.debugger.DebuggerManager;
   10.32 -import org.netbeans.modules.bpel.debugger.spi.EditorContext;
   10.33 -
   10.34 -/**
   10.35 - * @author Alexander Zgursky
   10.36 - * @author Vladimir Yaroslavskiy
   10.37 - */
   10.38 -public final class EditorContextBridge {
   10.39 -
   10.40 -    private static EditorContext context;
   10.41 -    
   10.42 -    private EditorContextBridge() {};
   10.43 -
   10.44 -    /**
   10.45 -     * Converts given text to html with <code>bold=true</code>.
   10.46 -     *
   10.47 -     * @param text text to be converted
   10.48 -     * 
   10.49 -     * @return html-formatted String or <code>null</code>,
   10.50 -     *         if given text is <code>null</code>
   10.51 -     *
   10.52 -     * @see #toHtml
   10.53 -     */
   10.54 -    public static String toBold(String text) {
   10.55 -        return toHtml(text, true, false, null);
   10.56 -    }
   10.57 -    
   10.58 -    /**
   10.59 -     * Converts given text to html using given attributes.
   10.60 -     * @param text text to be converted
   10.61 -     * @param bold bold flag
   10.62 -     * @param italic italic flag
   10.63 -     * @param color color to be used or <code>null</code> for default color
   10.64 -     * 
   10.65 -     * @return html formatted text or <code>null</code> if
   10.66 -     *         given text is <code>null</code>
   10.67 -     */
   10.68 -    public static String toHtml(
   10.69 -            String text, boolean bold, boolean italic, Color color)
   10.70 -    {
   10.71 -        if (text == null) {
   10.72 -            return null;
   10.73 -        }
   10.74 -        StringBuffer buffer = new StringBuffer();
   10.75 -        buffer.append("<html>"); // NOI18N
   10.76 -        
   10.77 -        if (bold) {
   10.78 -            buffer.append("<b>"); // NOI18N
   10.79 -        }
   10.80 -        if (italic) {
   10.81 -            buffer.append("<i>"); // NOI18N
   10.82 -        }
   10.83 -        if (color != null) {
   10.84 -            buffer.append("<font color=\"#"); // NOI18N
   10.85 -            final int RGB_BITS = 0xffffff;
   10.86 -            buffer.append(String.format("%06x", color.getRGB() & RGB_BITS)); // NOI18N
   10.87 -            buffer.append("\">"); // NOI18N
   10.88 -        }
   10.89 -        buffer.append(text.
   10.90 -                replaceAll("&", "&amp;").       // NOI18N
   10.91 -                replaceAll("<", "&lt;").        // NOI18N
   10.92 -                replaceAll(">", "&gt;")         // NOI18N
   10.93 -        );
   10.94 -        
   10.95 -        if (color != null) {
   10.96 -            buffer.append("</font>"); // NOI18N
   10.97 -        }
   10.98 -        if (italic) {
   10.99 -            buffer.append("</i>"); // NOI18N
  10.100 -        }
  10.101 -        if (bold) {
  10.102 -            buffer.append("</b>"); // NOI18N
  10.103 -        }
  10.104 -        buffer.append("</html>"); // NOI18N
  10.105 -        
  10.106 -        return buffer.toString();
  10.107 -    }
  10.108 -    
  10.109 -    public static String normalizeXpath(String xpath) {
  10.110 -        if (xpath == null) {
  10.111 -            return null;
  10.112 -        }
  10.113 -        StringBuffer buffer = new StringBuffer(200);
  10.114 -        StringTokenizer tokenizer = new StringTokenizer(xpath, "/");
  10.115 -        while (tokenizer.hasMoreTokens()) {
  10.116 -            String token = tokenizer.nextToken();
  10.117 -            if (token.length() > 0) {
  10.118 -                buffer.append('/');
  10.119 -                if (token.equals("process[1]") || token.equals("process")) {
  10.120 -                    buffer.append("process");
  10.121 -                } else {
  10.122 -                    buffer.append(token);
  10.123 -                    if (token.charAt(token.length()-1) != ']') {
  10.124 -                        buffer.append("[1]");
  10.125 -                    }
  10.126 -                }
  10.127 -            }
  10.128 -        }
  10.129 -        
  10.130 -        return buffer.toString();
  10.131 -    }
  10.132 -    
  10.133 -    /**
  10.134 -     * Opens given file (url) in the editor and navigates to the given position.
  10.135 -     * Method delegates this call to all registered EditorContext
  10.136 -     * implementations and returns <code>true</code> if any of them succeeded.
  10.137 -     *
  10.138 -     * @param url full path to the source file to show
  10.139 -     * @param position position to navigate to
  10.140 -     *
  10.141 -     * @return <code>true</code> if any of the registered EditorContext
  10.142 -     *         implementations succeeded to show the source.
  10.143 -     */
  10.144 -    public static boolean showSource(String url, String xpath) {
  10.145 -        return getContext().showSource(url, xpath);
  10.146 -    }
  10.147 -    
  10.148 -    /**
  10.149 -     * Annotates the given position in the given file (url) with the given
  10.150 -     * annotation type.
  10.151 -     *
  10.152 -     * @param url full path to the source file to add annotation for
  10.153 -     * @param position annotation position
  10.154 -     * @param annotationType annotation type
  10.155 -     *
  10.156 -     * @return a reference to the created annotation object. This object should
  10.157 -     *         be supplied as a parameter to subsequent
  10.158 -     *         {@link #removeAnnotation} call
  10.159 -     */
  10.160 -    public static Object annotate(
  10.161 -            String url, String xpath, AnnotationType annotationType)
  10.162 -    {
  10.163 -        return getContext().annotate(url, xpath, annotationType);
  10.164 -    }
  10.165 -    
  10.166 -    /**
  10.167 -     * Removes the given annotation.
  10.168 -     *
  10.169 -     * @param annotation a reference to the annotation object that is returned
  10.170 -     *                   from {@link #annotate} method
  10.171 -     */
  10.172 -    public static void removeAnnotation(Object annotation) {
  10.173 -        getContext().removeAnnotation(annotation);
  10.174 -    }
  10.175 -    
  10.176 -    public static String getXpath(Object annotation) {
  10.177 -        return getContext().getXpath(annotation);
  10.178 -    }
  10.179 -    
  10.180 -    public static QName getProcessQName(String url) {
  10.181 -        return getContext().getProcessQName(url);
  10.182 -    }
  10.183 -    
  10.184 -    /**
  10.185 -     * Returns the more appropriate line number for the
  10.186 -     * given the url and line number.
  10.187 -     */
  10.188 -    public static int translateBreakpointLine(String url, int lineNumber) {
  10.189 -        return getContext().translateBreakpointLine(url, lineNumber);
  10.190 -    }
  10.191 -    
  10.192 -    public static void addAnnotationListener(Object annotation, PropertyChangeListener l) {
  10.193 -        getContext().addAnnotationListener(annotation, l);
  10.194 -    }
  10.195 -    
  10.196 -    public static void removeAnnotationListener(Object annotation, PropertyChangeListener l) {
  10.197 -        getContext().removeAnnotationListener(annotation, l);
  10.198 -    }
  10.199 -    
  10.200 -    private static EditorContext getContext() {
  10.201 -        if (context == null) {
  10.202 -            List l = DebuggerManager.getDebuggerManager().lookup
  10.203 -                    (null, EditorContext.class);
  10.204 -            context = (EditorContext) l.get(0);
  10.205 -            int i;
  10.206 -            int k = l.size();
  10.207 -            for (i = 1; i < k; i++) {
  10.208 -                assert false : "compound editor context is not supported";
  10.209 -//                context = new CompoundContextProvider(
  10.210 -//                        (EditorContext) l.get(i), context);
  10.211 -            }
  10.212 -        }
  10.213 -        return context;
  10.214 -    }
  10.215 -    
  10.216 -//    /**
  10.217 -//     * Context provider that embeds two given Context Providers and
  10.218 -//     * delegates methods calls to them.
  10.219 -//     */
  10.220 -//    private static class CompoundContextProvider implements EditorContext {
  10.221 -//        
  10.222 -//        /** First of the two embeded Context Providers. */
  10.223 -//        private EditorContext myContext1;
  10.224 -//        
  10.225 -//        /** Second of the two embeded Context Providers. */
  10.226 -//        private EditorContext myContext2;
  10.227 -//        
  10.228 -//        CompoundContextProvider(EditorContext context1, EditorContext context2) {
  10.229 -//            myContext1 = context1;
  10.230 -//            myContext2 = context2;
  10.231 -//        }
  10.232 -//        
  10.233 -//        public boolean showSource(String url, Position position) {
  10.234 -//            return  myContext1.showSource(url, position) |
  10.235 -//                    myContext2.showSource(url, position);
  10.236 -//        }
  10.237 -//        
  10.238 -//        public Object annotate(
  10.239 -//                String url, Position position, AnnotationType annotationType)
  10.240 -//        {
  10.241 -//            CompoundAnnotation ca = new CompoundAnnotation(
  10.242 -//                        annotate(url, position, annotationType),
  10.243 -//                        annotate(url, position, annotationType)
  10.244 -//                    );
  10.245 -//            return ca;
  10.246 -//        }
  10.247 -//        
  10.248 -//        public void removeAnnotation(Object annotation) {
  10.249 -//            CompoundAnnotation ca = (CompoundAnnotation) annotation;
  10.250 -//            myContext1.removeAnnotation(ca.getAnnotation1());
  10.251 -//            myContext2.removeAnnotation(ca.getAnnotation2());
  10.252 -//        }
  10.253 -//        
  10.254 -//        public int getLineNumber(Object annotation) {
  10.255 -//            int ln = myContext1.getLineNumber(annotation);
  10.256 -//            if (ln >= 0) {
  10.257 -//                return ln;
  10.258 -//            } else {
  10.259 -//                return myContext2.getLineNumber(annotation);
  10.260 -//            }
  10.261 -//        }
  10.262 -//
  10.263 -//        /**
  10.264 -//         * Returns the more appropriate line number for the
  10.265 -//         * given the url and line number.
  10.266 -//         */
  10.267 -//        public int translateBreakpointLine(String url, int lineNumber) {
  10.268 -//            int newLineNumber = myContext1.translateBreakpointLine(url, lineNumber);
  10.269 -//            if (newLineNumber < 0) {
  10.270 -//                newLineNumber = myContext2.translateBreakpointLine(url, lineNumber);
  10.271 -//            }
  10.272 -//            return newLineNumber;
  10.273 -//        }
  10.274 -//        
  10.275 -//        public void addAnnotationListener(Object annotation, PropertyChangeListener l) {
  10.276 -//            //TODO: implement this
  10.277 -//            //the following commented impl will not do since the subscriber
  10.278 -//            //would receive events for the different annotation object from
  10.279 -//            //it has subscribed for
  10.280 -//            
  10.281 -//            CompoundAnnotation ca = (CompoundAnnotation) annotation;
  10.282 -//            myContext1.addAnnotationListener(ca.getAnnotation1(), l);
  10.283 -//            myContext2.addAnnotationListener(ca.getAnnotation2(), l);
  10.284 -//            
  10.285 -//            throw new UnsupportedOperationException(
  10.286 -//                    "Not supported for compound context");  //NOI18N
  10.287 -//            
  10.288 -//        }
  10.289 -//
  10.290 -//        public void removeAnnotationListener(Object annotation, PropertyChangeListener l) {
  10.291 -//            //TODO: implement this
  10.292 -//            //the following commented impl will not do since the subscriber
  10.293 -//            //would receive events for the different annotation object from
  10.294 -//            //it has subscribed for
  10.295 -//            
  10.296 -////            CompoundAnnotation ca = (CompoundAnnotation) annotation;
  10.297 -////            myCp1.removeAnnotationListener(ca.getAnnotation1(), l);
  10.298 -////            myCp2.removeAnnotationListener(ca.getAnnotation2(), l);
  10.299 -//            
  10.300 -//            throw new UnsupportedOperationException(
  10.301 -//                    "Not supported for compound context");  //NOI18N
  10.302 -//        }
  10.303 -//    }
  10.304 -    
  10.305 -//    private static final class CompoundAnnotation {
  10.306 -//        private Object myAnnotation1;
  10.307 -//        private Object myAnnotation2;
  10.308 -//        
  10.309 -//        public CompoundAnnotation(Object annotation1, Object annotation2) {
  10.310 -//            myAnnotation1 = annotation1;
  10.311 -//            myAnnotation2 = annotation2;
  10.312 -//        }
  10.313 -//        
  10.314 -//        public Object getAnnotation1() {
  10.315 -//            return myAnnotation1;
  10.316 -//        }
  10.317 -//        
  10.318 -//        public Object getAnnotation2() {
  10.319 -//            return myAnnotation2;
  10.320 -//        }
  10.321 -//    }
  10.322 -}
    11.1 --- a/bpel.debugger.api/src/org/netbeans/modules/bpel/debugger/api/Position.java	Fri Dec 29 11:53:50 2006 +0000
    11.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
    11.3 @@ -1,33 +0,0 @@
    11.4 -/*
    11.5 - * The contents of this file are subject to the terms of the Common Development
    11.6 - * and Distribution License (the License). You may not use this file except in
    11.7 - * compliance with the License.
    11.8 - *
    11.9 - * You can obtain a copy of the License at http://www.netbeans.org/cddl.html
   11.10 - * or http://www.netbeans.org/cddl.txt.
   11.11 -
   11.12 - * When distributing Covered Code, include this CDDL Header Notice in each file
   11.13 - * and include the License file at http://www.netbeans.org/cddl.txt.
   11.14 - * If applicable, add the following below the CDDL Header, with the fields
   11.15 - * enclosed by brackets [] replaced by your own identifying information:
   11.16 - * "Portions Copyrighted [year] [name of copyright owner]"
   11.17 - *
   11.18 - * The Original Software is NetBeans. The Initial Developer of the Original
   11.19 - * Software is Sun Microsystems, Inc. Portions Copyright 1997-2006 Sun
   11.20 - * Microsystems, Inc. All Rights Reserved.
   11.21 - */
   11.22 -
   11.23 -package org.netbeans.modules.bpel.debugger.api;
   11.24 -
   11.25 -import javax.xml.namespace.QName;
   11.26 -
   11.27 -/**
   11.28 - * @author Alexander Zgursky
   11.29 - */
   11.30 -public interface Position {
   11.31 -    
   11.32 -    QName getProcessQName();
   11.33 -    
   11.34 -    String getXpath();
   11.35 -    
   11.36 -}
    12.1 --- a/bpel.debugger.api/src/org/netbeans/modules/bpel/debugger/api/ProcessDICookie.java	Fri Dec 29 11:53:50 2006 +0000
    12.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
    12.3 @@ -1,59 +0,0 @@
    12.4 -/*
    12.5 - * The contents of this file are subject to the terms of the Common Development
    12.6 - * and Distribution License (the License). You may not use this file except in
    12.7 - * compliance with the License.
    12.8 - *
    12.9 - * You can obtain a copy of the License at http://www.netbeans.org/cddl.html
   12.10 - * or http://www.netbeans.org/cddl.txt.
   12.11 -
   12.12 - * When distributing Covered Code, include this CDDL Header Notice in each file
   12.13 - * and include the License file at http://www.netbeans.org/cddl.txt.
   12.14 - * If applicable, add the following below the CDDL Header, with the fields
   12.15 - * enclosed by brackets [] replaced by your own identifying information:
   12.16 - * "Portions Copyrighted [year] [name of copyright owner]"
   12.17 - *
   12.18 - * The Original Software is NetBeans. The Initial Developer of the Original
   12.19 - * Software is Sun Microsystems, Inc. Portions Copyright 1997-2006 Sun
   12.20 - * Microsystems, Inc. All Rights Reserved.
   12.21 - */
   12.22 -
   12.23 -package org.netbeans.modules.bpel.debugger.api;
   12.24 -
   12.25 -import java.util.Properties;
   12.26 -
   12.27 -/**
   12.28 - *
   12.29 - * @author Alexander Zgursky
   12.30 - */
   12.31 -public final class ProcessDICookie {
   12.32 -
   12.33 -    public static final String ID = "netbeans-ProcessDICookie"; // NOI18N
   12.34 -
   12.35 -    private Properties myDeploymentContext;
   12.36 -
   12.37 -    private ProcessDICookie(Properties deploymentContext) {
   12.38 -        myDeploymentContext = deploymentContext;
   12.39 -    }
   12.40 -
   12.41 -    //TODO:add descriptions to possible deploymentContext key values
   12.42 -    /**
   12.43 -     * Creates a new instance of ProcessDICookie.
   12.44 -     *
   12.45 -     * @param deploymentContext deployment context properties
   12.46 -     *
   12.47 -     * @return new ProcessDICookie object
   12.48 -     */
   12.49 -    public static ProcessDICookie create(Properties deploymentContext) {
   12.50 -        return new ProcessDICookie(deploymentContext);
   12.51 -    }
   12.52 -    
   12.53 -    /**
   12.54 -     * Returns deployment context properties.
   12.55 -     *
   12.56 -     * @return deployment context properties
   12.57 -     */
   12.58 -    public Properties getDeploymentContext() {
   12.59 -        return myDeploymentContext;
   12.60 -    }
   12.61 -    
   12.62 -}
    13.1 --- a/bpel.debugger.api/src/org/netbeans/modules/bpel/debugger/api/ProcessInstance.java	Fri Dec 29 11:53:50 2006 +0000
    13.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
    13.3 @@ -1,83 +0,0 @@
    13.4 -/*
    13.5 - * The contents of this file are subject to the terms of the Common Development
    13.6 - * and Distribution License (the License). You may not use this file except in
    13.7 - * compliance with the License.
    13.8 - *
    13.9 - * You can obtain a copy of the License at http://www.netbeans.org/cddl.html
   13.10 - * or http://www.netbeans.org/cddl.txt.
   13.11 -
   13.12 - * When distributing Covered Code, include this CDDL Header Notice in each file
   13.13 - * and include the License file at http://www.netbeans.org/cddl.txt.
   13.14 - * If applicable, add the following below the CDDL Header, with the fields
   13.15 - * enclosed by brackets [] replaced by your own identifying information:
   13.16 - * "Portions Copyrighted [year] [name of copyright owner]"
   13.17 - *
   13.18 - * The Original Software is NetBeans. The Initial Developer of the Original
   13.19 - * Software is Sun Microsystems, Inc. Portions Copyright 1997-2006 Sun
   13.20 - * Microsystems, Inc. All Rights Reserved.
   13.21 - */
   13.22 -
   13.23 -package org.netbeans.modules.bpel.debugger.api;
   13.24 -
   13.25 -/**
   13.26 - *
   13.27 - * @author Alexander Zgursky
   13.28 - */
   13.29 -public interface ProcessInstance {
   13.30 -
   13.31 -    /** State is unknown. */
   13.32 -    int STATE_UNKNOWN       = 0;
   13.33 -
   13.34 -    /** Process instance is currently running. */
   13.35 -    int STATE_RUNNING       = 1;
   13.36 -
   13.37 -    /** Process instance has been suspended. */
   13.38 -    int STATE_SUSPENDED     = 2;
   13.39 -
   13.40 -    /** Process instance completed its execution without fault. */
   13.41 -    int STATE_COMPLETED     = 3;
   13.42 -    
   13.43 -    /** Process instance completed its execution with fault. */
   13.44 -    int STATE_FAILED        = 4;
   13.45 -    
   13.46 -    /** Process instance has been terminated. */
   13.47 -    int STATE_TERMINATED    = 5;
   13.48 -    
   13.49 -    /**
   13.50 -     * Returns the name of the process instance.
   13.51 -     *
   13.52 -     * @return the name of the process instance;
   13.53 -     */
   13.54 -    String getName();
   13.55 -    
   13.56 -    /**
   13.57 -     * Returns the state of the process instance.
   13.58 -     *
   13.59 -     * @return the state of the process instance
   13.60 -     *
   13.61 -     * @see #STATE_UNKNOWN
   13.62 -     * @see #STATE_RUNNING
   13.63 -     * @see #STATE_SUSPENDED
   13.64 -     * @see #STATE_COMPLETED
   13.65 -     * @see #STATE_FAILED
   13.66 -     * @see #STATE_TERMINATED
   13.67 -     */
   13.68 -    int getState();
   13.69 -    
   13.70 -    /**
   13.71 -     * Returns position at which this process instance has been suspended.
   13.72 -     *
   13.73 -     * @return  current position at which this process instance has been
   13.74 -     *          suspended or <code>null</code> if it's not suspended
   13.75 -     *
   13.76 -     * @see #getState()
   13.77 -     */
   13.78 -    Position getCurrentPosition();
   13.79 -    
   13.80 -    /**
   13.81 -     * Resumes process instance if it's suspended or does nothing otherwise.
   13.82 -     */
   13.83 -    void resume();
   13.84 -    
   13.85 -    void stepInto();
   13.86 -}
    14.1 --- a/bpel.debugger.api/src/org/netbeans/modules/bpel/debugger/api/ProcessInstancesModel.java	Fri Dec 29 11:53:50 2006 +0000
    14.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
    14.3 @@ -1,77 +0,0 @@
    14.4 -/*
    14.5 - * The contents of this file are subject to the terms of the Common Development
    14.6 - * and Distribution License (the License). You may not use this file except in
    14.7 - * compliance with the License.
    14.8 - *
    14.9 - * You can obtain a copy of the License at http://www.netbeans.org/cddl.html
   14.10 - * or http://www.netbeans.org/cddl.txt.
   14.11 -
   14.12 - * When distributing Covered Code, include this CDDL Header Notice in each file
   14.13 - * and include the License file at http://www.netbeans.org/cddl.txt.
   14.14 - * If applicable, add the following below the CDDL Header, with the fields
   14.15 - * enclosed by brackets [] replaced by your own identifying information:
   14.16 - * "Portions Copyrighted [year] [name of copyright owner]"
   14.17 - *
   14.18 - * The Original Software is NetBeans. The Initial Developer of the Original
   14.19 - * Software is Sun Microsystems, Inc. Portions Copyright 1997-2006 Sun
   14.20 - * Microsystems, Inc. All Rights Reserved.
   14.21 - */
   14.22 -
   14.23 -
   14.24 -package org.netbeans.modules.bpel.debugger.api;
   14.25 -
   14.26 -/**
   14.27 - * Model for maintaining the list of process instances.
   14.28 - * Supports notification of process state changes.
   14.29 - *
   14.30 - * @author Sun Microsystems
   14.31 - */
   14.32 -public interface ProcessInstancesModel {
   14.33 -
   14.34 -    /**
   14.35 -     * Returns an array containing one process instance 
   14.36 -     * per process. Similar to getProcessInstanceThreads
   14.37 -     * except only one process instance is selected to
   14.38 -     * be in the array for any given process, 
   14.39 -     * and that selection is either the first suspended
   14.40 -     * instance or the first instance of the process.
   14.41 -     */
   14.42 -    ProcessInstance[] getProcessInstances();
   14.43 -    
   14.44 -    /**
   14.45 -     * Adds a listener to the model.
   14.46 -     */
   14.47 -    void addListener(Listener listener);
   14.48 -    
   14.49 -    /**
   14.50 -     * Removes a listener from the model.
   14.51 -     */
   14.52 -    void removeListener(Listener listener);
   14.53 -    
   14.54 -    /**
   14.55 -     * Listener for changes to the process instance model.
   14.56 -     * The listener will be informed of when process instances
   14.57 -     * have been created/exited. State changes are also fired to listeners.
   14.58 -     *
   14.59 -     * @author Sun Microsystems
   14.60 -     */
   14.61 -    interface Listener {
   14.62 -
   14.63 -        /**
   14.64 -         * Process instance exited.
   14.65 -         */
   14.66 -        void processInstanceRemoved(ProcessInstance processInstance);
   14.67 -
   14.68 -        /**
   14.69 -         * New process isntance created.
   14.70 -         */
   14.71 -        void processInstanceAdded(ProcessInstance processInstance);
   14.72 -
   14.73 -        /**
   14.74 -         * The state of the process instance changed.
   14.75 -         */
   14.76 -        void processInstanceStateChanged(
   14.77 -                ProcessInstance processInstance, int oldState, int newState);
   14.78 -
   14.79 -    }
   14.80 -}
    15.1 --- a/bpel.debugger.api/src/org/netbeans/modules/bpel/debugger/api/SourcePath.java	Fri Dec 29 11:53:50 2006 +0000
    15.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
    15.3 @@ -1,32 +0,0 @@
    15.4 -/*
    15.5 - * The contents of this file are subject to the terms of the Common Development
    15.6 - * and Distribution License (the License). You may not use this file except in
    15.7 - * compliance with the License.
    15.8 - *
    15.9 - * You can obtain a copy of the License at http://www.netbeans.org/cddl.html
   15.10 - * or http://www.netbeans.org/cddl.txt.
   15.11 -
   15.12 - * When distributing Covered Code, include this CDDL Header Notice in each file
   15.13 - * and include the License file at http://www.netbeans.org/cddl.txt.
   15.14 - * If applicable, add the following below the CDDL Header, with the fields
   15.15 - * enclosed by brackets [] replaced by your own identifying information:
   15.16 - * "Portions Copyrighted [year] [name of copyright owner]"
   15.17 - *
   15.18 - * The Original Software is NetBeans. The Initial Developer of the Original
   15.19 - * Software is Sun Microsystems, Inc. Portions Copyright 1997-2006 Sun
   15.20 - * Microsystems, Inc. All Rights Reserved.
   15.21 - */
   15.22 -
   15.23 -package org.netbeans.modules.bpel.debugger.api;
   15.24 -
   15.25 -import javax.xml.namespace.QName;
   15.26 -import org.netbeans.spi.debugger.ContextProvider;
   15.27 -
   15.28 -/**
   15.29 - *
   15.30 - * @author Alexander Zgursky
   15.31 - */
   15.32 -public interface SourcePath {
   15.33 -    String getURL(QName processQName);
   15.34 -    void setURL(QName processQName, String url);
   15.35 -}
    16.1 --- a/bpel.debugger.api/src/org/netbeans/modules/bpel/debugger/api/Tracer.java	Fri Dec 29 11:53:50 2006 +0000
    16.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
    16.3 @@ -1,64 +0,0 @@
    16.4 -/*
    16.5 - * The contents of this file are subject to the terms of the Common Development
    16.6 - * and Distribution License (the License). You may not use this file except in
    16.7 - * compliance with the License.
    16.8 - *
    16.9 - * You can obtain a copy of the License at http://www.netbeans.org/cddl.html
   16.10 - * or http://www.netbeans.org/cddl.txt.
   16.11 -
   16.12 - * When distributing Covered Code, include this CDDL Header Notice in each file
   16.13 - * and include the License file at http://www.netbeans.org/cddl.txt.
   16.14 - * If applicable, add the following below the CDDL Header, with the fields
   16.15 - * enclosed by brackets [] replaced by your own identifying information:
   16.16 - * "Portions Copyrighted [year] [name of copyright owner]"
   16.17 - *
   16.18 - * The Original Software is NetBeans. The Initial Developer of the Original
   16.19 - * Software is Sun Microsystems, Inc. Portions Copyright 1997-2006 Sun
   16.20 - * Microsystems, Inc. All Rights Reserved.
   16.21 - */
   16.22 -package org.netbeans.modules.bpel.debugger.api;
   16.23 -
   16.24 -/**
   16.25 - * @author Vladimir Yaroslavskiy
   16.26 - * @version 2005.10.14
   16.27 - */
   16.28 -public interface Tracer {
   16.29 -
   16.30 -    /**
   16.31 -     * Prints message in debugger console.
   16.32 -     * @param message given text
   16.33 -     */
   16.34 -    void println(String message);
   16.35 -
   16.36 -    /**
   16.37 -     * Prints exception in debugger console.
   16.38 -     * @param exception given text
   16.39 -     */
   16.40 -    void println(Throwable exception);
   16.41 -
   16.42 -    /**
   16.43 -     * Prints message and exception in debugger console.
   16.44 -     * @param message given text
   16.45 -     * @param exception given text
   16.46 -     */
   16.47 -    void println(String message, Throwable exception);
   16.48 -    
   16.49 -    /**
   16.50 -     * Debugs message in debugger console.
   16.51 -     * @param message given text
   16.52 -     */
   16.53 -    void debug(String message);
   16.54 -
   16.55 -    /**
   16.56 -     * Debugs exception in debugger console.
   16.57 -     * @param exception given text
   16.58 -     */
   16.59 -    void debug(Throwable exception);
   16.60 -
   16.61 -    /**
   16.62 -     * Debugs message and exception in debugger console.
   16.63 -     * @param message given text
   16.64 -     * @param exception given text
   16.65 -     */
   16.66 -    void debug(String message, Throwable exception);
   16.67 -}
    17.1 --- a/bpel.debugger.api/src/org/netbeans/modules/bpel/debugger/api/TracerAccess.java	Fri Dec 29 11:53:50 2006 +0000
    17.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
    17.3 @@ -1,66 +0,0 @@
    17.4 -/*
    17.5 - * The contents of this file are subject to the terms of the Common Development
    17.6 - * and Distribution License (the License). You may not use this file except in
    17.7 - * compliance with the License.
    17.8 - *
    17.9 - * You can obtain a copy of the License at http://www.netbeans.org/cddl.html
   17.10 - * or http://www.netbeans.org/cddl.txt.
   17.11 -
   17.12 - * When distributing Covered Code, include this CDDL Header Notice in each file
   17.13 - * and include the License file at http://www.netbeans.org/cddl.txt.
   17.14 - * If applicable, add the following below the CDDL Header, with the fields
   17.15 - * enclosed by brackets [] replaced by your own identifying information:
   17.16 - * "Portions Copyrighted [year] [name of copyright owner]"
   17.17 - *
   17.18 - * The Original Software is NetBeans. The Initial Developer of the Original
   17.19 - * Software is Sun Microsystems, Inc. Portions Copyright 1997-2006 Sun
   17.20 - * Microsystems, Inc. All Rights Reserved.
   17.21 - */
   17.22 -package org.netbeans.modules.bpel.debugger.api;
   17.23 -
   17.24 -import org.netbeans.api.debugger.DebuggerManager;
   17.25 -import org.netbeans.api.debugger.Session;
   17.26 -import org.netbeans.spi.debugger.ContextProvider;
   17.27 -
   17.28 -/**
   17.29 - * @author Vladimir Yaroslavskiy
   17.30 - * @version 2005.10.14
   17.31 - */
   17.32 -public final class TracerAccess {
   17.33 -
   17.34 -    private TracerAccess() {}
   17.35 -
   17.36 -    /**
   17.37 -     * Returns tracer for given context provider.
   17.38 -     * @param provider given provider
   17.39 -     * @return tracer for given context provider
   17.40 -     */
   17.41 -    public static Tracer getTracer(ContextProvider provider) {
   17.42 -      if (provider == null) {
   17.43 -        throw new IllegalArgumentException("Can't return tracer for null");// NOI18N
   17.44 -      }
   17.45 -      return getTracer ((Session) provider.lookupFirst(null, Session.class));
   17.46 -    }
   17.47 -
   17.48 -    /**
   17.49 -     * Returns tracer for given session.
   17.50 -     * @param session given session
   17.51 -     * @return tracer for given session
   17.52 -     */
   17.53 -    public static Tracer getTracer(Session session) {
   17.54 -        return getTracerFactory ().getTracer(session);
   17.55 -    }
   17.56 -
   17.57 -    private static TracerFactory getTracerFactory() {
   17.58 -        if (ourTracerFactory == null) {
   17.59 -            ourTracerFactory =
   17.60 -              (TracerFactory) DebuggerManager.getDebuggerManager().lookupFirst(
   17.61 -                null, TracerFactory.class
   17.62 -              );
   17.63 -            assert ourTracerFactory != null : "Can't find Tracer Factory"; // NOI18N
   17.64 -        }
   17.65 -        return ourTracerFactory;
   17.66 -    }
   17.67 -
   17.68 -    private static TracerFactory ourTracerFactory;
   17.69 -}
    18.1 --- a/bpel.debugger.api/src/org/netbeans/modules/bpel/debugger/api/TracerFactory.java	Fri Dec 29 11:53:50 2006 +0000
    18.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
    18.3 @@ -1,35 +0,0 @@
    18.4 -/*
    18.5 - * The contents of this file are subject to the terms of the Common Development
    18.6 - * and Distribution License (the License). You may not use this file except in
    18.7 - * compliance with the License.
    18.8 - *
    18.9 - * You can obtain a copy of the License at http://www.netbeans.org/cddl.html
   18.10 - * or http://www.netbeans.org/cddl.txt.
   18.11 -
   18.12 - * When distributing Covered Code, include this CDDL Header Notice in each file
   18.13 - * and include the License file at http://www.netbeans.org/cddl.txt.
   18.14 - * If applicable, add the following below the CDDL Header, with the fields
   18.15 - * enclosed by brackets [] replaced by your own identifying information:
   18.16 - * "Portions Copyrighted [year] [name of copyright owner]"
   18.17 - *
   18.18 - * The Original Software is NetBeans. The Initial Developer of the Original
   18.19 - * Software is Sun Microsystems, Inc. Portions Copyright 1997-2006 Sun
   18.20 - * Microsystems, Inc. All Rights Reserved.
   18.21 - */
   18.22 -package org.netbeans.modules.bpel.debugger.api;
   18.23 -
   18.24 -import org.netbeans.api.debugger.Session;
   18.25 -
   18.26 -/**
   18.27 - * @author Vladimir Yaroslavskiy
   18.28 - * @version 2005.11.29
   18.29 - */
   18.30 -public interface TracerFactory {
   18.31 -
   18.32 -    /**
   18.33 -     * Returns tracer for given session.
   18.34 -     * @param session given session
   18.35 -     * @return tracer for given session
   18.36 -     */
   18.37 -    Tracer getTracer(Session session);
   18.38 -}
    19.1 --- a/bpel.debugger.api/src/org/netbeans/modules/bpel/debugger/api/breakpoints/BpelBreakpoint.java	Fri Dec 29 11:53:50 2006 +0000
    19.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
    19.3 @@ -1,66 +0,0 @@
    19.4 -/*
    19.5 - * The contents of this file are subject to the terms of the Common Development
    19.6 - * and Distribution License (the License). You may not use this file except in
    19.7 - * compliance with the License.
    19.8 - *
    19.9 - * You can obtain a copy of the License at http://www.netbeans.org/cddl.html
   19.10 - * or http://www.netbeans.org/cddl.txt.
   19.11 -
   19.12 - * When distributing Covered Code, include this CDDL Header Notice in each file
   19.13 - * and include the License file at http://www.netbeans.org/cddl.txt.
   19.14 - * If applicable, add the following below the CDDL Header, with the fields
   19.15 - * enclosed by brackets [] replaced by your own identifying information:
   19.16 - * "Portions Copyrighted [year] [name of copyright owner]"
   19.17 - *
   19.18 - * The Original Software is NetBeans. The Initial Developer of the Original
   19.19 - * Software is Sun Microsystems, Inc. Portions Copyright 1997-2006 Sun
   19.20 - * Microsystems, Inc. All Rights Reserved.
   19.21 - */
   19.22 -
   19.23 -package org.netbeans.modules.bpel.debugger.api.breakpoints;
   19.24 -
   19.25 -import org.netbeans.api.debugger.Breakpoint;
   19.26 -
   19.27 -/**
   19.28 - *
   19.29 - * @author Alexander Zgursky
   19.30 - */
   19.31 -public class BpelBreakpoint extends Breakpoint {
   19.32 -
   19.33 -    private boolean                     myIsEnabled = true;
   19.34 -
   19.35 -    /** Creates a new instance of BpelBreakpoint. */
   19.36 -    public BpelBreakpoint() {
   19.37 -    }
   19.38 -
   19.39 -    /**
   19.40 -     * Test whether the breakpoint is enabled.
   19.41 -     *
   19.42 -     * @return <code>true</code> if so
   19.43 -     */
   19.44 -    public boolean isEnabled() {
   19.45 -        return myIsEnabled;
   19.46 -    }
   19.47 -
   19.48 -    /**
   19.49 -     * Disables the breakpoint.
   19.50 -     */
   19.51 -    public void disable() {
   19.52 -        if (!myIsEnabled) {
   19.53 -            return;
   19.54 -        }
   19.55 -        myIsEnabled = false;
   19.56 -        firePropertyChange(PROP_ENABLED, Boolean.TRUE, Boolean.FALSE);
   19.57 -    }
   19.58 -    
   19.59 -    /**
   19.60 -     * Enables the breakpoint.
   19.61 -     */
   19.62 -    public void enable() {
   19.63 -        if (myIsEnabled) {
   19.64 -            return;
   19.65 -        }
   19.66 -        myIsEnabled = true;
   19.67 -        firePropertyChange(PROP_ENABLED, Boolean.FALSE, Boolean.TRUE);
   19.68 -    }
   19.69 -}
    20.1 --- a/bpel.debugger.api/src/org/netbeans/modules/bpel/debugger/api/breakpoints/LineBreakpoint.java	Fri Dec 29 11:53:50 2006 +0000
    20.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
    20.3 @@ -1,121 +0,0 @@
    20.4 -/*
    20.5 - * The contents of this file are subject to the terms of the Common Development
    20.6 - * and Distribution License (the License). You may not use this file except in
    20.7 - * compliance with the License.
    20.8 - *
    20.9 - * You can obtain a copy of the License at http://www.netbeans.org/cddl.html
   20.10 - * or http://www.netbeans.org/cddl.txt.
   20.11 -
   20.12 - * When distributing Covered Code, include this CDDL Header Notice in each file
   20.13 - * and include the License file at http://www.netbeans.org/cddl.txt.
   20.14 - * If applicable, add the following below the CDDL Header, with the fields
   20.15 - * enclosed by brackets [] replaced by your own identifying information:
   20.16 - * "Portions Copyrighted [year] [name of copyright owner]"
   20.17 - *
   20.18 - * The Original Software is NetBeans. The Initial Developer of the Original
   20.19 - * Software is Sun Microsystems, Inc. Portions Copyright 1997-2006 Sun
   20.20 - * Microsystems, Inc. All Rights Reserved.
   20.21 - */
   20.22 -
   20.23 -package org.netbeans.modules.bpel.debugger.api.breakpoints;
   20.24 -
   20.25 -/**
   20.26 - *
   20.27 - * @author Alexander Zgursky
   20.28 - */
   20.29 -public final class LineBreakpoint extends BpelBreakpoint implements Comparable {
   20.30 -
   20.31 -    /** Property name constant. */
   20.32 -    public static final String PROP_LINE_NUMBER = "lineNumber"; // NOI18N
   20.33 -    /** Property name constant. */
   20.34 -    public static final String PROP_URL = "url"; // NOI18N
   20.35 -    /** Property name constant. */
   20.36 -    public static final String PROP_XPATH = "xpath"; // NOI18N
   20.37 -
   20.38 -    private String myUrl;
   20.39 -    private String myXpath;
   20.40 -
   20.41 -    private LineBreakpoint() {
   20.42 -    }
   20.43 -
   20.44 -    public static LineBreakpoint create(
   20.45 -            String url,
   20.46 -            String xpath)
   20.47 -    {
   20.48 -        LineBreakpoint b = new LineBreakpoint();
   20.49 -        b.setURL(url);
   20.50 -        b.setXpath(xpath);
   20.51 -        return b;
   20.52 -    }
   20.53 -
   20.54 -    /**
   20.55 -     * Gets full path of a source file to stop on.
   20.56 -     *
   20.57 -     * @return full path of a source file to stop on
   20.58 -     */
   20.59 -    public String getURL() {
   20.60 -        return myUrl;
   20.61 -    }
   20.62 -
   20.63 -    /**
   20.64 -     * Sets full path of a source file to stop on.
   20.65 -     *
   20.66 -     * @param newUrl full path of a source file to stop on
   20.67 -     */
   20.68 -    public void setURL(String newUrl) {
   20.69 -        String oldUrl = myUrl;
   20.70 -        myUrl = newUrl;
   20.71 -        firePropertyChange(PROP_URL, oldUrl, newUrl);
   20.72 -    }
   20.73 -
   20.74 -    /**
   20.75 -     * Gets line number to stop on.
   20.76 -     *
   20.77 -     * @return line number to stop on
   20.78 -     */
   20.79 -    public int getLineNumber() {
   20.80 -//        return myLineNumber;
   20.81 -        return -1;
   20.82 -    }
   20.83 -
   20.84 -    public void setXpath(String newXpath) {
   20.85 -        String oldXpath = myXpath;
   20.86 -        myXpath = newXpath;
   20.87 -        firePropertyChange(PROP_XPATH, oldXpath, newXpath);
   20.88 -    }
   20.89 -    
   20.90 -    public String getXpath() {
   20.91 -        return myXpath;
   20.92 -    }
   20.93 -    
   20.94 -    //TODO:remove this method sometimes: it's a hack to notify the views
   20.95 -    //that the information, associated with the breakpoint has changed
   20.96 -    /**
   20.97 -     * Notify all the property change listeners
   20.98 -     * about "change"
   20.99 -     */
  20.100 -    public void touch() {
  20.101 -        firePropertyChange(null, null, null);
  20.102 -    }
  20.103 -
  20.104 -    public String toString() {
  20.105 -        return "LineBreakpoint " + myUrl + " : " + myXpath; // NOI18N
  20.106 -    }
  20.107 -
  20.108 -    public int compareTo(Object o) {
  20.109 -        if (o instanceof LineBreakpoint) {
  20.110 -            LineBreakpoint lbthis = this;
  20.111 -            LineBreakpoint lb = (LineBreakpoint) o;
  20.112 -            int uc = getURL().compareTo(lb.getURL());
  20.113 -            if (uc != 0) {
  20.114 -                return uc;
  20.115 -            } else {
  20.116 -                return getXpath().compareTo(lb.getXpath());
  20.117 -            }
  20.118 -        } else {
  20.119 -            //TODO: is this comply with Comparable interface contract?
  20.120 -            //shouldn't we guarantee that a>b => b<a ?
  20.121 -            return -1;
  20.122 -        }
  20.123 -    }
  20.124 -}
    21.1 --- a/bpel.debugger.api/src/org/netbeans/modules/bpel/debugger/api/breakpoints/package.html	Fri Dec 29 11:53:50 2006 +0000
    21.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
    21.3 @@ -1,14 +0,0 @@
    21.4 -<!DOCTYPE doctype PUBLIC "-//w3c//dtd html 4.0 transitional//en">
    21.5 -<html>
    21.6 -<head>
    21.7 -  <meta http-equiv="Content-Type"
    21.8 - content="text/html; charset=iso-8859-1">
    21.9 -  <meta name="GENERATOR"
   21.10 - content="Mozilla/4.76 [en] (Windows NT 5.0; U) [Netscape]">
   21.11 -  <title>package</title>
   21.12 -
   21.13 -</head>
   21.14 -<body>
   21.15 -Contains breakpoints definitions to be used with BPEL Debugger.<br>
   21.16 -</body>
   21.17 -</html>
    22.1 --- a/bpel.debugger.api/src/org/netbeans/modules/bpel/debugger/api/package.html	Fri Dec 29 11:53:50 2006 +0000
    22.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
    22.3 @@ -1,14 +0,0 @@
    22.4 -<!DOCTYPE doctype PUBLIC "-//w3c//dtd html 4.0 transitional//en">
    22.5 -<html>
    22.6 -<head>
    22.7 -  <meta http-equiv="Content-Type"
    22.8 - content="text/html; charset=iso-8859-1">
    22.9 -  <meta name="GENERATOR"
   22.10 - content="Mozilla/4.76 [en] (Windows NT 5.0; U) [Netscape]">
   22.11 -  <title>package</title>
   22.12 -
   22.13 -</head>
   22.14 -<body>
   22.15 -The NetBeans BPEL Debugger API definition.<br>
   22.16 -</body>
   22.17 -</html>
    23.1 --- a/bpel.debugger.api/src/org/netbeans/modules/bpel/debugger/api/resources/Bundle.properties	Fri Dec 29 11:53:50 2006 +0000
    23.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
    23.3 @@ -1,23 +0,0 @@
    23.4 -#
    23.5 -# The contents of this file are subject to the terms of the Common Development
    23.6 -# and Distribution License (the License). You may not use this file except in
    23.7 -# compliance with the License.
    23.8 -#
    23.9 -# You can obtain a copy of the License at http://www.netbeans.org/cddl.html
   23.10 -# or http://www.netbeans.org/cddl.txt.
   23.11 -#
   23.12 -# When distributing Covered Code, include this CDDL Header Notice in each file
   23.13 -# and include the License file at http://www.netbeans.org/cddl.txt.
   23.14 -# If applicable, add the following below the CDDL Header, with the fields
   23.15 -# enclosed by brackets [] replaced by your own identifying information:
   23.16 -# "Portions Copyrighted [year] [name of copyright owner]"
   23.17 -#
   23.18 -# The Original Software is NetBeans. The Initial Developer of the Original
   23.19 -# Software is Sun Microsystems, Inc. Portions Copyright 1997-2006 Sun
   23.20 -# Microsystems, Inc. All Rights Reserved.
   23.21 -
   23.22 -# manifest
   23.23 -OpenIDE-Module-Name=BPEL Debugger API
   23.24 -OpenIDE-Module-Display-Category=Service-Oriented Architecture
   23.25 -OpenIDE-Module-Short-Description=Enables debugging on BPEL files.
   23.26 -OpenIDE-Module-Long-Description=The BPEL Debugger module allows user to debug BPEL files.
    24.1 --- a/bpel.debugger.api/src/org/netbeans/modules/bpel/debugger/spi/EditorContext.java	Fri Dec 29 11:53:50 2006 +0000
    24.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
    24.3 @@ -1,77 +0,0 @@
    24.4 -/*
    24.5 - * The contents of this file are subject to the terms of the Common Development
    24.6 - * and Distribution License (the License). You may not use this file except in
    24.7 - * compliance with the License.
    24.8 - *
    24.9 - * You can obtain a copy of the License at http://www.netbeans.org/cddl.html
   24.10 - * or http://www.netbeans.org/cddl.txt.
   24.11 -
   24.12 - * When distributing Covered Code, include this CDDL Header Notice in each file
   24.13 - * and include the License file at http://www.netbeans.org/cddl.txt.
   24.14 - * If applicable, add the following below the CDDL Header, with the fields
   24.15 - * enclosed by brackets [] replaced by your own identifying information:
   24.16 - * "Portions Copyrighted [year] [name of copyright owner]"
   24.17 - *
   24.18 - * The Original Software is NetBeans. The Initial Developer of the Original
   24.19 - * Software is Sun Microsystems, Inc. Portions Copyright 1997-2006 Sun
   24.20 - * Microsystems, Inc. All Rights Reserved.
   24.21 - */
   24.22 -
   24.23 -package org.netbeans.modules.bpel.debugger.spi;
   24.24 -
   24.25 -import java.beans.PropertyChangeListener;
   24.26 -import javax.xml.namespace.QName;
   24.27 -import org.netbeans.modules.bpel.debugger.api.AnnotationType;
   24.28 -import org.netbeans.modules.bpel.debugger.api.Position;
   24.29 -
   24.30 -/**
   24.31 - * @author Alexander Zgursky
   24.32 - */
   24.33 -public interface EditorContext {
   24.34 -
   24.35 -    /**
   24.36 -     * Opens given file (url) in the editor and navigates to the given position.
   24.37 -     *
   24.38 -     * @param url full path to the source file to show
   24.39 -     * @param xpath xpath of the bpel element to navigate to
   24.40 -     *
   24.41 -     * @return true if succeeded to show the source or false otherwise
   24.42 -     */
   24.43 -    boolean showSource(String url, String xpath);
   24.44 -    
   24.45 -    /**
   24.46 -     * Annotates the bpel element identified by the given xpath in the given
   24.47 -     * file (url) with the given annotation type.
   24.48 -     *
   24.49 -     * @param url full path to the source file to add annotation for
   24.50 -     * @param xpath annotation position
   24.51 -     * @param annotationType annotation type
   24.52 -     *
   24.53 -     * @return a reference to the created annotation object. This object should
   24.54 -     *         be supplied as a parameter to subsequent
   24.55 -     *         {@link #removeAnnotation} call
   24.56 -     */
   24.57 -    Object annotate(String url, String xpath, AnnotationType annotationType);
   24.58 -
   24.59 -    /**
   24.60 -     * Removes the given annotation.
   24.61 -     *
   24.62 -     * @param annotation a reference to the annotation object that is returned
   24.63 -     *                   from {@link #annotate} method
   24.64 -     */
   24.65 -    void removeAnnotation(Object annotation);
   24.66 -    
   24.67 -    String getXpath(Object annotation);
   24.68 -    
   24.69 -    QName getProcessQName(String url);
   24.70 -    
   24.71 -    /**
   24.72 -     * Returns the more appropriate line number for the
   24.73 -     * given the url and line number.
   24.74 -     */
   24.75 -    int translateBreakpointLine(String url, int lineNumber);
   24.76 -    
   24.77 -    public void addAnnotationListener(Object annotation, PropertyChangeListener l);
   24.78 -    
   24.79 -    public void removeAnnotationListener(Object annotation, PropertyChangeListener l);
   24.80 -}
    25.1 --- a/bpel.debugger.api/src/org/netbeans/modules/bpel/debugger/spi/package.html	Fri Dec 29 11:53:50 2006 +0000
    25.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
    25.3 @@ -1,17 +0,0 @@
    25.4 -<!DOCTYPE doctype PUBLIC "-//w3c//dtd html 4.0 transitional//en">
    25.5 -<html>
    25.6 -<head>
    25.7 -  <meta http-equiv="Content-Type"
    25.8 - content="text/html; charset=iso-8859-1">
    25.9 -  <meta name="GENERATOR"
   25.10 - content="Mozilla/4.76 [en] (Windows NT 5.0; U) [Netscape]">
   25.11 -  <title>package</title>
   25.12 -
   25.13 -</head>
   25.14 -<body>
   25.15 -The NetBeans BPEL Debugger SPI definition defines interface to BPEL Debugger
   25.16 -Plug-ins and services.<br>
   25.17 -<h2>Registration</h2>
   25.18 -See Debugger Core SPI documentation.
   25.19 -</body>
   25.20 -</html>
    26.1 --- a/bpel.debugger.api/src/org/netbeans/modules/bpel/debugger/spi/plugin/BpelDebuggerPlugin.java	Fri Dec 29 11:53:50 2006 +0000
    26.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
    26.3 @@ -1,42 +0,0 @@
    26.4 -/*
    26.5 - * The contents of this file are subject to the terms of the Common Development
    26.6 - * and Distribution License (the License). You may not use this file except in
    26.7 - * compliance with the License.
    26.8 - *
    26.9 - * You can obtain a copy of the License at http://www.netbeans.org/cddl.html
   26.10 - * or http://www.netbeans.org/cddl.txt.
   26.11 -
   26.12 - * When distributing Covered Code, include this CDDL Header Notice in each file
   26.13 - * and include the License file at http://www.netbeans.org/cddl.txt.
   26.14 - * If applicable, add the following below the CDDL Header, with the fields
   26.15 - * enclosed by brackets [] replaced by your own identifying information:
   26.16 - * "Portions Copyrighted [year] [name of copyright owner]"
   26.17 - *
   26.18 - * The Original Software is NetBeans. The Initial Developer of the Original
   26.19 - * Software is Sun Microsystems, Inc. Portions Copyright 1997-2006 Sun
   26.20 - * Microsystems, Inc. All Rights Reserved.
   26.21 - */
   26.22 -
   26.23 -package org.netbeans.modules.bpel.debugger.spi.plugin;
   26.24 -
   26.25 -import java.util.Properties;
   26.26 -import org.netbeans.modules.bpel.debugger.spi.plugin.Connector;
   26.27 -
   26.28 -/**
   26.29 - * The main entry point for the BPEL Debugger Plug-in functionality.
   26.30 - * Implementations of this interface should be registered by putting
   26.31 - * a file with the name
   26.32 - * org.netbeans.modules.bpel.debugger.spi.plugin.BpelDebuggerPlugin
   26.33 - * to the META-INF/debugger folder. This file should contain a single line
   26.34 - * with the full name of the implementation class .
   26.35 - *
   26.36 - * @author Alexander Zgursky
   26.37 - */
   26.38 -public interface BpelDebuggerPlugin {
   26.39 -    /**
   26.40 -     * Returns an identifier for the Bpel Debugger Plugin implementation.
   26.41 -     */
   26.42 -    String getName();
   26.43 -    String getLabel();
   26.44 -    Connector getConnector();
   26.45 -}
    27.1 --- a/bpel.debugger.api/src/org/netbeans/modules/bpel/debugger/spi/plugin/BpelEngine.java	Fri Dec 29 11:53:50 2006 +0000
    27.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
    27.3 @@ -1,56 +0,0 @@
    27.4 -/*
    27.5 - * The contents of this file are subject to the terms of the Common Development
    27.6 - * and Distribution License (the License). You may not use this file except in
    27.7 - * compliance with the License.
    27.8 - *
    27.9 - * You can obtain a copy of the License at http://www.netbeans.org/cddl.html
   27.10 - * or http://www.netbeans.org/cddl.txt.
   27.11 -
   27.12 - * When distributing Covered Code, include this CDDL Header Notice in each file
   27.13 - * and include the License file at http://www.netbeans.org/cddl.txt.
   27.14 - * If applicable, add the following below the CDDL Header, with the fields
   27.15 - * enclosed by brackets [] replaced by your own identifying information:
   27.16 - * "Portions Copyrighted [year] [name of copyright owner]"
   27.17 - *
   27.18 - * The Original Software is NetBeans. The Initial Developer of the Original
   27.19 - * Software is Sun Microsystems, Inc. Portions Copyright 1997-2006 Sun
   27.20 - * Microsystems, Inc. All Rights Reserved.
   27.21 - */
   27.22 -
   27.23 -package org.netbeans.modules.bpel.debugger.spi.plugin;
   27.24 -
   27.25 -import java.util.List;
   27.26 -import java.util.Properties;
   27.27 -import org.netbeans.modules.bpel.debugger.spi.plugin.def.ProcessType;
   27.28 -import org.netbeans.modules.bpel.debugger.spi.plugin.event.EventQueue;
   27.29 -import org.netbeans.modules.bpel.debugger.spi.plugin.exec.ProcessInstance;
   27.30 -import org.netbeans.modules.bpel.debugger.spi.plugin.request.EventRequestManager;
   27.31 -
   27.32 -/**
   27.33 - * Represents a target BPEL Engine.
   27.34 - *
   27.35 - * @author Alexander Zgursky
   27.36 - */
   27.37 -public interface BpelEngine {
   27.38 -    List<ProcessInstance> getAllProcessInstances();
   27.39 -    List<ProcessInstance> getProcessInstancesByType(ProcessType processType);
   27.40 -    List<ProcessType> getAllProcessTypes();
   27.41 -    List<ProcessType> getProcessTypesByName(String name, String namespace);
   27.42 -    
   27.43 -    /**
   27.44 -     * Returns the event queue for this BPEL Engine.
   27.45 -     * A BPEL Engine has only one EventQueue object,
   27.46 -     * this method will return the same instance each time it is invoked.
   27.47 -     */
   27.48 -    EventQueue getEventQueue();
   27.49 -    
   27.50 -    /**
   27.51 -     * Returns the event request manager for this BPEL Engine.
   27.52 -     * The EventRequestManager controls user settable events such as
   27.53 -     * breakpoints. A BPEL Engine has only one EventRequestManager object,
   27.54 -     * this method will return the same instance each time it is invoked.
   27.55 -     */
   27.56 -    EventRequestManager getEventRequestManager();
   27.57 -    void resumeAllProcessInstances();
   27.58 -    void disconnect();
   27.59 -}
    28.1 --- a/bpel.debugger.api/src/org/netbeans/modules/bpel/debugger/spi/plugin/BpelEngineDisconnectedException.java	Fri Dec 29 11:53:50 2006 +0000
    28.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
    28.3 @@ -1,42 +0,0 @@
    28.4 -/*
    28.5 - * The contents of this file are subject to the terms of the Common Development
    28.6 - * and Distribution License (the License). You may not use this file except in
    28.7 - * compliance with the License.
    28.8 - *
    28.9 - * You can obtain a copy of the License at http://www.netbeans.org/cddl.html
   28.10 - * or http://www.netbeans.org/cddl.txt.
   28.11 -
   28.12 - * When distributing Covered Code, include this CDDL Header Notice in each file
   28.13 - * and include the License file at http://www.netbeans.org/cddl.txt.
   28.14 - * If applicable, add the following below the CDDL Header, with the fields
   28.15 - * enclosed by brackets [] replaced by your own identifying information:
   28.16 - * "Portions Copyrighted [year] [name of copyright owner]"
   28.17 - *
   28.18 - * The Original Software is NetBeans. The Initial Developer of the Original
   28.19 - * Software is Sun Microsystems, Inc. Portions Copyright 1997-2006 Sun
   28.20 - * Microsystems, Inc. All Rights Reserved.
   28.21 - */
   28.22 -
   28.23 -package org.netbeans.modules.bpel.debugger.spi.plugin;
   28.24 -
   28.25 -/**
   28.26 - *
   28.27 - * @author Alexander Zgursky
   28.28 - */
   28.29 -public class BpelEngineDisconnectedException extends RuntimeException {
   28.30 -    public static final long serialVersionUID = 0L;
   28.31 -
   28.32 -    /**
   28.33 -     * Creates a new instance of BpelEngineDisconnectedException.
   28.34 -     */
   28.35 -    public BpelEngineDisconnectedException() {
   28.36 -    }
   28.37 -
   28.38 -    /**
   28.39 -     * Creates a new instance of BpelEngineDisconnectedException.
   28.40 -     */
   28.41 -    public BpelEngineDisconnectedException(String message) {
   28.42 -        super(message);
   28.43 -
   28.44 -    }
   28.45 -}
    29.1 --- a/bpel.debugger.api/src/org/netbeans/modules/bpel/debugger/spi/plugin/BpelEngineInternalException.java	Fri Dec 29 11:53:50 2006 +0000
    29.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
    29.3 @@ -1,55 +0,0 @@
    29.4 -/*
    29.5 - * The contents of this file are subject to the terms of the Common Development
    29.6 - * and Distribution License (the License). You may not use this file except in
    29.7 - * compliance with the License.
    29.8 - *
    29.9 - * You can obtain a copy of the License at http://www.netbeans.org/cddl.html
   29.10 - * or http://www.netbeans.org/cddl.txt.
   29.11 -
   29.12 - * When distributing Covered Code, include this CDDL Header Notice in each file
   29.13 - * and include the License file at http://www.netbeans.org/cddl.txt.
   29.14 - * If applicable, add the following below the CDDL Header, with the fields
   29.15 - * enclosed by brackets [] replaced by your own identifying information:
   29.16 - * "Portions Copyrighted [year] [name of copyright owner]"
   29.17 - *
   29.18 - * The Original Software is NetBeans. The Initial Developer of the Original
   29.19 - * Software is Sun Microsystems, Inc. Portions Copyright 1997-2006 Sun
   29.20 - * Microsystems, Inc. All Rights Reserved.
   29.21 - */
   29.22 -
   29.23 -package org.netbeans.modules.bpel.debugger.spi.plugin;
   29.24 -
   29.25 -/**
   29.26 - *
   29.27 - * @author Alexander Zgursky
   29.28 - */
   29.29 -public class BpelEngineInternalException extends RuntimeException {
   29.30 -    public static final long serialVersionUID = 0L;
   29.31 -
   29.32 -    /**
   29.33 -     * Creates a new instance of BpelEngineInternalException.
   29.34 -     */
   29.35 -    public BpelEngineInternalException() {
   29.36 -    }
   29.37 -
   29.38 -    /**
   29.39 -     * Creates a new instance of BpelEngineInternalException.
   29.40 -     */
   29.41 -    public BpelEngineInternalException(String message) {
   29.42 -        super(message);
   29.43 -    }
   29.44 -
   29.45 -    /**
   29.46 -     * Creates a new instance of BpelEngineInternalException.
   29.47 -     */
   29.48 -    public BpelEngineInternalException(Throwable cause) {
   29.49 -        super(cause);
   29.50 -    }
   29.51 -    
   29.52 -    /**
   29.53 -     * Creates a new instance of BpelEngineInternalException.
   29.54 -     */
   29.55 -    public BpelEngineInternalException(String message, Throwable cause) {
   29.56 -        super(message, cause);
   29.57 -    }
   29.58 -}
    30.1 --- a/bpel.debugger.api/src/org/netbeans/modules/bpel/debugger/spi/plugin/BpelEngineMismatchException.java	Fri Dec 29 11:53:50 2006 +0000
    30.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
    30.3 @@ -1,37 +0,0 @@
    30.4 -/*
    30.5 - * The contents of this file are subject to the terms of the Common Development
    30.6 - * and Distribution License (the License). You may not use this file except in
    30.7 - * compliance with the License.
    30.8 - *
    30.9 - * You can obtain a copy of the License at http://www.netbeans.org/cddl.html
   30.10 - * or http://www.netbeans.org/cddl.txt.
   30.11 -
   30.12 - * When distributing Covered Code, include this CDDL Header Notice in each file
   30.13 - * and include the License file at http://www.netbeans.org/cddl.txt.
   30.14 - * If applicable, add the following below the CDDL Header, with the fields
   30.15 - * enclosed by brackets [] replaced by your own identifying information:
   30.16 - * "Portions Copyrighted [year] [name of copyright owner]"
   30.17 - *
   30.18 - * The Original Software is NetBeans. The Initial Developer of the Original
   30.19 - * Software is Sun Microsystems, Inc. Portions Copyright 1997-2006 Sun
   30.20 - * Microsystems, Inc. All Rights Reserved.
   30.21 - */
   30.22 -
   30.23 -package org.netbeans.modules.bpel.debugger.spi.plugin;
   30.24 -
   30.25 -/**
   30.26 - *
   30.27 - * @author Alexander Zgursky
   30.28 - */
   30.29 -public class BpelEngineMismatchException extends RuntimeException {
   30.30 -    public static final long serialVersionUID = 0L;
   30.31 -
   30.32 -    /** Creates a new instance of BpelEngineMismatchException. */
   30.33 -    public BpelEngineMismatchException() {
   30.34 -    }
   30.35 -
   30.36 -    /** Creates a new instance of BpelEngineMismatchException. */
   30.37 -    public BpelEngineMismatchException(String message) {
   30.38 -        super(message);
   30.39 -    }
   30.40 -}
    31.1 --- a/bpel.debugger.api/src/org/netbeans/modules/bpel/debugger/spi/plugin/Connector.java	Fri Dec 29 11:53:50 2006 +0000
    31.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
    31.3 @@ -1,43 +0,0 @@
    31.4 -/*
    31.5 - * The contents of this file are subject to the terms of the Common Development
    31.6 - * and Distribution License (the License). You may not use this file except in
    31.7 - * compliance with the License.
    31.8 - *
    31.9 - * You can obtain a copy of the License at http://www.netbeans.org/cddl.html
   31.10 - * or http://www.netbeans.org/cddl.txt.
   31.11 -
   31.12 - * When distributing Covered Code, include this CDDL Header Notice in each file
   31.13 - * and include the License file at http://www.netbeans.org/cddl.txt.
   31.14 - * If applicable, add the following below the CDDL Header, with the fields
   31.15 - * enclosed by brackets [] replaced by your own identifying information:
   31.16 - * "Portions Copyrighted [year] [name of copyright owner]"
   31.17 - *
   31.18 - * The Original Software is NetBeans. The Initial Developer of the Original
   31.19 - * Software is Sun Microsystems, Inc. Portions Copyright 1997-2006 Sun
   31.20 - * Microsystems, Inc. All Rights Reserved.
   31.21 - */
   31.22 -
   31.23 -package org.netbeans.modules.bpel.debugger.spi.plugin;
   31.24 -
   31.25 -import java.io.IOException;
   31.26 -import java.util.Map;
   31.27 -
   31.28 -/**
   31.29 - *
   31.30 - * @author Alexander Zgursky
   31.31 - */
   31.32 -public interface Connector {
   31.33 -    Map<String, Argument> getDefaultArguments();
   31.34 -    BpelEngine attach(Map<String, Argument> arguments)
   31.35 -            throws IllegalConnectorArgumentsException, IOException;
   31.36 -
   31.37 -    interface Argument {
   31.38 -        String getName();
   31.39 -        String getLabel();
   31.40 -        String getDescription();
   31.41 -        boolean isValueValid(String value);
   31.42 -        boolean isRequired();
   31.43 -        void setValue(String value);
   31.44 -        String getValue();
   31.45 -    }
   31.46 -}
    32.1 --- a/bpel.debugger.api/src/org/netbeans/modules/bpel/debugger/spi/plugin/IllegalConnectorArgumentsException.java	Fri Dec 29 11:53:50 2006 +0000
    32.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
    32.3 @@ -1,57 +0,0 @@
    32.4 -/*
    32.5 - * The contents of this file are subject to the terms of the Common Development
    32.6 - * and Distribution License (the License). You may not use this file except in
    32.7 - * compliance with the License.
    32.8 - *
    32.9 - * You can obtain a copy of the License at http://www.netbeans.org/cddl.html
   32.10 - * or http://www.netbeans.org/cddl.txt.
   32.11 -
   32.12 - * When distributing Covered Code, include this CDDL Header Notice in each file
   32.13 - * and include the License file at http://www.netbeans.org/cddl.txt.
   32.14 - * If applicable, add the following below the CDDL Header, with the fields
   32.15 - * enclosed by brackets [] replaced by your own identifying information:
   32.16 - * "Portions Copyrighted [year] [name of copyright owner]"
   32.17 - *
   32.18 - * The Original Software is NetBeans. The Initial Developer of the Original
   32.19 - * Software is Sun Microsystems, Inc. Portions Copyright 1997-2006 Sun
   32.20 - * Microsystems, Inc. All Rights Reserved.
   32.21 - */
   32.22 -
   32.23 -package org.netbeans.modules.bpel.debugger.spi.plugin;
   32.24 -
   32.25 -import java.util.Arrays;
   32.26 -import java.util.List;
   32.27 -
   32.28 -/**
   32.29 - *
   32.30 - * @author Alexander Zgursky
   32.31 - */
   32.32 -public class IllegalConnectorArgumentsException extends Exception {
   32.33 -    public static final long serialVersionUID = 0L;
   32.34 -
   32.35 -    private List<String> argumentNames;
   32.36 -
   32.37 -    /**
   32.38 -     * Creates a new instance of IllegalConnectorArgumentsException.
   32.39 -     */
   32.40 -    public IllegalConnectorArgumentsException(
   32.41 -            String message, List<String> argNames)
   32.42 -    {
   32.43 -        super(message);
   32.44 -        argumentNames = argNames;
   32.45 -    }
   32.46 -    
   32.47 -    /**
   32.48 -     * Creates a new instance of IllegalConnectorArgumentsException.
   32.49 -     */
   32.50 -    public IllegalConnectorArgumentsException(
   32.51 -            String message, String argName)
   32.52 -    {
   32.53 -        super(message);
   32.54 -        argumentNames = Arrays.asList(argName);
   32.55 -    }
   32.56 -    
   32.57 -    public List<String> getArgumentNames() {
   32.58 -        return argumentNames;
   32.59 -    }
   32.60 -}
    33.1 --- a/bpel.debugger.api/src/org/netbeans/modules/bpel/debugger/spi/plugin/IncompatibleProcessInstanceStateException.java	Fri Dec 29 11:53:50 2006 +0000
    33.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
    33.3 @@ -1,37 +0,0 @@
    33.4 -/*
    33.5 - * The contents of this file are subject to the terms of the Common Development
    33.6 - * and Distribution License (the License). You may not use this file except in
    33.7 - * compliance with the License.
    33.8 - *
    33.9 - * You can obtain a copy of the License at http://www.netbeans.org/cddl.html
   33.10 - * or http://www.netbeans.org/cddl.txt.
   33.11 -
   33.12 - * When distributing Covered Code, include this CDDL Header Notice in each file
   33.13 - * and include the License file at http://www.netbeans.org/cddl.txt.
   33.14 - * If applicable, add the following below the CDDL Header, with the fields
   33.15 - * enclosed by brackets [] replaced by your own identifying information:
   33.16 - * "Portions Copyrighted [year] [name of copyright owner]"
   33.17 - *
   33.18 - * The Original Software is NetBeans. The Initial Developer of the Original
   33.19 - * Software is Sun Microsystems, Inc. Portions Copyright 1997-2006 Sun
   33.20 - * Microsystems, Inc. All Rights Reserved.
   33.21 - */
   33.22 -
   33.23 -package org.netbeans.modules.bpel.debugger.spi.plugin;
   33.24 -
   33.25 -/**
   33.26 - *
   33.27 - * @author Alexander Zgursky
   33.28 - */
   33.29 -public class IncompatibleProcessInstanceStateException extends RuntimeException {
   33.30 -    public static final long serialVersionUID = 0L;
   33.31 -
   33.32 -    /** Creates a new instance of IncompatibleProcessInstanceStateException. */
   33.33 -    public IncompatibleProcessInstanceStateException() {
   33.34 -    }
   33.35 -
   33.36 -    /** Creates a new instance of IncompatibleProcessInstanceStateException. */
   33.37 -    public IncompatibleProcessInstanceStateException(String message) {
   33.38 -        super(message);
   33.39 -    }
   33.40 -}
    34.1 --- a/bpel.debugger.api/src/org/netbeans/modules/bpel/debugger/spi/plugin/InvalidPositionException.java	Fri Dec 29 11:53:50 2006 +0000
    34.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
    34.3 @@ -1,37 +0,0 @@
    34.4 -/*
    34.5 - * The contents of this file are subject to the terms of the Common Development
    34.6 - * and Distribution License (the License). You may not use this file except in
    34.7 - * compliance with the License.
    34.8 - *
    34.9 - * You can obtain a copy of the License at http://www.netbeans.org/cddl.html
   34.10 - * or http://www.netbeans.org/cddl.txt.
   34.11 -
   34.12 - * When distributing Covered Code, include this CDDL Header Notice in each file
   34.13 - * and include the License file at http://www.netbeans.org/cddl.txt.
   34.14 - * If applicable, add the following below the CDDL Header, with the fields
   34.15 - * enclosed by brackets [] replaced by your own identifying information:
   34.16 - * "Portions Copyrighted [year] [name of copyright owner]"
   34.17 - *
   34.18 - * The Original Software is NetBeans. The Initial Developer of the Original
   34.19 - * Software is Sun Microsystems, Inc. Portions Copyright 1997-2006 Sun
   34.20 - * Microsystems, Inc. All Rights Reserved.
   34.21 - */
   34.22 -
   34.23 -package org.netbeans.modules.bpel.debugger.spi.plugin;
   34.24 -
   34.25 -/**
   34.26 - *
   34.27 - * @author Alexander Zgursky
   34.28 - */
   34.29 -public class InvalidPositionException extends Exception {
   34.30 -    public static final long serialVersionUID = 0L;
   34.31 -
   34.32 -    /** Creates a new instance of InvalidPositionException. */
   34.33 -    public InvalidPositionException() {
   34.34 -    }
   34.35 -
   34.36 -    /** Creates a new instance of InvalidPositionException. */
   34.37 -    public InvalidPositionException(String message) {
   34.38 -        super(message);
   34.39 -    }
   34.40 -}
    35.1 --- a/bpel.debugger.api/src/org/netbeans/modules/bpel/debugger/spi/plugin/InvalidProcessInstanceException.java	Fri Dec 29 11:53:50 2006 +0000
    35.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
    35.3 @@ -1,37 +0,0 @@
    35.4 -/*
    35.5 - * The contents of this file are subject to the terms of the Common Development
    35.6 - * and Distribution License (the License). You may not use this file except in
    35.7 - * compliance with the License.
    35.8 - *
    35.9 - * You can obtain a copy of the License at http://www.netbeans.org/cddl.html
   35.10 - * or http://www.netbeans.org/cddl.txt.
   35.11 -
   35.12 - * When distributing Covered Code, include this CDDL Header Notice in each file
   35.13 - * and include the License file at http://www.netbeans.org/cddl.txt.
   35.14 - * If applicable, add the following below the CDDL Header, with the fields
   35.15 - * enclosed by brackets [] replaced by your own identifying information:
   35.16 - * "Portions Copyrighted [year] [name of copyright owner]"
   35.17 - *
   35.18 - * The Original Software is NetBeans. The Initial Developer of the Original
   35.19 - * Software is Sun Microsystems, Inc. Portions Copyright 1997-2006 Sun
   35.20 - * Microsystems, Inc. All Rights Reserved.
   35.21 - */
   35.22 -
   35.23 -package org.netbeans.modules.bpel.debugger.spi.plugin;
   35.24 -
   35.25 -/**
   35.26 - *
   35.27 - * @author Alexander Zgursky
   35.28 - */
   35.29 -public class InvalidProcessInstanceException extends RuntimeException {
   35.30 -    public static final long serialVersionUID = 0L;
   35.31 -
   35.32 -    /** Creates a new instance of InvalidProcessInstanceException. */
   35.33 -    public InvalidProcessInstanceException() {
   35.34 -    }
   35.35 -
   35.36 -    /** Creates a new instance of InvalidProcessInstanceException. */
   35.37 -    public InvalidProcessInstanceException(String message) {
   35.38 -        super(message);
   35.39 -    }
   35.40 -}
    36.1 --- a/bpel.debugger.api/src/org/netbeans/modules/bpel/debugger/spi/plugin/InvalidProcessTypeException.java	Fri Dec 29 11:53:50 2006 +0000
    36.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
    36.3 @@ -1,37 +0,0 @@
    36.4 -/*
    36.5 - * The contents of this file are subject to the terms of the Common Development
    36.6 - * and Distribution License (the License). You may not use this file except in
    36.7 - * compliance with the License.
    36.8 - *
    36.9 - * You can obtain a copy of the License at http://www.netbeans.org/cddl.html
   36.10 - * or http://www.netbeans.org/cddl.txt.
   36.11 -
   36.12 - * When distributing Covered Code, include this CDDL Header Notice in each file
   36.13 - * and include the License file at http://www.netbeans.org/cddl.txt.
   36.14 - * If applicable, add the following below the CDDL Header, with the fields
   36.15 - * enclosed by brackets [] replaced by your own identifying information:
   36.16 - * "Portions Copyrighted [year] [name of copyright owner]"
   36.17 - *
   36.18 - * The Original Software is NetBeans. The Initial Developer of the Original
   36.19 - * Software is Sun Microsystems, Inc. Portions Copyright 1997-2006 Sun
   36.20 - * Microsystems, Inc. All Rights Reserved.
   36.21 - */
   36.22 -
   36.23 -package org.netbeans.modules.bpel.debugger.spi.plugin;
   36.24 -
   36.25 -/**
   36.26 - *
   36.27 - * @author Alexander Zgursky
   36.28 - */
   36.29 -public class InvalidProcessTypeException extends RuntimeException {
   36.30 -    public static final long serialVersionUID = 0L;
   36.31 -
   36.32 -    /** Creates a new instance of ProcessTypeNotDeployedException. */
   36.33 -    public InvalidProcessTypeException() {
   36.34 -    }
   36.35 -
   36.36 -    /** Creates a new instance of ProcessTypeNotDeployedException. */
   36.37 -    public InvalidProcessTypeException(String message) {
   36.38 -        super(message);
   36.39 -    }
   36.40 -}
    37.1 --- a/bpel.debugger.api/src/org/netbeans/modules/bpel/debugger/spi/plugin/def/AbstractScopeDeclaration.java	Fri Dec 29 11:53:50 2006 +0000
    37.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
    37.3 @@ -1,32 +0,0 @@
    37.4 -/*
    37.5 - * The contents of this file are subject to the terms of the Common Development
    37.6 - * and Distribution License (the License). You may not use this file except in
    37.7 - * compliance with the License.
    37.8 - *
    37.9 - * You can obtain a copy of the License at http://www.netbeans.org/cddl.html
   37.10 - * or http://www.netbeans.org/cddl.txt.
   37.11 -
   37.12 - * When distributing Covered Code, include this CDDL Header Notice in each file
   37.13 - * and include the License file at http://www.netbeans.org/cddl.txt.
   37.14 - * If applicable, add the following below the CDDL Header, with the fields
   37.15 - * enclosed by brackets [] replaced by your own identifying information:
   37.16 - * "Portions Copyrighted [year] [name of copyright owner]"
   37.17 - *
   37.18 - * The Original Software is NetBeans. The Initial Developer of the Original
   37.19 - * Software is Sun Microsystems, Inc. Portions Copyright 1997-2006 Sun
   37.20 - * Microsystems, Inc. All Rights Reserved.
   37.21 - */
   37.22 -
   37.23 -package org.netbeans.modules.bpel.debugger.spi.plugin.def;
   37.24 -
   37.25 -import java.util.List;
   37.26 -import org.netbeans.modules.bpel.debugger.spi.plugin.def.VariableDeclaration;
   37.27 -
   37.28 -/**
   37.29 - *
   37.30 - * @author Alexander Zgursky
   37.31 - */
   37.32 -public interface AbstractScopeDeclaration extends NamedBpelElement {
   37.33 -    List<VariableDeclaration> getVariables();
   37.34 -    VariableDeclaration getVariableByName(String name);
   37.35 -}
    38.1 --- a/bpel.debugger.api/src/org/netbeans/modules/bpel/debugger/spi/plugin/def/BpelElement.java	Fri Dec 29 11:53:50 2006 +0000
    38.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
    38.3 @@ -1,33 +0,0 @@
    38.4 -/*
    38.5 - * The contents of this file are subject to the terms of the Common Development
    38.6 - * and Distribution License (the License). You may not use this file except in
    38.7 - * compliance with the License.
    38.8 - *
    38.9 - * You can obtain a copy of the License at http://www.netbeans.org/cddl.html
   38.10 - * or http://www.netbeans.org/cddl.txt.
   38.11 -
   38.12 - * When distributing Covered Code, include this CDDL Header Notice in each file
   38.13 - * and include the License file at http://www.netbeans.org/cddl.txt.
   38.14 - * If applicable, add the following below the CDDL Header, with the fields
   38.15 - * enclosed by brackets [] replaced by your own identifying information:
   38.16 - * "Portions Copyrighted [year] [name of copyright owner]"
   38.17 - *
   38.18 - * The Original Software is NetBeans. The Initial Developer of the Original
   38.19 - * Software is Sun Microsystems, Inc. Portions Copyright 1997-2006 Sun
   38.20 - * Microsystems, Inc. All Rights Reserved.
   38.21 - */
   38.22 -
   38.23 -package org.netbeans.modules.bpel.debugger.spi.plugin.def;
   38.24 -
   38.25 -import org.netbeans.modules.bpel.debugger.spi.plugin.*;
   38.26 -
   38.27 -/**
   38.28 - * Base interface for all the BPEL elements.
   38.29 - *
   38.30 - * @author Alexander Zgursky
   38.31 - */
   38.32 -public interface BpelElement {
   38.33 -    ProcessType getProcessType();
   38.34 -    Position getOpenTagPosition();
   38.35 -    Position getCloseTagPosition();
   38.36 -}
    39.1 --- a/bpel.debugger.api/src/org/netbeans/modules/bpel/debugger/spi/plugin/def/NamedBpelElement.java	Fri Dec 29 11:53:50 2006 +0000
    39.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
    39.3 @@ -1,30 +0,0 @@
    39.4 -/*
    39.5 - * The contents of this file are subject to the terms of the Common Development
    39.6 - * and Distribution License (the License). You may not use this file except in
    39.7 - * compliance with the License.
    39.8 - *
    39.9 - * You can obtain a copy of the License at http://www.netbeans.org/cddl.html
   39.10 - * or http://www.netbeans.org/cddl.txt.
   39.11 -
   39.12 - * When distributing Covered Code, include this CDDL Header Notice in each file
   39.13 - * and include the License file at http://www.netbeans.org/cddl.txt.
   39.14 - * If applicable, add the following below the CDDL Header, with the fields
   39.15 - * enclosed by brackets [] replaced by your own identifying information:
   39.16 - * "Portions Copyrighted [year] [name of copyright owner]"
   39.17 - *
   39.18 - * The Original Software is NetBeans. The Initial Developer of the Original
   39.19 - * Software is Sun Microsystems, Inc. Portions Copyright 1997-2006 Sun
   39.20 - * Microsystems, Inc. All Rights Reserved.
   39.21 - */
   39.22 -
   39.23 -package org.netbeans.modules.bpel.debugger.spi.plugin.def;
   39.24 -
   39.25 -import org.netbeans.modules.bpel.debugger.spi.plugin.def.BpelElement;
   39.26 -
   39.27 -/**
   39.28 - *
   39.29 - * @author Alexander Zgursky
   39.30 - */
   39.31 -public interface NamedBpelElement extends BpelElement {
   39.32 -    String getName();
   39.33 -}
    40.1 --- a/bpel.debugger.api/src/org/netbeans/modules/bpel/debugger/spi/plugin/def/Position.java	Fri Dec 29 11:53:50 2006 +0000
    40.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
    40.3 @@ -1,32 +0,0 @@
    40.4 -/*
    40.5 - * The contents of this file are subject to the terms of the Common Development
    40.6 - * and Distribution License (the License). You may not use this file except in
    40.7 - * compliance with the License.
    40.8 - *
    40.9 - * You can obtain a copy of the License at http://www.netbeans.org/cddl.html
   40.10 - * or http://www.netbeans.org/cddl.txt.
   40.11 -
   40.12 - * When distributing Covered Code, include this CDDL Header Notice in each file
   40.13 - * and include the License file at http://www.netbeans.org/cddl.txt.
   40.14 - * If applicable, add the following below the CDDL Header, with the fields
   40.15 - * enclosed by brackets [] replaced by your own identifying information:
   40.16 - * "Portions Copyrighted [year] [name of copyright owner]"
   40.17 - *
   40.18 - * The Original Software is NetBeans. The Initial Developer of the Original
   40.19 - * Software is Sun Microsystems, Inc. Portions Copyright 1997-2006 Sun
   40.20 - * Microsystems, Inc. All Rights Reserved.
   40.21 - */
   40.22 -
   40.23 -package org.netbeans.modules.bpel.debugger.spi.plugin.def;
   40.24 -
   40.25 -/**
   40.26 - * Points to a position in a BPEL file. Possible positions are open and close
   40.27 - * tags of BPEL elements.
   40.28 - *
   40.29 - * @author Alexander Zgursky
   40.30 - */
   40.31 -public interface Position {
   40.32 -    ProcessType getProcessType();
   40.33 -    String getXpath();
   40.34 -    boolean isAtOpenTag();
   40.35 -}
    41.1 --- a/bpel.debugger.api/src/org/netbeans/modules/bpel/debugger/spi/plugin/def/ProcessType.java	Fri Dec 29 11:53:50 2006 +0000
    41.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
    41.3 @@ -1,55 +0,0 @@
    41.4 -/*
    41.5 - * The contents of this file are subject to the terms of the Common Development
    41.6 - * and Distribution License (the License). You may not use this file except in
    41.7 - * compliance with the License.
    41.8 - *
    41.9 - * You can obtain a copy of the License at http://www.netbeans.org/cddl.html
   41.10 - * or http://www.netbeans.org/cddl.txt.
   41.11 -
   41.12 - * When distributing Covered Code, include this CDDL Header Notice in each file
   41.13 - * and include the License file at http://www.netbeans.org/cddl.txt.
   41.14 - * If applicable, add the following below the CDDL Header, with the fields
   41.15 - * enclosed by brackets [] replaced by your own identifying information:
   41.16 - * "Portions Copyrighted [year] [name of copyright owner]"
   41.17 - *
   41.18 - * The Original Software is NetBeans. The Initial Developer of the Original
   41.19 - * Software is Sun Microsystems, Inc. Portions Copyright 1997-2006 Sun
   41.20 - * Microsystems, Inc. All Rights Reserved.
   41.21 - */
   41.22 -
   41.23 -package org.netbeans.modules.bpel.debugger.spi.plugin.def;
   41.24 -
   41.25 -import java.util.Properties;
   41.26 -import org.netbeans.modules.bpel.debugger.spi.plugin.*;
   41.27 -
   41.28 -/**
   41.29 - * Represents a process type, deployed on the BPEL Engine.
   41.30 - * It is not required to have a single object
   41.31 - * of the implementation class for a process type.
   41.32 - * Although, equals() and hashCode() should be implemented
   41.33 - * properly to reflect that those objects are representing the same
   41.34 - * process type.
   41.35 - *
   41.36 - * @author Alexander Zgursky
   41.37 - */
   41.38 -public interface ProcessType {
   41.39 -    String getName();
   41.40 -    String getNamespace();
   41.41 -    DeploymentInfo getDeploymentInfo();
   41.42 -    Position getPositionByXpath(String xpath, boolean atOpenTag);
   41.43 -    boolean equals(Object obj);
   41.44 -    int hashCode();
   41.45 -    
   41.46 -    /**
   41.47 -     * Represents the deployment information, assosiated with a
   41.48 -     * ProcessType. May provide some
   41.49 -     * vendor-specific properties (e.g. application name, service name).
   41.50 -     *
   41.51 -     * @author Alexander Zgursky
   41.52 -     */
   41.53 -    public interface DeploymentInfo {
   41.54 -    //    String getSourceName();
   41.55 -    //    String getSourcePath();
   41.56 -        Properties getProperties();
   41.57 -    }
   41.58 -}
    42.1 --- a/bpel.debugger.api/src/org/netbeans/modules/bpel/debugger/spi/plugin/def/ValueType.java	Fri Dec 29 11:53:50 2006 +0000
    42.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
    42.3 @@ -1,29 +0,0 @@
    42.4 -/*
    42.5 - * The contents of this file are subject to the terms of the Common Development
    42.6 - * and Distribution License (the License). You may not use this file except in
    42.7 - * compliance with the License.
    42.8 - *
    42.9 - * You can obtain a copy of the License at http://www.netbeans.org/cddl.html
   42.10 - * or http://www.netbeans.org/cddl.txt.
   42.11 -
   42.12 - * When distributing Covered Code, include this CDDL Header Notice in each file
   42.13 - * and include the License file at http://www.netbeans.org/cddl.txt.
   42.14 - * If applicable, add the following below the CDDL Header, with the fields
   42.15 - * enclosed by brackets [] replaced by your own identifying information:
   42.16 - * "Portions Copyrighted [year] [name of copyright owner]"
   42.17 - *
   42.18 - * The Original Software is NetBeans. The Initial Developer of the Original
   42.19 - * Software is Sun Microsystems, Inc. Portions Copyright 1997-2006 Sun
   42.20 - * Microsystems, Inc. All Rights Reserved.
   42.21 - */
   42.22 -
   42.23 -package org.netbeans.modules.bpel.debugger.spi.plugin.def;
   42.24 -
   42.25 -/**
   42.26 - * Base interface for representing value types.
   42.27 - *
   42.28 - * @author Alexander Zgursky
   42.29 - */
   42.30 -public interface ValueType {
   42.31 -
   42.32 -}
    43.1 --- a/bpel.debugger.api/src/org/netbeans/modules/bpel/debugger/spi/plugin/def/VariableDeclaration.java	Fri Dec 29 11:53:50 2006 +0000
    43.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
    43.3 @@ -1,31 +0,0 @@
    43.4 -/*
    43.5 - * The contents of this file are subject to the terms of the Common Development
    43.6 - * and Distribution License (the License). You may not use this file except in
    43.7 - * compliance with the License.
    43.8 - *
    43.9 - * You can obtain a copy of the License at http://www.netbeans.org/cddl.html
   43.10 - * or http://www.netbeans.org/cddl.txt.
   43.11 -
   43.12 - * When distributing Covered Code, include this CDDL Header Notice in each file
   43.13 - * and include the License file at http://www.netbeans.org/cddl.txt.
   43.14 - * If applicable, add the following below the CDDL Header, with the fields
   43.15 - * enclosed by brackets [] replaced by your own identifying information:
   43.16 - * "Portions Copyrighted [year] [name of copyright owner]"
   43.17 - *
   43.18 - * The Original Software is NetBeans. The Initial Developer of the Original
   43.19 - * Software is Sun Microsystems, Inc. Portions Copyright 1997-2006 Sun
   43.20 - * Microsystems, Inc. All Rights Reserved.
   43.21 - */
   43.22 -
   43.23 -package org.netbeans.modules.bpel.debugger.spi.plugin.def;
   43.24 -
   43.25 -import org.netbeans.modules.bpel.debugger.spi.plugin.*;
   43.26 -
   43.27 -/**
   43.28 - * Represents a BPEL variable.
   43.29 - *
   43.30 - * @author Alexander Zgursky
   43.31 - */
   43.32 -public interface VariableDeclaration extends NamedBpelElement {
   43.33 -    ValueType getType();
   43.34 -}
    44.1 --- a/bpel.debugger.api/src/org/netbeans/modules/bpel/debugger/spi/plugin/def/WsdlMessageValueType.java	Fri Dec 29 11:53:50 2006 +0000
    44.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
    44.3 @@ -1,37 +0,0 @@
    44.4 -/*
    44.5 - * The contents of this file are subject to the terms of the Common Development
    44.6 - * and Distribution License (the License). You may not use this file except in
    44.7 - * compliance with the License.
    44.8 - *
    44.9 - * You can obtain a copy of the License at http://www.netbeans.org/cddl.html
   44.10 - * or http://www.netbeans.org/cddl.txt.
   44.11 -
   44.12 - * When distributing Covered Code, include this CDDL Header Notice in each file
   44.13 - * and include the License file at http://www.netbeans.org/cddl.txt.
   44.14 - * If applicable, add the following below the CDDL Header, with the fields
   44.15 - * enclosed by brackets [] replaced by your own identifying information:
   44.16 - * "Portions Copyrighted [year] [name of copyright owner]"
   44.17 - *
   44.18 - * The Original Software is NetBeans. The Initial Developer of the Original
   44.19 - * Software is Sun Microsystems, Inc. Portions Copyright 1997-2006 Sun
   44.20 - * Microsystems, Inc. All Rights Reserved.
   44.21 - */
   44.22 -
   44.23 -package org.netbeans.modules.bpel.debugger.spi.plugin.def;
   44.24 -
   44.25 -import java.util.List;
   44.26 -
   44.27 -/**
   44.28 - * Represents a wsdl message value type.
   44.29 - *
   44.30 - * @author Alexander Zgursky
   44.31 - */
   44.32 -public interface WsdlMessageValueType extends XmlElementValueType {
   44.33 -    List<Part> getParts();
   44.34 -
   44.35 -    interface Part {
   44.36 -        WsdlMessageValueType getMessageType();
   44.37 -        String getName();
   44.38 -        ValueType getType();
   44.39 -    }
   44.40 -}
    45.1 --- a/bpel.debugger.api/src/org/netbeans/modules/bpel/debugger/spi/plugin/def/XmlElementValueType.java	Fri Dec 29 11:53:50 2006 +0000
    45.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
    45.3 @@ -1,31 +0,0 @@
    45.4 -/*
    45.5 - * The contents of this file are subject to the terms of the Common Development
    45.6 - * and Distribution License (the License). You may not use this file except in
    45.7 - * compliance with the License.
    45.8 - *
    45.9 - * You can obtain a copy of the License at http://www.netbeans.org/cddl.html
   45.10 - * or http://www.netbeans.org/cddl.txt.
   45.11 -
   45.12 - * When distributing Covered Code, include this CDDL Header Notice in each file
   45.13 - * and include the License file at http://www.netbeans.org/cddl.txt.
   45.14 - * If applicable, add the following below the CDDL Header, with the fields
   45.15 - * enclosed by brackets [] replaced by your own identifying information:
   45.16 - * "Portions Copyrighted [year] [name of copyright owner]"
   45.17 - *
   45.18 - * The Original Software is NetBeans. The Initial Developer of the Original
   45.19 - * Software is Sun Microsystems, Inc. Portions Copyright 1997-2006 Sun
   45.20 - * Microsystems, Inc. All Rights Reserved.
   45.21 - */
   45.22 -
   45.23 -package org.netbeans.modules.bpel.debugger.spi.plugin.def;
   45.24 -
   45.25 -import javax.xml.namespace.QName;
   45.26 -
   45.27 -/**
   45.28 - * Represents an xml element value type.
   45.29 - *
   45.30 - * @author Alexander Zgursky
   45.31 - */
   45.32 -public interface XmlElementValueType extends ValueType {
   45.33 -    QName getQName();
   45.34 -}
    46.1 --- a/bpel.debugger.api/src/org/netbeans/modules/bpel/debugger/spi/plugin/def/XsdTypeValueType.java	Fri Dec 29 11:53:50 2006 +0000
    46.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
    46.3 @@ -1,32 +0,0 @@
    46.4 -/*
    46.5 - * The contents of this file are subject to the terms of the Common Development
    46.6 - * and Distribution License (the License). You may not use this file except in
    46.7 - * compliance with the License.
    46.8 - *
    46.9 - * You can obtain a copy of the License at http://www.netbeans.org/cddl.html
   46.10 - * or http://www.netbeans.org/cddl.txt.
   46.11 -
   46.12 - * When distributing Covered Code, include this CDDL Header Notice in each file
   46.13 - * and include the License file at http://www.netbeans.org/cddl.txt.
   46.14 - * If applicable, add the following below the CDDL Header, with the fields
   46.15 - * enclosed by brackets [] replaced by your own identifying information:
   46.16 - * "Portions Copyrighted [year] [name of copyright owner]"
   46.17 - *
   46.18 - * The Original Software is NetBeans. The Initial Developer of the Original
   46.19 - * Software is Sun Microsystems, Inc. Portions Copyright 1997-2006 Sun
   46.20 - * Microsystems, Inc. All Rights Reserved.
   46.21 - */
   46.22 -
   46.23 -package org.netbeans.modules.bpel.debugger.spi.plugin.def;
   46.24 -
   46.25 -import javax.xml.namespace.QName;
   46.26 -
   46.27 -/**
   46.28 - * Represents value type that is an XSD Type.
   46.29 - *
   46.30 - * @author Alexander Zgursky
   46.31 - */
   46.32 -public interface XsdTypeValueType extends ValueType {
   46.33 -    QName getQName();
   46.34 -    boolean isSimple();
   46.35 -}
    47.1 --- a/bpel.debugger.api/src/org/netbeans/modules/bpel/debugger/spi/plugin/event/BpelEngineDisconnectedEvent.java	Fri Dec 29 11:53:50 2006 +0000
    47.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
    47.3 @@ -1,39 +0,0 @@
    47.4 -/*
    47.5 - * The contents of this file are subject to the terms of the Common Development
    47.6 - * and Distribution License (the License). You may not use this file except in
    47.7 - * compliance with the License.
    47.8 - *
    47.9 - * You can obtain a copy of the License at http://www.netbeans.org/cddl.html
   47.10 - * or http://www.netbeans.org/cddl.txt.
   47.11 -
   47.12 - * When distributing Covered Code, include this CDDL Header Notice in each file
   47.13 - * and include the License file at http://www.netbeans.org/cddl.txt.
   47.14 - * If applicable, add the following below the CDDL Header, with the fields
   47.15 - * enclosed by brackets [] replaced by your own identifying information:
   47.16 - * "Portions Copyrighted [year] [name of copyright owner]"
   47.17 - *
   47.18 - * The Original Software is NetBeans. The Initial Developer of the Original
   47.19 - * Software is Sun Microsystems, Inc. Portions Copyright 1997-2006 Sun
   47.20 - * Microsystems, Inc. All Rights Reserved.
   47.21 - */
   47.22 -
   47.23 -package org.netbeans.modules.bpel.debugger.spi.plugin.event;
   47.24 -
   47.25 -/**
   47.26 - * Notification of disconnection from the target BPEL Engine.
   47.27 - * May be caused by the BPEL Engine's shutdown, debugger actions (
   47.28 - * {@link org.netbeans.modules.bpel.debugger.spi.plugin.BpelEngine#disconnect})
   47.29 - * or by external events (for example, transport termination).
   47.30 - * <br><br>
   47.31 - * This event is always sent. There is no corresponding
   47.32 - * {@link org.netbeans.modules.bpel.debugger.spi.plugin.request.EventRequest}.
   47.33 - * The enclosing singleton
   47.34 - * {@link org.netbeans.modules.bpel.debugger.spi.plugin.event.EventSet}
   47.35 - * always has a suspend policy of
   47.36 - * {@link org.netbeans.modules.bpel.debugger.spi.plugin.request.EventRequest.SuspendPolicy#SUSPEND_NONE}.
   47.37 - *
   47.38 - * @author Alexander Zgursky
   47.39 - */
   47.40 -public interface BpelEngineDisconnectedEvent extends Event {
   47.41 -    
   47.42 -}
    48.1 --- a/bpel.debugger.api/src/org/netbeans/modules/bpel/debugger/spi/plugin/event/BreakpointReachedEvent.java	Fri Dec 29 11:53:50 2006 +0000
    48.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
    48.3 @@ -1,40 +0,0 @@
    48.4 -/*
    48.5 - * The contents of this file are subject to the terms of the Common Development
    48.6 - * and Distribution License (the License). You may not use this file except in
    48.7 - * compliance with the License.
    48.8 - *
    48.9 - * You can obtain a copy of the License at http://www.netbeans.org/cddl.html
   48.10 - * or http://www.netbeans.org/cddl.txt.
   48.11 -
   48.12 - * When distributing Covered Code, include this CDDL Header Notice in each file
   48.13 - * and include the License file at http://www.netbeans.org/cddl.txt.
   48.14 - * If applicable, add the following below the CDDL Header, with the fields
   48.15 - * enclosed by brackets [] replaced by your own identifying information:
   48.16 - * "Portions Copyrighted [year] [name of copyright owner]"
   48.17 - *
   48.18 - * The Original Software is NetBeans. The Initial Developer of the Original
   48.19 - * Software is Sun Microsystems, Inc. Portions Copyright 1997-2006 Sun
   48.20 - * Microsystems, Inc. All Rights Reserved.
   48.21 - */
   48.22 -
   48.23 -package org.netbeans.modules.bpel.debugger.spi.plugin.event;
   48.24 -
   48.25 -/**
   48.26 - * Notification of a reached breakpoint.
   48.27 - * This event is generated before the activity at its
   48.28 - * {@link org.netbeans.modules.bpel.debugger.spi.plugin.def.Position}
   48.29 - * is executed. When a
   48.30 - * {@link org.netbeans.modules.bpel.debugger.spi.plugin.def.Position}
   48.31 - * is reached which satisfies a currently enabled
   48.32 - * {@link org.netbeans.modules.bpel.debugger.spi.plugin.request.BreakpointReachedRequest},
   48.33 - * an
   48.34 - * {@link org.netbeans.modules.bpel.debugger.spi.plugin.event.EventSet}
   48.35 - * containing an instance of this class will be added to the
   48.36 - * {@link org.netbeans.modules.bpel.debugger.spi.plugin.BpelEngine}'s
   48.37 - * {@link org.netbeans.modules.bpel.debugger.spi.plugin.event.EventQueue}.
   48.38 - *
   48.39 - * @author Alexander Zgursky
   48.40 - */
   48.41 -public interface BreakpointReachedEvent extends LocatableEvent {
   48.42 -    
   48.43 -}
    49.1 --- a/bpel.debugger.api/src/org/netbeans/modules/bpel/debugger/spi/plugin/event/Event.java	Fri Dec 29 11:53:50 2006 +0000
    49.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
    49.3 @@ -1,46 +0,0 @@
    49.4 -/*
    49.5 - * The contents of this file are subject to the terms of the Common Development
    49.6 - * and Distribution License (the License). You may not use this file except in
    49.7 - * compliance with the License.
    49.8 - *
    49.9 - * You can obtain a copy of the License at http://www.netbeans.org/cddl.html
   49.10 - * or http://www.netbeans.org/cddl.txt.
   49.11 -
   49.12 - * When distributing Covered Code, include this CDDL Header Notice in each file
   49.13 - * and include the License file at http://www.netbeans.org/cddl.txt.
   49.14 - * If applicable, add the following below the CDDL Header, with the fields
   49.15 - * enclosed by brackets [] replaced by your own identifying information:
   49.16 - * "Portions Copyrighted [year] [name of copyright owner]"
   49.17 - *
   49.18 - * The Original Software is NetBeans. The Initial Developer of the Original
   49.19 - * Software is Sun Microsystems, Inc. Portions Copyright 1997-2006 Sun
   49.20 - * Microsystems, Inc. All Rights Reserved.
   49.21 - */
   49.22 -
   49.23 -package org.netbeans.modules.bpel.debugger.spi.plugin.event;
   49.24 -
   49.25 -import org.netbeans.modules.bpel.debugger.spi.plugin.request.EventRequest;
   49.26 -
   49.27 -/**
   49.28 - * An occurrence in a target BPEL Engine that is of interest to a debugger.
   49.29 - * Event is the common superinterface for all events (examples include
   49.30 - * {@link org.netbeans.modules.bpel.debugger.spi.plugin.event.BreakpointReachedEvent},
   49.31 - * {@link org.netbeans.modules.bpel.debugger.spi.plugin.event.ProcessInstanceCreatedEvent}).
   49.32 - * When an event occurs, an instance of Event as a component of an
   49.33 - * {@link org.netbeans.modules.bpel.debugger.spi.plugin.event.EventSet}
   49.34 - * is enqueued in the
   49.35 - * {@link org.netbeans.modules.bpel.debugger.spi.plugin.BpelEngine}'s
   49.36 - * {@link org.netbeans.modules.bpel.debugger.spi.plugin.event.EventQueue}.
   49.37 - * 
   49.38 - * @author Alexander Zgursky
   49.39 - */
   49.40 -public interface Event {
   49.41 -    /**
   49.42 -     * Returns the event request that requested this event.
   49.43 -     *
   49.44 -     * @return the event request that requested this event. Some events (e.g.
   49.45 -     *  {@link org.netbeans.modules.bpel.debugger.spi.plugin.event.BpelEngineDisconnectedEvent})
   49.46 -     *  may not have a coresponding request and thus will return <code>null</code>.
   49.47 -     */
   49.48 -    EventRequest getEventRequest();
   49.49 -}
    50.1 --- a/bpel.debugger.api/src/org/netbeans/modules/bpel/debugger/spi/plugin/event/EventQueue.java	Fri Dec 29 11:53:50 2006 +0000
    50.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
    50.3 @@ -1,102 +0,0 @@
    50.4 -/*
    50.5 - * The contents of this file are subject to the terms of the Common Development
    50.6 - * and Distribution License (the License). You may not use this file except in
    50.7 - * compliance with the License.
    50.8 - *
    50.9 - * You can obtain a copy of the License at http://www.netbeans.org/cddl.html
   50.10 - * or http://www.netbeans.org/cddl.txt.
   50.11 -
   50.12 - * When distributing Covered Code, include this CDDL Header Notice in each file
   50.13 - * and include the License file at http://www.netbeans.org/cddl.txt.
   50.14 - * If applicable, add the following below the CDDL Header, with the fields
   50.15 - * enclosed by brackets [] replaced by your own identifying information:
   50.16 - * "Portions Copyrighted [year] [name of copyright owner]"
   50.17 - *
   50.18 - * The Original Software is NetBeans. The Initial Developer of the Original
   50.19 - * Software is Sun Microsystems, Inc. Portions Copyright 1997-2006 Sun
   50.20 - * Microsystems, Inc. All Rights Reserved.
   50.21 - */
   50.22 -
   50.23 -package org.netbeans.modules.bpel.debugger.spi.plugin.event;
   50.24 -
   50.25 -/**
   50.26 - * Manager of incoming debugger events for a target
   50.27 - * {@link org.netbeans.modules.bpel.debugger.spi.plugin.BpelEngine}.
   50.28 - * Events are always grouped in
   50.29 - * {@link org.netbeans.modules.bpel.debugger.spi.plugin.event.EventSet}s.
   50.30 - * {@link org.netbeans.modules.bpel.debugger.spi.plugin.event.EventSet}s
   50.31 - * generated by the BPEL Debugger Plugin can be read here.
   50.32 - * There is one instance of EventQueue assigned to a particular
   50.33 - * {@link org.netbeans.modules.bpel.debugger.spi.plugin.BpelEngine}. It's
   50.34 - * provided by the BPEL Debugger Plugin and can be obtained by invoking
   50.35 - * {@link org.netbeans.modules.bpel.debugger.spi.plugin.BpelEngine#getEventQueue}.
   50.36 - * <br><br>
   50.37 - * Some events cause the suspension of process instances -
   50.38 - * those which are issued using
   50.39 - * {@link org.netbeans.modules.bpel.debugger.spi.plugin.request.EventRequest}s
   50.40 - * with a
   50.41 - * {@link org.netbeans.modules.bpel.debugger.spi.plugin.request.EventRequest.SuspendPolicy
   50.42 - * suspend policy} of
   50.43 - * {@link org.netbeans.modules.bpel.debugger.spi.plugin.request.EventRequest.SuspendPolicy#SUSPEND_ALL}
   50.44 - * or
   50.45 - * {@link org.netbeans.modules.bpel.debugger.spi.plugin.request.EventRequest.SuspendPolicy#SUSPEND_EVENT_PROCESS_INSTANCE}.
   50.46 - * If these suspensions are not resumed the corresponding process instances
   50.47 - * will hang. Thus, it is always good policy to
   50.48 - * {@link org.netbeans.modules.bpel.debugger.spi.plugin.event.EventQueue#remove}
   50.49 - * every event set from the event queue until an
   50.50 - * {@link org.netbeans.modules.bpel.debugger.spi.plugin.event.EventSet}
   50.51 - * containing a
   50.52 - * {@link org.netbeans.modules.bpel.debugger.spi.plugin.event.BpelEngineDisconnectedEvent}
   50.53 - * is read.
   50.54 - *
   50.55 - * @author Alexander Zgursky
   50.56 - */
   50.57 -public interface EventQueue {
   50.58 -    
   50.59 -    /**
   50.60 -     * Waits forever for the next available
   50.61 -     * {@link org.netbeans.modules.bpel.debugger.spi.plugin.event.EventSet}.
   50.62 -     * When
   50.63 -     * {@link org.netbeans.modules.bpel.debugger.spi.plugin.event.EventSet}
   50.64 -     * becomes available, removes it from the EventQueue
   50.65 -     * and returns as the result.
   50.66 -     *
   50.67 -     * @return the next
   50.68 -     * {@link org.netbeans.modules.bpel.debugger.spi.plugin.event.EventSet}
   50.69 -     *
   50.70 -     * @throws InterruptedException
   50.71 -     *  if another thread has interrupted this thread
   50.72 -     * @throws org.netbeans.modules.bpel.debugger.spi.plugin.BpelEngineDisconnectedException
   50.73 -     *  if the
   50.74 -     *  {@link org.netbeans.modules.bpel.debugger.spi.plugin.BpelEngine}
   50.75 -     *  has been disconnected. Note this will always
   50.76 -     *  be preceded by a
   50.77 -     *  {@link org.netbeans.modules.bpel.debugger.spi.plugin.event.BpelEngineDisconnectedEvent}.
   50.78 -     */
   50.79 -    EventSet remove() throws InterruptedException;
   50.80 -    
   50.81 -    /**
   50.82 -     * Waits a specified time for the next available
   50.83 -     * {@link org.netbeans.modules.bpel.debugger.spi.plugin.event.EventSet}.
   50.84 -     * When
   50.85 -     * {@link org.netbeans.modules.bpel.debugger.spi.plugin.event.EventSet}
   50.86 -     * becomes available, removes it from the EventQueue
   50.87 -     * and returns as the result.
   50.88 -     *
   50.89 -     * @return the next
   50.90 -     * {@link org.netbeans.modules.bpel.debugger.spi.plugin.event.EventSet},
   50.91 -     * or <code>null</code> if there is a timeout.
   50.92 -     *
   50.93 -     * @throws InterruptedException
   50.94 -     *  if another thread has interrupted this thread
   50.95 -     * @throws org.netbeans.modules.bpel.debugger.spi.plugin.BpelEngineDisconnectedException
   50.96 -     *  if the
   50.97 -     *  {@link org.netbeans.modules.bpel.debugger.spi.plugin.BpelEngine}
   50.98 -     *  has been disconnected. Note this will always
   50.99 -     *  be preceded by a
  50.100 -     *  {@link org.netbeans.modules.bpel.debugger.spi.plugin.event.BpelEngineDisconnectedEvent}.
  50.101 -     * @throws IllegalArgumentException
  50.102 -     *  if the timeout argument contains an illegal value
  50.103 -     */
  50.104 -    EventSet remove(long timeout) throws InterruptedException;
  50.105 -}
    51.1 --- a/bpel.debugger.api/src/org/netbeans/modules/bpel/debugger/spi/plugin/event/EventSet.java	Fri Dec 29 11:53:50 2006 +0000
    51.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
    51.3 @@ -1,95 +0,0 @@
    51.4 -/*
    51.5 - * The contents of this file are subject to the terms of the Common Development
    51.6 - * and Distribution License (the License). You may not use this file except in
    51.7 - * compliance with the License.
    51.8 - *
    51.9 - * You can obtain a copy of the License at http://www.netbeans.org/cddl.html
   51.10 - * or http://www.netbeans.org/cddl.txt.
   51.11 -
   51.12 - * When distributing Covered Code, include this CDDL Header Notice in each file
   51.13 - * and include the License file at http://www.netbeans.org/cddl.txt.
   51.14 - * If applicable, add the following below the CDDL Header, with the fields
   51.15 - * enclosed by brackets [] replaced by your own identifying information:
   51.16 - * "Portions Copyrighted [year] [name of copyright owner]"
   51.17 - *
   51.18 - * The Original Software is NetBeans. The Initial Developer of the Original
   51.19 - * Software is Sun Microsystems, Inc. Portions Copyright 1997-2006 Sun
   51.20 - * Microsystems, Inc. All Rights Reserved.
   51.21 - */
   51.22 -
   51.23 -package org.netbeans.modules.bpel.debugger.spi.plugin.event;
   51.24 -
   51.25 -import java.util.Set;
   51.26 -import org.netbeans.modules.bpel.debugger.spi.plugin.request.EventRequest;
   51.27 -
   51.28 -/**
   51.29 - * A container for one or more
   51.30 - * {@link org.netbeans.modules.bpel.debugger.spi.plugin.event.Event}
   51.31 - * objects.
   51.32 - * Several
   51.33 - * {@link org.netbeans.modules.bpel.debugger.spi.plugin.event.Event}
   51.34 - * objects may be generated at a given time by the BPEL Engine.
   51.35 - * For example, there may be more than one
   51.36 - * {@link org.netbeans.modules.bpel.debugger.spi.plugin.request.BreakpointReachedRequest}
   51.37 - * for a given
   51.38 - * {@link org.netbeans.modules.bpel.debugger.spi.plugin.def.Position}
   51.39 - * or you might single step to the same
   51.40 - * {@link org.netbeans.modules.bpel.debugger.spi.plugin.def.Position}
   51.41 - * as a
   51.42 - * {@link org.netbeans.modules.bpel.debugger.spi.plugin.request.BreakpointReachedRequest}.
   51.43 - * These
   51.44 - * {@link org.netbeans.modules.bpel.debugger.spi.plugin.event.Event}
   51.45 - * objects are delivered together as an EventSet.
   51.46 - * For uniformity, an EventSet is always used to deliver
   51.47 - * {@link org.netbeans.modules.bpel.debugger.spi.plugin.event.Event}
   51.48 - * objects.
   51.49 - * EventSets are delivered by the
   51.50 - * {@link org.netbeans.modules.bpel.debugger.spi.plugin.event.EventQueue}.
   51.51 - * EventSets are unmodifiable.
   51.52 - * <br><br>
   51.53 - * Associated with the issuance of an event set, process instance suspensions
   51.54 - * may have occurred in the target BPEL Engine. These suspensions correspond
   51.55 - * with the
   51.56 - * {@link org.netbeans.modules.bpel.debugger.spi.plugin.request.EventRequest.SuspendPolicy}.
   51.57 - * <br>
   51.58 - * The events that are in an EventSet are restricted in the following ways:
   51.59 - *  <ul>
   51.60 - *    <li>Always singleton sets:
   51.61 - *      <ul>
   51.62 - *      <li>{@link org.netbeans.modules.bpel.debugger.spi.plugin.event.BpelEngineDisconnectedEvent}
   51.63 - *      </ul>
   51.64 - *    <li>Only with other ProcessInstanceCreatedEvents for the same process instance:
   51.65 - *      <ul>
   51.66 - *      <li>{@link org.netbeans.modules.bpel.debugger.spi.plugin.event.ProcessInstanceCreatedEvent}
   51.67 - *      </ul>
   51.68 - *    <li>Only with other ProcessInstanceCompletedEvents for the same process instance:
   51.69 - *      <ul>
   51.70 - *      <li>{@link org.netbeans.modules.bpel.debugger.spi.plugin.event.ProcessInstanceCompletedEvent}
   51.71 - *      </ul>
   51.72 - *    <li>Only with other members of this group, at the same position and in the same scope instance:
   51.73 - *      <ul>
   51.74 - *      <li>{@link org.netbeans.modules.bpel.debugger.spi.plugin.event.BreakpointReachedEvent}
   51.75 - *      <li>{@link org.netbeans.modules.bpel.debugger.spi.plugin.event.StepCompletedEvent}
   51.76 - *      </ul>
   51.77 - *  </ul>
   51.78 - * 
   51.79 - * 
   51.80 - * @author Alexander Zgursky
   51.81 - */
   51.82 -public interface EventSet extends Set<Event> {
   51.83 -    /**
   51.84 -     * Returns the policy used to suspend process instances in the target
   51.85 -     * BPEL Engine for this event set. This policy is selected from the suspend
   51.86 -     * policies for each event's request; the target BPEL Engine chooses the
   51.87 -     * policy which suspends the most process instances.
   51.88 -     * The target BPEL Engine suspends process instances according to that
   51.89 -     * policy and that policy is returned here, unless target BPEL Engine
   51.90 -     * doesn't support required suspend policy.
   51.91 -     * See
   51.92 -     * {@link org.netbeans.modules.bpel.debugger.spi.plugin.request.EventRequest.SuspendPolicy}
   51.93 -     * for the possible policy values.
   51.94 -     *
   51.95 -     * @return the suspend policy applied for this event set
   51.96 -     */
   51.97 -    EventRequest.SuspendPolicy getSuspendPolicy();
   51.98 -}
    52.1 --- a/bpel.debugger.api/src/org/netbeans/modules/bpel/debugger/spi/plugin/event/LocatableEvent.java	Fri Dec 29 11:53:50 2006 +0000
    52.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
    52.3 @@ -1,46 +0,0 @@
    52.4 -/*
    52.5 - * The contents of this file are subject to the terms of the Common Development
    52.6 - * and Distribution License (the License). You may not use this file except in
    52.7 - * compliance with the License.
    52.8 - *
    52.9 - * You can obtain a copy of the License at http://www.netbeans.org/cddl.html
   52.10 - * or http://www.netbeans.org/cddl.txt.
   52.11 -
   52.12 - * When distributing Covered Code, include this CDDL Header Notice in each file
   52.13 - * and include the License file at http://www.netbeans.org/cddl.txt.
   52.14 - * If applicable, add the following below the CDDL Header, with the fields
   52.15 - * enclosed by brackets [] replaced by your own identifying information:
   52.16 - * "Portions Copyrighted [year] [name of copyright owner]"
   52.17 - *
   52.18 - * The Original Software is NetBeans. The Initial Developer of the Original
   52.19 - * Software is Sun Microsystems, Inc. Portions Copyright 1997-2006 Sun
   52.20 - * Microsystems, Inc. All Rights Reserved.
   52.21 - */
   52.22 -
   52.23 -package org.netbeans.modules.bpel.debugger.spi.plugin.event;
   52.24 -
   52.25 -import org.netbeans.modules.bpel.debugger.spi.plugin.exec.ScopeInstance;
   52.26 -import org.netbeans.modules.bpel.debugger.spi.plugin.def.Position;
   52.27 -
   52.28 -/**
   52.29 - * Abstract superinterface of events that have both
   52.30 - * position and scope instance.
   52.31 - *
   52.32 - * @author Alexander Zgursky
   52.33 - */
   52.34 -public interface LocatableEvent extends Event {
   52.35 -
   52.36 -    /**
   52.37 -     * Returns the scope instance in which this event has occured.
   52.38 -     *
   52.39 -     * @return the scope instance in which this event has occured
   52.40 -     */
   52.41 -    ScopeInstance getScopeInstance();
   52.42 -    
   52.43 -    /**
   52.44 -     * Returns the position at which this event has occured.
   52.45 -     *
   52.46 -     * @return the position at which this event has occured
   52.47 -     */
   52.48 -    Position getPosition();
   52.49 -}
    53.1 --- a/bpel.debugger.api/src/org/netbeans/modules/bpel/debugger/spi/plugin/event/ProcessInstanceCompletedEvent.java	Fri Dec 29 11:53:50 2006 +0000
    53.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
    53.3 @@ -1,44 +0,0 @@
    53.4 -/*
    53.5 - * The contents of this file are subject to the terms of the Common Development
    53.6 - * and Distribution License (the License). You may not use this file except in
    53.7 - * compliance with the License.
    53.8 - *
    53.9 - * You can obtain a copy of the License at http://www.netbeans.org/cddl.html
   53.10 - * or http://www.netbeans.org/cddl.txt.
   53.11 -
   53.12 - * When distributing Covered Code, include this CDDL Header Notice in each file
   53.13 - * and include the License file at http://www.netbeans.org/cddl.txt.
   53.14 - * If applicable, add the following below the CDDL Header, with the fields
   53.15 - * enclosed by brackets [] replaced by your own identifying information:
   53.16 - * "Portions Copyrighted [year] [name of copyright owner]"
   53.17 - *
   53.18 - * The Original Software is NetBeans. The Initial Developer of the Original
   53.19 - * Software is Sun Microsystems, Inc. Portions Copyright 1997-2006 Sun
   53.20 - * Microsystems, Inc. All Rights Reserved.
   53.21 - */
   53.22 -
   53.23 -package org.netbeans.modules.bpel.debugger.spi.plugin.event;
   53.24 -
   53.25 -import org.netbeans.modules.bpel.debugger.spi.plugin.exec.ProcessInstance;
   53.26 -
   53.27 -/**
   53.28 - * Notification of a completed process instance in the target BPEL Engine.
   53.29 - * When a process instance is completed normally or with a fault or has been
   53.30 - * terminated and there is a corresponding enabled
   53.31 - * {@link org.netbeans.modules.bpel.debugger.spi.plugin.request.ProcessInstanceCompletedRequest},
   53.32 - * an {@link org.netbeans.modules.bpel.debugger.spi.plugin.event.EventSet}
   53.33 - * containing an instance of this class will be added to the
   53.34 - * {@link org.netbeans.modules.bpel.debugger.spi.plugin.BpelEngine}'s
   53.35 - * {@link org.netbeans.modules.bpel.debugger.spi.plugin.event.EventQueue}.
   53.36 - *
   53.37 - * @author Alexander Zgursky
   53.38 - */
   53.39 -public interface ProcessInstanceCompletedEvent extends Event {
   53.40 -    
   53.41 -    /**
   53.42 -     * Returns the process instance which is completed.
   53.43 -     *
   53.44 -     * @return the process instance which is completed
   53.45 -     */
   53.46 -    ProcessInstance getProcessInstance();
   53.47 -}
    54.1 --- a/bpel.debugger.api/src/org/netbeans/modules/bpel/debugger/spi/plugin/event/ProcessInstanceCreatedEvent.java	Fri Dec 29 11:53:50 2006 +0000
    54.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
    54.3 @@ -1,43 +0,0 @@
    54.4 -/*
    54.5 - * The contents of this file are subject to the terms of the Common Development
    54.6 - * and Distribution License (the License). You may not use this file except in
    54.7 - * compliance with the License.
    54.8 - *
    54.9 - * You can obtain a copy of the License at http://www.netbeans.org/cddl.html
   54.10 - * or http://www.netbeans.org/cddl.txt.
   54.11 -
   54.12 - * When distributing Covered Code, include this CDDL Header Notice in each file
   54.13 - * and include the License file at http://www.netbeans.org/cddl.txt.
   54.14 - * If applicable, add the following below the CDDL Header, with the fields
   54.15 - * enclosed by brackets [] replaced by your own identifying information:
   54.16 - * "Portions Copyrighted [year] [name of copyright owner]"
   54.17 - *
   54.18 - * The Original Software is NetBeans. The Initial Developer of the Original
   54.19 - * Software is Sun Microsystems, Inc. Portions Copyright 1997-2006 Sun
   54.20 - * Microsystems, Inc. All Rights Reserved.
   54.21 - */
   54.22 -
   54.23 -package org.netbeans.modules.bpel.debugger.spi.plugin.event;
   54.24 -
   54.25 -import org.netbeans.modules.bpel.debugger.spi.plugin.exec.ProcessInstance;
   54.26 -
   54.27 -/**
   54.28 - * Notification of creation a new process instance in the target BPEL Engine.
   54.29 - * When a process instance is created and there is a corresponding enabled
   54.30 - * {@link org.netbeans.modules.bpel.debugger.spi.plugin.request.ProcessInstanceCreatedRequest},
   54.31 - * an {@link org.netbeans.modules.bpel.debugger.spi.plugin.event.EventSet}
   54.32 - * containing an instance of this class will be added to the
   54.33 - * {@link org.netbeans.modules.bpel.debugger.spi.plugin.BpelEngine}'s
   54.34 - * {@link org.netbeans.modules.bpel.debugger.spi.plugin.event.EventQueue}.
   54.35 - *
   54.36 - * @author Alexander Zgursky
   54.37 - */
   54.38 -public interface ProcessInstanceCreatedEvent extends Event {
   54.39 -    
   54.40 -    /**
   54.41 -     * Returns the process instance which is created.
   54.42 -     *
   54.43 -     * @return the process instance which is created
   54.44 -     */
   54.45 -    ProcessInstance getProcessInstance();
   54.46 -}
    55.1 --- a/bpel.debugger.api/src/org/netbeans/modules/bpel/debugger/spi/plugin/event/StepCompletedEvent.java	Fri Dec 29 11:53:50 2006 +0000
    55.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
    55.3 @@ -1,39 +0,0 @@
    55.4 -/*
    55.5 - * The contents of this file are subject to the terms of the Common Development
    55.6 - * and Distribution License (the License). You may not use this file except in
    55.7 - * compliance with the License.
    55.8 - *
    55.9 - * You can obtain a copy of the License at http://www.netbeans.org/cddl.html
   55.10 - * or http://www.netbeans.org/cddl.txt.
   55.11 -
   55.12 - * When distributing Covered Code, include this CDDL Header Notice in each file
   55.13 - * and include the License file at http://www.netbeans.org/cddl.txt.
   55.14 - * If applicable, add the following below the CDDL Header, with the fields
   55.15 - * enclosed by brackets [] replaced by your own identifying information:
   55.16 - * "Portions Copyrighted [year] [name of copyright owner]"
   55.17 - *
   55.18 - * The Original Software is NetBeans. The Initial Developer of the Original
   55.19 - * Software is Sun Microsystems, Inc. Portions Copyright 1997-2006 Sun
   55.20 - * Microsystems, Inc. All Rights Reserved.
   55.21 - */
   55.22 -
   55.23 -package org.netbeans.modules.bpel.debugger.spi.plugin.event;
   55.24 -
   55.25 -/**
   55.26 - * Notification of step completion in the target BPEL Engine.
   55.27 - * This event is generated immediately before the activity at its
   55.28 - * {@link org.netbeans.modules.bpel.debugger.spi.plugin.def.Position}
   55.29 - * is executed. When a next activity is about to start its execution and
   55.30 - * there is an enabled
   55.31 - * {@link org.netbeans.modules.bpel.debugger.spi.plugin.request.StepCompletedRequest},
   55.32 - * an
   55.33 - * {@link org.netbeans.modules.bpel.debugger.spi.plugin.event.EventSet}
   55.34 - * containing an instance of this class will be added to the
   55.35 - * {@link org.netbeans.modules.bpel.debugger.spi.plugin.BpelEngine}'s
   55.36 - * {@link org.netbeans.modules.bpel.debugger.spi.plugin.event.EventQueue}.
   55.37 - *
   55.38 - * @author Alexander Zgursky
   55.39 - */
   55.40 -public interface StepCompletedEvent extends LocatableEvent {
   55.41 -    
   55.42 -}
    56.1 --- a/bpel.debugger.api/src/org/netbeans/modules/bpel/debugger/spi/plugin/event/package.html	Fri Dec 29 11:53:50 2006 +0000
    56.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
    56.3 @@ -1,37 +0,0 @@
    56.4 -<!DOCTYPE doctype PUBLIC "-//w3c//dtd html 4.0 transitional//en">
    56.5 -<html>
    56.6 -<head>
    56.7 -  <meta http-equiv="Content-Type"
    56.8 - content="text/html; charset=iso-8859-1">
    56.9 -  <meta name="GENERATOR"
   56.10 - content="Mozilla/4.76 [en] (Windows NT 5.0; U) [Netscape]">
   56.11 -  <title>package</title>
   56.12 -<!--
   56.13 -  -- Copyright 2005 Sun Microsystems, Inc. All rights reserved.
   56.14 -  -- SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
   56.15 -  -->
   56.16 -</head>
   56.17 -<body>
   56.18 -Defines BPEL Debugger Plugin events and event processing.<br>
   56.19 -BPEL Debugger Plugin notifies the BPEL Debugger Core about changes in its
   56.20 -state by putting
   56.21 -{@link org.netbeans.modules.bpel.debugger.spi.plugin.event.EventSet} objects
   56.22 -in the {@link org.netbeans.modules.bpel.debugger.spi.plugin.event.EventQueue},
   56.23 -assosiated with a target
   56.24 -{@link org.netbeans.modules.bpel.debugger.spi.plugin.BpelEngine}.
   56.25 -Each {@link org.netbeans.modules.bpel.debugger.spi.plugin.event.EventSet}
   56.26 -object may hold one or many
   56.27 -{@link org.netbeans.modules.bpel.debugger.spi.plugin.event.Event} objects.
   56.28 -Examples of events include
   56.29 -{@link org.netbeans.modules.bpel.debugger.spi.plugin.event.BreakpointReachedEvent},
   56.30 -{@link org.netbeans.modules.bpel.debugger.spi.plugin.event.ProcessInstanceCreatedEvent} and
   56.31 -{@link org.netbeans.modules.bpel.debugger.spi.plugin.event.BpelEngineDisconnectedEvent}.
   56.32 -<br><br>
   56.33 -With the exception of
   56.34 -{@link org.netbeans.modules.bpel.debugger.spi.plugin.event.BpelEngineDisconnectedEvent},
   56.35 -all events received must be requested with an
   56.36 -{@link org.netbeans.modules.bpel.debugger.spi.plugin.request.EventRequest}.
   56.37 -The {@link org.netbeans.modules.bpel.debugger.spi.plugin.request} package
   56.38 -defines event requests and event request management.
   56.39 -</body>
   56.40 -</html>
    57.1 --- a/bpel.debugger.api/src/org/netbeans/modules/bpel/debugger/spi/plugin/exec/ProcessInstance.java	Fri Dec 29 11:53:50 2006 +0000
    57.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
    57.3 @@ -1,58 +0,0 @@
    57.4 -/*
    57.5 - * The contents of this file are subject to the terms of the Common Development
    57.6 - * and Distribution License (the License). You may not use this file except in
    57.7 - * compliance with the License.
    57.8 - *
    57.9 - * You can obtain a copy of the License at http://www.netbeans.org/cddl.html
   57.10 - * or http://www.netbeans.org/cddl.txt.
   57.11 -
   57.12 - * When distributing Covered Code, include this CDDL Header Notice in each file
   57.13 - * and include the License file at http://www.netbeans.org/cddl.txt.
   57.14 - * If applicable, add the following below the CDDL Header, with the fields
   57.15 - * enclosed by brackets [] replaced by your own identifying information:
   57.16 - * "Portions Copyrighted [year] [name of copyright owner]"
   57.17 - *
   57.18 - * The Original Software is NetBeans. The Initial Developer of the Original
   57.19 - * Software is Sun Microsystems, Inc. Portions Copyright 1997-2006 Sun
   57.20 - * Microsystems, Inc. All Rights Reserved.
   57.21 - */
   57.22 -
   57.23 -package org.netbeans.modules.bpel.debugger.spi.plugin.exec;
   57.24 -
   57.25 -import org.netbeans.modules.bpel.debugger.spi.plugin.*;
   57.26 -import org.netbeans.modules.bpel.debugger.spi.plugin.def.ProcessType;
   57.27 -
   57.28 -/**
   57.29 - * Represents a process instance, running on the BPEL Engine.
   57.30 - * It is not required to have a single object
   57.31 - * of the implementation class for a process instance.
   57.32 - * Although, equals() and hashCode() should be implemented
   57.33 - * properly to reflect that those objects are representing the same
   57.34 - * process instance.
   57.35 - *
   57.36 - * @author Alexander Zgursky
   57.37 - */
   57.38 -public interface ProcessInstance {
   57.39 -    String geUniqueId();
   57.40 -    ProcessType getProcessType();
   57.41 -    State getState();
   57.42 -    ScopeInstance getRootScopeInstance();
   57.43 -    void resume();
   57.44 -    boolean equals(Object obj);
   57.45 -    int hashCode();
   57.46 -    
   57.47 -    enum State {
   57.48 -        UNKNOWN,
   57.49 -        RUNNING,
   57.50 -        SUSPENDED,
   57.51 -        COMPLETED,
   57.52 -        FAILED,
   57.53 -        TERMINATED
   57.54 -    }
   57.55 -
   57.56 -    //void suspend() throws PluginException;
   57.57 -    //Date getStartTime(Object piid);
   57.58 -    //public synchronized void setVariable(...
   57.59 -    //void terminate(Object piid);
   57.60 -    //QName getCompletedFault(Object piid)
   57.61 -}
    58.1 --- a/bpel.debugger.api/src/org/netbeans/modules/bpel/debugger/spi/plugin/exec/ScopeInstance.java	Fri Dec 29 11:53:50 2006 +0000
    58.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
    58.3 @@ -1,53 +0,0 @@
    58.4 -/*
    58.5 - * The contents of this file are subject to the terms of the Common Development
    58.6 - * and Distribution License (the License). You may not use this file except in
    58.7 - * compliance with the License.
    58.8 - *
    58.9 - * You can obtain a copy of the License at http://www.netbeans.org/cddl.html
   58.10 - * or http://www.netbeans.org/cddl.txt.
   58.11 -
   58.12 - * When distributing Covered Code, include this CDDL Header Notice in each file
   58.13 - * and include the License file at http://www.netbeans.org/cddl.txt.
   58.14 - * If applicable, add the following below the CDDL Header, with the fields
   58.15 - * enclosed by brackets [] replaced by your own identifying information:
   58.16 - * "Portions Copyrighted [year] [name of copyright owner]"
   58.17 - *
   58.18 - * The Original Software is NetBeans. The Initial Developer of the Original
   58.19 - * Software is Sun Microsystems, Inc. Portions Copyright 1997-2006 Sun
   58.20 - * Microsystems, Inc. All Rights Reserved.
   58.21 - */
   58.22 -
   58.23 -package org.netbeans.modules.bpel.debugger.spi.plugin.exec;
   58.24 -
   58.25 -import java.util.List;
   58.26 -import org.netbeans.modules.bpel.debugger.spi.plugin.*;
   58.27 -import org.netbeans.modules.bpel.debugger.spi.plugin.def.AbstractScopeDeclaration;
   58.28 -import org.netbeans.modules.bpel.debugger.spi.plugin.def.BpelElement;
   58.29 -import org.netbeans.modules.bpel.debugger.spi.plugin.def.VariableDeclaration;
   58.30 -
   58.31 -/**
   58.32 - * Representing a scope instance that was created as process instance
   58.33 - * was executing.
   58.34 - * It is not required to have a single object
   58.35 - * of the implementation class for a scope instance.
   58.36 - * Although, equals() and hashCode() should be implemented
   58.37 - * properly to reflect that those objects are representing the same
   58.38 - * scope instance.
   58.39 - *
   58.40 - * @author Alexander Zgursky
   58.41 - */
   58.42 -public interface ScopeInstance {
   58.43 -    ProcessInstance getProcessInstance();
   58.44 -    AbstractScopeDeclaration getScopeDeclaration();
   58.45 -    ScopeInstance getOuterScopeInstance();
   58.46 -    List<ScopeInstance> getInnerScopeInstances();
   58.47 -    String getUniqueId();
   58.48 -    boolean equals(Object obj);
   58.49 -    int hashCode();
   58.50 -    
   58.51 -    /**
   58.52 -     * Given variable declaration may be of any outer execution contexts.
   58.53 -     */
   58.54 -    Value getVariableValue(VariableDeclaration variable);
   58.55 -//    Value evaluate(String expression);
   58.56 -}
    59.1 --- a/bpel.debugger.api/src/org/netbeans/modules/bpel/debugger/spi/plugin/exec/Value.java	Fri Dec 29 11:53:50 2006 +0000
    59.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
    59.3 @@ -1,36 +0,0 @@
    59.4 -/*
    59.5 - * The contents of this file are subject to the terms of the Common Development
    59.6 - * and Distribution License (the License). You may not use this file except in
    59.7 - * compliance with the License.
    59.8 - *
    59.9 - * You can obtain a copy of the License at http://www.netbeans.org/cddl.html
   59.10 - * or http://www.netbeans.org/cddl.txt.
   59.11 -
   59.12 - * When distributing Covered Code, include this CDDL Header Notice in each file
   59.13 - * and include the License file at http://www.netbeans.org/cddl.txt.
   59.14 - * If applicable, add the following below the CDDL Header, with the fields
   59.15 - * enclosed by brackets [] replaced by your own identifying information:
   59.16 - * "Portions Copyrighted [year] [name of copyright owner]"
   59.17 - *
   59.18 - * The Original Software is NetBeans. The Initial Developer of the Original
   59.19 - * Software is Sun Microsystems, Inc. Portions Copyright 1997-2006 Sun
   59.20 - * Microsystems, Inc. All Rights Reserved.
   59.21 - */
   59.22 -
   59.23 -package org.netbeans.modules.bpel.debugger.spi.plugin.exec;
   59.24 -
   59.25 -import org.netbeans.modules.bpel.debugger.spi.plugin.*;
   59.26 -import org.netbeans.modules.bpel.debugger.spi.plugin.def.ValueType;
   59.27 -
   59.28 -/**
   59.29 - * Represents a value of a variable or result of an expression.
   59.30 - * Supposed to have more specific interfaces extending this one.
   59.31 - * While there's no such interfaces yet, a value should be obtained using
   59.32 - * asString() method.
   59.33 - *
   59.34 - * @author Alexander Zgursky
   59.35 - */
   59.36 -public interface Value {
   59.37 -    ValueType getType();
   59.38 -    String asString();
   59.39 -}
    60.1 --- a/bpel.debugger.api/src/org/netbeans/modules/bpel/debugger/spi/plugin/package.html	Fri Dec 29 11:53:50 2006 +0000
    60.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
    60.3 @@ -1,62 +0,0 @@
    60.4 -<!DOCTYPE doctype PUBLIC "-//w3c//dtd html 4.0 transitional//en">
    60.5 -<html>
    60.6 -<head>
    60.7 -  <meta http-equiv="Content-Type"
    60.8 - content="text/html; charset=iso-8859-1">
    60.9 -  <meta name="GENERATOR"
   60.10 - content="Mozilla/4.76 [en] (Windows NT 5.0; U) [Netscape]">
   60.11 -  <title>package</title>
   60.12 -<!--
   60.13 -  -- Copyright 2005 Sun Microsystems, Inc. All rights reserved.
   60.14 -  -- SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
   60.15 -  -->
   60.16 -</head>
   60.17 -<body>
   60.18 -The core package of the BPEL Debugger Plugin SPI
   60.19 -(Service Provider Interface).
   60.20 -The purpose of this SPI is to incapsulate any particular BPEL Engine specifics in a
   60.21 -separate component - BPEL Debugger Plugin, while having BPEL Engine independent
   60.22 -the core functionality of the BPEL Debugger.
   60.23 -This SPI may be considered as the requirements for the BPEL Engine to meet 
   60.24 -so that it could be debugged by the NetBeans IDE.<br>
   60.25 -Many patterns in this SPI were inherited from the JDI (Java Debug Interface), so
   60.26 -it may be helpfull to take a look at the JDI definition
   60.27 -to better understand this SPI.
   60.28 -<br><br>
   60.29 -The root entity of this SPI is the
   60.30 -{@link org.netbeans.modules.bpel.debugger.spi.plugin.BpelDebuggerPlugin}
   60.31 -interface. It represents the BPEL Debugger Plugin itself, allowing to make
   60.32 -new connections to BPEL Engine instances. Plugins are registered in the
   60.33 -NetBeans IDE by providing a NetBeans module that have a text file named
   60.34 -"org.netbeans.modules.bpel.debugger.spi.plugin.BpelDebuggerPlugin" in the
   60.35 -META-INF/debugger folder of the module's *.jar file. The file should contain
   60.36 -a fully-qualified class name of the
   60.37 -{@link org.netbeans.modules.bpel.debugger.spi.plugin.BpelDebuggerPlugin}
   60.38 -interface impelementation.
   60.39 -<br><br>
   60.40 -{@link org.netbeans.modules.bpel.debugger.spi.plugin.BpelEngine} interface
   60.41 -represents a target BPEL Engine. It is the origin of all
   60.42 -information provided by the BPEL Debugger Plugin SPI (e.g. deployed Process Types,
   60.43 -running Process Instances etc).
   60.44 -To connect to a target BPEL Engine and obtain a corresponding
   60.45 -{@link org.netbeans.modules.bpel.debugger.spi.plugin.BpelEngine} object
   60.46 -one needs to obtain a
   60.47 -{@link org.netbeans.modules.bpel.debugger.spi.plugin.Connector} object through
   60.48 -a call to
   60.49 -{@link org.netbeans.modules.bpel.debugger.spi.plugin.BpelDebuggerPlugin#getConnector},
   60.50 -and then invoke 
   60.51 -{@link org.netbeans.modules.bpel.debugger.spi.plugin.Connector#attach} on it.
   60.52 -<br><br>
   60.53 -For the description of event notification mechanism used in this SPI see
   60.54 -{@link org.netbeans.modules.bpel.debugger.spi.plugin.event} and
   60.55 -{@link org.netbeans.modules.bpel.debugger.spi.plugin.request} package
   60.56 -descriptions.
   60.57 -<br><br>
   60.58 -Most of the methods within this package and subpackages can throw
   60.59 -the following unchecked exceptions:
   60.60 -{@link org.netbeans.modules.bpel.debugger.spi.plugin.BpelEngineDisconnectedException},
   60.61 -{@link org.netbeans.modules.bpel.debugger.spi.plugin.BpelEngineMismatchException},
   60.62 -{@link org.netbeans.modules.bpel.debugger.spi.plugin.BpelEngineInternalException}.
   60.63 -
   60.64 -</body>
   60.65 -</html>
    61.1 --- a/bpel.debugger.api/src/org/netbeans/modules/bpel/debugger/spi/plugin/request/BreakpointReachedRequest.java	Fri Dec 29 11:53:50 2006 +0000
    61.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
    61.3 @@ -1,30 +0,0 @@
    61.4 -/*
    61.5 - * The contents of this file are subject to the terms of the Common Development
    61.6 - * and Distribution License (the License). You may not use this file except in
    61.7 - * compliance with the License.
    61.8 - *
    61.9 - * You can obtain a copy of the License at http://www.netbeans.org/cddl.html
   61.10 - * or http://www.netbeans.org/cddl.txt.
   61.11 -
   61.12 - * When distributing Covered Code, include this CDDL Header Notice in each file
   61.13 - * and include the License file at http://www.netbeans.org/cddl.txt.
   61.14 - * If applicable, add the following below the CDDL Header, with the fields
   61.15 - * enclosed by brackets [] replaced by your own identifying information:
   61.16 - * "Portions Copyrighted [year] [name of copyright owner]"
   61.17 - *
   61.18 - * The Original Software is NetBeans. The Initial Developer of the Original
   61.19 - * Software is Sun Microsystems, Inc. Portions Copyright 1997-2006 Sun
   61.20 - * Microsystems, Inc. All Rights Reserved.
   61.21 - */
   61.22 -
   61.23 -package org.netbeans.modules.bpel.debugger.spi.plugin.request;
   61.24 -
   61.25 -import org.netbeans.modules.bpel.debugger.spi.plugin.def.Position;
   61.26 -
   61.27 -/**
   61.28 - *
   61.29 - * @author Alexander Zgursky
   61.30 - */
   61.31 -public interface BreakpointReachedRequest extends EventRequest {
   61.32 -    Position getPosition();
   61.33 -}
    62.1 --- a/bpel.debugger.api/src/org/netbeans/modules/bpel/debugger/spi/plugin/request/DuplicateRequestException.java	Fri Dec 29 11:53:50 2006 +0000
    62.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
    62.3 @@ -1,37 +0,0 @@
    62.4 -/*
    62.5 - * The contents of this file are subject to the terms of the Common Development
    62.6 - * and Distribution License (the License). You may not use this file except in
    62.7 - * compliance with the License.
    62.8 - *
    62.9 - * You can obtain a copy of the License at http://www.netbeans.org/cddl.html
   62.10 - * or http://www.netbeans.org/cddl.txt.
   62.11 -
   62.12 - * When distributing Covered Code, include this CDDL Header Notice in each file
   62.13 - * and include the License file at http://www.netbeans.org/cddl.txt.
   62.14 - * If applicable, add the following below the CDDL Header, with the fields
   62.15 - * enclosed by brackets [] replaced by your own identifying information:
   62.16 - * "Portions Copyrighted [year] [name of copyright owner]"
   62.17 - *
   62.18 - * The Original Software is NetBeans. The Initial Developer of the Original
   62.19 - * Software is Sun Microsystems, Inc. Portions Copyright 1997-2006 Sun
   62.20 - * Microsystems, Inc. All Rights Reserved.
   62.21 - */
   62.22 -
   62.23 -package org.netbeans.modules.bpel.debugger.spi.plugin.request;
   62.24 -
   62.25 -/**
   62.26 - *
   62.27 - * @author Alexander Zgursky
   62.28 - */
   62.29 -public class DuplicateRequestException extends RuntimeException {
   62.30 -    public static final long serialVersionUID = 0L;
   62.31 -
   62.32 -    /** Creates a new instance of DuplicateRequestException. */
   62.33 -    public DuplicateRequestException() {
   62.34 -    }
   62.35 -
   62.36 -    /** Creates a new instance of DuplicateRequestException. */
   62.37 -    public DuplicateRequestException(String message) {
   62.38 -        super(message);
   62.39 -    }
   62.40 -}
    63.1 --- a/bpel.debugger.api/src/org/netbeans/modules/bpel/debugger/spi/plugin/request/EventRequest.java	Fri Dec 29 11:53:50 2006 +0000
    63.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
    63.3 @@ -1,142 +0,0 @@
    63.4 -/*
    63.5 - * The contents of this file are subject to the terms of the Common Development
    63.6 - * and Distribution License (the License). You may not use this file except in
    63.7 - * compliance with the License.
    63.8 - *
    63.9 - * You can obtain a copy of the License at http://www.netbeans.org/cddl.html
   63.10 - * or http://www.netbeans.org/cddl.txt.
   63.11 -
   63.12 - * When distributing Covered Code, include this CDDL Header Notice in each file
   63.13 - * and include the License file at http://www.netbeans.org/cddl.txt.
   63.14 - * If applicable, add the following below the CDDL Header, with the fields
   63.15 - * enclosed by brackets [] replaced by your own identifying information:
   63.16 - * "Portions Copyrighted [year] [name of copyright owner]"
   63.17 - *
   63.18 - * The Original Software is NetBeans. The Initial Developer of the Original
   63.19 - * Software is Sun Microsystems, Inc. Portions Copyright 1997-2006 Sun
   63.20 - * Microsystems, Inc. All Rights Reserved.
   63.21 - */
   63.22 -
   63.23 -package org.netbeans.modules.bpel.debugger.spi.plugin.request;
   63.24 -
   63.25 -/**
   63.26 - * Represents a request for notification of an event.
   63.27 - * Examples include
   63.28 - * {@link org.netbeans.modules.bpel.debugger.spi.plugin.request.BreakpointReachedRequest}
   63.29 - * and
   63.30 - * {@link org.netbeans.modules.bpel.debugger.spi.plugin.request.ProcessInstanceCreatedRequest}.
   63.31 - * When an event occurs for which an enabled request is present,
   63.32 - * an
   63.33 - * {@link org.netbeans.modules.bpel.debugger.spi.plugin.event.EventSet}
   63.34 - * will be placed on the
   63.35 - * {@link org.netbeans.modules.bpel.debugger.spi.plugin.event.EventQueue}.
   63.36 - * The collection of existing event requests is managed
   63.37 - * by the
   63.38 - * {@link org.netbeans.modules.bpel.debugger.spi.plugin.request.EventRequestManager}.
   63.39 - * <br><br>
   63.40 - * Any method on EventRequest or which takes EventRequest as an parameter may
   63.41 - * throw
   63.42 - * {@link org.netbeans.modules.bpel.debugger.spi.plugin.BpelEngineDisconnectedException}
   63.43 - * if the target BPEL Engine is disconnected and the
   63.44 - * {@link org.netbeans.modules.bpel.debugger.spi.plugin.event.BpelEngineDisconnectedEvent}
   63.45 - * has been or is available to be read from the
   63.46 - * {@link org.netbeans.modules.bpel.debugger.spi.plugin.event.EventQueue}.
   63.47 - *
   63.48 - * @author Alexander Zgursky
   63.49 - */
   63.50 -public interface EventRequest {
   63.51 -    
   63.52 -    /**
   63.53 -     * Enables or disables this event request.
   63.54 -     * While this event request is disabled, the event request will be ignored
   63.55 -     * by the target BPEL Engine. Disabled event requests still exist, and are
   63.56 -     * included in
   63.57 -     * {@link org.netbeans.modules.bpel.debugger.spi.plugin.request.EventRequestManager#getAllRequests}.
   63.58 -     *
   63.59 -     * @param val true if the request is to be enabled; false otherwise.
   63.60 -     *
   63.61 -     * @throws InvalidRequestStateException
   63.62 -     *  if this request has been deleted
   63.63 -     * @throws org.netbeans.modules.bpel.debugger.spi.plugin.IncompatibleProcessInstanceStateException
   63.64 -     *  if this is a
   63.65 -     *  {@link org.netbeans.modules.bpel.debugger.spi.plugin.request.StepCompletedRequest},
   63.66 -     *  val is <code>true</code>, and the process instance named in
   63.67 -     *  the request has completed
   63.68 -     */
   63.69 -    void setEnabled(boolean val);
   63.70 -    
   63.71 -    /**
   63.72 -     * Determines if this event request is currently enabled.
   63.73 -     *
   63.74 -     * @return <code>true</code> if enabled; <code>false</code> otherwise
   63.75 -     */
   63.76 -    boolean isEnabled();
   63.77 -    
   63.78 -    /**
   63.79 -     * Add an arbitrary key/value "property" to this request.
   63.80 -     * The property can be used by the BPEL Debugger Core to associate
   63.81 -     * its information with the request; these properties are not used
   63.82 -     * internally by the BPEL Debugger Plugin.
   63.83 -     * <br><br>
   63.84 -     * The get/putProperty methods provide access to a small per-instance map.
   63.85 -     * This is not to be confused with {@link java.util.Properties}.
   63.86 -     * <br><br>
   63.87 -     * If value is <code>null</code> this method will remove the property. 
   63.88 -     */
   63.89 -    void putProperty(Object key, Object value);
   63.90 -    
   63.91 -    /**
   63.92 -     * Returns the value of the property with the specified key.
   63.93 -     * Only properties added with
   63.94 -     * {@link #putProperty} will return a non-null value.
   63.95 -     *
   63.96 -     * @return the value of this property or <code>null</code>
   63.97 -     */
   63.98 -    Object getProperty(Object key);
   63.99 -    
  63.100 -    /**
  63.101 -     * Determines the process instance to suspend when the requested event
  63.102 -     * occurs in the target BPEL Engine.
  63.103 -     * 
  63.104 -     * Use {@link SuspendPolicy#SUSPEND_ALL}
  63.105 -     * to suspend all process instances in the target BPEL Engine.
  63.106 -     * Use {@link SuspendPolicy#SUSPEND_EVENT_PROCESS_INSTANCE} to suspend only
  63.107 -     * the process instance which generated the event (the default).
  63.108 -     * Use {@link SuspendPolicy#SUSPEND_NONE} to suspend no process instances.
  63.109 -     *
  63.110 -     * @throws InvalidRequestStateException
  63.111 -     *  if this request is currently enabled or has been deleted.
  63.112 -     *  Suspend policy may only be set in disabled requests.
  63.113 -     */
  63.114 -    void setSuspendPolicy(SuspendPolicy policy);
  63.115 -    
  63.116 -    /**
  63.117 -     * Returns a value which describes the process instances to suspend when
  63.118 -     * the requested event occurs in the target BPEL Engine.
  63.119 -     *
  63.120 -     * @return the current suspend mode for this request
  63.121 -     */
  63.122 -    SuspendPolicy getSuspendPolicy();
  63.123 -    
  63.124 -    /**
  63.125 -     * Defines the possible values for suspend policy.
  63.126 -     */
  63.127 -    enum SuspendPolicy {
  63.128 -        
  63.129 -        /**
  63.130 -         * Suspend all process instances when the event occurs.
  63.131 -         */
  63.132 -        SUSPEND_ALL,
  63.133 -        
  63.134 -        /**
  63.135 -         * Suspend only the process instance which generated
  63.136 -         * the event when the event occurs.
  63.137 -         */
  63.138 -        SUSPEND_EVENT_PROCESS_INSTANCE,
  63.139 -        
  63.140 -        /**
  63.141 -         * Suspend no process instances when the event occurs.
  63.142 -         */
  63.143 -        SUSPEND_NONE
  63.144 -    }
  63.145 -}
    64.1 --- a/bpel.debugger.api/src/org/netbeans/modules/bpel/debugger/spi/plugin/request/EventRequestManager.java	Fri Dec 29 11:53:50 2006 +0000
    64.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
    64.3 @@ -1,142 +0,0 @@
    64.4 -/*
    64.5 - * The contents of this file are subject to the terms of the Common Development
    64.6 - * and Distribution License (the License). You may not use this file except in
    64.7 - * compliance with the License.
    64.8 - *
    64.9 - * You can obtain a copy of the License at http://www.netbeans.org/cddl.html
   64.10 - * or http://www.netbeans.org/cddl.txt.
   64.11 -
   64.12 - * When distributing Covered Code, include this CDDL Header Notice in each file
   64.13 - * and include the License file at http://www.netbeans.org/cddl.txt.
   64.14 - * If applicable, add the following below the CDDL Header, with the fields
   64.15 - * enclosed by brackets [] replaced by your own identifying information:
   64.16 - * "Portions Copyrighted [year] [name of copyright owner]"
   64.17 - *
   64.18 - * The Original Software is NetBeans. The Initial Developer of the Original
   64.19 - * Software is Sun Microsystems, Inc. Portions Copyright 1997-2006 Sun
   64.20 - * Microsystems, Inc. All Rights Reserved.
   64.21 - */
   64.22 -
   64.23 -package org.netbeans.modules.bpel.debugger.spi.plugin.request;
   64.24 -
   64.25 -import java.util.List;
   64.26 -import org.netbeans.modules.bpel.debugger.spi.plugin.def.Position;
   64.27 -import org.netbeans.modules.bpel.debugger.spi.plugin.exec.ProcessInstance;
   64.28 -
   64.29 -/**
   64.30 - * Manages the creation and deletion of
   64.31 - * {@link org.netbeans.modules.bpel.debugger.spi.plugin.request.EventRequest}s.
   64.32 - * A single implementor of this interface exists for a particuar
   64.33 - * {@link org.netbeans.modules.bpel.debugger.spi.plugin.BpelEngine}
   64.34 - * and is accessed through
   64.35 - * {@link org.netbeans.modules.bpel.debugger.spi.plugin.BpelEngine#getEventRequestManager()}.
   64.36 - *
   64.37 - * @author Alexander Zgursky
   64.38 - */
   64.39 -public interface EventRequestManager {
   64.40 -    
   64.41 -    /**
   64.42 -     * Creates a new disabled
   64.43 -     * {@link org.netbeans.modules.bpel.debugger.spi.plugin.request.ProcessInstanceCreatedRequest}.
   64.44 -     * The new event request is added to the list managed by this
   64.45 -     * EventRequestManager. Use
   64.46 -     * {@link org.netbeans.modules.bpel.debugger.spi.plugin.request.EventRequest#setEnabled}
   64.47 -     * to activate this event request.
   64.48 -     *
   64.49 -     * @return the created event request
   64.50 -     */
   64.51 -    ProcessInstanceCreatedRequest createProcessInstanceCreatedRequest();
   64.52 -    
   64.53 -    /**
   64.54 -     * Creates a new disabled
   64.55 -     * {@link org.netbeans.modules.bpel.debugger.spi.plugin.request.ProcessInstanceCompletedRequest}.
   64.56 -     * The new event request is added to the list managed by this
   64.57 -     * EventRequestManager. Use
   64.58 -     * {@link org.netbeans.modules.bpel.debugger.spi.plugin.request.EventRequest#setEnabled}
   64.59 -     * to activate this event request.
   64.60 -     *
   64.61 -     * @return the created event request
   64.62 -     */
   64.63 -    ProcessInstanceCompletedRequest createProcessInstanceCompletedRequest();
   64.64 -    
   64.65 -    /**
   64.66 -     * Creates a new disabled
   64.67 -     * {@link org.netbeans.modules.bpel.debugger.spi.plugin.request.BreakpointReachedRequest}
   64.68 -     * which is set on the given
   64.69 -     * {@link org.netbeans.modules.bpel.debugger.spi.plugin.def.Position}.
   64.70 -     * The new breakpoint is added to the list managed by this
   64.71 -     * EventRequestManager. Multiple breakpoints at the same
   64.72 -     * {@link org.netbeans.modules.bpel.debugger.spi.plugin.def.Position}
   64.73 -     * are permitted. Use
   64.74 -     * {@link org.netbeans.modules.bpel.debugger.spi.plugin.request.EventRequest#setEnabled}
   64.75 -     * to activate this event request.
   64.76 -     *
   64.77 -     * @param position the position of the new breakpoint
   64.78 -     *
   64.79 -     * @return the created event request
   64.80 -     */
   64.81 -    BreakpointReachedRequest createBreakpointReachedRequest(Position position);
   64.82 -    
   64.83 -    /**
   64.84 -     * Creates a new disabled
   64.85 -     * {@link org.netbeans.modules.bpel.debugger.spi.plugin.request.StepCompletedRequest}.
   64.86 -     * The new step request is added to the list managed by this
   64.87 -     * EventRequestManager. Use
   64.88 -     * {@link org.netbeans.modules.bpel.debugger.spi.plugin.request.EventRequest#setEnabled}
   64.89 -     * to activate this event request.
   64.90 -     * <br><br>
   64.91 -     * Only one pending step request is allowed per process instance.
   64.92 -     * <br><br>
   64.93 -     * Note that enabling this request doesn't automatically resume the
   64.94 -     * process instance. The process instance will get a chance to
   64.95 -     * complete the step after a call to
   64.96 -     * {@link org.netbeans.modules.bpel.debugger.spi.plugin.exec.ProcessInstance#resume}
   64.97 -     * or
   64.98 -     * {@link org.netbeans.modules.bpel.debugger.spi.plugin.BpelEngine#resumeAllProcessInstances}.
   64.99 -     * <br><br>
  64.100 -     * Note that this event request would cause one or zero
  64.101 -     * {@link org.netbeans.modules.bpel.debugger.spi.plugin.event.StepCompletedEvent}s
  64.102 -     * to be sent. An instance of this request is neither removed from the list
  64.103 -     * nor disabled automatically by the BPEL Debugger Plugin as the
  64.104 -     * corresponding event is sent.
  64.105 -     *
  64.106 -     * @param processInstance the process instance in which to step
  64.107 -     *
  64.108 -     * @return the created event request
  64.109 -     *
  64.110 -     * @throws DuplicateRequestException if there is already a pending
  64.111 -     *  step request for the specified process instance
  64.112 -     */
  64.113 -    StepCompletedRequest createStepCompletedRequest(ProcessInstance processInstance);
  64.114 -    
  64.115 -    /**
  64.116 -     * Return an unmodifiable list of the enabled and disabled event requests.
  64.117 -     * This list is a live view of these requests and thus changes as
  64.118 -     * requests are added and deleted.
  64.119 -     *
  64.120 -     * @return the list of event requests
  64.121 -     */
  64.122 -    List<EventRequest> getAllRequests();
  64.123 -    
  64.124 -    /**
  64.125 -     * Removes an event request. The eventRequest is disabled and removed from
  64.126 -     * the requests managed by this EventRequestManager. Once the eventRequest
  64.127 -     * is deleted, no operations (for example,
  64.128 -     * {@link org.netbeans.modules.bpel.debugger.spi.plugin.request.EventRequest#setEnabled})
  64.129 -     * are permitted - attempts to do so will generally cause an
  64.130 -     * {@link org.netbeans.modules.bpel.debugger.spi.plugin.request.InvalidRequestStateException}.
  64.131 -     * No other event requests are effected.
  64.132 -     *
  64.133 -     * @param eventRequest the event request to remove
  64.134 -     */
  64.135 -    void deleteEventRequest(EventRequest eventRequest);
  64.136 -    
  64.137 -    /**
  64.138 -     * Removes a list of event requests.
  64.139 -     *
  64.140 -     * @param eventRequests the event requests to remove
  64.141 -     *
  64.142 -     * @see #deleteEventRequest
  64.143 -     */
  64.144 -    void deleteEventRequests(List<EventRequest> eventRequests);
  64.145 -}
    65.1 --- a/bpel.debugger.api/src/org/netbeans/modules/bpel/debugger/spi/plugin/request/InvalidRequestStateException.java	Fri Dec 29 11:53:50 2006 +0000
    65.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
    65.3 @@ -1,37 +0,0 @@
    65.4 -/*
    65.5 - * The contents of this file are subject to the terms of the Common Development
    65.6 - * and Distribution License (the License). You may not use this file except in
    65.7 - * compliance with the License.
    65.8 - *
    65.9 - * You can obtain a copy of the License at http://www.netbeans.org/cddl.html
   65.10 - * or http://www.netbeans.org/cddl.txt.
   65.11 -
   65.12 - * When distributing Covered Code, include this CDDL Header Notice in each file
   65.13 - * and include the License file at http://www.netbeans.org/cddl.txt.
   65.14 - * If applicable, add the following below the CDDL Header, with the fields
   65.15 - * enclosed by brackets [] replaced by your own identifying information:
   65.16 - * "Portions Copyrighted [year] [name of copyright owner]"
   65.17 - *
   65.18 - * The Original Software is NetBeans. The Initial Developer of the Original
   65.19 - * Software is Sun Microsystems, Inc. Portions Copyright 1997-2006 Sun
   65.20 - * Microsystems, Inc. All Rights Reserved.
   65.21 - */
   65.22 -
   65.23 -package org.netbeans.modules.bpel.debugger.spi.plugin.request;
   65.24 -
   65.25 -/**
   65.26 - *
   65.27 - * @author Alexander Zgursky
   65.28 - */
   65.29 -public class InvalidRequestStateException extends RuntimeException {
   65.30 -    public static final long serialVersionUID = 0L;
   65.31 -
   65.32 -    /** Creates a new instance of InvalidRequestStateException. */
   65.33 -    public InvalidRequestStateException() {
   65.34 -    }
   65.35 -
   65.36 -    /** Creates a new instance of InvalidRequestStateException. */
   65.37 -    public InvalidRequestStateException(String message) {
   65.38 -        super(message);
   65.39 -    }
   65.40 -}
    66.1 --- a/bpel.debugger.api/src/org/netbeans/modules/bpel/debugger/spi/plugin/request/ProcessInstanceCompletedRequest.java	Fri Dec 29 11:53:50 2006 +0000
    66.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
    66.3 @@ -1,9 +0,0 @@
    66.4 -package org.netbeans.modules.bpel.debugger.spi.plugin.request;
    66.5 -
    66.6 -/**
    66.7 - *
    66.8 - * @author Alexander Zgursky
    66.9 - */
   66.10 -public interface ProcessInstanceCompletedRequest extends EventRequest {
   66.11 -    
   66.12 -}
    67.1 --- a/bpel.debugger.api/src/org/netbeans/modules/bpel/debugger/spi/plugin/request/ProcessInstanceCreatedRequest.java	Fri Dec 29 11:53:50 2006 +0000
    67.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
    67.3 @@ -1,28 +0,0 @@
    67.4 -/*
    67.5 - * The contents of this file are subject to the terms of the Common Development
    67.6 - * and Distribution License (the License). You may not use this file except in
    67.7 - * compliance with the License.
    67.8 - *
    67.9 - * You can obtain a copy of the License at http://www.netbeans.org/cddl.html
   67.10 - * or http://www.netbeans.org/cddl.txt.
   67.11 -
   67.12 - * When distributing Covered Code, include this CDDL Header Notice in each file
   67.13 - * and include the License file at http://www.netbeans.org/cddl.txt.
   67.14 - * If applicable, add the following below the CDDL Header, with the fields
   67.15 - * enclosed by brackets [] replaced by your own identifying information:
   67.16 - * "Portions Copyrighted [year] [name of copyright owner]"
   67.17 - *
   67.18 - * The Original Software is NetBeans. The Initial Developer of the Original
   67.19 - * Software is Sun Microsystems, Inc. Portions Copyright 1997-2006 Sun
   67.20 - * Microsystems, Inc. All Rights Reserved.
   67.21 - */
   67.22 -
   67.23 -package org.netbeans.modules.bpel.debugger.spi.plugin.request;
   67.24 -
   67.25 -/**
   67.26 - *
   67.27 - * @author Alexander Zgursky
   67.28 - */
   67.29 -public interface ProcessInstanceCreatedRequest extends EventRequest {
   67.30 -
   67.31 -}
    68.1 --- a/bpel.debugger.api/src/org/netbeans/modules/bpel/debugger/spi/plugin/request/StepCompletedRequest.java	Fri Dec 29 11:53:50 2006 +0000
    68.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
    68.3 @@ -1,28 +0,0 @@
    68.4 -/*
    68.5 - * The contents of this file are subject to the terms of the Common Development
    68.6 - * and Distribution License (the License). You may not use this file except in
    68.7 - * compliance with the License.
    68.8 - *
    68.9 - * You can obtain a copy of the License at http://www.netbeans.org/cddl.html
   68.10 - * or http://www.netbeans.org/cddl.txt.
   68.11 -
   68.12 - * When distributing Covered Code, include this CDDL Header Notice in each file
   68.13 - * and include the License file at http://www.netbeans.org/cddl.txt.
   68.14 - * If applicable, add the following below the CDDL Header, with the fields
   68.15 - * enclosed by brackets [] replaced by your own identifying information:
   68.16 - * "Portions Copyrighted [year] [name of copyright owner]"
   68.17 - *
   68.18 - * The Original Software is NetBeans. The Initial Developer of the Original
   68.19 - * Software is Sun Microsystems, Inc. Portions Copyright 1997-2006 Sun
   68.20 - * Microsystems, Inc. All Rights Reserved.
   68.21 - */
   68.22 -
   68.23 -package org.netbeans.modules.bpel.debugger.spi.plugin.request;
   68.24 -
   68.25 -/**
   68.26 - *
   68.27 - * @author Alexander Zgursky
   68.28 - */
   68.29 -public interface StepCompletedRequest extends EventRequest {
   68.30 -
   68.31 -}
    69.1 --- a/bpel.debugger.api/src/org/netbeans/modules/bpel/debugger/spi/plugin/request/package.html	Fri Dec 29 11:53:50 2006 +0000
    69.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
    69.3 @@ -1,31 +0,0 @@
    69.4 -<!DOCTYPE doctype PUBLIC "-//w3c//dtd html 4.0 transitional//en">
    69.5 -<html>
    69.6 -<head>
    69.7 -  <meta http-equiv="Content-Type"
    69.8 - content="text/html; charset=iso-8859-1">
    69.9 -  <meta name="GENERATOR"
   69.10 - content="Mozilla/4.76 [en] (Windows NT 5.0; U) [Netscape]">
   69.11 -  <title>package</title>
   69.12 -<!--
   69.13 -  -- Copyright 2005 Sun Microsystems, Inc. All rights reserved.
   69.14 -  -- SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
   69.15 -  -->
   69.16 -</head>
   69.17 -<body>
   69.18 -Defines BPEL Debugger Plugin event requests and event request management.<br>
   69.19 -With the exception of
   69.20 -{@link org.netbeans.modules.bpel.debugger.spi.plugin.event.BpelEngineDisconnectedEvent},
   69.21 -which is always sent, there is one kind of
   69.22 -{@link org.netbeans.modules.bpel.debugger.spi.plugin.request.EventRequest}
   69.23 -for each kind of
   69.24 -{@link org.netbeans.modules.bpel.debugger.spi.plugin.event.Event} -
   69.25 -for example
   69.26 -{@link org.netbeans.modules.bpel.debugger.spi.plugin.request.BreakpointReachedRequest}
   69.27 -is used to request a
   69.28 -{@link org.netbeans.modules.bpel.debugger.spi.plugin.event.BreakpointReachedEvent}.
   69.29 -Event requests are created by the
   69.30 -{@link org.netbeans.modules.bpel.debugger.spi.plugin.request.EventRequestManager}.
   69.31 -Events and event processing are defined in the
   69.32 -{@link org.netbeans.modules.bpel.debugger.spi.plugin.event} package.
   69.33 -</body>
   69.34 -</html>
    70.1 --- a/bpel.debugger.bdi/build.xml	Fri Dec 29 11:53:50 2006 +0000
    70.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
    70.3 @@ -1,27 +0,0 @@
    70.4 -<?xml version="1.0" encoding="UTF-8"?>
    70.5 -
    70.6 -<!--
    70.7 -The contents of this file are subject to the terms of the Common Development
    70.8 -and Distribution License (the License). You may not use this file except in
    70.9 -compliance with the License.
   70.10 -
   70.11 - You can obtain a copy of the License at http://www.netbeans.org/cddl.html
   70.12 -or http://www.netbeans.org/cddl.txt.
   70.13 -
   70.14 -When distributing Covered Code, include this CDDL Header Notice in each file
   70.15 -and include the License file at http://www.netbeans.org/cddl.txt.
   70.16 -If applicable, add the following below the CDDL Header, with the fields
   70.17 -enclosed by brackets [] replaced by your own identifying information:
   70.18 -"Portions Copyrighted [year] [name of copyright owner]"
   70.19 -
   70.20 - The Original Software is NetBeans. The Initial Developer of the Original
   70.21 -Software is Sun Microsystems, Inc. Portions Copyright 1997-2006 Sun
   70.22 - Microsystems, Inc. All Rights Reserved.
   70.23 --->
   70.24 -
   70.25 -<!-- You may freely edit this file. See harness/README in the NetBeans platform -->
   70.26 -<!-- for some information on what you could do (e.g. targets to override). -->
   70.27 -<!-- If you delete this file and reopen the project it will be recreated. -->
   70.28 -<project name="org.netbeans.modules.bpel.debugger.bdi" default="netbeans" basedir=".">
   70.29 -    <import file="nbproject/build-impl.xml"/>
   70.30 -</project>
    71.1 --- a/bpel.debugger.bdi/manifest.mf	Fri Dec 29 11:53:50 2006 +0000
    71.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
    71.3 @@ -1,4 +0,0 @@
    71.4 -Manifest-Version: 1.0
    71.5 -OpenIDE-Module: org.netbeans.modules.bpel.debugger.bdi
    71.6 -OpenIDE-Module-Localizing-Bundle: org/netbeans/modules/bpel/debuggerbdi/resources/Bundle.properties
    71.7 -OpenIDE-Module-Specification-Version: 1.1
    72.1 --- a/bpel.debugger.bdi/nbproject/project.xml	Fri Dec 29 11:53:50 2006 +0000
    72.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
    72.3 @@ -1,36 +0,0 @@
    72.4 -<?xml version="1.0" encoding="UTF-8"?>
    72.5 -<!--
    72.6 -The contents of this file are subject to the terms of the Common Development
    72.7 -and Distribution License (the License). You may not use this file except in
    72.8 -compliance with the License.
    72.9 -
   72.10 - You can obtain a copy of the License at http://www.netbeans.org/cddl.html
   72.11 -or http://www.netbeans.org/cddl.txt.
   72.12 -
   72.13 -When distributing Covered Code, include this CDDL Header Notice in each file
   72.14 -and include the License file at http://www.netbeans.org/cddl.txt.
   72.15 -If applicable, add the following below the CDDL Header, with the fields
   72.16 -enclosed by brackets [] replaced by your own identifying information:
   72.17 -"Portions Copyrighted [year] [name of copyright owner]"
   72.18 -
   72.19 - The Original Software is NetBeans. The Initial Developer of the Original
   72.20 -Software is Sun Microsystems, Inc. Portions Copyright 1997-2006 Sun
   72.21 - Microsystems, Inc. All Rights Reserved.
   72.22 --->
   72.23 -
   72.24 -<project xmlns="http://www.netbeans.org/ns/project/1">
   72.25 -    <type>org.netbeans.modules.apisupport.project</type>
   72.26 -    <configuration>
   72.27 -        <data xmlns="http://www.netbeans.org/ns/nb-module-project/2">
   72.28 -            <code-name-base>org.netbeans.modules.bpel.debugger.bdi</code-name-base>
   72.29 -            <suite-component/>
   72.30 -            <module-dependencies/>
   72.31 -            <friend-packages>
   72.32 -                <friend>org.netbeans.modules.bpel.debugger.se</friend>
   72.33 -                <package>org.netbeans.modules.bpel.debuggerbdi.rmi.api</package>
   72.34 -                <package>org.netbeans.modules.bpel.debuggerbdi.rmi.wp</package>
   72.35 -                <package>org.netbeans.modules.bpel.debuggerbdi.rmi.wp.impl</package>
   72.36 -            </friend-packages>
   72.37 -        </data>
   72.38 -    </configuration>
   72.39 -</project>
    73.1 --- a/bpel.debugger.bdi/src/org/netbeans/modules/bpel/debuggerbdi/resources/Bundle.properties	Fri Dec 29 11:53:50 2006 +0000
    73.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
    73.3 @@ -1,23 +0,0 @@
    73.4 -#
    73.5 -# The contents of this file are subject to the terms of the Common Development
    73.6 -# and Distribution License (the License). You may not use this file except in
    73.7 -# compliance with the License.
    73.8 -#
    73.9 -# You can obtain a copy of the License at http://www.netbeans.org/cddl.html
   73.10 -# or http://www.netbeans.org/cddl.txt.
   73.11 -#
   73.12 -# When distributing Covered Code, include this CDDL Header Notice in each file
   73.13 -# and include the License file at http://www.netbeans.org/cddl.txt.
   73.14 -# If applicable, add the following below the CDDL Header, with the fields
   73.15 -# enclosed by brackets [] replaced by your own identifying information:
   73.16 -# "Portions Copyrighted [year] [name of copyright owner]"
   73.17 -#
   73.18 -# The Original Software is NetBeans. The Initial Developer of the Original
   73.19 -# Software is Sun Microsystems, Inc. Portions Copyright 1997-2006 Sun
   73.20 -# Microsystems, Inc. All Rights Reserved.
   73.21 -
   73.22 -# manifest
   73.23 -OpenIDE-Module-Name=BPEL Debugger RMI
   73.24 -OpenIDE-Module-Display-Category=Service-Oriented Architecture
   73.25 -OpenIDE-Module-Short-Description=BPEL Debugger RMI.
   73.26 -OpenIDE-Module-Long-Description=This module provides the BPEL client-server transport/debugging interface.
    74.1 --- a/bpel.debugger.ui/build.xml	Fri Dec 29 11:53:50 2006 +0000
    74.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
    74.3 @@ -1,33 +0,0 @@
    74.4 -<?xml version="1.0" encoding="UTF-8"?>
    74.5 -
    74.6 -<!--
    74.7 -The contents of this file are subject to the terms of the Common Development
    74.8 -and Distribution License (the License). You may not use this file except in
    74.9 -compliance with the License.
   74.10 -
   74.11 - You can obtain a copy of the License at http://www.netbeans.org/cddl.html
   74.12 -or http://www.netbeans.org/cddl.txt.
   74.13 -
   74.14 -When distributing Covered Code, include this CDDL Header Notice in each file
   74.15 -and include the License file at http://www.netbeans.org/cddl.txt.
   74.16 -If applicable, add the following below the CDDL Header, with the fields
   74.17 -enclosed by brackets [] replaced by your own identifying information:
   74.18 -"Portions Copyrighted [year] [name of copyright owner]"
   74.19 -
   74.20 - The Original Software is NetBeans. The Initial Developer of the Original
   74.21 -Software is Sun Microsystems, Inc. Portions Copyright 1997-2006 Sun
   74.22 - Microsystems, Inc. All Rights Reserved.
   74.23 --->
   74.24 -
   74.25 -
   74.26 -<project name="org.netbeans.modules.bpel.debugger.ui" default="netbeans" basedir=".">
   74.27 -    <import file="nbproject/build-impl.xml"/>
   74.28 -
   74.29 -    <property name="ex.classpath" value="${netbeans.dest.dir}/ide7/modules/org-netbeans-spi-debugger-ui.jar:${netbeans.dest.dir}/ide7/modules/org-netbeans-spi-viewmodel.jar"/>
   74.30 -
   74.31 -    <target name="check">
   74.32 -        <ant dir="../../../_codereview" inheritAll="true">
   74.33 -            <property name="check.dir" value="${basedir}"/>
   74.34 -        </ant>
   74.35 -    </target>
   74.36 -</project>
    75.1 --- a/bpel.debugger.ui/manifest.mf	Fri Dec 29 11:53:50 2006 +0000
    75.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
    75.3 @@ -1,5 +0,0 @@
    75.4 -Manifest-Version: 1.0
    75.5 -OpenIDE-Module: org.netbeans.modules.bpel.debugger.ui/1
    75.6 -OpenIDE-Module-Specification-Version: 1.1
    75.7 -OpenIDE-Module-Layer: org/netbeans/modules/bpel/debugger/ui/resources/layer.xml
    75.8 -OpenIDE-Module-Localizing-Bundle: org/netbeans/modules/bpel/debugger/ui/resources/Bundle.properties
    76.1 --- a/bpel.debugger.ui/nbproject/project.properties	Fri Dec 29 11:53:50 2006 +0000
    76.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
    76.3 @@ -1,20 +0,0 @@
    76.4 -#
    76.5 -# The contents of this file are subject to the terms of the Common Development
    76.6 -# and Distribution License (the License). You may not use this file except in
    76.7 -# compliance with the License.
    76.8 -#
    76.9 -# You can obtain a copy of the License at http://www.netbeans.org/cddl.html
   76.10 -# or http://www.netbeans.org/cddl.txt.
   76.11 -
   76.12 -# When distributing Covered Code, include this CDDL Header Notice in each file
   76.13 -# and include the License file at http://www.netbeans.org/cddl.txt.
   76.14 -# If applicable, add the following below the CDDL Header, with the fields
   76.15 -# enclosed by brackets [] replaced by your own identifying information:
   76.16 -# "Portions Copyrighted [year] [name of copyright owner]"
   76.17 -#
   76.18 -# The Original Software is NetBeans. The Initial Developer of the Original
   76.19 -# Software is Sun Microsystems, Inc. Portions Copyright 1997-2006 Sun
   76.20 -# Microsystems, Inc. All Rights Reserved.
   76.21 -#
   76.22 -
   76.23 -javac.source=1.5
    77.1 --- a/bpel.debugger.ui/nbproject/project.xml	Fri Dec 29 11:53:50 2006 +0000
    77.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
    77.3 @@ -1,191 +0,0 @@
    77.4 -<?xml version="1.0" encoding="UTF-8"?>
    77.5 -<!--
    77.6 -The contents of this file are subject to the terms of the Common Development
    77.7 -and Distribution License (the License). You may not use this file except in
    77.8 -compliance with the License.
    77.9 -
   77.10 - You can obtain a copy of the License at http://www.netbeans.org/cddl.html
   77.11 -or http://www.netbeans.org/cddl.txt.
   77.12 -
   77.13 -When distributing Covered Code, include this CDDL Header Notice in each file
   77.14 -and include the License file at http://www.netbeans.org/cddl.txt.
   77.15 -If applicable, add the following below the CDDL Header, with the fields
   77.16 -enclosed by brackets [] replaced by your own identifying information:
   77.17 -"Portions Copyrighted [year] [name of copyright owner]"
   77.18 -
   77.19 - The Original Software is NetBeans. The Initial Developer of the Original
   77.20 -Software is Sun Microsystems, Inc. Portions Copyright 1997-2006 Sun
   77.21 - Microsystems, Inc. All Rights Reserved.
   77.22 --->
   77.23 -<project xmlns="http://www.netbeans.org/ns/project/1">
   77.24 -    <type>org.netbeans.modules.apisupport.project</type>
   77.25 -    <configuration>
   77.26 -        <data xmlns="http://www.netbeans.org/ns/nb-module-project/2">
   77.27 -            <code-name-base>org.netbeans.modules.bpel.debugger.ui</code-name-base>
   77.28 -            <suite-component/>
   77.29 -            <module-dependencies>
   77.30 -                <dependency>
   77.31 -                    <code-name-base>org.netbeans.api.debugger</code-name-base>
   77.32 -                    <build-prerequisite/>
   77.33 -                    <compile-dependency/>
   77.34 -                    <run-dependency>
   77.35 -                        <release-version>1</release-version>
   77.36 -                    </run-dependency>
   77.37 -                </dependency>
   77.38 -                <dependency>
   77.39 -                    <code-name-base>org.netbeans.api.progress</code-name-base>
   77.40 -                    <build-prerequisite/>
   77.41 -                    <compile-dependency/>
   77.42 -                    <run-dependency>
   77.43 -                        <release-version>1</release-version>
   77.44 -                        <specification-version>1.5.11</specification-version>
   77.45 -                    </run-dependency>
   77.46 -                </dependency>
   77.47 -                <dependency>
   77.48 -                    <code-name-base>org.netbeans.core.multiview</code-name-base>
   77.49 -                    <build-prerequisite/>
   77.50 -                    <compile-dependency/>
   77.51 -                    <run-dependency>
   77.52 -                        <release-version>1</release-version>
   77.53 -                        <specification-version>1.8.1</specification-version>
   77.54 -                    </run-dependency>
   77.55 -                </dependency>
   77.56 -                <dependency>
   77.57 -                    <code-name-base>org.netbeans.modules.bpel.core</code-name-base>
   77.58 -                    <build-prerequisite/>
   77.59 -                    <compile-dependency/>
   77.60 -                    <run-dependency>
   77.61 -                        <release-version>1</release-version>
   77.62 -                        <specification-version>1.2</specification-version>
   77.63 -                    </run-dependency>
   77.64 -                </dependency>
   77.65 -                <dependency>
   77.66 -                    <code-name-base>org.netbeans.modules.bpel.debugger.api</code-name-base>
   77.67 -                    <build-prerequisite/>
   77.68 -                    <compile-dependency/>
   77.69 -                    <run-dependency>
   77.70 -                        <release-version>1</release-version>
   77.71 -                        <specification-version>1.0</specification-version>
   77.72 -                    </run-dependency>
   77.73 -                </dependency>
   77.74 -                <dependency>
   77.75 -                    <code-name-base>org.netbeans.modules.bpel.editors</code-name-base>
   77.76 -                    <build-prerequisite/>
   77.77 -                    <compile-dependency/>
   77.78 -                    <run-dependency>
   77.79 -                        <release-version>1</release-version>
   77.80 -                        <specification-version>1.2</specification-version>
   77.81 -                    </run-dependency>
   77.82 -                </dependency>
   77.83 -                <dependency>
   77.84 -                    <code-name-base>org.netbeans.modules.bpel.model</code-name-base>
   77.85 -                    <build-prerequisite/>
   77.86 -                    <compile-dependency/>
   77.87 -                    <run-dependency>
   77.88 -                        <specification-version>1.1</specification-version>
   77.89 -                    </run-dependency>
   77.90 -                </dependency>
   77.91 -                <dependency>
   77.92 -                    <code-name-base>org.netbeans.modules.xml.xam</code-name-base>
   77.93 -                    <build-prerequisite/>
   77.94 -                    <compile-dependency/>
   77.95 -                    <run-dependency>
   77.96 -                        <release-version>1</release-version>
   77.97 -                        <specification-version>1.1.10</specification-version>
   77.98 -                    </run-dependency>
   77.99 -                </dependency>
  77.100 -                <dependency>
  77.101 -                    <code-name-base>org.netbeans.spi.debugger.ui</code-name-base>
  77.102 -                    <build-prerequisite/>
  77.103 -                    <compile-dependency/>
  77.104 -                    <run-dependency>
  77.105 -                        <release-version>1</release-version>
  77.106 -                        <specification-version>2.6.1</specification-version>
  77.107 -                    </run-dependency>
  77.108 -                </dependency>
  77.109 -                <dependency>
  77.110 -                    <code-name-base>org.netbeans.spi.viewmodel</code-name-base>
  77.111 -                    <build-prerequisite/>
  77.112 -                    <compile-dependency/>
  77.113 -                    <run-dependency>
  77.114 -                        <release-version>2</release-version>
  77.115 -                        <specification-version>1.7.1</specification-version>
  77.116 -                    </run-dependency>
  77.117 -                </dependency>
  77.118 -                <dependency>
  77.119 -                    <code-name-base>org.openide.dialogs</code-name-base>
  77.120 -                    <build-prerequisite/>
  77.121 -                    <compile-dependency/>
  77.122 -                    <run-dependency>
  77.123 -                        <specification-version>6.5.12</specification-version>
  77.124 -                    </run-dependency>
  77.125 -                </dependency>
  77.126 -                <dependency>
  77.127 -                    <code-name-base>org.openide.explorer</code-name-base>
  77.128 -                    <build-prerequisite/>
  77.129 -                    <compile-dependency/>
  77.130 -                    <run-dependency>
  77.131 -                        <specification-version>6.5.1</specification-version>
  77.132 -                    </run-dependency>
  77.133 -                </dependency>
  77.134 -                <dependency>
  77.135 -                    <code-name-base>org.openide.filesystems</code-name-base>
  77.136 -                    <build-prerequisite/>
  77.137 -                    <compile-dependency/>
  77.138 -                    <run-dependency>
  77.139 -                        <specification-version>6.2</specification-version>
  77.140 -                    </run-dependency>
  77.141 -                </dependency>
  77.142 -                <dependency>
  77.143 -                    <code-name-base>org.openide.io</code-name-base>
  77.144 -                    <build-prerequisite/>
  77.145 -                    <compile-dependency/>
  77.146 -                    <run-dependency>
  77.147 -                        <specification-version>1.8.1</specification-version>
  77.148 -                    </run-dependency>
  77.149 -                </dependency>
  77.150 -                <dependency>
  77.151 -                    <code-name-base>org.openide.loaders</code-name-base>
  77.152 -                    <build-prerequisite/>
  77.153 -                    <compile-dependency/>
  77.154 -                    <run-dependency>
  77.155 -                        <specification-version>5.5</specification-version>
  77.156 -                    </run-dependency>
  77.157 -                </dependency>
  77.158 -                <dependency>
  77.159 -                    <code-name-base>org.openide.nodes</code-name-base>
  77.160 -                    <build-prerequisite/>
  77.161 -                    <compile-dependency/>
  77.162 -                    <run-dependency>
  77.163 -                        <specification-version>6.2</specification-version>
  77.164 -                    </run-dependency>
  77.165 -                </dependency>
  77.166 -                <dependency>
  77.167 -                    <code-name-base>org.openide.text</code-name-base>
  77.168 -                    <build-prerequisite/>
  77.169 -                    <compile-dependency/>
  77.170 -                    <run-dependency>
  77.171 -                        <specification-version>6.2</specification-version>
  77.172 -                    </run-dependency>
  77.173 -                </dependency>
  77.174 -                <dependency>
  77.175 -                    <code-name-base>org.openide.util</code-name-base>
  77.176 -                    <build-prerequisite/>
  77.177 -                    <compile-dependency/>
  77.178 -                    <run-dependency>
  77.179 -                        <specification-version>6.2</specification-version>
  77.180 -                    </run-dependency>
  77.181 -                </dependency>
  77.182 -                <dependency>
  77.183 -                    <code-name-base>org.openide.windows</code-name-base>
  77.184 -                    <build-prerequisite/>
  77.185 -                    <compile-dependency/>
  77.186 -                    <run-dependency>
  77.187 -                        <specification-version>6.2</specification-version>
  77.188 -                    </run-dependency>
  77.189 -                </dependency>
  77.190 -            </module-dependencies>
  77.191 -            <public-packages/>
  77.192 -        </data>
  77.193 -    </configuration>
  77.194 -</project>
    78.1 --- a/bpel.debugger.ui/src/META-INF/debugger/BreakpointsView/org.netbeans.spi.viewmodel.NodeActionsProviderFilter	Fri Dec 29 11:53:50 2006 +0000
    78.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
    78.3 @@ -1,1 +0,0 @@
    78.4 -org.netbeans.modules.bpel.debugger.ui.breakpoint.BpelBreakpointFilter
    79.1 --- a/bpel.debugger.ui/src/META-INF/debugger/ProcessView/org.netbeans.spi.viewmodel.ColumnModel	Fri Dec 29 11:53:50 2006 +0000
    79.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
    79.3 @@ -1,2 +0,0 @@
    79.4 -org.netbeans.modules.bpel.debugger.ui.process.BpelProcessColumn.createProcessNameColumn()
    79.5 -org.netbeans.modules.bpel.debugger.ui.process.BpelProcessColumn.createProcessStateColumn()
    80.1 --- a/bpel.debugger.ui/src/META-INF/debugger/org.netbeans.api.debugger.LazyDebuggerManagerListener	Fri Dec 29 11:53:50 2006 +0000
    80.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
    80.3 @@ -1,3 +0,0 @@
    80.4 -org.netbeans.modules.bpel.debugger.ui.breakpoint.BpelBreakpointListener
    80.5 -org.netbeans.modules.bpel.debugger.ui.breakpoint.PersistenceManager
    80.6 -org.netbeans.modules.bpel.debugger.ui.CurrentPositionAnnotationListener
    81.1 --- a/bpel.debugger.ui/src/META-INF/debugger/org.netbeans.api.debugger.Properties$Reader	Fri Dec 29 11:53:50 2006 +0000
    81.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
    81.3 @@ -1,1 +0,0 @@
    81.4 -org.netbeans.modules.bpel.debugger.ui.breakpoint.BreakpointsReader
    81.5 \ No newline at end of file
    82.1 --- a/bpel.debugger.ui/src/META-INF/debugger/org.netbeans.modules.bpel.debugger.api.TracerFactory	Fri Dec 29 11:53:50 2006 +0000
    82.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
    82.3 @@ -1,1 +0,0 @@
    82.4 -org.netbeans.modules.bpel.debugger.ui.output.BpelOutputViewFactory
    83.1 --- a/bpel.debugger.ui/src/META-INF/debugger/org.netbeans.modules.bpel.debugger.api.breakpoints.BreakpointLineTranslator	Fri Dec 29 11:53:50 2006 +0000
    83.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
    83.3 @@ -1,1 +0,0 @@
    83.4 -org.netbeans.modules.bpel.debugger.ui.breakpoint.BreakpointTranslator
    84.1 --- a/bpel.debugger.ui/src/META-INF/debugger/org.netbeans.modules.bpel.debugger.spi.EditorContext	Fri Dec 29 11:53:50 2006 +0000
    84.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
    84.3 @@ -1,1 +0,0 @@
    84.4 -org.netbeans.modules.bpel.debugger.ui.editor.BpelEditorContext
    85.1 --- a/bpel.debugger.ui/src/META-INF/debugger/org.netbeans.modules.bpel.debugger.ui.breakpoint.BpelBreakpointListener	Fri Dec 29 11:53:50 2006 +0000
    85.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
    85.3 @@ -1,1 +0,0 @@
    85.4 -org.netbeans.modules.bpel.debugger.ui.breakpoint.BpelBreakpointListener
    85.5 \ No newline at end of file
    86.1 --- a/bpel.debugger.ui/src/META-INF/debugger/org.netbeans.spi.debugger.ActionsProvider	Fri Dec 29 11:53:50 2006 +0000
    86.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
    86.3 @@ -1,1 +0,0 @@
    86.4 -org.netbeans.modules.bpel.debugger.ui.action.Breakpoint
    87.1 --- a/bpel.debugger.ui/src/META-INF/debugger/org.netbeans.spi.debugger.ui.AttachType	Fri Dec 29 11:53:50 2006 +0000
    87.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
    87.3 @@ -1,1 +0,0 @@
    87.4 -org.netbeans.modules.bpel.debugger.ui.BpelAttachType
    88.1 --- a/bpel.debugger.ui/src/org/netbeans/modules/bpel/debugger/ui/BpelAttachType.java	Fri Dec 29 11:53:50 2006 +0000
    88.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
    88.3 @@ -1,43 +0,0 @@
    88.4 -/*
    88.5 - * The contents of this file are subject to the terms of the Common Development
    88.6 - * and Distribution License (the License). You may not use this file except in
    88.7 - * compliance with the License.
    88.8 - *
    88.9 - * You can obtain a copy of the License at http://www.netbeans.org/cddl.html
   88.10 - * or http://www.netbeans.org/cddl.txt.
   88.11 -
   88.12 - * When distributing Covered Code, include this CDDL Header Notice in each file
   88.13 - * and include the License file at http://www.netbeans.org/cddl.txt.
   88.14 - * If applicable, add the following below the CDDL Header, with the fields
   88.15 - * enclosed by brackets [] replaced by your own identifying information:
   88.16 - * "Portions Copyrighted [year] [name of copyright owner]"
   88.17 - *
   88.18 - * The Original Software is NetBeans. The Initial Developer of the Original
   88.19 - * Software is Sun Microsystems, Inc. Portions Copyright 1997-2006 Sun
   88.20 - * Microsystems, Inc. All Rights Reserved.
   88.21 - */
   88.22 -
   88.23 -
   88.24 -package org.netbeans.modules.bpel.debugger.ui;
   88.25 -
   88.26 -import javax.swing.JComponent;
   88.27 -import org.netbeans.spi.debugger.ui.AttachType;
   88.28 -import org.openide.util.NbBundle;
   88.29 -
   88.30 -
   88.31 -/**
   88.32 - * For registration of BPEL debugger attaching mechanism
   88.33 - * with "Attach Debugger..." dialog.
   88.34 - *
   88.35 - * @author Sun Microsystems
   88.36 - */
   88.37 -public class BpelAttachType extends AttachType {
   88.38 -
   88.39 -    public String getTypeDisplayName () {
   88.40 -        return NbBundle.getMessage (getClass(), "CTL_Connector_name");
   88.41 -    }
   88.42 -
   88.43 -    public JComponent getCustomizer () {
   88.44 -        return new BpelConnectPanel();
   88.45 -    }
   88.46 -}
    89.1 --- a/bpel.debugger.ui/src/org/netbeans/modules/bpel/debugger/ui/BpelConnectPanel.java	Fri Dec 29 11:53:50 2006 +0000
    89.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
    89.3 @@ -1,176 +0,0 @@
    89.4 -/*
    89.5 - * The contents of this file are subject to the terms of the Common Development
    89.6 - * and Distribution License (the License). You may not use this file except in
    89.7 - * compliance with the License.
    89.8 - *
    89.9 - * You can obtain a copy of the License at http://www.netbeans.org/cddl.html
   89.10 - * or http://www.netbeans.org/cddl.txt.
   89.11 -
   89.12 - * When distributing Covered Code, include this CDDL Header Notice in each file
   89.13 - * and include the License file at http://www.netbeans.org/cddl.txt.
   89.14 - * If applicable, add the following below the CDDL Header, with the fields
   89.15 - * enclosed by brackets [] replaced by your own identifying information:
   89.16 - * "Portions Copyrighted [year] [name of copyright owner]"
   89.17 - *
   89.18 - * The Original Software is NetBeans. The Initial Developer of the Original
   89.19 - * Software is Sun Microsystems, Inc. Portions Copyright 1997-2006 Sun
   89.20 - * Microsystems, Inc. All Rights Reserved.
   89.21 - */
   89.22 -
   89.23 -
   89.24 -package org.netbeans.modules.bpel.debugger.ui;
   89.25 -
   89.26 -import java.awt.Dimension;
   89.27 -import java.awt.GridBagConstraints;
   89.28 -import java.awt.GridBagLayout;
   89.29 -import java.awt.Insets;
   89.30 -import java.text.MessageFormat;
   89.31 -import java.util.HashMap;
   89.32 -import java.util.Map;
   89.33 -
   89.34 -import javax.swing.JLabel;
   89.35 -import javax.swing.JPanel;
   89.36 -import javax.swing.JTextField;
   89.37 -
   89.38 -import org.netbeans.api.debugger.DebuggerEngine;
   89.39 -import org.netbeans.api.debugger.DebuggerInfo;
   89.40 -import org.netbeans.api.debugger.DebuggerManager;
   89.41 -import org.netbeans.api.debugger.Properties;
   89.42 -import org.netbeans.api.progress.ProgressHandle;
   89.43 -import org.netbeans.api.progress.ProgressHandleFactory;
   89.44 -import org.netbeans.modules.bpel.debugger.api.AttachingCookie;
   89.45 -import org.netbeans.spi.debugger.ui.Controller;
   89.46 -import org.openide.util.NbBundle;
   89.47 -
   89.48 -
   89.49 -/**
   89.50 - * Panel for entering host/port for attaching to a BPEL service engine.
   89.51 - *
   89.52 - * @author Sun Microsystems
   89.53 - */
   89.54 -public class BpelConnectPanel extends JPanel implements Controller {
   89.55 -
   89.56 -    private static final String PROPERTIES_KEY = "BpelDebuggerConnection";
   89.57 -
   89.58 -    private JTextField mHostField;
   89.59 -    private JTextField mPortField;
   89.60 -    
   89.61 -    
   89.62 -    /**
   89.63 -     * Adds options for a selected connector type to this panel.
   89.64 -     */
   89.65 -    public BpelConnectPanel() {
   89.66 -        GridBagLayout layout = new GridBagLayout();
   89.67 -        setLayout(layout);
   89.68 -
   89.69 -        // other lines
   89.70 -        mHostField = new JTextField(getSavedHost());
   89.71 -        String hostLabel = 
   89.72 -            NbBundle.getMessage(BpelConnectPanel.class, "CTL_Host");
   89.73 -        char hostMnemonic = 
   89.74 -            NbBundle.getMessage(BpelConnectPanel.class, "CTL_Host_mnemonic").charAt(0);
   89.75 -        addSettingUI(hostLabel, mHostField, hostMnemonic);
   89.76 -
   89.77 -        mPortField = new JTextField(getSavedPort());
   89.78 -        String portLabel = 
   89.79 -            NbBundle.getMessage(BpelConnectPanel.class, "CTL_Port");
   89.80 -        char portMnemonic = 
   89.81 -            NbBundle.getMessage(BpelConnectPanel.class, "CTL_Port_mnemonic").charAt(0);
   89.82 -        addSettingUI(portLabel, mPortField, portMnemonic);
   89.83 -
   89.84 -        // Create an empty panel that resizes vertically so that
   89.85 -        // other elements have fix height:
   89.86 -        GridBagConstraints c = new GridBagConstraints();
   89.87 -        c.weighty = 1.0;
   89.88 -        JPanel p = new JPanel();
   89.89 -        p.setPreferredSize(new Dimension(1, 1));
   89.90 -        add(p, c);
   89.91 -    }
   89.92 -
   89.93 -    public boolean cancel() {
   89.94 -        return true;
   89.95 -    }
   89.96 -
   89.97 -    public boolean ok() {
   89.98 -        final String host = mHostField.getText();
   89.99 -        final String port = mPortField.getText();
  89.100 -        saveArgs(host, port);
  89.101 -
  89.102 -        ProgressHandle progress = ProgressHandleFactory.createHandle(NbBundle.getMessage(
  89.103 -                BpelConnectPanel.class, "CTL_connectProgress"));
  89.104 -        try {
  89.105 -            progress.start();
  89.106 -            DebuggerEngine[] es = DebuggerManager.getDebuggerManager().startDebugging(
  89.107 -                    DebuggerInfo.create(AttachingCookie.ID,
  89.108 -                            new Object[] {
  89.109 -                            AttachingCookie.create(host, port) }));
  89.110 -        } finally {
  89.111 -            progress.finish();
  89.112 -        }
  89.113 -        return true;
  89.114 -    }
  89.115 -
  89.116 -    private void addSettingUI(String label, JTextField tfParam, char mnemonic) {
  89.117 -        GridBagConstraints c = new GridBagConstraints();
  89.118 -        c.insets = new Insets(6, 0, 0, 3);
  89.119 -        c.anchor = GridBagConstraints.WEST;
  89.120 -        JLabel iLabel = new JLabel(label);
  89.121 -        iLabel.setDisplayedMnemonic(mnemonic);
  89.122 -        iLabel.setToolTipText(label);
  89.123 -        add(iLabel, c);
  89.124 -        iLabel.setLabelFor(tfParam);
  89.125 -        tfParam.setName(label);
  89.126 -        tfParam.getAccessibleContext().setAccessibleDescription(
  89.127 -                new MessageFormat(NbBundle.getMessage(getClass(), "ACSD_CTL_Argument"))
  89.128 -                        .format(new Object[] { label }));
  89.129 -        tfParam.setToolTipText(label);
  89.130 -        c = new GridBagConstraints();
  89.131 -        c.gridwidth = GridBagConstraints.REMAINDER;
  89.132 -        c.insets = new Insets(6, 3, 0, 0);
  89.133 -        c.fill = GridBagConstraints.HORIZONTAL;
  89.134 -        c.weightx = 1.0;
  89.135 -        add(tfParam, c);
  89.136 -    }
  89.137 -    
  89.138 -    private static String getSavedHost() {
  89.139 -        Map masterSettings = Properties.getDefault().getProperties("debugger").
  89.140 -            getMap("connection_settings", new HashMap());
  89.141 -        Map mySettings = (Map) masterSettings.get(PROPERTIES_KEY);
  89.142 -        if (mySettings != null) {
  89.143 -            String host = (String) mySettings.get("host");
  89.144 -            if (host != null) {
  89.145 -                return host;
  89.146 -            }
  89.147 -        }
  89.148 -        return DEFAULT_HOST;
  89.149 -    }
  89.150 -    
  89.151 -    private static String getSavedPort() {
  89.152 -        Map masterSettings = Properties.getDefault().getProperties("debugger").
  89.153 -            getMap("connection_settings", new HashMap());
  89.154 -        Map mySettings = (Map) masterSettings.get(PROPERTIES_KEY);
  89.155 -        if (mySettings != null) {
  89.156 -            String port = (String) mySettings.get("port");
  89.157 -            if (port != null) {
  89.158 -                return port;
  89.159 -            }
  89.160 -        }
  89.161 -        return DEFAULT_PORT;
  89.162 -    }
  89.163 -
  89.164 -    private static void saveArgs(String newHost, String newPort) {
  89.165 -        Map masterSettings = Properties.getDefault().getProperties("debugger").
  89.166 -            getMap("connection_settings", new HashMap());
  89.167 -        Map mySettings = new HashMap();
  89.168 -        mySettings.put("host", newHost);
  89.169 -        mySettings.put("port", newPort);
  89.170 -        masterSettings.put(PROPERTIES_KEY, mySettings);
  89.171 -        Properties.getDefault().getProperties("debugger").
  89.172 -            setString("last_attaching_connector", PROPERTIES_KEY);
  89.173 -        Properties.getDefault().getProperties("debugger").
  89.174 -            setMap("connection_settings", masterSettings);
  89.175 -    }
  89.176 -
  89.177 -    private static final String DEFAULT_PORT = "3343"; // NOI18N
  89.178 -    private static final String DEFAULT_HOST = "localhost"; // NOI18N
  89.179 -}
    90.1 --- a/bpel.debugger.ui/src/org/netbeans/modules/bpel/debugger/ui/Bundle.properties	Fri Dec 29 11:53:50 2006 +0000
    90.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
    90.3 @@ -1,24 +0,0 @@
    90.4 -# The contents of this file are subject to the terms of the Common Development
    90.5 -# and Distribution License (the License). You may not use this file except in
    90.6 -# compliance with the License.
    90.7 -#
    90.8 -#  You can obtain a copy of the License at http://www.netbeans.org/cddl.html
    90.9 -# or http://www.netbeans.org/cddl.txt.
   90.10 -
   90.11 -# When distributing Covered Code, include this CDDL Header Notice in each file
   90.12 -# and include the License file at http://www.netbeans.org/cddl.txt.
   90.13 -# If applicable, add the following below the CDDL Header, with the fields
   90.14 -# enclosed by brackets [] replaced by your own identifying information:
   90.15 -# "Portions Copyrighted [year] [name of copyright owner]"
   90.16 -#
   90.17 -#  The Original Software is NetBeans. The Initial Developer of the Original
   90.18 -# Software is Sun Microsystems, Inc. Portions Copyright 1997-2006 Sun
   90.19 -#  Microsystems, Inc. All Rights Reserved.
   90.20 -
   90.21 -CTL_Host=Host:
   90.22 -CTL_Host_mnemonic=o
   90.23 -CTL_Port=Port:
   90.24 -CTL_Port_mnemonic=P
   90.25 -ACSD_CTL_Argument=Insert {0} Argument
   90.26 -CTL_connectProgress=Attaching Debugger
   90.27 -CTL_Connector_name=BPEL Debugger
    91.1 --- a/bpel.debugger.ui/src/org/netbeans/modules/bpel/debugger/ui/CurrentPositionAnnotationListener.java	Fri Dec 29 11:53:50 2006 +0000
    91.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
    91.3 @@ -1,144 +0,0 @@
    91.4 -/*
    91.5 - * The contents of this file are subject to the terms of the Common Development
    91.6 - * and Distribution License (the License). You may not use this file except in
    91.7 - * compliance with the License.
    91.8 - *
    91.9 - * You can obtain a copy of the License at http://www.netbeans.org/cddl.html
   91.10 - * or http://www.netbeans.org/cddl.txt.
   91.11 -
   91.12 - * When distributing Covered Code, include this CDDL Header Notice in each file
   91.13 - * and include the License file at http://www.netbeans.org/cddl.txt.
   91.14 - * If applicable, add the following below the CDDL Header, with the fields
   91.15 - * enclosed by brackets [] replaced by your own identifying information:
   91.16 - * "Portions Copyrighted [year] [name of copyright owner]"
   91.17 - *
   91.18 - * The Original Software is NetBeans. The Initial Developer of the Original
   91.19 - * Software is Sun Microsystems, Inc. Portions Copyright 1997-2006 Sun
   91.20 - * Microsystems, Inc. All Rights Reserved.
   91.21 - */
   91.22 -
   91.23 -package org.netbeans.modules.bpel.debugger.ui;
   91.24 -
   91.25 -import java.beans.PropertyChangeEvent;
   91.26 -import java.beans.PropertyChangeListener;
   91.27 -import java.util.HashMap;
   91.28 -import java.util.Iterator;
   91.29 -import javax.swing.SwingUtilities;
   91.30 -
   91.31 -import org.netbeans.api.debugger.*;
   91.32 -import org.netbeans.modules.bpel.debugger.api.AnnotationType;
   91.33 -import org.netbeans.modules.bpel.debugger.api.BpelDebugger;
   91.34 -import org.netbeans.modules.bpel.debugger.api.EditorContextBridge;
   91.35 -import org.netbeans.modules.bpel.debugger.api.Position;
   91.36 -import org.netbeans.modules.bpel.debugger.api.SourcePath;
   91.37 -
   91.38 -import org.openide.util.RequestProcessor;
   91.39 -
   91.40 -
   91.41 -/**
   91.42 - * Listens on {@link org.netbeans.api.debugger.DebuggerManager} on
   91.43 - * {@link BpelDebugger#PROP_CURRENT_POSITION}
   91.44 - * property and annotates current line in NetBeans editor.
   91.45 - *
   91.46 - * @author Alexander Zgursky
   91.47 - */
   91.48 -public class CurrentPositionAnnotationListener extends DebuggerManagerAdapter {
   91.49 -
   91.50 -    // annotation for current line
   91.51 -    private transient Object                myCurrentPositionAnnotation;
   91.52 -    private transient Object                myLock = new Object();
   91.53 -    private Position                        myCurrentPosition;
   91.54 -    private BpelDebugger                    myCurrentDebugger;
   91.55 -    private SourcePath                      mySourcePath;
   91.56 -
   91.57 -
   91.58 -    public String[] getProperties () {
   91.59 -        return new String[] {DebuggerManager.PROP_CURRENT_ENGINE};
   91.60 -    }
   91.61 -
   91.62 -    /**
   91.63 -     * Listens BpelDebuggerImpl and DebuggerManager.
   91.64 -     */
   91.65 -    public void propertyChange (PropertyChangeEvent e) {
   91.66 -        if (e.getPropertyName() == DebuggerManager.PROP_CURRENT_ENGINE) {
   91.67 -            updateCurrentDebugger();
   91.68 -            updateCurrentPosition();
   91.69 -            annotate();
   91.70 -        } else if (e.getPropertyName() == BpelDebugger.PROP_CURRENT_POSITION) {
   91.71 -            updateCurrentPosition();
   91.72 -            annotate ();
   91.73 -        }
   91.74 -    }
   91.75 -
   91.76 -
   91.77 -    // helper methods ..........................................................
   91.78 -
   91.79 -    private void updateCurrentDebugger () {
   91.80 -        BpelDebugger newDebugger = getCurrentDebugger();
   91.81 -        if (myCurrentDebugger == newDebugger) {
   91.82 -            return;
   91.83 -        }
   91.84 -        
   91.85 -        if (myCurrentDebugger != null) {
   91.86 -            myCurrentDebugger.removePropertyChangeListener(this);
   91.87 -        }
   91.88 -        if (newDebugger != null) {
   91.89 -            newDebugger.addPropertyChangeListener(this);
   91.90 -            mySourcePath = getCurrentSourcePath();
   91.91 -        }
   91.92 -        myCurrentDebugger = newDebugger;
   91.93 -    }
   91.94 -    
   91.95 -    private static BpelDebugger getCurrentDebugger() {
   91.96 -        DebuggerEngine currentEngine = DebuggerManager.
   91.97 -                getDebuggerManager().getCurrentEngine();
   91.98 -        if (currentEngine == null) {
   91.99 -            return null;
  91.100 -        }
  91.101 -        return (BpelDebugger)currentEngine.lookupFirst(null, BpelDebugger.class);
  91.102 -    }
  91.103 -    
  91.104 -    private static SourcePath getCurrentSourcePath() {
  91.105 -        DebuggerEngine currentEngine = DebuggerManager.
  91.106 -                getDebuggerManager().getCurrentEngine();
  91.107 -        if (currentEngine == null) {
  91.108 -            return null;
  91.109 -        }
  91.110 -        return (SourcePath)currentEngine.lookupFirst(null, SourcePath.class);
  91.111 -    }
  91.112 -
  91.113 -    private void updateCurrentPosition() {
  91.114 -        if (myCurrentDebugger != null) {
  91.115 -            myCurrentPosition = myCurrentDebugger.getCurrentPosition();
  91.116 -        } else {
  91.117 -            myCurrentPosition = null;
  91.118 -        }
  91.119 -    }
  91.120 -    
  91.121 -    /**
  91.122 -     * Annotates current position or removes annotation.
  91.123 -     */
  91.124 -    private void annotate () {
  91.125 -        final Position position = myCurrentPosition;
  91.126 -        RequestProcessor.getDefault().post(new Runnable() {
  91.127 -            public void run() {
  91.128 -                synchronized (myLock) {
  91.129 -                    if (myCurrentPositionAnnotation != null)
  91.130 -                        EditorContextBridge.removeAnnotation(myCurrentPositionAnnotation);
  91.131 -                    if (position != null) {
  91.132 -                        String url = mySourcePath.getURL(position.getProcessQName());
  91.133 -                        if (url != null) {
  91.134 -                            myCurrentPositionAnnotation = EditorContextBridge.annotate(
  91.135 -                                    url,
  91.136 -                                    position.getXpath(),
  91.137 -                                    AnnotationType.CURRENT_POSITION);
  91.138 -                            EditorContextBridge.showSource(
  91.139 -                                    url,
  91.140 -                                    position.getXpath());
  91.141 -                        }
  91.142 -                    }
  91.143 -                }
  91.144 -            }
  91.145 -        });
  91.146 -    }
  91.147 -}
    92.1 --- a/bpel.debugger.ui/src/org/netbeans/modules/bpel/debugger/ui/action/Action.java	Fri Dec 29 11:53:50 2006 +0000
    92.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
    92.3 @@ -1,67 +0,0 @@
    92.4 -/*
    92.5 - * The contents of this file are subject to the terms of the Common Development
    92.6 - * and Distribution License (the License). You may not use this file except in
    92.7 - * compliance with the License.
    92.8 - *
    92.9 - * You can obtain a copy of the License at http://www.netbeans.org/cddl.html
   92.10 - * or http://www.netbeans.org/cddl.txt.
   92.11 -
   92.12 - * When distributing Covered Code, include this CDDL Header Notice in each file
   92.13 - * and include the License file at http://www.netbeans.org/cddl.txt.
   92.14 - * If applicable, add the following below the CDDL Header, with the fields
   92.15 - * enclosed by brackets [] replaced by your own identifying information:
   92.16 - * "Portions Copyrighted [year] [name of copyright owner]"
   92.17 - *
   92.18 - * The Original Software is NetBeans. The Initial Developer of the Original
   92.19 - * Software is Sun Microsystems, Inc. Portions Copyright 1997-2006 Sun
   92.20 - * Microsystems, Inc. All Rights Reserved.
   92.21 - */
   92.22 -
   92.23 -package org.netbeans.modules.bpel.debugger.ui.action;
   92.24 -
   92.25 -import java.util.Collections;
   92.26 -import java.util.Set;
   92.27 -import java.beans.PropertyChangeEvent;
   92.28 -import java.beans.PropertyChangeListener;
   92.29 -
   92.30 -import org.netbeans.spi.debugger.ActionsProviderSupport;
   92.31 -import org.netbeans.spi.debugger.ContextProvider;
   92.32 -import org.netbeans.modules.bpel.debugger.api.BpelDebugger;
   92.33 -
   92.34 -/**
   92.35 - * @author Vladimir Yaroslavskiy
   92.36 - * @version 2005.12.01
   92.37 - */
   92.38 -abstract class Action extends ActionsProviderSupport
   92.39 -    implements PropertyChangeListener
   92.40 -{
   92.41 -    Action(ContextProvider provider, Object action) {
   92.42 -        myAction = action;
   92.43 -        myDebugger = (BpelDebugger) provider.lookupFirst (null, BpelDebugger.class);
   92.44 -        myDebugger.addPropertyChangeListener(BpelDebugger.PROP_STATE, this);
   92.45 -    }
   92.46 -    
   92.47 -    public Set getActions() {
   92.48 -        return Collections.singleton(myAction);
   92.49 -    }
   92.50 -
   92.51 -    public void propertyChange(PropertyChangeEvent event) {
   92.52 -        checkEnabled();
   92.53 -    }
   92.54 -    
   92.55 -    public boolean isEnabled(Object action) {
   92.56 -        checkEnabled();
   92.57 -        return super.isEnabled(action);
   92.58 -    }
   92.59 -    
   92.60 -    protected BpelDebugger getDebugger() {
   92.61 -        return myDebugger;
   92.62 -    }
   92.63 -
   92.64 -    private void checkEnabled() {
   92.65 -        setEnabled(myAction, true);
   92.66 -    }
   92.67 -
   92.68 -    private Object myAction;
   92.69 -    private BpelDebugger myDebugger;
   92.70 -}
    93.1 --- a/bpel.debugger.ui/src/org/netbeans/modules/bpel/debugger/ui/action/BpelActionsProviderSupport.java	Fri Dec 29 11:53:50 2006 +0000
    93.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
    93.3 @@ -1,93 +0,0 @@
    93.4 -/*
    93.5 - * The contents of this file are subject to the terms of the Common Development
    93.6 - * and Distribution License (the License). You may not use this file except in
    93.7 - * compliance with the License.
    93.8 - *
    93.9 - * You can obtain a copy of the License at http://www.netbeans.org/cddl.html
   93.10 - * or http://www.netbeans.org/cddl.txt.
   93.11 -
   93.12 - * When distributing Covered Code, include this CDDL Header Notice in each file
   93.13 - * and include the License file at http://www.netbeans.org/cddl.txt.
   93.14 - * If applicable, add the following below the CDDL Header, with the fields
   93.15 - * enclosed by brackets [] replaced by your own identifying information:
   93.16 - * "Portions Copyrighted [year] [name of copyright owner]"
   93.17 - *
   93.18 - * The Original Software is NetBeans. The Initial Developer of the Original
   93.19 - * Software is Sun Microsystems, Inc. Portions Copyright 1997-2006 Sun
   93.20 - * Microsystems, Inc. All Rights Reserved.
   93.21 - */
   93.22 -
   93.23 -package org.netbeans.modules.bpel.debugger.ui.action;
   93.24 -
   93.25 -import java.beans.PropertyChangeEvent;
   93.26 -import java.beans.PropertyChangeListener;
   93.27 -import java.util.Collections;
   93.28 -import java.util.Set;
   93.29 -
   93.30 -import org.netbeans.modules.bpel.debugger.api.BpelDebugger;
   93.31 -import org.netbeans.modules.bpel.debugger.api.Position;
   93.32 -import org.netbeans.spi.debugger.ActionsProviderSupport;
   93.33 -import org.netbeans.spi.debugger.ContextProvider;
   93.34 -
   93.35 -
   93.36 -
   93.37 -/**
   93.38 - * Wrapper around ActionsProviderSupport to provide for convenience methods
   93.39 - * to subclasses.
   93.40 - *
   93.41 - * @author Josh Sandusky
   93.42 - */
   93.43 -public abstract class BpelActionsProviderSupport extends ActionsProviderSupport {
   93.44 -    
   93.45 -    protected ContextProvider mLookupProvider;
   93.46 -    private BpelDebugger mDebugger;
   93.47 -    private Object mAction;
   93.48 -    
   93.49 -    
   93.50 -    public BpelActionsProviderSupport(ContextProvider lookupProvider, Object action) {
   93.51 -        mLookupProvider = lookupProvider;
   93.52 -        mAction = action;
   93.53 -        mDebugger = 
   93.54 -            (BpelDebugger) mLookupProvider.lookupFirst(null, BpelDebugger.class);
   93.55 -        setEnabled(true);
   93.56 -    }
   93.57 -    
   93.58 -    public void setEnabled(boolean isEnabled) {
   93.59 -        super.setEnabled(mAction, isEnabled);
   93.60 -    }
   93.61 -    
   93.62 -    public Set getActions() {
   93.63 -        return Collections.singleton(mAction);
   93.64 -    }
   93.65 -    
   93.66 -    public BpelDebugger getDebugger() {
   93.67 -        return mDebugger;
   93.68 -    }
   93.69 -    
   93.70 -    protected void positionChanged(Position oldPosition, Position newPosition) {
   93.71 -        // by default, do nothing
   93.72 -    }
   93.73 -    
   93.74 -    
   93.75 -    /**
   93.76 -     * Listens on the active break position. If it has changed, the associated
   93.77 -     * action is enabled or disabled.
   93.78 -     */
   93.79 -    static class PositionListener implements PropertyChangeListener {
   93.80 -
   93.81 -        private BpelActionsProviderSupport mProvider;
   93.82 -        
   93.83 -        
   93.84 -        public PositionListener(BpelActionsProviderSupport provider) {
   93.85 -            mProvider = provider;
   93.86 -        }
   93.87 -        
   93.88 -        public void propertyChange(PropertyChangeEvent e) {
   93.89 -            if (e.getPropertyName() == BpelDebugger.PROP_CURRENT_POSITION) {
   93.90 -                mProvider.positionChanged(
   93.91 -                        (Position) e.getOldValue(),
   93.92 -                        (Position) e.getNewValue());
   93.93 -            }
   93.94 -        }
   93.95 -    }
   93.96 -}
    94.1 --- a/bpel.debugger.ui/src/org/netbeans/modules/bpel/debugger/ui/action/Breakpoint.java	Fri Dec 29 11:53:50 2006 +0000
    94.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
    94.3 @@ -1,243 +0,0 @@
    94.4 -/*
    94.5 - * The contents of this file are subject to the terms of the Common Development
    94.6 - * and Distribution License (the License). You may not use this file except in
    94.7 - * compliance with the License.
    94.8 - *
    94.9 - * You can obtain a copy of the License at http://www.netbeans.org/cddl.html
   94.10 - * or http://www.netbeans.org/cddl.txt.
   94.11 -
   94.12 - * When distributing Covered Code, include this CDDL Header Notice in each file
   94.13 - * and include the License file at http://www.netbeans.org/cddl.txt.
   94.14 - * If applicable, add the following below the CDDL Header, with the fields
   94.15 - * enclosed by brackets [] replaced by your own identifying information:
   94.16 - * "Portions Copyrighted [year] [name of copyright owner]"
   94.17 - *
   94.18 - * The Original Software is NetBeans. The Initial Developer of the Original
   94.19 - * Software is Sun Microsystems, Inc. Portions Copyright 1997-2006 Sun
   94.20 - * Microsystems, Inc. All Rights Reserved.
   94.21 - */
   94.22 -
   94.23 -package org.netbeans.modules.bpel.debugger.ui.action;
   94.24 -
   94.25 -import java.util.Collections;
   94.26 -import java.util.Set;
   94.27 -import java.util.concurrent.atomic.AtomicBoolean;
   94.28 -
   94.29 -import javax.swing.JEditorPane;
   94.30 -import javax.swing.text.Caret;
   94.31 -import javax.swing.text.StyledDocument;
   94.32 -import org.netbeans.modules.bpel.debugger.api.EditorContextBridge;
   94.33 -import org.netbeans.modules.bpel.debugger.ui.breakpoint.BpelBreakpointListener;
   94.34 -import org.netbeans.modules.bpel.debugger.ui.util.ModelUtil;
   94.35 -import org.netbeans.modules.bpel.debugger.ui.util.Util;
   94.36 -import org.netbeans.modules.bpel.model.api.Activity;
   94.37 -import org.netbeans.modules.bpel.model.api.BpelModel;
   94.38 -import org.netbeans.modules.bpel.model.api.support.UniqueId;
   94.39 -import org.netbeans.modules.bpel.nodes.BpelNode;
   94.40 -
   94.41 -import org.openide.cookies.EditorCookie;
   94.42 -import org.openide.filesystems.FileObject;
   94.43 -import org.openide.filesystems.FileUtil;
   94.44 -import org.openide.loaders.DataObject;
   94.45 -import org.openide.nodes.Node;
   94.46 -import org.openide.text.NbDocument;
   94.47 -import org.openide.windows.WindowManager;
   94.48 -
   94.49 -import org.netbeans.api.debugger.ActionsManager;
   94.50 -import org.netbeans.api.debugger.DebuggerManager;
   94.51 -import org.netbeans.spi.debugger.ActionsProviderSupport;
   94.52 -
   94.53 -import org.netbeans.modules.bpel.debugger.api.breakpoints.LineBreakpoint;
   94.54 -import org.netbeans.modules.bpel.debugger.ui.util.Log;
   94.55 -
   94.56 -/**
   94.57 - * @author Vladimir Yaroslavskiy
   94.58 - * @version 2005.10.19
   94.59 - */
   94.60 -public class Breakpoint extends ActionsProviderSupport {
   94.61 -    
   94.62 -    private BpelBreakpointListener myBreakpointAnnotationListener;
   94.63 -    private AtomicBoolean myIsExecuting = new AtomicBoolean(false);
   94.64 -
   94.65 -    /**{@inheritDoc}*/
   94.66 -    public Breakpoint() {
   94.67 -        setEnabled(ActionsManager.ACTION_TOGGLE_BREAKPOINT, true);
   94.68 -    }
   94.69 -    
   94.70 -    /**{@inheritDoc}*/
   94.71 -    public void doAction(Object action) {
   94.72 -        try {
   94.73 -            if (myIsExecuting.compareAndSet(false, true)) {
   94.74 -                toggleBreakpoint();
   94.75 -            }
   94.76 -        } finally {
   94.77 -            myIsExecuting.set(false);
   94.78 -        }
   94.79 -    }
   94.80 -    
   94.81 -    private void toggleBreakpoint() {
   94.82 -        Node node = getNode();
   94.83 -        if (node == null) {
   94.84 -            return;
   94.85 -        }
   94.86 -        
   94.87 -        DataObject dataObject = getDataObject(node);
   94.88 -        if (dataObject == null) {
   94.89 -            return;
   94.90 -        }
   94.91 -        
   94.92 -        String ext = getFileExt(dataObject);
   94.93 -        if (!"bpel".equals(ext)) {                  // NOI18N
   94.94 -            return;
   94.95 -        }
   94.96 -        
   94.97 -        String url = FileUtil.toFile(dataObject.getPrimaryFile()).getPath();
   94.98 -        url = url.replace("\\", "/"); // NOI18N
   94.99 -        
  94.100 -        UniqueId bpelEntityId = null;
  94.101 -        if (node instanceof BpelNode) {
  94.102 -            Object modelReference = ((BpelNode)node).getReference();
  94.103 -            
  94.104 -            if (modelReference == null) {
  94.105 -                return;
  94.106 -            }
  94.107 -
  94.108 -            if (!(modelReference instanceof Activity)) {
  94.109 -                return;
  94.110 -            }
  94.111 -            
  94.112 -            Activity activity = (Activity)modelReference;
  94.113 -            bpelEntityId = activity.getUID();
  94.114 -        } else {
  94.115 -            int lineNumber = getCurrentLineNumber(node);
  94.116 -            if (lineNumber > 0) {
  94.117 -                int translatedLineNumber =
  94.118 -                        EditorContextBridge.translateBreakpointLine(url, lineNumber);
  94.119 -                
  94.120 -                //TODO:optimize it - we have already obtained document in the getCurrentLineNumber
  94.121 -                StyledDocument doc = Util.getDocument(dataObject);
  94.122 -                BpelModel model = Util.getBpelModel(dataObject);
  94.123 -                if (doc != null && model != null && translatedLineNumber > 0) {
  94.124 -                    int offset = Util.findOffset(doc, translatedLineNumber);
  94.125 -                    bpelEntityId = ModelUtil.getBpelEntityId(model, offset);
  94.126 -                }
  94.127 -            }
  94.128 -            
  94.129 -        }
  94.130 -        
  94.131 -        if (bpelEntityId == null) {
  94.132 -            return;
  94.133 -        }
  94.134 -        
  94.135 -        String xpath = ModelUtil.getXpath(bpelEntityId);
  94.136 -        if (xpath == null) {
  94.137 -            return;
  94.138 -        }
  94.139 -        
  94.140 -        DebuggerManager debuggerManager = DebuggerManager.getDebuggerManager();
  94.141 -        LineBreakpoint breakpoint =
  94.142 -                findBreakpoint(url, xpath);
  94.143 -        if (breakpoint != null) {
  94.144 -            // Breakpoint already exists
  94.145 -            debuggerManager.removeBreakpoint(breakpoint);
  94.146 -            return;
  94.147 -        }
  94.148 -        
  94.149 -        // No breakpoint exists - add the breakpoint.
  94.150 -        LineBreakpoint newBreakpoint =
  94.151 -                LineBreakpoint.create(url, xpath);
  94.152 -        debuggerManager.addBreakpoint(newBreakpoint);
  94.153 -    }
  94.154 -    
  94.155 -    private LineBreakpoint findBreakpoint(String url, String xpath) {
  94.156 -        return getBreakpointAnnotationListener().findBreakpoint(url, xpath);
  94.157 -    }
  94.158 -    
  94.159 -    /**{@inheritDoc}*/
  94.160 -    public Set getActions() {
  94.161 -        return Collections.singleton(ActionsManager.ACTION_TOGGLE_BREAKPOINT);
  94.162 -    }
  94.163 -    
  94.164 -    private Node getNode() {
  94.165 -        Node [] nodes = WindowManager.getDefault().getRegistry().getCurrentNodes();
  94.166 -        
  94.167 -        if (nodes == null) {
  94.168 -            Log.out("Current nodes are null"); // NOI18N
  94.169 -            return null;
  94.170 -        }
  94.171 -        if (nodes.length == 0) {
  94.172 -            Log.out("There is no current node"); // NOI18N
  94.173 -            return null;
  94.174 -        }
  94.175 -        if (nodes.length != 1) {
  94.176 -            Log.out("There are too many current nodes"); // NOI18N
  94.177 -            return null;
  94.178 -        }
  94.179 -        return nodes [0];
  94.180 -    }
  94.181 -    
  94.182 -    private String getFileExt(DataObject dataObject) {
  94.183 -        if (dataObject == null) {
  94.184 -            return null;
  94.185 -        }
  94.186 -        FileObject fileObject = dataObject.getPrimaryFile();
  94.187 -        
  94.188 -        if (fileObject == null) {
  94.189 -            Log.out("fileObject is null"); // NOI18N
  94.190 -            return null;
  94.191 -        }
  94.192 -        return fileObject.getExt();
  94.193 -    }
  94.194 -    
  94.195 -    private DataObject getDataObject(Node node) {
  94.196 -        if (node == null) {
  94.197 -            return null;
  94.198 -        }
  94.199 -        return (DataObject)node.getLookup().lookup(DataObject.class);
  94.200 -    }
  94.201 -    
  94.202 -    private int getCurrentLineNumber(Node node) {
  94.203 -        EditorCookie editorCookie =
  94.204 -            (EditorCookie) node.getLookup().lookup(EditorCookie.class);
  94.205 -        
  94.206 -        if (editorCookie == null) {
  94.207 -            Log.out("Editor cookie is null"); // NOI18N
  94.208 -            return -1;
  94.209 -        }
  94.210 -        StyledDocument document = editorCookie.getDocument();
  94.211 -        
  94.212 -        if (document == null) {
  94.213 -            Log.out("Document is null"); // NOI18N
  94.214 -            return -1;
  94.215 -        }
  94.216 -        
  94.217 -        JEditorPane[] editorPanes = editorCookie.getOpenedPanes();
  94.218 -
  94.219 -        if (editorPanes == null) {
  94.220 -            Log.out("Editor panes are null"); // NOI18N
  94.221 -            return -1;
  94.222 -        }
  94.223 -        if (editorPanes.length == 0) {
  94.224 -            Log.out("There is no editor pane"); // NOI18N
  94.225 -            return -1;
  94.226 -        }
  94.227 -        Caret caret = editorPanes [0].getCaret();
  94.228 -
  94.229 -        if (caret == null) {
  94.230 -            Log.out("Caret is null"); // NOI18N
  94.231 -            return -1;
  94.232 -        }
  94.233 -        int offset = caret.getDot();
  94.234 -
  94.235 -        return NbDocument.findLineNumber(document, offset) + 1;
  94.236 -    }
  94.237 -    
  94.238 -    private BpelBreakpointListener getBreakpointAnnotationListener () {
  94.239 -        if (myBreakpointAnnotationListener == null) {
  94.240 -            myBreakpointAnnotationListener = (BpelBreakpointListener) 
  94.241 -                    DebuggerManager.getDebuggerManager ().lookupFirst 
  94.242 -                    (null, BpelBreakpointListener.class);
  94.243 -        }
  94.244 -        return myBreakpointAnnotationListener;
  94.245 -    }
  94.246 -}
    95.1 --- a/bpel.debugger.ui/src/org/netbeans/modules/bpel/debugger/ui/action/Bundle.properties	Fri Dec 29 11:53:50 2006 +0000
    95.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
    95.3 @@ -1,29 +0,0 @@
    95.4 -# The contents of this file are subject to the terms of the Common Development
    95.5 -# and Distribution License (the License). You may not use this file except in
    95.6 -# compliance with the License.
    95.7 -#
    95.8 -#  You can obtain a copy of the License at http://www.netbeans.org/cddl.html
    95.9 -# or http://www.netbeans.org/cddl.txt.
   95.10 -
   95.11 -# When distributing Covered Code, include this CDDL Header Notice in each file
   95.12 -# and include the License file at http://www.netbeans.org/cddl.txt.
   95.13 -# If applicable, add the following below the CDDL Header, with the fields
   95.14 -# enclosed by brackets [] replaced by your own identifying information:
   95.15 -# "Portions Copyrighted [year] [name of copyright owner]"
   95.16 -#
   95.17 -#  The Original Software is NetBeans. The Initial Developer of the Original
   95.18 -# Software is Sun Microsystems, Inc. Portions Copyright 1997-2006 Sun
   95.19 -#  Microsystems, Inc. All Rights Reserved.
   95.20 -
   95.21 -# Console
   95.22 -LBL_ConsoleView=BPEL Debugger &Console
   95.23 -
   95.24 -# Process
   95.25 -LBL_ProcessView=BPEL Process &Instances
   95.26 -
   95.27 -# Variables
   95.28 -LBL_VariablesView=BPEL &Variables
   95.29 -
   95.30 -#AttachDebuggerAction
   95.31 -CTL_Connect=&Attach Debugger...
   95.32 -CTL_Connect_Title=Attach Debugger
   95.33 \ No newline at end of file
    96.1 --- a/bpel.debugger.ui/src/org/netbeans/modules/bpel/debugger/ui/action/Console.java	Fri Dec 29 11:53:50 2006 +0000
    96.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
    96.3 @@ -1,67 +0,0 @@
    96.4 -/*
    96.5 - * The contents of this file are subject to the terms of the Common Development
    96.6 - * and Distribution License (the License). You may not use this file except in
    96.7 - * compliance with the License.
    96.8 - *
    96.9 - * You can obtain a copy of the License at http://www.netbeans.org/cddl.html
   96.10 - * or http://www.netbeans.org/cddl.txt.
   96.11 -
   96.12 - * When distributing Covered Code, include this CDDL Header Notice in each file
   96.13 - * and include the License file at http://www.netbeans.org/cddl.txt.
   96.14 - * If applicable, add the following below the CDDL Header, with the fields
   96.15 - * enclosed by brackets [] replaced by your own identifying information:
   96.16 - * "Portions Copyrighted [year] [name of copyright owner]"
   96.17 - *
   96.18 - * The Original Software is NetBeans. The Initial Developer of the Original
   96.19 - * Software is Sun Microsystems, Inc. Portions Copyright 1997-2006 Sun
   96.20 - * Microsystems, Inc. All Rights Reserved.
   96.21 - */
   96.22 -
   96.23 -package org.netbeans.modules.bpel.debugger.ui.action;
   96.24 -
   96.25 -import java.awt.event.ActionEvent;
   96.26 -import javax.swing.AbstractAction;
   96.27 -import javax.swing.ImageIcon;
   96.28 -
   96.29 -import org.openide.util.NbBundle;
   96.30 -import org.openide.util.Utilities;
   96.31 -import org.netbeans.api.debugger.DebuggerManager;
   96.32 -import org.netbeans.api.debugger.Session;
   96.33 -import org.netbeans.modules.bpel.debugger.api.TracerAccess;
   96.34 -
   96.35 -/**
   96.36 - * @author Vladimir Yaroslavskiy
   96.37 - * @version 2005.12.02
   96.38 - */
   96.39 -public class Console extends AbstractAction {
   96.40 -
   96.41 -    /**{@inheritDoc}*/
   96.42 -    public Console() {
   96.43 -      putValue(NAME,NbBundle.getMessage(Process.class, "LBL_ConsoleView"));// NOI18N
   96.44 -      putValue(
   96.45 -        SMALL_ICON,
   96.46 -        new ImageIcon (Utilities.loadImage (
   96.47 -        "org/netbeans/modules/bpel/debugger/" + // NOI18N
   96.48 -        "ui/resources/image/console.gif"))); // NOI18N
   96.49 -    }
   96.50 -    
   96.51 -    /**{@inheritDoc}*/
   96.52 -    public void actionPerformed(ActionEvent e) {
   96.53 -//System.out.println ();
   96.54 -//System.out.println ("CONSOLE");
   96.55 -        TracerAccess.getTracer(getSession());
   96.56 -    }
   96.57 -
   96.58 -    /**{@inheritDoc}*/
   96.59 -    public boolean isEnabled() {
   96.60 -//System.out.println ();
   96.61 -//System.out.println ("IS ENABLED: " + (getSession() != null));
   96.62 -        return true;//getSession() != null;
   96.63 -    }
   96.64 -
   96.65 -    private Session getSession() {
   96.66 -        return (Session) DebuggerManager.getDebuggerManager().getCurrentSession();
   96.67 -    }
   96.68 -
   96.69 -    private static final long serialVersionUID = 1L; 
   96.70 -}
    97.1 --- a/bpel.debugger.ui/src/org/netbeans/modules/bpel/debugger/ui/action/ContinueActionProvider.java	Fri Dec 29 11:53:50 2006 +0000
    97.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
    97.3 @@ -1,53 +0,0 @@
    97.4 -/*
    97.5 - * The contents of this file are subject to the terms of the Common Development
    97.6 - * and Distribution License (the License). You may not use this file except in
    97.7 - * compliance with the License.
    97.8 - *
    97.9 - * You can obtain a copy of the License at http://www.netbeans.org/cddl.html
   97.10 - * or http://www.netbeans.org/cddl.txt.
   97.11 -
   97.12 - * When distributing Covered Code, include this CDDL Header Notice in each file
   97.13 - * and include the License file at http://www.netbeans.org/cddl.txt.
   97.14 - * If applicable, add the following below the CDDL Header, with the fields
   97.15 - * enclosed by brackets [] replaced by your own identifying information:
   97.16 - * "Portions Copyrighted [year] [name of copyright owner]"
   97.17 - *
   97.18 - * The Original Software is NetBeans. The Initial Developer of the Original
   97.19 - * Software is Sun Microsystems, Inc. Portions Copyright 1997-2006 Sun
   97.20 - * Microsystems, Inc. All Rights Reserved.
   97.21 - */
   97.22 -
   97.23 -package org.netbeans.modules.bpel.debugger.ui.action;
   97.24 -
   97.25 -import org.netbeans.api.debugger.ActionsManager;
   97.26 -import org.netbeans.modules.bpel.debugger.api.Position;
   97.27 -import
   97.28 -  org.netbeans.modules.bpel.debugger.ui.
   97.29 -    action.BpelActionsProviderSupport.PositionListener;
   97.30 -import org.netbeans.spi.debugger.ContextProvider;
   97.31 -
   97.32 -
   97.33 -/**
   97.34 - * @author Vladimir Yaroslavskiy
   97.35 - * @version 2005.12.01
   97.36 - */
   97.37 -public class ContinueActionProvider extends BpelActionsProviderSupport {
   97.38 -
   97.39 -    /**{@inheritDoc}*/
   97.40 -    public ContinueActionProvider(ContextProvider provider) {
   97.41 -        super(provider, ActionsManager.ACTION_CONTINUE);
   97.42 -
   97.43 -        // tie this action into the position listener - josh
   97.44 -        getDebugger().addPropertyChangeListener(new PositionListener(this));
   97.45 -        setEnabled(getDebugger().getCurrentPosition() != null);
   97.46 -    }
   97.47 -
   97.48 -    /**{@inheritDoc}*/
   97.49 -    public void doAction(Object action) {
   97.50 -        getDebugger().resume();
   97.51 -    }
   97.52 -    
   97.53 -    protected void positionChanged(Position oldPosition, Position newPosition) {
   97.54 -        setEnabled(newPosition != null);
   97.55 -    }
   97.56 -}
    98.1 --- a/bpel.debugger.ui/src/org/netbeans/modules/bpel/debugger/ui/action/KillActionProvider.java	Fri Dec 29 11:53:50 2006 +0000
    98.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
    98.3 @@ -1,52 +0,0 @@
    98.4 -/*
    98.5 - * The contents of this file are subject to the terms of the Common Development
    98.6 - * and Distribution License (the License). You may not use this file except in
    98.7 - * compliance with the License.
    98.8 - *
    98.9 - * You can obtain a copy of the License at http://www.netbeans.org/cddl.html
   98.10 - * or http://www.netbeans.org/cddl.txt.
   98.11 -
   98.12 - * When distributing Covered Code, include this CDDL Header Notice in each file
   98.13 - * and include the License file at http://www.netbeans.org/cddl.txt.
   98.14 - * If applicable, add the following below the CDDL Header, with the fields
   98.15 - * enclosed by brackets [] replaced by your own identifying information:
   98.16 - * "Portions Copyrighted [year] [name of copyright owner]"
   98.17 - *
   98.18 - * The Original Software is NetBeans. The Initial Developer of the Original
   98.19 - * Software is Sun Microsystems, Inc. Portions Copyright 1997-2006 Sun
   98.20 - * Microsystems, Inc. All Rights Reserved.
   98.21 - */
   98.22 -
   98.23 -package org.netbeans.modules.bpel.debugger.ui.action;
   98.24 -
   98.25 -import javax.swing.SwingUtilities;
   98.26 -
   98.27 -import org.netbeans.api.debugger.ActionsManager;
   98.28 -import org.netbeans.spi.debugger.ContextProvider;
   98.29 -
   98.30 -
   98.31 -/**
   98.32 - * Represents the detach action, which un-attaches the debugger
   98.33 - * from a BPEL service engine.
   98.34 - *
   98.35 - */
   98.36 -public class KillActionProvider extends BpelActionsProviderSupport {
   98.37 -
   98.38 -    public KillActionProvider(ContextProvider lookupProvider) {
   98.39 -        super(lookupProvider, ActionsManager.ACTION_KILL);
   98.40 -    }
   98.41 -
   98.42 -    public void doAction (Object action) {
   98.43 -        Runnable runner = new Runnable(){
   98.44 -            public void run() {
   98.45 -                getDebugger().finish();
   98.46 -            }
   98.47 -        };
   98.48 -        if (!SwingUtilities.isEventDispatchThread()) {
   98.49 -            SwingUtilities.invokeLater(runner);
   98.50 -        } else {
   98.51 -            runner.run();
   98.52 -        }
   98.53 -        
   98.54 -    }
   98.55 -}
    99.1 --- a/bpel.debugger.ui/src/org/netbeans/modules/bpel/debugger/ui/action/PauseActionProvider.java	Fri Dec 29 11:53:50 2006 +0000
    99.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
    99.3 @@ -1,44 +0,0 @@
    99.4 -/*
    99.5 - * The contents of this file are subject to the terms of the Common Development
    99.6 - * and Distribution License (the License). You may not use this file except in
    99.7 - * compliance with the License.
    99.8 - *
    99.9 - * You can obtain a copy of the License at http://www.netbeans.org/cddl.html
   99.10 - * or http://www.netbeans.org/cddl.txt.
   99.11 -
   99.12 - * When distributing Covered Code, include this CDDL Header Notice in each file
   99.13 - * and include the License file at http://www.netbeans.org/cddl.txt.
   99.14 - * If applicable, add the following below the CDDL Header, with the fields
   99.15 - * enclosed by brackets [] replaced by your own identifying information:
   99.16 - * "Portions Copyrighted [year] [name of copyright owner]"
   99.17 - *
   99.18 - * The Original Software is NetBeans. The Initial Developer of the Original
   99.19 - * Software is Sun Microsystems, Inc. Portions Copyright 1997-2006 Sun
   99.20 - * Microsystems, Inc. All Rights Reserved.
   99.21 - */
   99.22 -
   99.23 -package org.netbeans.modules.bpel.debugger.ui.action;
   99.24 -
   99.25 -import org.netbeans.api.debugger.ActionsManager;
   99.26 -import org.netbeans.modules.bpel.debugger.api.Position;
   99.27 -import org.netbeans.modules.bpel.debugger.ui.action.BpelActionsProviderSupport.PositionListener;
   99.28 -import org.netbeans.spi.debugger.ContextProvider;
   99.29 -
   99.30 -
   99.31 -public class PauseActionProvider extends BpelActionsProviderSupport {
   99.32 -
   99.33 -    public PauseActionProvider(ContextProvider lookupProvider) {
   99.34 -        super(lookupProvider, ActionsManager.ACTION_PAUSE);
   99.35 -        getDebugger().addPropertyChangeListener(new PositionListener(this));
   99.36 -    }
   99.37 -    
   99.38 -    public void doAction(Object action) {
   99.39 -        // TODO not yet implemented
   99.40 -        // getDebugger().pause();
   99.41 -    }
   99.42 -    
   99.43 -    protected void positionChanged(Position oldPosition, Position newPosition) {
   99.44 -        // only enabled when no position exists (suspended)
   99.45 -        setEnabled(newPosition == null);
   99.46 -    }
   99.47 -}
   100.1 --- a/bpel.debugger.ui/src/org/netbeans/modules/bpel/debugger/ui/action/Process.java	Fri Dec 29 11:53:50 2006 +0000
   100.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
   100.3 @@ -1,61 +0,0 @@
   100.4 -/*
   100.5 - * The contents of this file are subject to the terms of the Common Development
   100.6 - * and Distribution License (the License). You may not use this file except in
   100.7 - * compliance with the License.
   100.8 - *
   100.9 - * You can obtain a copy of the License at http://www.netbeans.org/cddl.html
  100.10 - * or http://www.netbeans.org/cddl.txt.
  100.11 -
  100.12 - * When distributing Covered Code, include this CDDL Header Notice in each file
  100.13 - * and include the License file at http://www.netbeans.org/cddl.txt.
  100.14 - * If applicable, add the following below the CDDL Header, with the fields
  100.15 - * enclosed by brackets [] replaced by your own identifying information:
  100.16 - * "Portions Copyrighted [year] [name of copyright owner]"
  100.17 - *
  100.18 - * The Original Software is NetBeans. The Initial Developer of the Original
  100.19 - * Software is Sun Microsystems, Inc. Portions Copyright 1997-2006 Sun
  100.20 - * Microsystems, Inc. All Rights Reserved.
  100.21 - */
  100.22 -
  100.23 -package org.netbeans.modules.bpel.debugger.ui.action;
  100.24 -
  100.25 -import java.awt.event.ActionEvent;
  100.26 -import javax.swing.AbstractAction;
  100.27 -import javax.swing.ImageIcon;
  100.28 -
  100.29 -import org.openide.windows.TopComponent;
  100.30 -import org.openide.windows.WindowManager;
  100.31 -
  100.32 -import org.openide.util.NbBundle;
  100.33 -import org.openide.util.Utilities;
  100.34 -import org.netbeans.modules.bpel.debugger.ui.process.BpelProcessTopComponent;
  100.35 -
  100.36 -/**
  100.37 - * @author Vladimir Yaroslavskiy
  100.38 - * @version 2005.12.01
  100.39 - */
  100.40 -public class Process extends AbstractAction {
  100.41 -
  100.42 -    /**{@inheritDoc}*/
  100.43 -    public Process() {
  100.44 -      putValue(NAME, NbBundle.getMessage(Process.class, "LBL_ProcessView"));//NOI18N
  100.45 -      putValue(
  100.46 -        SMALL_ICON,
  100.47 -        new ImageIcon (Utilities.loadImage (
  100.48 -        "org/netbeans/modules/bpel/debugger/" + // NOI18N
  100.49 -        "ui/resources/image/process.gif"))); // NOI18N
  100.50 -    }
  100.51 -    
  100.52 -    /**{@inheritDoc}*/
  100.53 -    public void actionPerformed(ActionEvent e) {
  100.54 -        TopComponent view = WindowManager.getDefault().findTopComponent(
  100.55 -            BpelProcessTopComponent.NAME);
  100.56 -        if (view == null) {
  100.57 -            throw new IllegalArgumentException(BpelProcessTopComponent.NAME);
  100.58 -        }
  100.59 -        view.open();
  100.60 -        view.requestActive();
  100.61 -    }
  100.62 -    
  100.63 -    private static final long serialVersionUID = 1L; 
  100.64 -}
   101.1 --- a/bpel.debugger.ui/src/org/netbeans/modules/bpel/debugger/ui/action/RunToCursorActionProvider.java	Fri Dec 29 11:53:50 2006 +0000
   101.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
   101.3 @@ -1,59 +0,0 @@
   101.4 -/*
   101.5 - * The contents of this file are subject to the terms of the Common Development
   101.6 - * and Distribution License (the License). You may not use this file except in
   101.7 - * compliance with the License.
   101.8 - *
   101.9 - * You can obtain a copy of the License at http://www.netbeans.org/cddl.html
  101.10 - * or http://www.netbeans.org/cddl.txt.
  101.11 -
  101.12 - * When distributing Covered Code, include this CDDL Header Notice in each file
  101.13 - * and include the License file at http://www.netbeans.org/cddl.txt.
  101.14 - * If applicable, add the following below the CDDL Header, with the fields
  101.15 - * enclosed by brackets [] replaced by your own identifying information:
  101.16 - * "Portions Copyrighted [year] [name of copyright owner]"
  101.17 - *
  101.18 - * The Original Software is NetBeans. The Initial Developer of the Original
  101.19 - * Software is Sun Microsystems, Inc. Portions Copyright 1997-2006 Sun
  101.20 - * Microsystems, Inc. All Rights Reserved.
  101.21 - */
  101.22 -
  101.23 -package org.netbeans.modules.bpel.debugger.ui.action;
  101.24 -
  101.25 -import org.netbeans.api.debugger.ActionsManager;
  101.26 -import org.netbeans.modules.bpel.debugger.api.BpelDebugger;
  101.27 -import org.netbeans.modules.bpel.debugger.api.Position;
  101.28 -import org.netbeans.modules.bpel.debugger.api.breakpoints.LineBreakpoint;
  101.29 -import org.netbeans.modules.bpel.debugger.ui.action.BpelActionsProviderSupport.PositionListener;
  101.30 -import org.netbeans.spi.debugger.ContextProvider;
  101.31 -
  101.32 -
  101.33 -/**
  101.34 - * The run-to-cursor action.
  101.35 - *
  101.36 - * @author Josh Sandusky
  101.37 - * @author Jan Jancura
  101.38 - */
  101.39 -public class RunToCursorActionProvider extends BpelActionsProviderSupport {
  101.40 -
  101.41 -    private RunToCursorUtil mUtil;
  101.42 -
  101.43 -    
  101.44 -    public RunToCursorActionProvider(ContextProvider lookupProvider) {
  101.45 -        super(lookupProvider, ActionsManager.ACTION_RUN_TO_CURSOR);
  101.46 -//        mUtil = new RunToCursorUtil();
  101.47 -//        getDebugger().addPropertyChangeListener(new PositionListener(this));
  101.48 -    }
  101.49 -    
  101.50 -    public void doAction(Object action) {
  101.51 -//        LineBreakpoint lb = LineBreakpoint.create (
  101.52 -//            mUtil.getCurrentFile(),
  101.53 -//            mUtil.getCurrentLineNumber ()
  101.54 -//        );
  101.55 -//        BpelDebugger debugger = getDebugger();
  101.56 -//        debugger.resume(lb);
  101.57 -    }
  101.58 -    
  101.59 -    protected void positionChanged(Position oldPosition, Position newPosition) {
  101.60 -//        setEnabled(newPosition != null);
  101.61 -    }
  101.62 -}
   102.1 --- a/bpel.debugger.ui/src/org/netbeans/modules/bpel/debugger/ui/action/RunToCursorUtil.java	Fri Dec 29 11:53:50 2006 +0000
   102.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
   102.3 @@ -1,184 +0,0 @@
   102.4 -/*
   102.5 - * The contents of this file are subject to the terms of the Common Development
   102.6 - * and Distribution License (the License). You may not use this file except in
   102.7 - * compliance with the License.
   102.8 - *
   102.9 - * You can obtain a copy of the License at http://www.netbeans.org/cddl.html
  102.10 - * or http://www.netbeans.org/cddl.txt.
  102.11 -
  102.12 - * When distributing Covered Code, include this CDDL Header Notice in each file
  102.13 - * and include the License file at http://www.netbeans.org/cddl.txt.
  102.14 - * If applicable, add the following below the CDDL Header, with the fields
  102.15 - * enclosed by brackets [] replaced by your own identifying information:
  102.16 - * "Portions Copyrighted [year] [name of copyright owner]"
  102.17 - *
  102.18 - * The Original Software is NetBeans. The Initial Developer of the Original
  102.19 - * Software is Sun Microsystems, Inc. Portions Copyright 1997-2006 Sun
  102.20 - * Microsystems, Inc. All Rights Reserved.
  102.21 - */
  102.22 -
  102.23 -package org.netbeans.modules.bpel.debugger.ui.action;
  102.24 -
  102.25 -import java.beans.PropertyChangeEvent;
  102.26 -import java.beans.PropertyChangeListener;
  102.27 -import java.beans.PropertyChangeSupport;
  102.28 -
  102.29 -import javax.swing.JEditorPane;
  102.30 -import javax.swing.text.Caret;
  102.31 -import javax.swing.text.StyledDocument;
  102.32 -
  102.33 -import org.openide.cookies.EditorCookie;
  102.34 -import org.openide.loaders.DataObject;
  102.35 -import org.openide.loaders.DataShadow;
  102.36 -import org.openide.nodes.Node;
  102.37 -import org.openide.text.NbDocument;
  102.38 -import org.openide.util.Lookup;
  102.39 -import org.openide.util.LookupEvent;
  102.40 -import org.openide.util.LookupListener;
  102.41 -import org.openide.util.Utilities;
  102.42 -import org.openide.windows.TopComponent;
  102.43 -
  102.44 -
  102.45 -/**
  102.46 - * Taken from EditorContextImpl from jpda debugger.
  102.47 - * 
  102.48 - * @author Jan Jancura
  102.49 - */
  102.50 -public class RunToCursorUtil {
  102.51 -    
  102.52 -    private Object currentLock = new Object();
  102.53 -    private EditorCookie currentEditorCookie = null;
  102.54 -    private PropertyChangeListener  editorObservableListener;
  102.55 -    private PropertyChangeSupport   pcs;
  102.56 -    
  102.57 -    private String currentURL = null;
  102.58 -    private Lookup.Result resDataObject;
  102.59 -    
  102.60 -    {
  102.61 -        pcs = new PropertyChangeSupport (this);
  102.62 -        
  102.63 -        resDataObject = Utilities.actionsGlobalContext().lookup(new Lookup.Template(DataObject.class));
  102.64 -        resDataObject.addLookupListener(new EditorLookupListener(DataObject.class));
  102.65 -    }
  102.66 -    
  102.67 -    
  102.68 -    private EditorCookie getCurrentEditorCookie () {
  102.69 -        synchronized (currentLock) {
  102.70 -            if (currentEditorCookie == null) {
  102.71 -                TopComponent tc = TopComponent.getRegistry().getActivated();
  102.72 -                if (tc != null) {
  102.73 -                    currentEditorCookie = (EditorCookie) tc.getLookup().lookup(EditorCookie.class);
  102.74 -                }
  102.75 -                // Listen on open panes if currentEditorCookie implements EditorCookie.Observable
  102.76 -                if (currentEditorCookie instanceof EditorCookie.Observable) {
  102.77 -                    if (editorObservableListener == null) {
  102.78 -                        editorObservableListener = new EditorLookupListener(EditorCookie.Observable.class);
  102.79 -                    }
  102.80 -                    ((EditorCookie.Observable) currentEditorCookie).addPropertyChangeListener(editorObservableListener);
  102.81 -                }
  102.82 -            }
  102.83 -            return currentEditorCookie;
  102.84 -        }
  102.85 -    }
  102.86 -    
  102.87 -    private JEditorPane getCurrentEditor () {
  102.88 -        EditorCookie e = getCurrentEditorCookie ();
  102.89 -        if (e == null) return null;
  102.90 -        JEditorPane[] op = e.getOpenedPanes ();
  102.91 -        // We listen on open panes if e implements EditorCookie.Observable
  102.92 -        if ((op == null) || (op.length < 1)) return null;
  102.93 -        return op [0];
  102.94 -    }
  102.95 -    
  102.96 -    /**
  102.97 -     * Returns number of line currently selected in editor or <code>-1</code>.
  102.98 -     *
  102.99 -     * @return number of line currently selected in editor or <code>-1</code>
 102.100 -     */
 102.101 -    public int getCurrentLineNumber () {
 102.102 -        EditorCookie e = getCurrentEditorCookie ();
 102.103 -        if (e == null) return -1;
 102.104 -        JEditorPane ep = getCurrentEditor ();
 102.105 -        if (ep == null) return -1;
 102.106 -        StyledDocument d = e.getDocument ();
 102.107 -        if (d == null) return -1;
 102.108 -        Caret caret = ep.getCaret ();
 102.109 -        if (caret == null) return -1;
 102.110 -        int ln = NbDocument.findLineNumber (
 102.111 -            d,
 102.112 -            caret.getDot ()
 102.113 -        );
 102.114 -        return ln + 1;
 102.115 -    }
 102.116 -    
 102.117 -    
 102.118 -    /**
 102.119 -     * Returns URL of source currently selected in editor or empty string.
 102.120 -     *
 102.121 -     * @return URL of source currently selected in editor or empty string
 102.122 -     */
 102.123 -    public String getCurrentFile() {
 102.124 -        synchronized (currentLock) {
 102.125 -            if (currentURL == null) {
 102.126 -                DataObject[] nodes = (DataObject[])resDataObject.allInstances().toArray(new DataObject[0]);
 102.127 -
 102.128 -                currentURL = "";
 102.129 -                if (nodes.length != 1)
 102.130 -                    return currentURL;
 102.131 -                
 102.132 -                DataObject dO = nodes[0];
 102.133 -                if (dO instanceof DataShadow)
 102.134 -                    dO = ((DataShadow) dO).getOriginal ();
 102.135 -
 102.136 -                // return the file path (not URL)
 102.137 -                currentURL = dO.getPrimaryFile().getPath();
 102.138 -            }
 102.139 -
 102.140 -            return currentURL;
 102.141 -        }
 102.142 -    }
 102.143 -    
 102.144 -    
 102.145 -    
 102.146 -    private class EditorLookupListener extends Object implements LookupListener, PropertyChangeListener {
 102.147 -        
 102.148 -        private Class type;
 102.149 -        
 102.150 -        public EditorLookupListener(Class type) {
 102.151 -            this.type = type;
 102.152 -        }
 102.153 -        
 102.154 -        public void resultChanged(LookupEvent ev) {
 102.155 -            if (type == DataObject.class) {
 102.156 -                synchronized (currentLock) {
 102.157 -                    currentURL = null;
 102.158 -                    if (currentEditorCookie instanceof EditorCookie.Observable) {
 102.159 -                        ((EditorCookie.Observable) currentEditorCookie).
 102.160 -                                removePropertyChangeListener(editorObservableListener);
 102.161 -                    }
 102.162 -                    currentEditorCookie = null;
 102.163 -                }
 102.164 -                pcs.firePropertyChange (TopComponent.Registry.PROP_CURRENT_NODES, null, null);
 102.165 -            } else if (type == EditorCookie.class) {
 102.166 -                synchronized (currentLock) {
 102.167 -                    currentURL = null;
 102.168 -                    if (currentEditorCookie instanceof EditorCookie.Observable) {
 102.169 -                        ((EditorCookie.Observable) currentEditorCookie).
 102.170 -                                removePropertyChangeListener(editorObservableListener);
 102.171 -                    }
 102.172 -                    currentEditorCookie = null;
 102.173 -                }
 102.174 -                pcs.firePropertyChange (TopComponent.Registry.PROP_CURRENT_NODES, null, null);
 102.175 -            } else if (type == Node.class) {
 102.176 -                pcs.firePropertyChange (TopComponent.Registry.PROP_CURRENT_NODES, null, null);
 102.177 -            }
 102.178 -        }
 102.179 -        
 102.180 -        public void propertyChange(PropertyChangeEvent evt) {
 102.181 -            if (evt.getPropertyName().equals(EditorCookie.Observable.PROP_OPENED_PANES)) {
 102.182 -                pcs.firePropertyChange (EditorCookie.Observable.PROP_OPENED_PANES, null, null);
 102.183 -            }
 102.184 -        }
 102.185 -        
 102.186 -    }
 102.187 -}
   103.1 --- a/bpel.debugger.ui/src/org/netbeans/modules/bpel/debugger/ui/action/StepIntoActionProvider.java	Fri Dec 29 11:53:50 2006 +0000
   103.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
   103.3 @@ -1,52 +0,0 @@
   103.4 -/*
   103.5 - * The contents of this file are subject to the terms of the Common Development
   103.6 - * and Distribution License (the License). You may not use this file except in
   103.7 - * compliance with the License.
   103.8 - *
   103.9 - * You can obtain a copy of the License at http://www.netbeans.org/cddl.html
  103.10 - * or http://www.netbeans.org/cddl.txt.
  103.11 -
  103.12 - * When distributing Covered Code, include this CDDL Header Notice in each file
  103.13 - * and include the License file at http://www.netbeans.org/cddl.txt.
  103.14 - * If applicable, add the following below the CDDL Header, with the fields
  103.15 - * enclosed by brackets [] replaced by your own identifying information:
  103.16 - * "Portions Copyrighted [year] [name of copyright owner]"
  103.17 - *
  103.18 - * The Original Software is NetBeans. The Initial Developer of the Original
  103.19 - * Software is Sun Microsystems, Inc. Portions Copyright 1997-2006 Sun
  103.20 - * Microsystems, Inc. All Rights Reserved.
  103.21 - */
  103.22 -
  103.23 -package org.netbeans.modules.bpel.debugger.ui.action;
  103.24 -
  103.25 -import org.netbeans.api.debugger.ActionsManager;
  103.26 -import org.netbeans.modules.bpel.debugger.api.Position;
  103.27 -import org.netbeans.modules.bpel.debugger.ui.
  103.28 -  action.BpelActionsProviderSupport.PositionListener;
  103.29 -import org.netbeans.spi.debugger.ContextProvider;
  103.30 -
  103.31 -
  103.32 -/**
  103.33 - * @author Vladimir Yaroslavskiy
  103.34 - * @version 2005.12.01
  103.35 - */
  103.36 -public class StepIntoActionProvider extends BpelActionsProviderSupport {
  103.37 -
  103.38 -    /**{@inheritDoc}*/
  103.39 -    public StepIntoActionProvider(ContextProvider provider) {
  103.40 -        super(provider, ActionsManager.ACTION_STEP_INTO);
  103.41 -        
  103.42 -        // tie this action into the position listener - josh
  103.43 -        getDebugger().addPropertyChangeListener(new PositionListener(this));
  103.44 -        setEnabled(getDebugger().getCurrentPosition() != null);
  103.45 -    }
  103.46 -
  103.47 -    /**{@inheritDoc}*/
  103.48 -    public void doAction(Object action) {
  103.49 -        getDebugger().stepInto();
  103.50 -    }
  103.51 -    
  103.52 -    protected void positionChanged(Position oldPosition, Position newPosition) {
  103.53 -        setEnabled(newPosition != null);
  103.54 -    }
  103.55 -}
   104.1 --- a/bpel.debugger.ui/src/org/netbeans/modules/bpel/debugger/ui/breakpoint/BPELActivityFinderSaxHandler.java	Fri Dec 29 11:53:50 2006 +0000
   104.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
   104.3 @@ -1,142 +0,0 @@
   104.4 -/*
   104.5 - * The contents of this file are subject to the terms of the Common Development
   104.6 - * and Distribution License (the License). You may not use this file except in
   104.7 - * compliance with the License.
   104.8 - *
   104.9 - * You can obtain a copy of the License at http://www.netbeans.org/cddl.html
  104.10 - * or http://www.netbeans.org/cddl.txt.
  104.11 -
  104.12 - * When distributing Covered Code, include this CDDL Header Notice in each file
  104.13 - * and include the License file at http://www.netbeans.org/cddl.txt.
  104.14 - * If applicable, add the following below the CDDL Header, with the fields
  104.15 - * enclosed by brackets [] replaced by your own identifying information:
  104.16 - * "Portions Copyrighted [year] [name of copyright owner]"
  104.17 - *
  104.18 - * The Original Software is NetBeans. The Initial Developer of the Original
  104.19 - * Software is Sun Microsystems, Inc. Portions Copyright 1997-2006 Sun
  104.20 - * Microsystems, Inc. All Rights Reserved.
  104.21 - */
  104.22 -
  104.23 -
  104.24 -package org.netbeans.modules.bpel.debugger.ui.breakpoint;
  104.25 -
  104.26 -import java.util.ArrayList;
  104.27 -import java.util.HashMap;
  104.28 -import java.util.Iterator;
  104.29 -import java.util.LinkedHashMap;
  104.30 -import java.util.List;
  104.31 -import java.util.Map;
  104.32 -
  104.33 -import org.xml.sax.Attributes;
  104.34 -import org.xml.sax.Locator;
  104.35 -import org.xml.sax.SAXException;
  104.36 -import org.xml.sax.helpers.DefaultHandler;
  104.37 -
  104.38 -/**
  104.39 - * A Handler that construct BPEL node tree and finds all the Activities
  104.40 - * @author Sun Microsystems
  104.41 - *
  104.42 - */
  104.43 -public class BPELActivityFinderSaxHandler extends DefaultHandler {
  104.44 -    
  104.45 -//    private List mAllActivities = new ArrayList ();
  104.46 -    private List mAllNodes = new ArrayList ();
  104.47 -    private BPELNode mCurrentNode;
  104.48 -    private Locator mLocator;
  104.49 -    private String mTargetNS;
  104.50 -    private BPELNode mFirstAct;
  104.51 -    private BPELNode mLastAct;
  104.52 -    private int mBreakpointLine;
  104.53 -    private BPELNode mFindingNode;
  104.54 -    private boolean found;
  104.55 -    
  104.56 -    
  104.57 -//    public List getAllActivities () {
  104.58 -//        return mAllActivities;
  104.59 -//    }
  104.60 -    
  104.61 -    public BPELActivityFinderSaxHandler(int lineNumber) {
  104.62 -        // TODO Auto-generated constructor stub
  104.63 -        mBreakpointLine = lineNumber;
  104.64 -    }
  104.65 -
  104.66 -    public List getAllNodes () {
  104.67 -        return mAllNodes;
  104.68 -    }
  104.69 -
  104.70 -    @Override
  104.71 -    public void endElement(String uri, String localName, String qName) throws SAXException {
  104.72 -        // TODO Auto-generated method stub
  104.73 -        mCurrentNode.setClosingNumber(mLocator.getLineNumber());
  104.74 -        if (!found  && mFindingNode == mCurrentNode && mCurrentNode.getClosingNumber() >= mBreakpointLine)  {
  104.75 -            found = true;
  104.76 -        }
  104.77 -        mCurrentNode = mCurrentNode.getParent ();   
  104.78 -        if (!found) {
  104.79 -            mFindingNode = mCurrentNode;
  104.80 -        }
  104.81 -    }
  104.82 -
  104.83 -    @Override
  104.84 -    public void setDocumentLocator(Locator locator) {
  104.85 -        // TODO Auto-generated method stub
  104.86 -        mLocator = locator;
  104.87 -    }
  104.88 -
  104.89 -    @Override
  104.90 -    public void startElement(String uri, String localName, String qName, Attributes attributes) throws SAXException {
  104.91 -        // TODO Auto-generated method stub
  104.92 -        if (mCurrentNode == null) {
  104.93 -            for (int i=0; i< attributes.getLength(); i++) {
  104.94 -                if (attributes.getLocalName(i).equals ("targetNamespace")) {
  104.95 -                    mTargetNS = attributes.getValue(i);
  104.96 -                }
  104.97 -            }            
  104.98 -        }
  104.99 -        BPELNode.BPELNodeType nodeType = BPELNode.getNodeType(localName);
 104.100 -        BPELNode bpelNode = new BPELNode (localName, mLocator.getLineNumber(), mTargetNS, nodeType, mCurrentNode);
 104.101 -        if (mCurrentNode != null) {
 104.102 -            mCurrentNode.addChild(bpelNode);
 104.103 -        }
 104.104 -//        if (bpelNode.isActivity()) {
 104.105 -//            mAllActivities.add(bpelNode);
 104.106 -//        }
 104.107 -        mAllNodes.add(bpelNode);
 104.108 -        if (bpelNode.isActivity() && mFirstAct == null) {
 104.109 -            mFirstAct = bpelNode;
 104.110 -        } else if (bpelNode.isActivity()) {
 104.111 -            mLastAct = bpelNode;
 104.112 -        }
 104.113 -        mCurrentNode = bpelNode;    
 104.114 -        if(!found && mCurrentNode.getLineNo() < mBreakpointLine) {
 104.115 -            mFindingNode = mCurrentNode;
 104.116 -        } else if (!found && mCurrentNode.getLineNo() >= mBreakpointLine) {
 104.117 -            if (mCurrentNode.getParent() == mFindingNode) {
 104.118 -                mFindingNode = mCurrentNode;
 104.119 -            }
 104.120 -           found = true;
 104.121 -        }
 104.122 -    }
 104.123 -    
 104.124 -    public BPELNode getFirstActivity () {
 104.125 -        return mFirstAct;
 104.126 -    }
 104.127 -    
 104.128 -    public BPELNode getLastActivity () {
 104.129 -        return mLastAct;
 104.130 -    }
 104.131 -    
 104.132 -    public HashMap getAllActMap () {
 104.133 -        LinkedHashMap activityLineXpathMap = new LinkedHashMap ();
 104.134 -        for (Iterator it = mAllNodes.iterator(); it.hasNext();) {
 104.135 -            BPELNode bpelNode = (BPELNode) it.next();
 104.136 -            activityLineXpathMap.put(new Integer(bpelNode.getLineNo()), bpelNode);
 104.137 -        }
 104.138 -        return activityLineXpathMap;
 104.139 -    }
 104.140 -    
 104.141 -    public BPELNode getFoundNode () {
 104.142 -        return mFindingNode;
 104.143 -    }
 104.144 -
 104.145 -}
   105.1 --- a/bpel.debugger.ui/src/org/netbeans/modules/bpel/debugger/ui/breakpoint/BPELNode.java	Fri Dec 29 11:53:50 2006 +0000
   105.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
   105.3 @@ -1,429 +0,0 @@
   105.4 -/*
   105.5 - * The contents of this file are subject to the terms of the Common Development
   105.6 - * and Distribution License (the License). You may not use this file except in
   105.7 - * compliance with the License.
   105.8 - *
   105.9 - * You can obtain a copy of the License at http://www.netbeans.org/cddl.html
  105.10 - * or http://www.netbeans.org/cddl.txt.
  105.11 -
  105.12 - * When distributing Covered Code, include this CDDL Header Notice in each file
  105.13 - * and include the License file at http://www.netbeans.org/cddl.txt.
  105.14 - * If applicable, add the following below the CDDL Header, with the fields
  105.15 - * enclosed by brackets [] replaced by your own identifying information:
  105.16 - * "Portions Copyrighted [year] [name of copyright owner]"
  105.17 - *
  105.18 - * The Original Software is NetBeans. The Initial Developer of the Original
  105.19 - * Software is Sun Microsystems, Inc. Portions Copyright 1997-2006 Sun
  105.20 - * Microsystems, Inc. All Rights Reserved.
  105.21 - */
  105.22 -
  105.23 -
  105.24 -package org.netbeans.modules.bpel.debugger.ui.breakpoint;
  105.25 -
  105.26 -import java.util.ArrayList;
  105.27 -import java.util.HashMap;
  105.28 -import java.util.List;
  105.29 -
  105.30 -/**
  105.31 - * An abstract Node corresponding to each XML node when
  105.32 - * a BPEL file is parsed. It includes the line number and XPath
  105.33 - * information as well as the references to parent node and children node
  105.34 - *
  105.35 - * @author Sun Microsystems
  105.36 - *
  105.37 - */
  105.38 -public class BPELNode {
  105.39 -
  105.40 -    /** "receive" element tag */
  105.41 -    public static final String RECEIVE = "receive";
  105.42 -
  105.43 -    /** "reply" element tag */
  105.44 -    public static final String REPLY = "reply";
  105.45 -    
  105.46 -    /** "invoke" element tag */
  105.47 -    public static final String INVOKE = "invoke";
  105.48 -    
  105.49 -    /** "assign" element tag */
  105.50 -    public static final String ASSIGN = "assign";
  105.51 -    
  105.52 -    /** "throw" element tag */
  105.53 -    public static final String THROW = "throw";
  105.54 -    
  105.55 -    /** "exit" element tag */
  105.56 -    public static final String TERMINATE = "exit";
  105.57 -    
  105.58 -    /** "wait" element tag */
  105.59 -    public static final String WAIT = "wait";
  105.60 -    
  105.61 -    /** "empty" element tag */
  105.62 -    public static final String EMPTY = "empty";
  105.63 -    
  105.64 -    /** "sequence" element tag */
  105.65 -    public static final String SEQUENCE = "sequence";
  105.66 -    
  105.67 -    /** "switch" element tag */
  105.68 -    public static final String SWITCH = "switch";
  105.69 -    
  105.70 -    /** "if" element tag */
  105.71 -    public static final String IF = "if";
  105.72 -    
  105.73 -    /** "while" element tag */
  105.74 -    public static final String WHILE = "while";
  105.75 -    
  105.76 -    /** "repeatUntil element tag */
  105.77 -    public static final String REPEAT_UNTIL = "repeatUntil";
  105.78 -    
  105.79 -    /** "repeatUntil element tag */
  105.80 -    public static final String FOREACH = "forEach";
  105.81 -    
  105.82 -    /** "pick" element tag */
  105.83 -    public static final String PICK = "pick";
  105.84 -    
  105.85 -    /** "flow" element tag */
  105.86 -    public static final String FLOW = "flow";
  105.87 -    
  105.88 -    /** "scope" element tag */
  105.89 -    public static final String SCOPE = "scope";
  105.90 -    
  105.91 -    /** "compensate" element tag */
  105.92 -    public static final String COMPENSATE = "compensate";
  105.93 -    
  105.94 -    /** "compensateScope" element tag */
  105.95 -    public static final String COMPENSATE_SCOPE = "compensateScope";
  105.96 -    
  105.97 -    /** "rethrow" element tag */
  105.98 -    public static final String RETHROW = "rethrow";
  105.99 -
 105.100 -    /** "validate" element tag */
 105.101 -    public static final String VALIDATE = "validate";
 105.102 -
 105.103 -    
 105.104 -    
 105.105 -    private static HashMap ALL_ACTIVITIES_MAP;
 105.106 -
 105.107 -    
 105.108 -    
 105.109 -    /**
 105.110 -     * NodeType class to ensure type safe comparison,
 105.111 -     * so that no equalsTo is required to indentify
 105.112 -     * what type the BPELNode is.
 105.113 -     *
 105.114 -     */
 105.115 -   static public final class BPELNodeType {
 105.116 -       
 105.117 -       private String mName;
 105.118 -       //Not an activity type
 105.119 -       private static final String NONE_ACTIVITY = "NoneActivity";
 105.120 -       /**
 105.121 -        * Private constructor to avoid creating an instance.
 105.122 -        * All instances are precreated.
 105.123 -        * 
 105.124 -        * @param nodeType The nodeType
 105.125 -        * 
 105.126 -        */
 105.127 -       private BPELNodeType (String nodeType) {
 105.128 -           mName = nodeType;
 105.129 -       }
 105.130 -       /**
 105.131 -        * The 'receive' activity
 105.132 -        */
 105.133 -       public static final BPELNodeType RECEIVE_TYPE = new BPELNodeType(RECEIVE);
 105.134 -       
 105.135 -       /**
 105.136 -        * The 'reply' activity
 105.137 -        */
 105.138 -       public static final BPELNodeType REPLY_TYPE = new BPELNodeType(REPLY);
 105.139 -       
 105.140 -       /**
 105.141 -        * The 'invoke' activity
 105.142 -        */
 105.143 -       public static final BPELNodeType INVOKE_TYPE = new BPELNodeType(INVOKE);       
 105.144 -       
 105.145 -       /**
 105.146 -        * The 'assign' activity
 105.147 -        */
 105.148 -       public static final BPELNodeType ASSIGN_TYPE = new BPELNodeType(ASSIGN);
 105.149 -       
 105.150 -       /**
 105.151 -        * The 'throw' activity
 105.152 -        */
 105.153 -       public static final BPELNodeType THROW_TYPE = new BPELNodeType(THROW);
 105.154 -       
 105.155 -       /**
 105.156 -        * The 'terminate' activity
 105.157 -        */       
 105.158 -       public static final BPELNodeType TERMINATE_TYPE = new BPELNodeType(TERMINATE); 
 105.159 -       
 105.160 -       /**
 105.161 -        * The 'wait' activity
 105.162 -        */
 105.163 -       public static final BPELNodeType WAIT_TYPE = new BPELNodeType(WAIT);
 105.164 -       
 105.165 -       /**
 105.166 -        * The 'empty' activity
 105.167 -        */
 105.168 -       public static final BPELNodeType EMPTY_TYPE = new BPELNodeType(EMPTY);
 105.169 -       
 105.170 -       /**
 105.171 -        * The 'sequence' activity
 105.172 -        */
 105.173 -       public static final BPELNodeType SEQUENCE_TYPE = new BPELNodeType(SEQUENCE);
 105.174 -       
 105.175 -       /**
 105.176 -        * The 'if' activity
 105.177 -        */
 105.178 -       public static final BPELNodeType IF_TYPE = new BPELNodeType(IF);
 105.179 -       
 105.180 -      
 105.181 -       /**
 105.182 -        * The 'switch' activity
 105.183 -        */
 105.184 -       public static final BPELNodeType SWITCH_TYPE = new BPELNodeType(SWITCH);
 105.185 -       
 105.186 -       /**
 105.187 -        * The 'repeatUntil' activity
 105.188 -        */
 105.189 -       public static final BPELNodeType REPEAT_UNTIL_TYPE = new BPELNodeType(REPEAT_UNTIL);       
 105.190 -       
 105.191 -       /**
 105.192 -        * The 'while' activity
 105.193 -        */
 105.194 -       public static final BPELNodeType WHILE_TYPE = new BPELNodeType(WHILE);
 105.195 -       
 105.196 -       /**
 105.197 -        * The 'forEach' activity
 105.198 -        */
 105.199 -       public static final BPELNodeType FOREACH_TYPE = new BPELNodeType(FOREACH);
 105.200 -       
 105.201 -       
 105.202 -       /**
 105.203 -        * The 'pick' activity
 105.204 -        */
 105.205 -       public static final BPELNodeType PICK_TYPE = new BPELNodeType(PICK);
 105.206 -       
 105.207 -       /**
 105.208 -        * The 'flow' activity
 105.209 -        */
 105.210 -       public static final BPELNodeType FLOW_TYPE = new BPELNodeType(FLOW);
 105.211 -       
 105.212 -       /**
 105.213 -        * The 'scope' activity
 105.214 -        */
 105.215 -       public static final BPELNodeType SCOPE_TYPE = new BPELNodeType(SCOPE);
 105.216 -       
 105.217 -       /**
 105.218 -        * The 'compensateScope' activity
 105.219 -        */
 105.220 -       public static final BPELNodeType COMPENSATE_SCOPE_TYPE = new BPELNodeType(COMPENSATE_SCOPE);
 105.221 -       
 105.222 -       /**
 105.223 -        * The 'rethrow' activity
 105.224 -        */
 105.225 -       public static final BPELNodeType RETHROW_TYPE = new BPELNodeType(RETHROW);
 105.226 -       /**
 105.227 -        * The 'validate' activity
 105.228 -        */
 105.229 -       public static final BPELNodeType VALIDATE_TYPE = new BPELNodeType(VALIDATE);
 105.230 -       /**
 105.231 -        * The 'compensate' activity
 105.232 -        */
 105.233 -       public static final BPELNodeType COMPENSATE_TYPE = new BPELNodeType(COMPENSATE);
 105.234 -       
 105.235 -       /**
 105.236 -        * Any node that is not the above mentioned types
 105.237 -        *
 105.238 -        */       
 105.239 -       public static final BPELNodeType NONE_ACTIVITY_TYPE = new BPELNodeType(NONE_ACTIVITY);
 105.240 -
 105.241 -   
 105.242 -    public boolean equals(Object obj) {
 105.243 -        // TODO Auto-generated method stub
 105.244 -       if (obj instanceof BPELNodeType)
 105.245 -           return false;
 105.246 -       return ((BPELNodeType)obj).mName.equals(mName);
 105.247 -    }
 105.248 -    
 105.249 -    
 105.250 -    public int hashCode() {
 105.251 -        // TODO Auto-generated method stub
 105.252 -        return mName.hashCode();
 105.253 -    }
 105.254 -    
 105.255 -    public String toString() {
 105.256 -        // TODO Auto-generated method stub
 105.257 -        return "Type:" + mName;
 105.258 -    }
 105.259 -       
 105.260 -       
 105.261 -        
 105.262 -    }    
 105.263 -    
 105.264 -    static {
 105.265 -        ALL_ACTIVITIES_MAP = new HashMap ();
 105.266 -        ALL_ACTIVITIES_MAP.put(RECEIVE, BPELNodeType.RECEIVE_TYPE);
 105.267 -        ALL_ACTIVITIES_MAP.put(REPLY, BPELNodeType.REPLY_TYPE);
 105.268 -        ALL_ACTIVITIES_MAP.put(INVOKE, BPELNodeType.INVOKE_TYPE);
 105.269 -        ALL_ACTIVITIES_MAP.put(ASSIGN, BPELNodeType.ASSIGN_TYPE);
 105.270 -        ALL_ACTIVITIES_MAP.put(THROW, BPELNodeType.THROW_TYPE);        
 105.271 -        ALL_ACTIVITIES_MAP.put(TERMINATE, BPELNodeType.TERMINATE_TYPE);
 105.272 -        ALL_ACTIVITIES_MAP.put(WAIT, BPELNodeType.WAIT_TYPE);
 105.273 -        ALL_ACTIVITIES_MAP.put(EMPTY, BPELNodeType.EMPTY_TYPE);
 105.274 -        ALL_ACTIVITIES_MAP.put(SEQUENCE, BPELNodeType.SEQUENCE_TYPE);
 105.275 -        ALL_ACTIVITIES_MAP.put(IF, BPELNodeType.IF_TYPE);
 105.276 -        ALL_ACTIVITIES_MAP.put(REPEAT_UNTIL, BPELNodeType.REPEAT_UNTIL_TYPE);
 105.277 -        ALL_ACTIVITIES_MAP.put(FOREACH, BPELNodeType.FOREACH_TYPE);
 105.278 -        ALL_ACTIVITIES_MAP.put(SWITCH, BPELNodeType.SWITCH_TYPE);        
 105.279 -        ALL_ACTIVITIES_MAP.put(WHILE, BPELNodeType.WHILE_TYPE);
 105.280 -        ALL_ACTIVITIES_MAP.put(PICK, BPELNodeType.PICK_TYPE);
 105.281 -        ALL_ACTIVITIES_MAP.put(FLOW, BPELNodeType.FLOW_TYPE);
 105.282 -        ALL_ACTIVITIES_MAP.put(SCOPE, BPELNodeType.SCOPE_TYPE);
 105.283 -        ALL_ACTIVITIES_MAP.put(COMPENSATE, BPELNodeType.COMPENSATE_TYPE);  
 105.284 -        ALL_ACTIVITIES_MAP.put(COMPENSATE_SCOPE, BPELNodeType.COMPENSATE_SCOPE_TYPE);
 105.285 -        ALL_ACTIVITIES_MAP.put(RETHROW, BPELNodeType.RETHROW_TYPE);
 105.286 -        ALL_ACTIVITIES_MAP.put(VALIDATE, BPELNodeType.VALIDATE_TYPE);
 105.287 -    }
 105.288 -    
 105.289 -    private final int mLineNo;
 105.290 -    private final String mName;
 105.291 -    private final String mXpath;
 105.292 -    private final BPELNodeType mType;
 105.293 -    private final boolean mActivityFlag;
 105.294 -    private final String mTargetNameSpace;
 105.295 -    private int mClosingNo;
 105.296 -    
 105.297 -    private List mChildren = new ArrayList ();
 105.298 -    private BPELNode mParent;
 105.299 -    
 105.300 -    /**
 105.301 -     * Returns whether he BPEL Node is an Activity type
 105.302 -     * of node
 105.303 -     * @return true if it is 
 105.304 -     */
 105.305 -    public boolean isActivity () {
 105.306 -        return mActivityFlag;
 105.307 -    }    
 105.308 -    
 105.309 -    public BPELNode (String name, int lineNo, String targetNamespace, BPELNodeType type, BPELNode parent) {
 105.310 -        mName = name;
 105.311 -        mLineNo = lineNo;
 105.312 -        mTargetNameSpace = targetNamespace;
 105.313 -        mType = type;
 105.314 -        mActivityFlag =  (getNodeType(name) != BPELNodeType.NONE_ACTIVITY_TYPE);
 105.315 -        mParent = parent;
 105.316 -        mXpath = constructXpath ();
 105.317 -    }
 105.318 -    
 105.319 -    public static BPELNodeType getNodeType (String nodeName) {
 105.320 -        return ALL_ACTIVITIES_MAP.get(nodeName)!=null ? ((BPELNodeType)ALL_ACTIVITIES_MAP.get(nodeName)):BPELNodeType.NONE_ACTIVITY_TYPE;
 105.321 -    }
 105.322 -
 105.323 -    private String constructXpath() {
 105.324 -        // TODO Auto-generated method stub
 105.325 -       String result = "/";
 105.326 -       if (mParent == null) {
 105.327 -           return result + mName;
 105.328 -       }
 105.329 -       String xpath = mParent.getXpath();
 105.330 -       List sibings = mParent.getChildren ();
 105.331 -       
 105.332 -       int index = 1;
 105.333 -       for (int i = 0; i < sibings.size(); i++) {
 105.334 -           BPELNode sibling = (BPELNode) sibings.get(i);
 105.335 -           if (sibling.getType() == mType) {
 105.336 -               index++;
 105.337 -           }           
 105.338 -       }
 105.339 -      return xpath + "/" + mName + "[" + index + "]";
 105.340 -    }
 105.341 -    
 105.342 -    /**
 105.343 -     * Returns the type of this node
 105.344 -     * @return
 105.345 -     */
 105.346 -    public BPELNodeType getType() {
 105.347 -        // TODO Auto-generated method stub
 105.348 -        return mType;
 105.349 -    }
 105.350 -
 105.351 -    /**
 105.352 -     * Returns the children of this node
 105.353 -     * @return
 105.354 -     */
 105.355 -    public List getChildren() {
 105.356 -        // TODO Auto-generated method stub
 105.357 -        return mChildren;
 105.358 -    }
 105.359 -    
 105.360 -    /**
 105.361 -     * Add a child
 105.362 -     * @param child
 105.363 -     */
 105.364 -    public void addChild (BPELNode child) {
 105.365 -        mChildren.add(child);
 105.366 -    }
 105.367 -
 105.368 -    /**
 105.369 -     * Returns the xpath of this node
 105.370 -     * @return
 105.371 -     */
 105.372 -    public String getXpath() {
 105.373 -        // TODO Auto-generated method stub
 105.374 -        return mXpath;
 105.375 -    }
 105.376 -    /**
 105.377 -     * Returns the lineNo of this node
 105.378 -     * @return
 105.379 -     */
 105.380 -    public int getLineNo () {
 105.381 -        return mLineNo;
 105.382 -    }
 105.383 -    
 105.384 -    public BPELNode getParent () {
 105.385 -        return mParent;
 105.386 -    }
 105.387 -    
 105.388 -    /**
 105.389 -     * Returns the target name space 
 105.390 -     */
 105.391 -    public String getTargetNameSpace () {
 105.392 -        return mTargetNameSpace;
 105.393 -    }
 105.394 -    /**
 105.395 -     * Sets the closing number
 105.396 -     * @param lineNo the line no. for the closing tag line
 105.397 -     */
 105.398 -
 105.399 -    public void setClosingNumber (int lineNo) {
 105.400 -        mClosingNo = lineNo;
 105.401 -    }
 105.402 -    
 105.403 -    /**
 105.404 -     * Gets the closing number
 105.405 -     * @return the line no. for the closing tag line
 105.406 -     */
 105.407 -    public int getClosingNumber () {
 105.408 -        return mClosingNo;
 105.409 -    }
 105.410 -    
 105.411 -    public boolean equals(Object obj) {
 105.412 -        // TODO Auto-generated method stub
 105.413 -        if (!(obj instanceof BPELNode)) {
 105.414 -            return false;
 105.415 -        }
 105.416 -        return ((BPELNode) obj).mTargetNameSpace.equals(mTargetNameSpace) && ((BPELNode) obj).mXpath.equals(mXpath);
 105.417 -    }
 105.418 -
 105.419 -    
 105.420 -    public int hashCode() {
 105.421 -        // TODO Auto-generated method stub
 105.422 -        return (mXpath.hashCode() + mTargetNameSpace.hashCode()) * 37;
 105.423 -    }
 105.424 -
 105.425 -   
 105.426 -    public String toString() {
 105.427 -        // TODO Auto-generated method stub
 105.428 -        return "targetNameSpace:" + mTargetNameSpace + "   name:" + mName + "   lineNo:" + mLineNo + "   xPath:" + mXpath; 
 105.429 -    }
 105.430 -    
 105.431 -
 105.432 -}
   106.1 --- a/bpel.debugger.ui/src/org/netbeans/modules/bpel/debugger/ui/breakpoint/BpelBreakpointFilter.java	Fri Dec 29 11:53:50 2006 +0000
   106.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
   106.3 @@ -1,89 +0,0 @@
   106.4 -/*
   106.5 - * The contents of this file are subject to the terms of the Common Development
   106.6 - * and Distribution License (the License). You may not use this file except in
   106.7 - * compliance with the License.
   106.8 - *
   106.9 - * You can obtain a copy of the License at http://www.netbeans.org/cddl.html
  106.10 - * or http://www.netbeans.org/cddl.txt.
  106.11 -
  106.12 - * When distributing Covered Code, include this CDDL Header Notice in each file
  106.13 - * and include the License file at http://www.netbeans.org/cddl.txt.
  106.14 - * If applicable, add the following below the CDDL Header, with the fields
  106.15 - * enclosed by brackets [] replaced by your own identifying information:
  106.16 - * "Portions Copyrighted [year] [name of copyright owner]"
  106.17 - *
  106.18 - * The Original Software is NetBeans. The Initial Developer of the Original
  106.19 - * Software is Sun Microsystems, Inc. Portions Copyright 1997-2006 Sun
  106.20 - * Microsystems, Inc. All Rights Reserved.
  106.21 - */
  106.22 -
  106.23 -package org.netbeans.modules.bpel.debugger.ui.breakpoint;
  106.24 -
  106.25 -import javax.swing.Action;
  106.26 -import org.openide.util.NbBundle;
  106.27 -
  106.28 -import org.netbeans.spi.viewmodel.NodeActionsProvider;
  106.29 -import org.netbeans.spi.viewmodel.NodeActionsProviderFilter;
  106.30 -import org.netbeans.spi.viewmodel.UnknownTypeException;
  106.31 -import org.netbeans.spi.viewmodel.Models;
  106.32 -
  106.33 -import org.netbeans.modules.bpel.debugger.api.EditorContextBridge;
  106.34 -import org.netbeans.modules.bpel.debugger.api.breakpoints.LineBreakpoint;
  106.35 -
  106.36 -/**
  106.37 - * @author Vladimir Yaroslavskiy
  106.38 - * @version 2005.10.27
  106.39 - */
  106.40 -public class BpelBreakpointFilter implements NodeActionsProviderFilter {
  106.41 -    
  106.42 -    /**{@inheritDoc}*/
  106.43 -    public Action[] getActions (NodeActionsProvider original, Object object)
  106.44 -        throws UnknownTypeException
  106.45 -    {
  106.46 -        if ( !(object instanceof LineBreakpoint)) {
  106.47 -            return original.getActions (object);
  106.48 -        }
  106.49 -        Action[] actions = original.getActions (object);
  106.50 -        Action[] results = new Action [actions.length + 2];
  106.51 -        results[0] = GO_TO_SOURCE_ACTION;
  106.52 -        results[1] = null;
  106.53 -
  106.54 -        for (int i=0; i < actions.length; i++) {
  106.55 -            results[i+2] = actions[i];
  106.56 -        }
  106.57 -        return results;
  106.58 -    }
  106.59 -    
  106.60 -    /**{@inheritDoc}*/
  106.61 -    public void performDefaultAction (NodeActionsProvider original, Object object)
  106.62 -        throws UnknownTypeException
  106.63 -    {
  106.64 -        if (object instanceof LineBreakpoint) {
  106.65 -            goToSource ((LineBreakpoint) object);
  106.66 -        }
  106.67 -        else {
  106.68 -            original.performDefaultAction (object);
  106.69 -        }
  106.70 -    }
  106.71 -
  106.72 -    private void goToSource (LineBreakpoint breakpoint) {
  106.73 -        EditorContextBridge.showSource(
  106.74 -            breakpoint.getURL(),
  106.75 -            breakpoint.getXpath());
  106.76 -    }
  106.77 -
  106.78 -    private final Action GO_TO_SOURCE_ACTION = Models.createAction (
  106.79 -        NbBundle.getMessage(
  106.80 -            BpelBreakpointFilter.class,
  106.81 -            "CTL_Breakpoint_Action_Go_to_Source"), // NOI18N
  106.82 -        new Models.ActionPerformer () {
  106.83 -            public boolean isEnabled (Object object) {
  106.84 -                return true;
  106.85 -            }
  106.86 -            public void perform (Object[] objects) {
  106.87 -                goToSource ((LineBreakpoint) objects [0]);
  106.88 -            }
  106.89 -        },
  106.90 -        Models.MULTISELECTION_TYPE_EXACTLY_ONE
  106.91 -    );
  106.92 -}
   107.1 --- a/bpel.debugger.ui/src/org/netbeans/modules/bpel/debugger/ui/breakpoint/BpelBreakpointListener.java	Fri Dec 29 11:53:50 2006 +0000
   107.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
   107.3 @@ -1,222 +0,0 @@
   107.4 -/*
   107.5 - * The contents of this file are subject to the terms of the Common Development
   107.6 - * and Distribution License (the License). You may not use this file except in
   107.7 - * compliance with the License.
   107.8 - *
   107.9 - * You can obtain a copy of the License at http://www.netbeans.org/cddl.html
  107.10 - * or http://www.netbeans.org/cddl.txt.
  107.11 -
  107.12 - * When distributing Covered Code, include this CDDL Header Notice in each file
  107.13 - * and include the License file at http://www.netbeans.org/cddl.txt.
  107.14 - * If applicable, add the following below the CDDL Header, with the fields
  107.15 - * enclosed by brackets [] replaced by your own identifying information:
  107.16 - * "Portions Copyrighted [year] [name of copyright owner]"
  107.17 - *
  107.18 - * The Original Software is NetBeans. The Initial Developer of the Original
  107.19 - * Software is Sun Microsystems, Inc. Portions Copyright 1997-2006 Sun
  107.20 - * Microsystems, Inc. All Rights Reserved.
  107.21 - */
  107.22 -
  107.23 -package org.netbeans.modules.bpel.debugger.ui.breakpoint;
  107.24 -
  107.25 -import java.beans.PropertyChangeEvent;
  107.26 -import java.beans.PropertyChangeListener;
  107.27 -import java.util.HashMap;
  107.28 -import java.util.Iterator;
  107.29 -import java.util.Map;
  107.30 -
  107.31 -import org.netbeans.api.debugger.Breakpoint;
  107.32 -import org.netbeans.api.debugger.DebuggerManager;
  107.33 -import org.netbeans.api.debugger.DebuggerManagerAdapter;
  107.34 -
  107.35 -import org.netbeans.modules.bpel.debugger.api.AnnotationType;
  107.36 -import org.netbeans.modules.bpel.debugger.api.EditorContextBridge;
  107.37 -import org.netbeans.modules.bpel.debugger.api.breakpoints.LineBreakpoint;
  107.38 -
  107.39 -/**
  107.40 - * @author Vladimir Yaroslavskiy
  107.41 - * @version 2005.10.21
  107.42 - */
  107.43 -public class BpelBreakpointListener extends DebuggerManagerAdapter {
  107.44 -    
  107.45 -    private Map<Breakpoint, Object> myBreakpointToAnnotation =
  107.46 -            new HashMap<Breakpoint, Object>();
  107.47 -    
  107.48 -    private Map<Object, Breakpoint> myAnnotationToBreakpoint =
  107.49 -            new HashMap<Object, Breakpoint>();
  107.50 -    
  107.51 -    private final AnnotationListener myAnnotationListener =
  107.52 -            new AnnotationListener();
  107.53 -    
  107.54 -//    private Map<LineBreakpoint, DataObject> myBreakpointToDataObject =
  107.55 -//            new HashMap<LineBreakpoint, DataObject>();
  107.56 -    
  107.57 -    
  107.58 -    /**{@inheritDoc}*/
  107.59 -    public void breakpointAdded(Breakpoint breakpoint) {
  107.60 -        if (breakpoint instanceof LineBreakpoint) {
  107.61 -            LineBreakpoint lbp = (LineBreakpoint)breakpoint;
  107.62 -            lbp.addPropertyChangeListener(Breakpoint.PROP_ENABLED, this);
  107.63 -            annotate(lbp);
  107.64 -            
  107.65 -//            subscribeToDataObject(lbp);
  107.66 -        }
  107.67 -    }
  107.68 -    
  107.69 -    public Breakpoint[] initBreakpoints () {
  107.70 -        return new Breakpoint[0];
  107.71 -    }
  107.72 -    
  107.73 -    /**{@inheritDoc}*/
  107.74 -    public void breakpointRemoved(Breakpoint breakpoint) {
  107.75 -        if (breakpoint instanceof LineBreakpoint) {
  107.76 -            LineBreakpoint lbp = (LineBreakpoint)breakpoint;
  107.77 -            removeAnnotation(lbp);
  107.78 -            lbp.removePropertyChangeListener(Breakpoint.PROP_ENABLED, this);
  107.79 -            
  107.80 -//            unsubscribeFromDataObject(lbp);
  107.81 -        }
  107.82 -    }
  107.83 -    
  107.84 -    /**{@inheritDoc}*/
  107.85 -    public void propertyChange(PropertyChangeEvent event) {
  107.86 -        if (event.getPropertyName() == Breakpoint.PROP_ENABLED) {
  107.87 -            annotate((LineBreakpoint) event.getSource());
  107.88 -        }
  107.89 -    }
  107.90 -    
  107.91 -    /**{@inheritDoc}*/
  107.92 -    public String[] getProperties() {
  107.93 -        return new String[] {
  107.94 -            DebuggerManager.PROP_BREAKPOINTS_INIT,
  107.95 -            DebuggerManager.PROP_BREAKPOINTS };
  107.96 -    }
  107.97 -    
  107.98 -    public synchronized LineBreakpoint findBreakpoint (String url, String xpath) {
  107.99 -        Iterator i = myBreakpointToAnnotation.keySet ().iterator ();
 107.100 -        while (i.hasNext ()) {
 107.101 -            LineBreakpoint lb = (LineBreakpoint) i.next ();
 107.102 -            if (!lb.getURL ().equals (url)) {
 107.103 -                continue;
 107.104 -            }
 107.105 -            Object annotation = myBreakpointToAnnotation.get (lb);
 107.106 -            String bpXpath = EditorContextBridge.getXpath(annotation);
 107.107 -            if (xpath.equals(bpXpath)) {
 107.108 -                return lb;
 107.109 -            }
 107.110 -        }
 107.111 -        return null;
 107.112 -    }
 107.113 -    
 107.114 -    private synchronized void annotate(LineBreakpoint breakpoint) {
 107.115 -        AnnotationType annotationType;
 107.116 -        
 107.117 -        Object annotation = myBreakpointToAnnotation.get(breakpoint);
 107.118 -        if (annotation != null) {
 107.119 -            EditorContextBridge.removeAnnotation(annotation);
 107.120 -        }
 107.121 -
 107.122 -        if (breakpoint.isEnabled()) {
 107.123 -            annotationType = AnnotationType.ENABLED_BREAKPOINT;
 107.124 -        }
 107.125 -        else {
 107.126 -            annotationType = AnnotationType.DISABLED_BREAKPOINT;
 107.127 -        }
 107.128 -        
 107.129 -        annotation = EditorContextBridge.annotate (
 107.130 -                breakpoint.getURL(),
 107.131 -                breakpoint.getXpath(),
 107.132 -                annotationType);
 107.133 -        
 107.134 -        if (annotation == null) {
 107.135 -            return;
 107.136 -        }
 107.137 -        
 107.138 -        EditorContextBridge.addAnnotationListener(
 107.139 -                annotation, myAnnotationListener);
 107.140 -        
 107.141 -        myBreakpointToAnnotation.put(breakpoint, annotation);
 107.142 -        myAnnotationToBreakpoint.put(annotation, breakpoint);
 107.143 -    }
 107.144 -    
 107.145 -    private synchronized void removeAnnotation(LineBreakpoint breakpoint) {
 107.146 -        Object annotation = myBreakpointToAnnotation.remove(breakpoint);
 107.147 -        if (annotation != null) {
 107.148 -            myAnnotationToBreakpoint.remove(annotation);
 107.149 -            EditorContextBridge.removeAnnotationListener(
 107.150 -                    annotation, myAnnotationListener);
 107.151 -            EditorContextBridge.removeAnnotation(annotation);
 107.152 -        }
 107.153 -    }
 107.154 -
 107.155 -//    private void subscribeToDataObject(LineBreakpoint lbp) {
 107.156 -//        DataObject dataObject = findDataObject(lbp);
 107.157 -//        if (dataObject == null) {
 107.158 -//            return;
 107.159 -//        }
 107.160 -//        
 107.161 -//        DataObjectObserver observer = myDataObjectToObservers.get(dataObject);
 107.162 -//        if (observer == null) {
 107.163 -//            observer = new DataObjectObserver(dataObject);
 107.164 -//            myDataObjectToObservers.put(dataObject, observer);
 107.165 -//        }
 107.166 -//        
 107.167 -//        observer.registerBreakpoint(lbp);
 107.168 -//    }
 107.169 -//    
 107.170 -//    private void unsubscribeFromDataObject(LineBreakpoint lbp) {
 107.171 -//        DataObject dataObject = findDataObject(lbp);
 107.172 -//        if (dataObject == null) {
 107.173 -//            return;
 107.174 -//        }
 107.175 -//        
 107.176 -//        DataObjectObserver observer = myDataObjectToObservers.get(dataObject);
 107.177 -//        if (observer != null) {
 107.178 -//            observer.unregisterBreakpoint(lbp);
 107.179 -//            if (observer.getBreakpoints().size() == 0) {
 107.180 -//                myDataObjectToObservers.remove(dataObject);
 107.181 -//            }
 107.182 -//        }
 107.183 -//    }
 107.184 -//
 107.185 -//    private DataObject findDataObject(LineBreakpoint lbp) {
 107.186 -//        DataObject dataObject = null;
 107.187 -//        FileObject fo = FileUtil.toFileObject(new File(lbp.getURL()));
 107.188 -//        if (fo != null) {
 107.189 -//            try {
 107.190 -//                dataObject = DataObject.find(fo);
 107.191 -//            } catch (DataObjectNotFoundException ex) {
 107.192 -//                ex.printStackTrace();
 107.193 -//            }
 107.194 -//        }
 107.195 -//        
 107.196 -//        return dataObject;
 107.197 -//    }
 107.198 -    
 107.199 -    private void updateBreakpointByAnnotation(Object annotation) {
 107.200 -        LineBreakpoint lbp = null;
 107.201 -        synchronized (this) {
 107.202 -            lbp = (LineBreakpoint)myAnnotationToBreakpoint.
 107.203 -                    get(annotation);
 107.204 -        }
 107.205 -        
 107.206 -        if (lbp == null) {
 107.207 -            System.out.println(
 107.208 -                    "Could not find a breakpoint for the annotation");
 107.209 -            return;
 107.210 -        }
 107.211 -
 107.212 -        String xpath = EditorContextBridge.getXpath(annotation);
 107.213 -        if (xpath != null) {
 107.214 -            lbp.setXpath(xpath);
 107.215 -        }
 107.216 -        lbp.touch();
 107.217 -    }
 107.218 -    
 107.219 -    private class AnnotationListener implements PropertyChangeListener {
 107.220 -        public void propertyChange(PropertyChangeEvent evt) {
 107.221 -            Object annotation = evt.getSource();
 107.222 -            updateBreakpointByAnnotation(annotation);
 107.223 -        }
 107.224 -    }
 107.225 -}
   108.1 --- a/bpel.debugger.ui/src/org/netbeans/modules/bpel/debugger/ui/breakpoint/BpelBreakpointView.java	Fri Dec 29 11:53:50 2006 +0000
   108.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
   108.3 @@ -1,114 +0,0 @@
   108.4 -/*
   108.5 - * The contents of this file are subject to the terms of the Common Development
   108.6 - * and Distribution License (the License). You may not use this file except in
   108.7 - * compliance with the License.
   108.8 - *
   108.9 - * You can obtain a copy of the License at http://www.netbeans.org/cddl.html
  108.10 - * or http://www.netbeans.org/cddl.txt.
  108.11 -
  108.12 - * When distributing Covered Code, include this CDDL Header Notice in each file
  108.13 - * and include the License file at http://www.netbeans.org/cddl.txt.
  108.14 - * If applicable, add the following below the CDDL Header, with the fields
  108.15 - * enclosed by brackets [] replaced by your own identifying information:
  108.16 - * "Portions Copyrighted [year] [name of copyright owner]"
  108.17 - *
  108.18 - * The Original Software is NetBeans. The Initial Developer of the Original
  108.19 - * Software is Sun Microsystems, Inc. Portions Copyright 1997-2006 Sun
  108.20 - * Microsystems, Inc. All Rights Reserved.
  108.21 - */
  108.22 -
  108.23 -package org.netbeans.modules.bpel.debugger.ui.breakpoint;
  108.24 -
  108.25 -import org.netbeans.spi.debugger.ui.Constants;
  108.26 -import org.netbeans.spi.viewmodel.ModelListener;
  108.27 -import org.netbeans.spi.viewmodel.NodeModel;
  108.28 -import org.netbeans.spi.viewmodel.TableModel;
  108.29 -import org.netbeans.spi.viewmodel.UnknownTypeException;
  108.30 -import org.netbeans.modules.bpel.debugger.api.breakpoints.BpelBreakpoint;
  108.31 -
  108.32 -/**
  108.33 - * @author Vladimir Yaroslavskiy
  108.34 - * @version 2005.10.24
  108.35 - */
  108.36 -abstract class BpelBreakpointView implements NodeModel, TableModel, Constants {
  108.37 -
  108.38 -  // NodeModel ----------------------------------------------------
  108.39 -  
  108.40 -  public String getDisplayName(Object object) throws UnknownTypeException {
  108.41 -      if ( !(object instanceof BpelBreakpoint)) {
  108.42 -          throw new UnknownTypeException(object);
  108.43 -      }
  108.44 -      return getName((BpelBreakpoint) object);
  108.45 -  }
  108.46 -  
  108.47 -  protected abstract String getName(BpelBreakpoint breakpoint)
  108.48 -     throws UnknownTypeException;
  108.49 -  
  108.50 -  public String getShortDescription(Object object) throws UnknownTypeException {
  108.51 -      return getDisplayName(object);
  108.52 -  }
  108.53 -  
  108.54 -  public String getIconBase(Object object) throws UnknownTypeException {
  108.55 -      if ( !(object instanceof BpelBreakpoint)) {
  108.56 -          throw new UnknownTypeException(object);
  108.57 -      }
  108.58 -      BpelBreakpoint breakpoint = (BpelBreakpoint) object;
  108.59 -      return breakpoint.isEnabled() ? ENABLED_BREAKPOINT : DISABLED_BREAKPOINT;
  108.60 -  }
  108.61 -  
  108.62 -  // --------------------------------------------------------------
  108.63 -  
  108.64 -  public void addModelListener(ModelListener listener) {}
  108.65 -  public void removeModelListener(ModelListener listener) {}
  108.66 -  
  108.67 -  // TableModel ---------------------------------------------------
  108.68 -  
  108.69 -  public Object getValueAt(Object object, String column)
  108.70 -      throws UnknownTypeException
  108.71 -  {
  108.72 -      if ( !(object instanceof BpelBreakpoint)) {
  108.73 -          throw new UnknownTypeException(object);
  108.74 -      }
  108.75 -      BpelBreakpoint breakpoint = (BpelBreakpoint) object;
  108.76 -      
  108.77 -      if (column.equals(BREAKPOINT_ENABLED_COLUMN_ID)) {
  108.78 -          return Boolean.valueOf(breakpoint.isEnabled());
  108.79 -      }
  108.80 -      throw new UnknownTypeException(object);
  108.81 -  }
  108.82 -  
  108.83 -  public void setValueAt(Object object, String column, Object value)
  108.84 -      throws UnknownTypeException
  108.85 -  {
  108.86 -      if ( !(object instanceof BpelBreakpoint)) {
  108.87 -          throw new UnknownTypeException(object);
  108.88 -      }
  108.89 -      BpelBreakpoint breakpoint = (BpelBreakpoint) object;
  108.90 -      
  108.91 -      if (column.equals(BREAKPOINT_ENABLED_COLUMN_ID)) {
  108.92 -          if (((Boolean) value).equals(Boolean.TRUE)) {
  108.93 -              breakpoint.enable();
  108.94 -          } else {
  108.95 -              breakpoint.disable();
  108.96 -          }
  108.97 -      }
  108.98 -      throw new UnknownTypeException(object);
  108.99 -  }
 108.100 -  
 108.101 -  public boolean isReadOnly(Object object, String column)
 108.102 -      throws UnknownTypeException
 108.103 -  {
 108.104 -      if ( !(object instanceof BpelBreakpoint)) {
 108.105 -          throw new UnknownTypeException(object);
 108.106 -      }
 108.107 -      if (column.equals(BREAKPOINT_ENABLED_COLUMN_ID)) {
 108.108 -          return false;
 108.109 -      }
 108.110 -      throw new UnknownTypeException(object);
 108.111 -  }
 108.112 -  
 108.113 -  private static final String ENABLED_BREAKPOINT
 108.114 -    = "org/netbeans/modules/debugger/resources/editor/Breakpoint"; // NOI18N
 108.115 -  private static final String DISABLED_BREAKPOINT
 108.116 -    = "org/netbeans/modules/debugger/resources/editor/DisabledBreakpoint"; // NOI18N
 108.117 -}
   109.1 --- a/bpel.debugger.ui/src/org/netbeans/modules/bpel/debugger/ui/breakpoint/BpelLineBreakpointView.java	Fri Dec 29 11:53:50 2006 +0000
   109.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
   109.3 @@ -1,59 +0,0 @@
   109.4 -/*
   109.5 - * The contents of this file are subject to the terms of the Common Development
   109.6 - * and Distribution License (the License). You may not use this file except in
   109.7 - * compliance with the License.
   109.8 - *
   109.9 - * You can obtain a copy of the License at http://www.netbeans.org/cddl.html
  109.10 - * or http://www.netbeans.org/cddl.txt.
  109.11 -
  109.12 - * When distributing Covered Code, include this CDDL Header Notice in each file
  109.13 - * and include the License file at http://www.netbeans.org/cddl.txt.
  109.14 - * If applicable, add the following below the CDDL Header, with the fields
  109.15 - * enclosed by brackets [] replaced by your own identifying information:
  109.16 - * "Portions Copyrighted [year] [name of copyright owner]"
  109.17 - *
  109.18 - * The Original Software is NetBeans. The Initial Developer of the Original
  109.19 - * Software is Sun Microsystems, Inc. Portions Copyright 1997-2006 Sun
  109.20 - * Microsystems, Inc. All Rights Reserved.
  109.21 - */
  109.22 -
  109.23 -package org.netbeans.modules.bpel.debugger.ui.breakpoint;
  109.24 -
  109.25 -import org.netbeans.modules.bpel.debugger.ui.util.ModelUtil;
  109.26 -import org.netbeans.modules.bpel.model.api.BpelModel;
  109.27 -import org.netbeans.modules.bpel.model.api.support.UniqueId;
  109.28 -import org.netbeans.spi.viewmodel.UnknownTypeException;
  109.29 -import org.netbeans.modules.bpel.debugger.api.breakpoints.BpelBreakpoint;
  109.30 -import org.netbeans.modules.bpel.debugger.api.breakpoints.LineBreakpoint;
  109.31 -import org.netbeans.modules.bpel.debugger.ui.util.Util;
  109.32 -import org.openide.loaders.DataObject;
  109.33 -
  109.34 -/**
  109.35 - * @author Vladimir Yaroslavskiy
  109.36 - * @version 2005.10.25
  109.37 - */
  109.38 -public class BpelLineBreakpointView extends BpelBreakpointView {
  109.39 -
  109.40 -    protected String getName(BpelBreakpoint breakpoint) throws UnknownTypeException {
  109.41 -        if ( !(breakpoint instanceof LineBreakpoint)) {
  109.42 -            throw new UnknownTypeException(breakpoint);
  109.43 -        }
  109.44 -        LineBreakpoint lbp = (LineBreakpoint) breakpoint;
  109.45 -        DataObject dataObject = Util.getDataObject(lbp.getURL());
  109.46 -        String strLine = "(broken)";
  109.47 -        if (dataObject != null) {
  109.48 -            BpelModel model = Util.getBpelModel(dataObject);
  109.49 -            if (model != null) {
  109.50 -                UniqueId bpelEntityId = ModelUtil.getBpelEntityId(model, lbp.getXpath());
  109.51 -                if (bpelEntityId != null) {
  109.52 -                    int lineNumber = ModelUtil.getLineNumber(bpelEntityId);
  109.53 -                    if (lineNumber > 0) {
  109.54 -                        strLine = "" + lineNumber;
  109.55 -                    }
  109.56 -                }
  109.57 -            }
  109.58 -        }
  109.59 -        return Util.getFileName(lbp.getURL()) +
  109.60 -            ": " + strLine; // NOI18N
  109.61 -    }
  109.62 -}
   110.1 --- a/bpel.debugger.ui/src/org/netbeans/modules/bpel/debugger/ui/breakpoint/BreakpointTranslator.java	Fri Dec 29 11:53:50 2006 +0000
   110.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
   110.3 @@ -1,249 +0,0 @@
   110.4 -/*
   110.5 - * The contents of this file are subject to the terms of the Common Development
   110.6 - * and Distribution License (the License). You may not use this file except in
   110.7 - * compliance with the License.
   110.8 - *
   110.9 - * You can obtain a copy of the License at http://www.netbeans.org/cddl.html
  110.10 - * or http://www.netbeans.org/cddl.txt.
  110.11 -
  110.12 - * When distributing Covered Code, include this CDDL Header Notice in each file
  110.13 - * and include the License file at http://www.netbeans.org/cddl.txt.
  110.14 - * If applicable, add the following below the CDDL Header, with the fields
  110.15 - * enclosed by brackets [] replaced by your own identifying information:
  110.16 - * "Portions Copyrighted [year] [name of copyright owner]"
  110.17 - *
  110.18 - * The Original Software is NetBeans. The Initial Developer of the Original
  110.19 - * Software is Sun Microsystems, Inc. Portions Copyright 1997-2006 Sun
  110.20 - * Microsystems, Inc. All Rights Reserved.
  110.21 - */
  110.22 -
  110.23 -
  110.24 -package org.netbeans.modules.bpel.debugger.ui.breakpoint;
  110.25 -
  110.26 -import java.io.File;
  110.27 -import java.io.FileReader;
  110.28 -import java.io.StringReader;
  110.29 -import java.util.ArrayList;
  110.30 -import java.util.HashMap;
  110.31 -import java.util.List;
  110.32 -
  110.33 -import javax.swing.JEditorPane;
  110.34 -
  110.35 -import org.netbeans.modules.bpel.debugger.api.breakpoints.LineBreakpoint;
  110.36 -import org.openide.cookies.EditorCookie;
  110.37 -import org.openide.cookies.LineCookie;
  110.38 -import org.openide.filesystems.FileObject;
  110.39 -import org.openide.filesystems.FileUtil;
  110.40 -import org.openide.loaders.DataObject;
  110.41 -import org.openide.loaders.DataObjectNotFoundException;
  110.42 -import org.openide.text.Line;
  110.43 -import org.openide.util.NbBundle;
  110.44 -import org.xml.sax.InputSource;
  110.45 -import org.xml.sax.XMLReader;
  110.46 -import org.xml.sax.helpers.XMLReaderFactory;
  110.47 -
  110.48 -
  110.49 -
  110.50 -public class BreakpointTranslator {
  110.51 -    
  110.52 -    static BreakpointTranslator mInstance;
  110.53 -    
  110.54 -    static {
  110.55 -        mInstance = new BreakpointTranslator ();
  110.56 -    }
  110.57 -    
  110.58 -    public int translateBreakpointLine(String url, int lineNumber) {
  110.59 -        
  110.60 -        try {
  110.61 -            BPELActivityFinderSaxHandler saxHandler = setUPMap(getText(url), lineNumber);
  110.62 -            BPELNode bpelnode = getActNode(saxHandler.getFoundNode());
  110.63 -            if (lineNumber < saxHandler.getFirstActivity().getLineNo()) {
  110.64 -                bpelnode = saxHandler.getFirstActivity();
  110.65 -            } else if (lineNumber > saxHandler.getLastActivity().getLineNo()) {
  110.66 -                bpelnode = saxHandler.getLastActivity();
  110.67 -            }
  110.68 -//            BPELNode bpelnode = getActivity(lineNumber, saxHandler.getAllActMap(), saxHandler.getFirstActivity(), saxHandler.getLastActivity());
  110.69 -            return bpelnode.getLineNo();
  110.70 -        } catch (Exception e) {
  110.71 -            return lineNumber;
  110.72 -        }
  110.73 -    }
  110.74 -     public int translateBreakpointLineWithUrl (String url, int lineNumber) {
  110.75 -        
  110.76 -        try {
  110.77 -            BPELActivityFinderSaxHandler saxHandler = setUPMapWithUrl(url, lineNumber);
  110.78 -            BPELNode bpelnode = getActNode(saxHandler.getFoundNode());
  110.79 -//          BPELNode bpelnode = getActivity(lineNumber, saxHandler.getAllActMap(), saxHandler.getFirstActivity(), saxHandler.getLastActivity());
  110.80 -            return bpelnode.getLineNo();
  110.81 -        } catch (Exception e) {
  110.82 -            return lineNumber;
  110.83 -        }
  110.84 -    }
  110.85 -     
  110.86 -     private BPELActivityFinderSaxHandler setUPMapWithUrl(String url, int lineNumber) throws Exception {
  110.87 -//       Map activityLineXpathMap = new LinkedHashMap();
  110.88 -       BPELActivityFinderSaxHandler saxHandler = new BPELActivityFinderSaxHandler(lineNumber);
  110.89 -       XMLReader xr = XMLReaderFactory.createXMLReader();
  110.90 -       xr.setFeature("http://xml.org/sax/features/namespaces", true);
  110.91 -       xr.setContentHandler(saxHandler);
  110.92 -       xr.setErrorHandler(saxHandler);
  110.93 -       xr.parse(new InputSource(new FileReader(url)));
  110.94 -       return saxHandler;
  110.95 -   }     
  110.96 -
  110.97 -    private BPELActivityFinderSaxHandler setUPMap(String fileText, int lineNumber) throws Exception {
  110.98 -//        Map activityLineXpathMap = new LinkedHashMap();
  110.99 -        BPELActivityFinderSaxHandler saxHandler = new BPELActivityFinderSaxHandler(lineNumber);
 110.100 -        XMLReader xr = XMLReaderFactory.createXMLReader();
 110.101 -        xr.setFeature("http://xml.org/sax/features/namespaces", true);
 110.102 -        xr.setContentHandler(saxHandler);
 110.103 -        xr.setErrorHandler(saxHandler);
 110.104 -        xr.parse(new InputSource(new StringReader(fileText)));
 110.105 -        return saxHandler;
 110.106 -    }
 110.107 -    
 110.108 -    private static BPELNode getActNode (BPELNode bpelNode) {
 110.109 -        if (bpelNode == null)
 110.110 -            return null;
 110.111 -        if (bpelNode.isActivity()) {
 110.112 -            return bpelNode;
 110.113 -        }else {
 110.114 -            return getActNode(bpelNode.getParent());            
 110.115 -        }
 110.116 -        
 110.117 -    }
 110.118 -
 110.119 -    private static String getText (String url) {
 110.120 -        DataObject dataObject = getDataObject(url);
 110.121 -        if (dataObject == null) {
 110.122 -            return "";
 110.123 -        }  
 110.124 -        EditorCookie editorCookie = (EditorCookie) dataObject.getCookie(EditorCookie.class);
 110.125 -        
 110.126 -        if (editorCookie == null) {
 110.127 -            return "";
 110.128 -        }
 110.129 -        JEditorPane[] editorPanes = editorCookie.getOpenedPanes();
 110.130 -        
 110.131 -        if (editorPanes == null) {
 110.132 -              return "" ;
 110.133 -        }
 110.134 -        if (editorPanes.length == 0) {
 110.135 -            return "";
 110.136 -        }
 110.137 -        return editorPanes[0].getText();
 110.138 -
 110.139 -        
 110.140 -    }
 110.141 -    
 110.142 -    private static Line getLine(String url, int line) {
 110.143 -        DataObject dataObject = getDataObject(url);
 110.144 -        
 110.145 -        if (dataObject == null) {
 110.146 -            return null;
 110.147 -        }
 110.148 -        LineCookie lineCookie = (LineCookie) dataObject.getCookie(LineCookie.class);
 110.149 -        
 110.150 -        if (lineCookie == null) {
 110.151 -            return null;
 110.152 -        }
 110.153 -        Line.Set lineSet = lineCookie.getLineSet();
 110.154 -        
 110.155 -        if (lineSet == null) {
 110.156 -            return null;
 110.157 -        }
 110.158 -        try {
 110.159 -            return lineSet.getCurrent(line);
 110.160 -        } catch (IndexOutOfBoundsException e) {
 110.161 -            return null;
 110.162 -        }
 110.163 -    }
 110.164 -    
 110.165 -    private static DataObject getDataObject(String url) {
 110.166 -        FileObject fileObject = FileUtil.toFileObject(new File(url));
 110.167 -        
 110.168 -        if (fileObject == null) {
 110.169 -            return null;
 110.170 -        }
 110.171 -        try {
 110.172 -            return DataObject.find(fileObject);
 110.173 -        } catch (DataObjectNotFoundException e) {
 110.174 -            return null;
 110.175 -        }
 110.176 -    }
 110.177 -//    public static String checkBreakpoints(List<LineBreakpoint> lineBreakpoints) {
 110.178 -//        // TODO Auto-generated method stub
 110.179 -//        HashMap<String, BPELActivityFinderSaxHandler> saxHandlers = new HashMap (lineBreakpoints.size());
 110.180 -//        StringBuffer resultBuffer = new StringBuffer ();
 110.181 -//        List<LineBreakpoint> removeList = new ArrayList ();
 110.182 -//        for (int i=0; i<lineBreakpoints.size(); i++) {
 110.183 -//            LineBreakpoint linebreakpoint = lineBreakpoints.get(i);
 110.184 -//            BPELActivityFinderSaxHandler saxHandler = saxHandlers.get(linebreakpoint.getURL());
 110.185 -//            if (saxHandler == null) {
 110.186 -//                try {
 110.187 -//                    saxHandler = mInstance.setUPMapWithUrl(linebreakpoint.getURL(), linebreakpoint.getLineNumber());
 110.188 -//                    saxHandlers.put(linebreakpoint.getURL(), saxHandler);                    
 110.189 -//                }catch(Exception e) {
 110.190 -//                    removeList.add(linebreakpoint);
 110.191 -//                    //@Todo, fix using bundle
 110.192 -//                    resultBuffer.append(NbBundle.getMessage(BreakpointTranslator.class, "ERROR_INVALID_BREAKPOINT", getNameInPath(linebreakpoint.getURL(), "/") + " line:" + linebreakpoint.getLineNumber()));
 110.193 -//                }                
 110.194 -//            }
 110.195 -//            
 110.196 -//            if (saxHandler != null && !checkBreakpoints(saxHandler, linebreakpoint)) {
 110.197 -//                int lineNumber = linebreakpoint.getLineNumber();
 110.198 -//                HashMap allactMap = saxHandler.getAllActMap();
 110.199 -//                BPELNode bpelnode =  (BPELNode) allactMap.get(new Integer (lineNumber));
 110.200 -//                try {
 110.201 -//                    if (bpelnode == null) {
 110.202 -//                             saxHandler = mInstance.setUPMapWithUrl(linebreakpoint.getURL(), lineNumber);
 110.203 -//                         
 110.204 -//                        saxHandlers.put(linebreakpoint.getURL(), saxHandler);
 110.205 -//                        bpelnode = getActNode(saxHandler.getFoundNode());
 110.206 -//                    } else {
 110.207 -//                        bpelnode = getActNode(bpelnode);
 110.208 -//                    }
 110.209 -//                    if (lineNumber < saxHandler.getFirstActivity().getLineNo()) {
 110.210 -//                        bpelnode = saxHandler.getFirstActivity();
 110.211 -//                    } else if (lineNumber > saxHandler.getLastActivity().getLineNo()) {
 110.212 -//                        bpelnode = saxHandler.getLastActivity();
 110.213 -//                    }
 110.214 -//                } catch (Exception e) {
 110.215 -//                    // TODO Auto-generated catch block
 110.216 -//                    removeList.add(linebreakpoint);
 110.217 -//                    resultBuffer.append(NbBundle.getMessage(BreakpointTranslator.class, "ERROR_INVALID_BREAKPOINT", getNameInPath(linebreakpoint.getURL(), "/") + " line:" + linebreakpoint.getLineNumber()));
 110.218 -//                }
 110.219 -//                removeList.add(linebreakpoint);
 110.220 -//                resultBuffer.append(NbBundle.getMessage(BreakpointTranslator.class, "ERROR_INVALID_BREAKPOINT_SET", new Object [] {getNameInPath(linebreakpoint.getURL(), "/") + " line:" + linebreakpoint.getLineNumber(), bpelnode.getLineNo()}));
 110.221 -//            }
 110.222 -//        }
 110.223 -//        lineBreakpoints.removeAll(removeList);
 110.224 -//        return resultBuffer.toString();
 110.225 -//    }
 110.226 -//    
 110.227 -//    private static String getNameInPath(String path, String separator) {
 110.228 -//        if (path.length() == 1 && path.equals(separator)) {
 110.229 -//            path = "";
 110.230 -//        }
 110.231 -//        else if (path.endsWith(separator)) {
 110.232 -//            path = path.substring(0, path.length() - 1);
 110.233 -//        }
 110.234 -//        int lastSlashIndex = path.lastIndexOf(separator);
 110.235 -//        int nameStart = lastSlashIndex >= 0 ? lastSlashIndex + 1 : 0;
 110.236 -//        return path.substring(nameStart);
 110.237 -//    }    
 110.238 -//    private static String getFileName(String url) {
 110.239 -//        // TODO Auto-generated method stub
 110.240 -//        return null;
 110.241 -//    }
 110.242 -//    private static boolean checkBreakpoints(BPELActivityFinderSaxHandler saxHandler, LineBreakpoint linebreakpoint) {
 110.243 -//        // TODO Auto-generated method stub
 110.244 -//        HashMap allactMap = saxHandler.getAllActMap();
 110.245 -//        BPELNode bpelnode =  (BPELNode) allactMap.get(new Integer (linebreakpoint.getLineNumber()));
 110.246 -//        if (bpelnode == null || !bpelnode.isActivity()) {
 110.247 -//            return false;
 110.248 -//        }
 110.249 -//        return true;        
 110.250 -//    }    
 110.251 -
 110.252 -}
   111.1 --- a/bpel.debugger.ui/src/org/netbeans/modules/bpel/debugger/ui/breakpoint/BreakpointsReader.java	Fri Dec 29 11:53:50 2006 +0000
   111.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
   111.3 @@ -1,77 +0,0 @@
   111.4 -/*
   111.5 - * The contents of this file are subject to the terms of the Common Development
   111.6 - * and Distribution License (the License). You may not use this file except in
   111.7 - * compliance with the License.
   111.8 - *
   111.9 - * You can obtain a copy of the License at http://www.netbeans.org/cddl.html
  111.10 - * or http://www.netbeans.org/cddl.txt.
  111.11 -
  111.12 - * When distributing Covered Code, include this CDDL Header Notice in each file
  111.13 - * and include the License file at http://www.netbeans.org/cddl.txt.
  111.14 - * If applicable, add the following below the CDDL Header, with the fields
  111.15 - * enclosed by brackets [] replaced by your own identifying information:
  111.16 - * "Portions Copyrighted [year] [name of copyright owner]"
  111.17 - *
  111.18 - * The Original Software is NetBeans. The Initial Developer of the Original
  111.19 - * Software is Sun Microsystems, Inc. Portions Copyright 1997-2006 Sun
  111.20 - * Microsystems, Inc. All Rights Reserved.
  111.21 - */
  111.22 -
  111.23 -package org.netbeans.modules.bpel.debugger.ui.breakpoint;
  111.24 -
  111.25 -import org.netbeans.api.debugger.Breakpoint;
  111.26 -import org.netbeans.api.debugger.DebuggerManager;
  111.27 -import org.netbeans.api.debugger.Properties;
  111.28 -import org.netbeans.modules.bpel.debugger.api.breakpoints.BpelBreakpoint;
  111.29 -import org.netbeans.modules.bpel.debugger.api.breakpoints.LineBreakpoint;
  111.30 -
  111.31 -/**
  111.32 - *
  111.33 - * @author Alexander Zgursky
  111.34 - */
  111.35 -public class BreakpointsReader implements Properties.Reader {
  111.36 -
  111.37 -
  111.38 -    public String [] getSupportedClassNames() {
  111.39 -        return new String[] {
  111.40 -            BpelBreakpoint.class.getName() 
  111.41 -        };
  111.42 -    }
  111.43 -    
  111.44 -    public Object read(String typeID, Properties properties) {
  111.45 -        BpelBreakpoint b = null;
  111.46 -        
  111.47 -        if (typeID.equals (LineBreakpoint.class.getName())) {
  111.48 -            LineBreakpoint lb = LineBreakpoint.create(
  111.49 -                properties.getString(LineBreakpoint.PROP_URL, null),
  111.50 -                properties.getString(LineBreakpoint.PROP_XPATH, null)
  111.51 -            );
  111.52 -            b = lb;
  111.53 -        }
  111.54 -        assert b != null: "Unknown breakpoint type: \""+typeID+"\"";
  111.55 -        b.setGroupName(
  111.56 -            properties.getString(Breakpoint.PROP_GROUP_NAME, "")
  111.57 -        );
  111.58 -        if (properties.getBoolean (Breakpoint.PROP_ENABLED, true)) {
  111.59 -            b.enable();
  111.60 -        } else {
  111.61 -            b.disable();
  111.62 -        }
  111.63 -        return b;
  111.64 -    }
  111.65 -    
  111.66 -    public void write (Object object, Properties properties) {
  111.67 -        BpelBreakpoint b = (BpelBreakpoint) object;
  111.68 -        properties.setString (
  111.69 -            Breakpoint.PROP_GROUP_NAME, 
  111.70 -            b.getGroupName ()
  111.71 -        );
  111.72 -        properties.setBoolean (Breakpoint.PROP_ENABLED, b.isEnabled ());
  111.73 -        
  111.74 -        if (object instanceof LineBreakpoint) {
  111.75 -            LineBreakpoint lb = (LineBreakpoint) object;
  111.76 -            properties.setString (LineBreakpoint.PROP_URL, lb.getURL ());
  111.77 -            properties.setString (LineBreakpoint.PROP_XPATH, lb.getXpath());
  111.78 -        }
  111.79 -    }
  111.80 -}
   112.1 --- a/bpel.debugger.ui/src/org/netbeans/modules/bpel/debugger/ui/breakpoint/Bundle.properties	Fri Dec 29 11:53:50 2006 +0000
   112.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
   112.3 @@ -1,20 +0,0 @@
   112.4 -#
   112.5 -# The contents of this file are subject to the terms of the Common Development
   112.6 -# and Distribution License (the License). You may not use this file except in
   112.7 -# compliance with the License.
   112.8 -#
   112.9 -# You can obtain a copy of the License at http://www.netbeans.org/cddl.html
  112.10 -# or http://www.netbeans.org/cddl.txt.
  112.11 -#
  112.12 -# When distributing Covered Code, include this CDDL Header Notice in each file
  112.13 -# and include the License file at http://www.netbeans.org/cddl.txt.
  112.14 -# If applicable, add the following below the CDDL Header, with the fields
  112.15 -# enclosed by brackets [] replaced by your own identifying information:
  112.16 -# "Portions Copyrighted [year] [name of copyright owner]"
  112.17 -#
  112.18 -# The Original Software is NetBeans. The Initial Developer of the Original
  112.19 -# Software is Sun Microsystems, Inc. Portions Copyright 1997-2006 Sun
  112.20 -# Microsystems, Inc. All Rights Reserved.
  112.21 -
  112.22 -# BpelBreakpointFilter
  112.23 -CTL_Breakpoint_Action_Go_to_Source=Go to Source
   113.1 --- a/bpel.debugger.ui/src/org/netbeans/modules/bpel/debugger/ui/breakpoint/PersistenceManager.java	Fri Dec 29 11:53:50 2006 +0000
   113.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
   113.3 @@ -1,111 +0,0 @@
   113.4 -/*
   113.5 - * The contents of this file are subject to the terms of the Common Development
   113.6 - * and Distribution License (the License). You may not use this file except in
   113.7 - * compliance with the License.
   113.8 - *
   113.9 - * You can obtain a copy of the License at http://www.netbeans.org/cddl.html
  113.10 - * or http://www.netbeans.org/cddl.txt.
  113.11 -
  113.12 - * When distributing Covered Code, include this CDDL Header Notice in each file
  113.13 - * and include the License file at http://www.netbeans.org/cddl.txt.
  113.14 - * If applicable, add the following below the CDDL Header, with the fields
  113.15 - * enclosed by brackets [] replaced by your own identifying information:
  113.16 - * "Portions Copyrighted [year] [name of copyright owner]"
  113.17 - *
  113.18 - * The Original Software is NetBeans. The Initial Developer of the Original
  113.19 - * Software is Sun Microsystems, Inc. Portions Copyright 1997-2006 Sun
  113.20 - * Microsystems, Inc. All Rights Reserved.
  113.21 - */
  113.22 -
  113.23 -package org.netbeans.modules.bpel.debugger.ui.breakpoint;
  113.24 -
  113.25 -import java.beans.PropertyChangeEvent;
  113.26 -import java.util.ArrayList;
  113.27 -import org.netbeans.api.debugger.Breakpoint;
  113.28 -import org.netbeans.api.debugger.DebuggerEngine;
  113.29 -
  113.30 -import org.netbeans.api.debugger.DebuggerManager;
  113.31 -import org.netbeans.api.debugger.DebuggerManagerListener;
  113.32 -import org.netbeans.api.debugger.LazyDebuggerManagerListener;
  113.33 -import org.netbeans.api.debugger.Properties;
  113.34 -import org.netbeans.api.debugger.Session;
  113.35 -import org.netbeans.api.debugger.Watch;
  113.36 -import org.netbeans.modules.bpel.debugger.api.breakpoints.BpelBreakpoint;
  113.37 -
  113.38 -/**
  113.39 - * Listens on DebuggerManager and:
  113.40 - * - loads all breakpoints on startup
  113.41 - * - listens on all changes of breakpoints (like breakoint 
  113.42 - *     added / removed, or some property change) and saves a new values
  113.43 - *
  113.44 - * @author Alexander Zgursky
  113.45 - */
  113.46 -public class PersistenceManager implements LazyDebuggerManagerListener {
  113.47 -    
  113.48 -    public Breakpoint[] initBreakpoints () {
  113.49 -        Properties p = Properties.getDefault ().getProperties ("debugger").
  113.50 -                getProperties (DebuggerManager.PROP_BREAKPOINTS);
  113.51 -        return (Breakpoint[])p.getArray("bpel", new Breakpoint[0]);
  113.52 -    }
  113.53 -    
  113.54 -    public void initWatches () {
  113.55 -    }
  113.56 -    
  113.57 -    public String[] getProperties () {
  113.58 -        return new String [] {
  113.59 -            DebuggerManager.PROP_BREAKPOINTS_INIT,
  113.60 -            DebuggerManager.PROP_BREAKPOINTS,
  113.61 -        };
  113.62 -    }
  113.63 -    
  113.64 -    public void breakpointAdded (Breakpoint breakpoint) {
  113.65 -        if (breakpoint instanceof BpelBreakpoint) {
  113.66 -            Properties p = Properties.getDefault().getProperties("debugger").
  113.67 -                    getProperties(DebuggerManager.PROP_BREAKPOINTS);
  113.68 -            p.setArray("bpel", getBreakpoints());
  113.69 -            breakpoint.addPropertyChangeListener(this);
  113.70 -        }
  113.71 -    }
  113.72 -
  113.73 -    public void breakpointRemoved (Breakpoint breakpoint) {
  113.74 -        if (breakpoint instanceof BpelBreakpoint) {
  113.75 -            Properties p = Properties.getDefault().getProperties("debugger").
  113.76 -                    getProperties(DebuggerManager.PROP_BREAKPOINTS);
  113.77 -            p.setArray("bpel", getBreakpoints());
  113.78 -            breakpoint.removePropertyChangeListener(this);
  113.79 -        }
  113.80 -    }
  113.81 -    public void watchAdded (Watch watch) {
  113.82 -    }
  113.83 -    
  113.84 -    public void watchRemoved (Watch watch) {
  113.85 -    }
  113.86 -    
  113.87 -    public void propertyChange (PropertyChangeEvent evt) {
  113.88 -        if (evt.getSource() instanceof BpelBreakpoint) {
  113.89 -            Properties p = Properties.getDefault().getProperties("debugger").
  113.90 -                    getProperties(DebuggerManager.PROP_BREAKPOINTS);
  113.91 -            p.setArray("bpel", getBreakpoints());
  113.92 -        }
  113.93 -    }
  113.94 -    
  113.95 -    public void sessionAdded (Session session) {}
  113.96 -    public void sessionRemoved (Session session) {}
  113.97 -    public void engineAdded (DebuggerEngine engine) {}
  113.98 -    public void engineRemoved (DebuggerEngine engine) {}
  113.99 -    
 113.100 -    
 113.101 -    private static Breakpoint[] getBreakpoints () {
 113.102 -        Breakpoint[] bs = DebuggerManager.getDebuggerManager ().
 113.103 -            getBreakpoints ();
 113.104 -        int i, k = bs.length;
 113.105 -        ArrayList bb = new ArrayList ();
 113.106 -        for (i = 0; i < k; i++) {
 113.107 -            if (bs[i] instanceof BpelBreakpoint) {
 113.108 -                bb.add(bs[i]);
 113.109 -            }
 113.110 -        }
 113.111 -        bs = new Breakpoint[bb.size()];
 113.112 -        return (Breakpoint[])bb.toArray(bs);
 113.113 -    }
 113.114 -}
   114.1 --- a/bpel.debugger.ui/src/org/netbeans/modules/bpel/debugger/ui/editor/BpelAnnotation.java	Fri Dec 29 11:53:50 2006 +0000
   114.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
   114.3 @@ -1,254 +0,0 @@
   114.4 -/*
   114.5 - * The contents of this file are subject to the terms of the Common Development
   114.6 - * and Distribution License (the License). You may not use this file except in
   114.7 - * compliance with the License.
   114.8 - *
   114.9 - * You can obtain a copy of the License at http://www.netbeans.org/cddl.html
  114.10 - * or http://www.netbeans.org/cddl.txt.
  114.11 -
  114.12 - * When distributing Covered Code, include this CDDL Header Notice in each file
  114.13 - * and include the License file at http://www.netbeans.org/cddl.txt.
  114.14 - * If applicable, add the following below the CDDL Header, with the fields
  114.15 - * enclosed by brackets [] replaced by your own identifying information:
  114.16 - * "Portions Copyrighted [year] [name of copyright owner]"
  114.17 - *
  114.18 - * The Original Software is NetBeans. The Initial Developer of the Original
  114.19 - * Software is Sun Microsystems, Inc. Portions Copyright 1997-2006 Sun
  114.20 - * Microsystems, Inc. All Rights Reserved.
  114.21 - */
  114.22 -
  114.23 -package org.netbeans.modules.bpel.debugger.ui.editor;
  114.24 -
  114.25 -import java.beans.PropertyChangeListener;
  114.26 -import java.beans.PropertyChangeSupport;
  114.27 -import org.netbeans.modules.bpel.core.annotations.AnnotationManagerCookie;
  114.28 -import org.netbeans.modules.bpel.core.annotations.DiagramAnnotation;
  114.29 -import org.netbeans.modules.bpel.debugger.ui.util.ModelUtil;
  114.30 -import org.netbeans.modules.bpel.debugger.ui.util.Util;
  114.31 -import org.netbeans.modules.bpel.model.api.support.UniqueId;
  114.32 -import org.openide.loaders.DataObject;
  114.33 -import org.openide.text.Annotation;
  114.34 -import org.openide.text.Line;
  114.35 -import org.netbeans.modules.bpel.debugger.api.AnnotationType;
  114.36 -
  114.37 -/**
  114.38 - * @author Vladimir Yaroslavskiy
  114.39 - * @author Alexander Zgursky
  114.40 - * @version 2005.10.19
  114.41 - */
  114.42 -class BpelAnnotation {
  114.43 -    
  114.44 -    public static final String          PROP_STATE = "state"; //NOI18N
  114.45 -    
  114.46 -    public static final String          PROP_LINE = "line"; //NOI18N
  114.47 -    
  114.48 -    public static final String          PROP_XPATH = "xpath"; //NOI18N
  114.49 -    
  114.50 -    
  114.51 -    private final AnnotationType myAnnotationType;
  114.52 -    private final UniqueId myBpelEntityId;
  114.53 -
  114.54 -    private State myState;
  114.55 -    private String myXpath;
  114.56 -    private DiagramAnnotation myDiagramAnnotation;
  114.57 -    private LineAnnotation myLineAnnotation;
  114.58 -    
  114.59 -    private PropertyChangeSupport myPcs;
  114.60 -    
  114.61 -    public BpelAnnotation(
  114.62 -            AnnotationType annotationType,
  114.63 -            UniqueId bpelEntityId)
  114.64 -    {
  114.65 -        myAnnotationType = annotationType;
  114.66 -        myBpelEntityId = bpelEntityId;
  114.67 -        myPcs = new PropertyChangeSupport(this);
  114.68 -        myState = State.DETACHED;
  114.69 -    }
  114.70 -    
  114.71 -    public synchronized boolean attach() {
  114.72 -        if (myState == State.ATTACHED || myState == State.BROKEN) {
  114.73 -            return false;
  114.74 -        }
  114.75 -        
  114.76 -        assert myDiagramAnnotation == null;
  114.77 -        assert myLineAnnotation == null;
  114.78 -        
  114.79 -        DiagramAnnotation diagramAnnotation = new DiagramAnnotation(
  114.80 -                myBpelEntityId, myAnnotationType.getType());
  114.81 -        
  114.82 -        AnnotationManagerCookie annotationManager =
  114.83 -                (AnnotationManagerCookie)getDataObject().getCookie(
  114.84 -                AnnotationManagerCookie.class);
  114.85 -        
  114.86 -        if (!annotationManager.addAnnotation(diagramAnnotation)) {
  114.87 -            return false;
  114.88 -        }
  114.89 -        myDiagramAnnotation = diagramAnnotation;
  114.90 -        subscribe();
  114.91 -        update();
  114.92 -        setState(State.ATTACHED);
  114.93 -        
  114.94 -        return true;
  114.95 -    }
  114.96 -    
  114.97 -    protected synchronized void update() {
  114.98 -        //kinda hack - check if myDiagramAnnotation is null to find out
  114.99 -        //if we are really in DETACHED state or update() is called from
 114.100 -        //the attach()
 114.101 -        if (myState == State.DETACHED && myDiagramAnnotation == null) {
 114.102 -            return;
 114.103 -        }
 114.104 -        
 114.105 -        updateLineAnnotation();
 114.106 -        firePropertyChange(null, null, null);
 114.107 -    }
 114.108 -    
 114.109 -    private void updateLineAnnotation() {
 114.110 -        int lineNumber = ModelUtil.getLineNumber(myBpelEntityId);
 114.111 -        if (lineNumber < 0) {
 114.112 -            removeLineAnnotation();
 114.113 -            return;
 114.114 -        }
 114.115 -
 114.116 -        Line line = Util.getLine(getDataObject(), lineNumber);
 114.117 -        if (line == null) {
 114.118 -            removeLineAnnotation();
 114.119 -            return;
 114.120 -        }
 114.121 -
 114.122 -        if (myLineAnnotation != null && line.equals(myLineAnnotation.getAttachedAnnotatable())) {
 114.123 -            //the line annotation is already on the valid place
 114.124 -            return;
 114.125 -        }
 114.126 -
 114.127 -        removeLineAnnotation();
 114.128 -
 114.129 -        myLineAnnotation = new LineAnnotation();
 114.130 -        myLineAnnotation.attach(line);
 114.131 -
 114.132 -        return;
 114.133 -    }
 114.134 -    
 114.135 -    private void removeLineAnnotation() {
 114.136 -        if (myLineAnnotation != null) {
 114.137 -            myLineAnnotation.detach();
 114.138 -            myLineAnnotation = null;
 114.139 -        }
 114.140 -    }
 114.141 -    
 114.142 -    public synchronized void detach() {
 114.143 -        if (myState == State.DETACHED) {
 114.144 -            return;
 114.145 -        }
 114.146 -        
 114.147 -        assert myDiagramAnnotation != null;
 114.148 -        
 114.149 -        AnnotationManagerCookie annotationManager =
 114.150 -                (AnnotationManagerCookie)getDataObject().getCookie(
 114.151 -                AnnotationManagerCookie.class);
 114.152 -        annotationManager.removeAnnotation(myDiagramAnnotation);
 114.153 -        myDiagramAnnotation = null;
 114.154 -        
 114.155 -        removeLineAnnotation();
 114.156 -        unsubscribe();
 114.157 -        
 114.158 -        setState(State.DETACHED);
 114.159 -    }
 114.160 -    
 114.161 -    private void subscribe() {
 114.162 -        BpelAnnotationsObserver.subscribe(this);
 114.163 -    }
 114.164 -    
 114.165 -    private void unsubscribe() {
 114.166 -        BpelAnnotationsObserver.unsubscribe(this);
 114.167 -    }
 114.168 -    
 114.169 -    public UniqueId getBpelEntityId() {
 114.170 -        return myBpelEntityId;
 114.171 -    }
 114.172 -    
 114.173 -    public synchronized String getXpath() {
 114.174 -        return myXpath;
 114.175 -    }
 114.176 -    
 114.177 -    public synchronized State getState() {
 114.178 -        return myState;
 114.179 -    }
 114.180 -    
 114.181 -    /**
 114.182 -     * Adds property change listener.
 114.183 -     *
 114.184 -     * @param l new listener.
 114.185 -     */
 114.186 -    public final void addPropertyChangeListener(PropertyChangeListener l) {
 114.187 -        myPcs.addPropertyChangeListener(l);
 114.188 -    }
 114.189 -    
 114.190 -    /**
 114.191 -     * Removes property change listener.
 114.192 -     *
 114.193 -     * @param l removed listener.
 114.194 -     */
 114.195 -    public final void removePropertyChangeListener(PropertyChangeListener l) {
 114.196 -        myPcs.removePropertyChangeListener(l);
 114.197 -    }
 114.198 -    
 114.199 -    /**
 114.200 -     * Adds property change listener.
 114.201 -     *
 114.202 -     * @param propertyName property name to add listener for
 114.203 -     * @param l new listener.
 114.204 -     */
 114.205 -    public final void addPropertyChangeListener(
 114.206 -            String propertyName, PropertyChangeListener l)
 114.207 -    {
 114.208 -        myPcs.addPropertyChangeListener(propertyName, l);
 114.209 -    }
 114.210 -    
 114.211 -    /**
 114.212 -     * Removes property change listener.
 114.213 -     *
 114.214 -     * @param propertyName property name to remove listener for
 114.215 -     * @param l listener to remove
 114.216 -     */
 114.217 -    public final void removePropertyChangeListener(
 114.218 -            String propertyName, PropertyChangeListener l)
 114.219 -    {
 114.220 -        myPcs.removePropertyChangeListener(propertyName, l);
 114.221 -    }
 114.222 -
 114.223 -    /**
 114.224 -     * Fires property change.
 114.225 -     */
 114.226 -    protected final void firePropertyChange(String name, Object o, Object n) {
 114.227 -        myPcs.firePropertyChange(name, o, n);
 114.228 -    }
 114.229 -    
 114.230 -    private void setState(State newState) {
 114.231 -        State oldState = myState;
 114.232 -        myState = newState;
 114.233 -        firePropertyChange(PROP_STATE, oldState, newState);
 114.234 -    }
 114.235 -    
 114.236 -    private DataObject getDataObject() {
 114.237 -        return (DataObject)myBpelEntityId.getModel().
 114.238 -                getModelSource().getLookup().lookup(DataObject.class);
 114.239 -    }
 114.240 -    
 114.241 -    public enum State {
 114.242 -        ATTACHED,
 114.243 -        DETACHED,
 114.244 -        BROKEN
 114.245 -    }
 114.246 -    
 114.247 -    private class LineAnnotation extends Annotation {
 114.248 -        public String getAnnotationType() {
 114.249 -            return myAnnotationType.getType();
 114.250 -        }
 114.251 -
 114.252 -        public String getShortDescription() {
 114.253 -            return myAnnotationType.getDescription();
 114.254 -        }
 114.255 -        
 114.256 -    }
 114.257 -}
   115.1 --- a/bpel.debugger.ui/src/org/netbeans/modules/bpel/debugger/ui/editor/BpelAnnotationsObserver.java	Fri Dec 29 11:53:50 2006 +0000
   115.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
   115.3 @@ -1,162 +0,0 @@
   115.4 -/*
   115.5 - * The contents of this file are subject to the terms of the Common Development
   115.6 - * and Distribution License (the License). You may not use this file except in
   115.7 - * compliance with the License.
   115.8 - *
   115.9 - * You can obtain a copy of the License at http://www.netbeans.org/cddl.html
  115.10 - * or http://www.netbeans.org/cddl.txt.
  115.11 -
  115.12 - * When distributing Covered Code, include this CDDL Header Notice in each file
  115.13 - * and include the License file at http://www.netbeans.org/cddl.txt.
  115.14 - * If applicable, add the following below the CDDL Header, with the fields
  115.15 - * enclosed by brackets [] replaced by your own identifying information:
  115.16 - * "Portions Copyrighted [year] [name of copyright owner]"
  115.17 - *
  115.18 - * The Original Software is NetBeans. The Initial Developer of the Original
  115.19 - * Software is Sun Microsystems, Inc. Portions Copyright 1997-2006 Sun
  115.20 - * Microsystems, Inc. All Rights Reserved.
  115.21 - */
  115.22 -
  115.23 -package org.netbeans.modules.bpel.debugger.ui.editor;
  115.24 -
  115.25 -import com.sun.corba.se.spi.ior.iiop.RequestPartitioningComponent;
  115.26 -import java.beans.PropertyChangeEvent;
  115.27 -import java.beans.PropertyChangeListener;
  115.28 -import java.util.HashMap;
  115.29 -import java.util.LinkedList;
  115.30 -import org.netbeans.modules.bpel.model.api.BpelModel;
  115.31 -import org.netbeans.modules.bpel.model.api.events.ArrayUpdateEvent;
  115.32 -import org.netbeans.modules.bpel.model.api.events.ChangeEvent;
  115.33 -import org.netbeans.modules.bpel.model.api.events.ChangeEventListener;
  115.34 -import org.netbeans.modules.bpel.model.api.events.ChangeEventListenerAdapter;
  115.35 -import org.netbeans.modules.bpel.model.api.events.EntityInsertEvent;
  115.36 -import org.netbeans.modules.bpel.model.api.events.EntityRemoveEvent;
  115.37 -import org.netbeans.modules.bpel.model.api.events.EntityUpdateEvent;
  115.38 -import org.netbeans.modules.bpel.model.api.events.PropertyRemoveEvent;
  115.39 -import org.netbeans.modules.bpel.model.api.events.PropertyUpdateEvent;
  115.40 -import org.openide.util.RequestProcessor;
  115.41 -
  115.42 -/**
  115.43 - *
  115.44 - * @author Alexander Zgursky
  115.45 - */
  115.46 -public class BpelAnnotationsObserver {
  115.47 -    private static HashMap<BpelModel, LinkedList<BpelAnnotation>> myModelAnnotations =
  115.48 -            new HashMap<BpelModel, LinkedList<BpelAnnotation>>();
  115.49 -    
  115.50 -    private static HashMap<BpelModel, Listener> myModelListeners =
  115.51 -            new HashMap<BpelModel, Listener>();
  115.52 -    
  115.53 -    private BpelAnnotationsObserver() {
  115.54 -    }
  115.55 -    
  115.56 -    public static void subscribe(BpelAnnotation annotation) {
  115.57 -        BpelModel model = annotation.getBpelEntityId().getModel();
  115.58 -        synchronized(myModelAnnotations) {
  115.59 -            LinkedList<BpelAnnotation> annotations = 
  115.60 -                    myModelAnnotations.get(model);
  115.61 -            if (annotations == null) {
  115.62 -                annotations = new LinkedList<BpelAnnotation>();
  115.63 -                myModelAnnotations.put(model, annotations);
  115.64 -                subscribeToModel(model);
  115.65 -            }
  115.66 -            annotations.add(annotation);
  115.67 -        }
  115.68 -    }
  115.69 -    
  115.70 -    public static void unsubscribe(BpelAnnotation annotation) {
  115.71 -        BpelModel model = annotation.getBpelEntityId().getModel();
  115.72 -        synchronized(myModelAnnotations) {
  115.73 -            LinkedList<BpelAnnotation> annotations = 
  115.74 -                    myModelAnnotations.get(model);
  115.75 -            if (annotations != null) {
  115.76 -                annotations.remove(annotation);
  115.77 -                if (annotations.size() == 0) {
  115.78 -                    unsubscribeFromModel(model);
  115.79 -                    myModelAnnotations.remove(model);
  115.80 -                }
  115.81 -            }
  115.82 -        }
  115.83 -    }
  115.84 -    
  115.85 -    public static BpelAnnotation[] getAnnotations(BpelModel model) {
  115.86 -        BpelAnnotation[] annotations = null;
  115.87 -        synchronized(myModelAnnotations) {
  115.88 -            LinkedList<BpelAnnotation> al = myModelAnnotations.get(model);
  115.89 -            if (al != null) {
  115.90 -                annotations = al.toArray(new BpelAnnotation[al.size()]);
  115.91 -            }
  115.92 -        }
  115.93 -        
  115.94 -        if (annotations != null) {
  115.95 -            return annotations;
  115.96 -        } else {
  115.97 -            return new BpelAnnotation[0];
  115.98 -        }
  115.99 -    }
 115.100 -    
 115.101 -    private static void subscribeToModel(BpelModel model) {
 115.102 -        Listener listener = new Listener(model);
 115.103 -        myModelListeners.put(model, listener);
 115.104 -        listener.subscribe();
 115.105 -    }
 115.106 -    
 115.107 -    private static void unsubscribeFromModel(BpelModel model) {
 115.108 -        Listener listener = myModelListeners.get(model);
 115.109 -        listener.unsubscribe();
 115.110 -        myModelListeners.remove(model);
 115.111 -    }
 115.112 -    
 115.113 -    private static class Listener
 115.114 -            extends ChangeEventListenerAdapter
 115.115 -            implements PropertyChangeListener
 115.116 -    {
 115.117 -        private BpelModel myModel;
 115.118 -        private RequestProcessor.Task myTask;
 115.119 -        
 115.120 -        public Listener(BpelModel model) {
 115.121 -            myModel = model;
 115.122 -        }
 115.123 -        
 115.124 -        public void subscribe() {
 115.125 -            myModel.addEntityChangeListener(this);
 115.126 -            myModel.addPropertyChangeListener(this);
 115.127 -        }
 115.128 -        
 115.129 -        public void unsubscribe() {
 115.130 -            myModel.removeEntityChangeListener(this);
 115.131 -            myModel.removePropertyChangeListener(this);
 115.132 -            if (myTask != null) {
 115.133 -                myTask.cancel();
 115.134 -                myTask = null;
 115.135 -            }
 115.136 -        }
 115.137 -        
 115.138 -        protected void notifyEvent(ChangeEvent event) {
 115.139 -            if(event.isLastInAtomic()) {
 115.140 -                notifyModelChanged();
 115.141 -            }
 115.142 -        }
 115.143 -
 115.144 -        public void propertyChange(PropertyChangeEvent evt) {
 115.145 -            notifyModelChanged();
 115.146 -        }
 115.147 -        
 115.148 -        private void notifyModelChanged() {
 115.149 -            if (myTask != null) {
 115.150 -                myTask.cancel();
 115.151 -                myTask = null;
 115.152 -            }
 115.153 -            
 115.154 -            myTask = RequestProcessor.getDefault().post(new Runnable() {
 115.155 -                public void run() {
 115.156 -                    BpelAnnotation[] annotations =
 115.157 -                            BpelAnnotationsObserver.getAnnotations(myModel);
 115.158 -                    for (BpelAnnotation annotation : annotations) {
 115.159 -                        annotation.update();
 115.160 -                    }
 115.161 -                }
 115.162 -            }, 1000);
 115.163 -        }
 115.164 -    }
 115.165 -}
   116.1 --- a/bpel.debugger.ui/src/org/netbeans/modules/bpel/debugger/ui/editor/BpelEditorContext.java	Fri Dec 29 11:53:50 2006 +0000
   116.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
   116.3 @@ -1,442 +0,0 @@
   116.4 -/*
   116.5 - * The contents of this file are subject to the terms of the Common Development
   116.6 - * and Distribution License (the License). You may not use this file except in
   116.7 - * compliance with the License.
   116.8 - *
   116.9 - * You can obtain a copy of the License at http://www.netbeans.org/cddl.html
  116.10 - * or http://www.netbeans.org/cddl.txt.
  116.11 -
  116.12 - * When distributing Covered Code, include this CDDL Header Notice in each file
  116.13 - * and include the License file at http://www.netbeans.org/cddl.txt.
  116.14 - * If applicable, add the following below the CDDL Header, with the fields
  116.15 - * enclosed by brackets [] replaced by your own identifying information:
  116.16 - * "Portions Copyrighted [year] [name of copyright owner]"
  116.17 - *
  116.18 - * The Original Software is NetBeans. The Initial Developer of the Original
  116.19 - * Software is Sun Microsystems, Inc. Portions Copyright 1997-2006 Sun
  116.20 - * Microsystems, Inc. All Rights Reserved.
  116.21 - */
  116.22 -
  116.23 -package org.netbeans.modules.bpel.debugger.ui.editor;
  116.24 -
  116.25 -import java.beans.PropertyChangeEvent;
  116.26 -import java.beans.PropertyChangeListener;
  116.27 -import java.beans.PropertyChangeSupport;
  116.28 -import java.util.ArrayList;
  116.29 -import java.util.HashMap;
  116.30 -import java.util.HashSet;
  116.31 -import java.util.IdentityHashMap;
  116.32 -import java.util.List;
  116.33 -import java.util.Map;
  116.34 -import java.util.Set;
  116.35 -import javax.xml.namespace.QName;
  116.36 -import org.netbeans.core.api.multiview.MultiViewHandler;
  116.37 -import org.netbeans.core.api.multiview.MultiViewPerspective;
  116.38 -import org.netbeans.core.api.multiview.MultiViews;
  116.39 -import org.netbeans.modules.bpel.core.validation.SelectBpelElement;
  116.40 -import org.netbeans.modules.bpel.debugger.ui.breakpoint.BreakpointTranslator;
  116.41 -import org.netbeans.modules.bpel.debugger.ui.util.Log;
  116.42 -import org.netbeans.modules.bpel.debugger.ui.util.ModelUtil;
  116.43 -import org.netbeans.modules.bpel.debugger.ui.util.Util;
  116.44 -import org.netbeans.modules.bpel.model.api.BpelEntity;
  116.45 -import org.netbeans.modules.bpel.model.api.Process;
  116.46 -import org.netbeans.modules.bpel.model.api.BpelModel;
  116.47 -import org.netbeans.modules.bpel.model.api.support.UniqueId;
  116.48 -import org.openide.cookies.EditCookie;
  116.49 -import org.openide.cookies.EditorCookie;
  116.50 -import org.openide.cookies.LineCookie;
  116.51 -import org.openide.loaders.DataObject;
  116.52 -import org.openide.text.Line;
  116.53 -
  116.54 -import org.netbeans.modules.bpel.debugger.api.AnnotationType;
  116.55 -import org.netbeans.modules.bpel.debugger.spi.EditorContext;
  116.56 -import org.openide.windows.TopComponent;
  116.57 -import org.openide.windows.WindowManager;
  116.58 -
  116.59 -/**
  116.60 - * @author Vladimir Yaroslavskiy
  116.61 - * @version 2005.10.26
  116.62 - */
  116.63 -public class BpelEditorContext implements EditorContext {
  116.64 -    
  116.65 -    private Map<BpelAnnotation, PropertyChangeSupport> myAnnotationToListeners =
  116.66 -            new IdentityHashMap<BpelAnnotation, PropertyChangeSupport>();
  116.67 -    
  116.68 -    private Map<EditorCookie, EditorObserver> myEditorToObserver =
  116.69 -            new HashMap<EditorCookie, EditorObserver>();
  116.70 -    
  116.71 -    private Map<EditorCookie, Set<BpelAnnotation>> myEditorToAnnotations =
  116.72 -            new HashMap<EditorCookie, Set<BpelAnnotation>>();
  116.73 -    
  116.74 -    private EditorObserverListener myEditorObserverListener =
  116.75 -            new EditorObserverListener();
  116.76 -    
  116.77 -    private BreakpointTranslator myTranslator;
  116.78 -
  116.79 -//    private PropertyChangeSupport myPcs =
  116.80 -//            new PropertyChangeSupport(this);
  116.81 -    
  116.82 -    /**{@inheritDoc}*/
  116.83 -    public Object annotate(
  116.84 -            String url,
  116.85 -            String xpath,
  116.86 -            AnnotationType annotationType)
  116.87 -    {
  116.88 -        DataObject dataObject = Util.getDataObject(url);
  116.89 -        if (dataObject == null) {
  116.90 -            Log.out("DataObject is null: " + url);
  116.91 -            return null;
  116.92 -        }
  116.93 -        
  116.94 -        BpelModel model = Util.getBpelModel(dataObject);
  116.95 -        if (model == null) {
  116.96 -            Log.out("BpelModel is null: " + url);
  116.97 -            return null;
  116.98 -        }
  116.99 -        
 116.100 -        UniqueId bpelEntityId = ModelUtil.getBpelEntityId(model, xpath);
 116.101 -        if (bpelEntityId == null) {
 116.102 -            Log.out("BPEL Entity not found: " + dataObject + ", " + xpath);
 116.103 -            return null;
 116.104 -        }
 116.105 -        
 116.106 -        BpelAnnotation annotation = new BpelAnnotation(annotationType, bpelEntityId);
 116.107 -        if (annotation.attach()) {
 116.108 -            return annotation;
 116.109 -        } else {
 116.110 -            return null;
 116.111 -        }
 116.112 -    }
 116.113 -    
 116.114 -    /**{@inheritDoc}*/
 116.115 -    public void removeAnnotation(Object annotation) {
 116.116 -        BpelAnnotation bpelAnnotation = (BpelAnnotation) annotation;
 116.117 -        bpelAnnotation.detach();
 116.118 -    }
 116.119 -    
 116.120 -    public String getXpath(Object annotation) {
 116.121 -        BpelAnnotation bpelAnnotation = (BpelAnnotation)annotation;
 116.122 -        UniqueId bpelEntityId = bpelAnnotation.getBpelEntityId();
 116.123 -        return ModelUtil.getXpath(bpelEntityId);
 116.124 -    }
 116.125 -    
 116.126 -    public QName getProcessQName(String url) {
 116.127 -        BpelModel model = Util.getBpelModel(url);
 116.128 -        if (model == null) {
 116.129 -            Log.out("BpelModel is null: " + url);
 116.130 -            return null;
 116.131 -        }
 116.132 -        
 116.133 -        Process proc = model.getProcess();
 116.134 -        if (proc == null) {
 116.135 -            Log.out("Process is null: " + url);
 116.136 -            return null;
 116.137 -        }
 116.138 -        
 116.139 -        if (proc.getName() == null) {
 116.140 -            Log.out("Process name is null: " + url);
 116.141 -            return null;
 116.142 -        }
 116.143 -        
 116.144 -        return new QName(proc.getTargetNamespace(), proc.getName());
 116.145 -    }
 116.146 -    
 116.147 -    /**{@inheritDoc}*/
 116.148 -    public boolean showSource(final String url, final String xpath) {
 116.149 -        DataObject dataObject = Util.getDataObject(url);
 116.150 -        if (dataObject == null) {
 116.151 -            Log.out("DataObject is null: " + url);
 116.152 -            return false;
 116.153 -        }
 116.154 -
 116.155 -        BpelModel model = Util.getBpelModel(dataObject);
 116.156 -        if (model == null) {
 116.157 -            Log.out("BpelModel is null: " + url);
 116.158 -            return false;
 116.159 -        }
 116.160 -        
 116.161 -        UniqueId bpelEntityId = ModelUtil.getBpelEntityId(model, xpath);
 116.162 -        if (bpelEntityId == null) {
 116.163 -            Log.out("BPEL Entity not found: " + dataObject + ", " + xpath);
 116.164 -            return false;
 116.165 -        }
 116.166 -        
 116.167 -        showBpelEntity(bpelEntityId);
 116.168 -        
 116.169 -//        int lineNumber = ModelUtil.getLineNumber(bpelEntityId, true);
 116.170 -//        if (lineNumber < 0) {
 116.171 -//            Log.out("Failed to get line number for UniqueId: " + bpelEntityId);
 116.172 -//            return false;
 116.173 -//        }
 116.174 -//        final Line line = Util.getLine(dataObject, lineNumber);
 116.175 -//        
 116.176 -//        if (line == null) {
 116.177 -//            return false;
 116.178 -//        }
 116.179 -//        javax.swing.SwingUtilities.invokeLater (new Runnable () {
 116.180 -//            public void run () {
 116.181 -////                TopComponent tc = WindowManager.getDefault().getRegistry().getActivated();
 116.182 -////
 116.183 -////                MultiViewHandler mvh = MultiViews.findMultiViewHandler(tc);
 116.184 -////                if (mvh == null) {
 116.185 -////                    return;
 116.186 -////                }
 116.187 -////
 116.188 -////                String tabId = "orch-designer";
 116.189 -////                MultiViewPerspective[] mvps = mvh.getPerspectives();
 116.190 -////                if (mvps != null && mvps.length >0) {
 116.191 -////                    for (MultiViewPerspective mvp : mvps) {
 116.192 -////                        if (mvp.preferredID().equals(tabId)) {
 116.193 -////                            mvh.requestVisible(mvp);
 116.194 -////                            mvh.requestActive(mvp);
 116.195 -////                        }
 116.196 -////                    }
 116.197 -////                }
 116.198 -////                Line line = Util.getLine(url, position.getLineNumber());
 116.199 -////
 116.200 -////                if (line == null) {
 116.201 -////                    return;
 116.202 -////                }
 116.203 -////                //TODO: see the openActiveSourceEditor method's todo
 116.204 -////                //"bpelsource"
 116.205 -//                line.show (Line.SHOW_GOTO);
 116.206 -//                openActiveEditorTab("bpelsource");
 116.207 -//            }
 116.208 -//        });
 116.209 -        return true;
 116.210 -    }
 116.211 -
 116.212 -    public int translateBreakpointLine(String url, int lineNumber) {
 116.213 -        return getBreakpointTranslator().translateBreakpointLine(url, lineNumber);
 116.214 -    }
 116.215 -    
 116.216 -    public synchronized void addAnnotationListener(Object annotation, PropertyChangeListener l) {
 116.217 -        BpelAnnotation bpelAnnotation = (BpelAnnotation)annotation;
 116.218 -        bpelAnnotation.addPropertyChangeListener(l);
 116.219 -//        BpelAnnotation bpelAnnotation = (BpelAnnotation)annotation;
 116.220 -//        DataObject dataObject = (DataObject)bpelAnnotation.getBpelEntityId().
 116.221 -//                getModel().getModelSource().getLookup().lookup(DataObject.class);
 116.222 -//        
 116.223 -//        if (dataObject == null) {
 116.224 -//            return;
 116.225 -//        }
 116.226 -//        
 116.227 -//        EditorCookie editor = (EditorCookie)dataObject.
 116.228 -//                getCookie(EditorCookie.class);
 116.229 -//        
 116.230 -//        if (editor == null || !(editor instanceof EditorCookie.Observable)) {
 116.231 -//            return;
 116.232 -//        }
 116.233 -//        
 116.234 -//                    
 116.235 -//        PropertyChangeSupport pcs = myAnnotationToListeners.get(bpelAnnotation);
 116.236 -//        if (pcs == null) {
 116.237 -//            pcs = new PropertyChangeSupport(bpelAnnotation);
 116.238 -//            myAnnotationToListeners.put(bpelAnnotation, pcs);
 116.239 -//        }
 116.240 -//        pcs.addPropertyChangeListener(l);
 116.241 -//        
 116.242 -//        
 116.243 -//        Set<BpelAnnotation> editorAnnotations = myEditorToAnnotations.get(editor);
 116.244 -//        if (editorAnnotations == null) {
 116.245 -//            editorAnnotations = new HashSet<BpelAnnotation>();
 116.246 -//            myEditorToAnnotations.put(editor, editorAnnotations);
 116.247 -//        }
 116.248 -//        editorAnnotations.add(bpelAnnotation);
 116.249 -//        
 116.250 -//        
 116.251 -//        EditorObserver observer = myEditorToObserver.get(editor);
 116.252 -//        if (observer == null) {
 116.253 -//            observer = new EditorObserver((EditorCookie.Observable)editor);
 116.254 -//            myEditorToObserver.put(editor, observer);
 116.255 -//            observer.subscribe(myEditorObserverListener);
 116.256 -//        }
 116.257 -    }
 116.258 -
 116.259 -    public synchronized void removeAnnotationListener(Object annotation, PropertyChangeListener l) {
 116.260 -        BpelAnnotation bpelAnnotation = (BpelAnnotation)annotation;
 116.261 -        bpelAnnotation.removePropertyChangeListener(l);
 116.262 -//        BpelAnnotation bpelAnnotation = (BpelAnnotation)annotation;
 116.263 -//        DataObject dataObject = (DataObject)bpelAnnotation.getBpelEntityId().
 116.264 -//                getModel().getModelSource().getLookup().lookup(DataObject.class);
 116.265 -//        
 116.266 -//        if (dataObject == null) {
 116.267 -//            return;
 116.268 -//        }
 116.269 -//        
 116.270 -//        EditorCookie editor = (EditorCookie)dataObject.
 116.271 -//                getCookie(EditorCookie.class);
 116.272 -//        
 116.273 -//        if (editor == null || !(editor instanceof EditorCookie.Observable)) {
 116.274 -//            return;
 116.275 -//        }
 116.276 -//        
 116.277 -//        
 116.278 -//        PropertyChangeSupport pcs = myAnnotationToListeners.get(bpelAnnotation);
 116.279 -//        if (pcs != null) {
 116.280 -//            pcs.removePropertyChangeListener(l);
 116.281 -//            if (!pcs.hasListeners(null)) {
 116.282 -//                myAnnotationToListeners.remove(bpelAnnotation);
 116.283 -//            }
 116.284 -//        }
 116.285 -//        
 116.286 -//        Set<BpelAnnotation> editorAnnotations = myEditorToAnnotations.get(editor);
 116.287 -//        if (editorAnnotations != null) {
 116.288 -//            editorAnnotations.remove(bpelAnnotation);
 116.289 -//            if (editorAnnotations.isEmpty()) {
 116.290 -//                myEditorToAnnotations.remove(editor);
 116.291 -//                
 116.292 -//                EditorObserver observer = myEditorToObserver.get(editor);
 116.293 -//                if (observer != null) {
 116.294 -//                    observer.unsubscribe();
 116.295 -//                    myEditorToObserver.remove(editor);
 116.296 -//                }
 116.297 -//            }
 116.298 -//        }
 116.299 -    }
 116.300 -    
 116.301 -    private void notifyAnnotationChanged(EditorCookie editor) {
 116.302 -        PropertyChangeSupport[] changeSupports = null;
 116.303 -        
 116.304 -        synchronized (this) {
 116.305 -            Set<BpelAnnotation> annotations = myEditorToAnnotations.get(editor);
 116.306 -            if (annotations == null) {
 116.307 -                return;
 116.308 -            }
 116.309 -
 116.310 -            changeSupports = new PropertyChangeSupport[annotations.size()];
 116.311 -
 116.312 -            int i = 0;
 116.313 -            for (BpelAnnotation annotation : annotations) {
 116.314 -                PropertyChangeSupport pcs = myAnnotationToListeners.get(annotation);
 116.315 -                if (pcs != null) {
 116.316 -                    changeSupports[i++] = pcs;
 116.317 -                }
 116.318 -            }
 116.319 -        }
 116.320 -        
 116.321 -        for (PropertyChangeSupport pcs : changeSupports) {
 116.322 -            pcs.firePropertyChange(null, null, null);
 116.323 -        }
 116.324 -
 116.325 -    }
 116.326 -    
 116.327 -    private BreakpointTranslator getBreakpointTranslator() {
 116.328 -        if (myTranslator == null) {
 116.329 -            myTranslator = new BreakpointTranslator();
 116.330 -        }
 116.331 -        return myTranslator;
 116.332 -    }
 116.333 -    
 116.334 -    private void showBpelEntity(final UniqueId bpelEntityId) {
 116.335 -        BpelModel model = bpelEntityId.getModel();
 116.336 -        final BpelEntity bpelEntity = model.getEntity(bpelEntityId);
 116.337 -        
 116.338 -        final DataObject d = (DataObject)model.getModelSource().getLookup().lookup(DataObject.class);
 116.339 -        final LineCookie lc = (LineCookie) d.getCookie(LineCookie.class);
 116.340 -        final EditCookie ec = (EditCookie) d.getCookie(EditCookie.class);
 116.341 -        if (lc == null || ec == null) {
 116.342 -            return;
 116.343 -        }
 116.344 -        
 116.345 -        javax.swing.SwingUtilities.invokeLater(new Runnable() {
 116.346 -            
 116.347 -            public void run() {
 116.348 -                ec.edit();
 116.349 -                
 116.350 -                TopComponent tc = WindowManager.getDefault().getRegistry()
 116.351 -                .getActivated();
 116.352 -                MultiViewHandler mvh = MultiViews.findMultiViewHandler(tc);
 116.353 -                
 116.354 -                if (mvh == null) {
 116.355 -                    return;
 116.356 -                }
 116.357 -                
 116.358 -                MultiViewPerspective mvp = mvh.getSelectedPerspective();
 116.359 -                if (mvp.preferredID().equals("orch-designer")) {
 116.360 -                    List<TopComponent> list = getAssociatedTopComponents(d);
 116.361 -                    for (TopComponent topComponent : list) {
 116.362 -                        // Make sure this is a multiview window, and not just
 116.363 -                        // some
 116.364 -                        // window that has our DataObject (e.g. Projects,Files).
 116.365 -                        MultiViewHandler handler = MultiViews
 116.366 -                                .findMultiViewHandler(topComponent);
 116.367 -                        if (handler != null && topComponent != null) {
 116.368 -                            SelectBpelElement selectElement =
 116.369 -                                    (SelectBpelElement) topComponent.getLookup()
 116.370 -                                    .lookup(SelectBpelElement.class);
 116.371 -                            if (selectElement == null)
 116.372 -                                return;
 116.373 -                            selectElement.select(bpelEntity);
 116.374 -                        }
 116.375 -                    }
 116.376 -                } else if (mvp.preferredID().equals("bpelsource")) {
 116.377 -                    int lineNum = ModelUtil.getLineNumber(bpelEntityId);
 116.378 -                    if (lineNum < 0) {
 116.379 -                        return;
 116.380 -                    }
 116.381 -                    Line l = lc.getLineSet().getCurrent(lineNum - 1);
 116.382 -                    l.show(Line.SHOW_GOTO);
 116.383 -                    
 116.384 -                }
 116.385 -            }
 116.386 -        });
 116.387 -    }
 116.388 -    
 116.389 -    private List<TopComponent> getAssociatedTopComponents(DataObject targetDO) {
 116.390 -        // Create a list of TopComponents associated with the
 116.391 -        // editor's schema data object, starting with the the
 116.392 -        // active TopComponent. Add all open TopComponents in
 116.393 -        // any mode that are associated with the DataObject.
 116.394 -        // [Note that EDITOR_MODE does not contain editors in
 116.395 -        // split mode.]
 116.396 -        List<TopComponent> associatedTCs = new ArrayList<TopComponent>();
 116.397 -        TopComponent activeTC = TopComponent.getRegistry().getActivated();
 116.398 -        if (activeTC != null
 116.399 -                && targetDO == (DataObject) activeTC.getLookup().lookup(
 116.400 -                DataObject.class)) {
 116.401 -            associatedTCs.add(activeTC);
 116.402 -        }
 116.403 -        Set openTCs = TopComponent.getRegistry().getOpened();
 116.404 -        for (Object tc : openTCs) {
 116.405 -            TopComponent tcc = (TopComponent) tc;
 116.406 -            if (targetDO == (DataObject) tcc.getLookup().lookup(
 116.407 -                    DataObject.class)) {
 116.408 -                associatedTCs.add(tcc);
 116.409 -            }
 116.410 -        }
 116.411 -        return associatedTCs;
 116.412 -    }
 116.413 -    
 116.414 -    //TODO:check it out
 116.415 -    //Maybe it's not a good way to ensure that the source editor pane
 116.416 -    //is opened when Line.show() is inovked. It seems that it is the
 116.417 -    //responsibility of some of the BPELDataObject's cookie implementations
 116.418 -    //(i.e. EditorCookie or LineCookie)
 116.419 -    private static void openActiveEditorTab(String tabId) {
 116.420 -//        EditorCookie editorCookie;
 116.421 -//        editorCookie.getOpenedPanes()
 116.422 -        
 116.423 -        TopComponent tc = WindowManager.getDefault().getRegistry().getActivated();
 116.424 -        MultiViewHandler mvh = MultiViews.findMultiViewHandler(tc);
 116.425 -        if (mvh == null) {
 116.426 -            return;
 116.427 -        }
 116.428 -
 116.429 -        MultiViewPerspective[] mvps = mvh.getPerspectives();
 116.430 -        if (mvps != null && mvps.length >0) {
 116.431 -            for (MultiViewPerspective mvp : mvps) {
 116.432 -                if (mvp.preferredID().equals(tabId)) {
 116.433 -                    mvh.requestVisible(mvp);
 116.434 -                    mvh.requestActive(mvp);
 116.435 -                }
 116.436 -            }
 116.437 -        }
 116.438 -    }
 116.439 -    
 116.440 -    private class EditorObserverListener implements PropertyChangeListener {
 116.441 -        public void propertyChange(PropertyChangeEvent evt) {
 116.442 -            notifyAnnotationChanged((EditorCookie)evt.getSource());
 116.443 -        }
 116.444 -    }
 116.445 -}
   117.1 --- a/bpel.debugger.ui/src/org/netbeans/modules/bpel/debugger/ui/editor/EditorObserver.java	Fri Dec 29 11:53:50 2006 +0000
   117.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
   117.3 @@ -1,158 +0,0 @@
   117.4 -/*
   117.5 - * The contents of this file are subject to the terms of the Common Development
   117.6 - * and Distribution License (the License). You may not use this file except in
   117.7 - * compliance with the License.
   117.8 - *
   117.9 - * You can obtain a copy of the License at http://www.netbeans.org/cddl.html
  117.10 - * or http://www.netbeans.org/cddl.txt.
  117.11 -
  117.12 - * When distributing Covered Code, include this CDDL Header Notice in each file
  117.13 - * and include the License file at http://www.netbeans.org/cddl.txt.
  117.14 - * If applicable, add the following below the CDDL Header, with the fields
  117.15 - * enclosed by brackets [] replaced by your own identifying information:
  117.16 - * "Portions Copyrighted [year] [name of copyright owner]"
  117.17 - *
  117.18 - * The Original Software is NetBeans. The Initial Developer of the Original
  117.19 - * Software is Sun Microsystems, Inc. Portions Copyright 1997-2006 Sun
  117.20 - * Microsystems, Inc. All Rights Reserved.
  117.21 - */
  117.22 -
  117.23 -package org.netbeans.modules.bpel.debugger.ui.editor;
  117.24 -
  117.25 -import java.beans.PropertyChangeEvent;
  117.26 -import java.beans.PropertyChangeListener;
  117.27 -import java.util.Collection;
  117.28 -import java.util.HashSet;
  117.29 -import java.util.Set;
  117.30 -import javax.swing.event.DocumentEvent;
  117.31 -import javax.swing.event.DocumentListener;
  117.32 -import javax.swing.text.Document;
  117.33 -import org.openide.cookies.EditorCookie;
  117.34 -import org.openide.util.RequestProcessor;
  117.35 -
  117.36 -/**
  117.37 - *
  117.38 - * @author Alexander Zgursky
  117.39 - */
  117.40 -public class EditorObserver {
  117.41 -    private PropertyChangeListener myOuterListener;
  117.42 -    private EditorListener myEditorListener;
  117.43 -    private EditorDocumentListener myDocumentListener;
  117.44 -    
  117.45 -    private Document myDocument;
  117.46 -    private final EditorCookie.Observable myEditor;
  117.47 -
  117.48 -    public EditorObserver(EditorCookie.Observable editor) {
  117.49 -        myEditor = editor;
  117.50 -    }
  117.51 -
  117.52 -    public void subscribe(PropertyChangeListener listener) {
  117.53 -        if (myOuterListener != null) {
  117.54 -            unsubscribe();
  117.55 -        }
  117.56 -        
  117.57 -        myOuterListener = listener;
  117.58 -        myEditorListener = new EditorListener();
  117.59 -        myEditor.addPropertyChangeListener(myEditorListener);
  117.60 -        
  117.61 -        smartDocSubscribe();
  117.62 -    }
  117.63 -
  117.64 -    public void unsubscribe() {
  117.65 -        if (myOuterListener == null) {
  117.66 -            return;
  117.67 -        }
  117.68 -        
  117.69 -        myEditor.removePropertyChangeListener(myEditorListener);
  117.70 -        myEditorListener = null;
  117.71 -        docUnsubscribe();
  117.72 -        myOuterListener = null;
  117.73 -    }
  117.74 -    
  117.75 -    private void docUnsubscribe() {
  117.76 -        if (myDocumentListener == null ) {
  117.77 -            return;
  117.78 -        }
  117.79 -        assert myDocument != null;
  117.80 -        myDocument.removeDocumentListener(myDocumentListener);
  117.81 -        myDocument = null;
  117.82 -        myDocumentListener = null;
  117.83 -    }
  117.84 -    
  117.85 -    private void smartDocSubscribe() {
  117.86 -        
  117.87 -        //this check is to ensure we don't subscribe to the document if we have
  117.88 -        //already unsubscribed from the editor
  117.89 -        if (myEditorListener == null) {
  117.90 -            return;
  117.91 -        }
  117.92 -        
  117.93 -        Document doc = myEditor.getDocument();
  117.94 -        if (doc == null && myDocumentListener != null) {
  117.95 -            assert myDocument != null;
  117.96 -            myDocument.removeDocumentListener(myDocumentListener);
  117.97 -            myDocument = null;
  117.98 -            myDocumentListener = null;
  117.99 -        } else if (doc != null && myDocumentListener == null) {
 117.100 -            assert myDocument == null;
 117.101 -            myDocument = doc;
 117.102 -            myDocumentListener = new EditorDocumentListener();
 117.103 -            myDocument.addDocumentListener(myDocumentListener);
 117.104 -        }
 117.105 -    }
 117.106 -    
 117.107 -    private class EditorListener implements PropertyChangeListener {
 117.108 -        public void propertyChange(PropertyChangeEvent evt) {
 117.109 -            //TODO:find out why this property is never changed so this
 117.110 -            //handler in fact is never executed and we are still
 117.111 -            //listening on the Document changes while the editor could
 117.112 -            //be already closed.
 117.113 -            if (EditorCookie.Observable.PROP_DOCUMENT.
 117.114 -                    equals(evt.getPropertyName()))
 117.115 -            {
 117.116 -                smartDocSubscribe();
 117.117 -            } else if (EditorCookie.Observable.PROP_OPENED_PANES.
 117.118 -                    equals(evt.getPropertyName()))
 117.119 -            {
 117.120 -                smartDocSubscribe();
 117.121 -            }
 117.122 -        }
 117.123 -    }
 117.124 -    
 117.125 -    private class EditorDocumentListener implements DocumentListener {
 117.126 -        private RequestProcessor.Task task;
 117.127 -        
 117.128 -        public void insertUpdate(DocumentEvent e) {
 117.129 -            fireChangeEvent();
 117.130 -        }
 117.131 -
 117.132 -        public void removeUpdate(DocumentEvent e) {
 117.133 -            fireChangeEvent();
 117.134 -        }
 117.135 -
 117.136 -        public void changedUpdate(DocumentEvent e) {
 117.137 -            fireChangeEvent();
 117.138 -        }
 117.139 -        
 117.140 -        private void fireChangeEvent() {
 117.141 -            if (task != null) {
 117.142 -                // cancel old task
 117.143 -                task.cancel();
 117.144 -                task = null;
 117.145 -            }
 117.146 -            
 117.147 -            final PropertyChangeListener outerListener = myOuterListener;
 117.148 -            
 117.149 -            if (outerListener == null) {
 117.150 -                return;
 117.151 -            }
 117.152 -            
 117.153 -            task = RequestProcessor.getDefault().post(new Runnable () {
 117.154 -                public void run () {
 117.155 -                    outerListener.propertyChange(new PropertyChangeEvent(
 117.156 -                            myEditor, null, null, null));
 117.157 -                }
 117.158 -            }, 1000);
 117.159 -        }
 117.160 -    }
 117.161 -}
   118.1 --- a/bpel.debugger.ui/src/org/netbeans/modules/bpel/debugger/ui/output/BpelOutputView.java	Fri Dec 29 11:53:50 2006 +0000
   118.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
   118.3 @@ -1,142 +0,0 @@
   118.4 -/*
   118.5 - * The contents of this file are subject to the terms of the Common Development
   118.6 - * and Distribution License (the License). You may not use this file except in
   118.7 - * compliance with the License.
   118.8 - *
   118.9 - * You can obtain a copy of the License at http://www.netbeans.org/cddl.html
  118.10 - * or http://www.netbeans.org/cddl.txt.
  118.11 -
  118.12 - * When distributing Covered Code, include this CDDL Header Notice in each file
  118.13 - * and include the License file at http://www.netbeans.org/cddl.txt.
  118.14 - * If applicable, add the following below the CDDL Header, with the fields
  118.15 - * enclosed by brackets [] replaced by your own identifying information:
  118.16 - * "Portions Copyrighted [year] [name of copyright owner]"
  118.17 - *
  118.18 - * The Original Software is NetBeans. The Initial Developer of the Original
  118.19 - * Software is Sun Microsystems, Inc. Portions Copyright 1997-2006 Sun
  118.20 - * Microsystems, Inc. All Rights Reserved.
  118.21 - */
  118.22 -
  118.23 -package org.netbeans.modules.bpel.debugger.ui.output;
  118.24 -
  118.25 -import java.awt.EventQueue;
  118.26 -import java.text.DateFormat;
  118.27 -import java.text.SimpleDateFormat;
  118.28 -import java.util.Date;
  118.29 -
  118.30 -import org.openide.util.NbBundle;
  118.31 -import org.openide.windows.IOProvider;
  118.32 -import org.openide.windows.InputOutput;
  118.33 -import org.openide.windows.OutputWriter;
  118.34 -import org.openide.windows.WindowManager;
  118.35 -import org.openide.windows.TopComponent;
  118.36 -
  118.37 -import org.netbeans.modules.bpel.debugger.api.Tracer;
  118.38 -
  118.39 -/**
  118.40 - * @author Vladimir Yaroslavskiy
  118.41 - * @version 2005.10.14
  118.42 - */
  118.43 -public class BpelOutputView implements Tracer {
  118.44 -
  118.45 -    BpelOutputView(String name) {
  118.46 -//System.out.println();
  118.47 -//System.out.println("INIT TRACER: " + name);
  118.48 -        
  118.49 -        myDateFormat = new SimpleDateFormat("HH:mm:ss"); // NOI18N
  118.50 -        final String title;
  118.51 -
  118.52 -        if (name == null) {
  118.53 -           title = NbBundle.getMessage(BpelOutputView.class,
  118.54 -              "CTL_DebuggerConsoleName"); // NOI18N
  118.55 -        } else {
  118.56 -           title = NbBundle.getMessage(BpelOutputView.class,
  118.57 -              "CTL_DebuggerConsole", name); // NOI18N
  118.58 -        }
  118.59 -        
  118.60 -        if (EventQueue.isDispatchThread()) {
  118.61 -            prepareOutput(title);
  118.62 -        } else {
  118.63 -            EventQueue.invokeLater(new Runnable() {
  118.64 -                public void run() {
  118.65 -                    prepareOutput(title);
  118.66 -                }
  118.67 -            });
  118.68 -        }
  118.69 -        
  118.70 -    }
  118.71 -    
  118.72 -    /**{@inheritDoc}*/
  118.73 -    public void println(final String message) {
  118.74 -        if (EventQueue.isDispatchThread()) {
  118.75 -            myOutputWriter.println(myDateFormat.format(new Date())+" "+message); // NOI18N
  118.76 -        } else {
  118.77 -            EventQueue.invokeLater(new Runnable() {
  118.78 -                public void run() {
  118.79 -                    myOutputWriter.println(myDateFormat.format(new Date())+" "+message); // NOI18N
  118.80 -                }
  118.81 -            });
  118.82 -        }
  118.83 -    }
  118.84 -    
  118.85 -    /**{@inheritDoc}*/
  118.86 -    public void println(final Throwable exception) {
  118.87 -        if (EventQueue.isDispatchThread()) {
  118.88 -            exception.printStackTrace(myOutputWriter);
  118.89 -        } else {
  118.90 -            EventQueue.invokeLater(new Runnable() {
  118.91 -                public void run() {
  118.92 -                    exception.printStackTrace(myOutputWriter);
  118.93 -                }
  118.94 -            });
  118.95 -        }
  118.96 -    }
  118.97 -    
  118.98 -    /**{@inheritDoc}*/
  118.99 -    public void println(String message, Throwable exception) {
 118.100 -        println(message);
 118.101 -        println(exception);
 118.102 -    }
 118.103 -    
 118.104 -    /**{@inheritDoc}*/
 118.105 -    public void debug(String message) {
 118.106 -        if (ourEnabled) {
 118.107 -            println(message);
 118.108 -        }
 118.109 -    }
 118.110 -    
 118.111 -    /**{@inheritDoc}*/
 118.112 -    public void debug(Throwable exception) {
 118.113 -        if (ourEnabled) {
 118.114 -            println(exception);
 118.115 -        }
 118.116 -    }
 118.117 -    
 118.118 -    /**{@inheritDoc}*/
 118.119 -    public void debug(String message, Throwable exception) {
 118.120 -        if (ourEnabled) {
 118.121 -            println(message, exception);
 118.122 -        }
 118.123 -    }
 118.124 -    
 118.125 -    private void prepareOutput(String title) {
 118.126 -        TopComponent topComponent =
 118.127 -            WindowManager.getDefault().findTopComponent("output"); // NOI18N
 118.128 -        
 118.129 -        if (topComponent != null) {
 118.130 -            topComponent.open();
 118.131 -            topComponent.requestActive();
 118.132 -        }
 118.133 -        
 118.134 -        InputOutput inputOutput = IOProvider.getDefault().getIO(title, false);
 118.135 -        inputOutput.setFocusTaken(false);
 118.136 -        inputOutput.select();
 118.137 -        myOutputWriter = inputOutput.getOut();
 118.138 -    }
 118.139 -
 118.140 -    private DateFormat myDateFormat;
 118.141 -    private OutputWriter myOutputWriter;
 118.142 -    private static boolean ourEnabled =
 118.143 -      System.getProperty("org.netbeans.modules.bpel.debugger.debug") // NOI18N
 118.144 -        != null;
 118.145 -}
   119.1 --- a/bpel.debugger.ui/src/org/netbeans/modules/bpel/debugger/ui/output/BpelOutputViewFactory.java	Fri Dec 29 11:53:50 2006 +0000
   119.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
   119.3 @@ -1,43 +0,0 @@
   119.4 -/*
   119.5 - * The contents of this file are subject to the terms of the Common Development
   119.6 - * and Distribution License (the License). You may not use this file except in
   119.7 - * compliance with the License.
   119.8 - *
   119.9 - * You can obtain a copy of the License at http://www.netbeans.org/cddl.html
  119.10 - * or http://www.netbeans.org/cddl.txt.
  119.11 -
  119.12 - * When distributing Covered Code, include this CDDL Header Notice in each file
  119.13 - * and include the License file at http://www.netbeans.org/cddl.txt.
  119.14 - * If applicable, add the following below the CDDL Header, with the fields
  119.15 - * enclosed by brackets [] replaced by your own identifying information:
  119.16 - * "Portions Copyrighted [year] [name of copyright owner]"
  119.17 - *
  119.18 - * The Original Software is NetBeans. The Initial Developer of the Original
  119.19 - * Software is Sun Microsystems, Inc. Portions Copyright 1997-2006 Sun
  119.20 - * Microsystems, Inc. All Rights Reserved.
  119.21 - */
  119.22 -
  119.23 -package org.netbeans.modules.bpel.debugger.ui.output;
  119.24 -
  119.25 -import org.netbeans.api.debugger.Session;
  119.26 -import org.netbeans.modules.bpel.debugger.api.Tracer;
  119.27 -import org.netbeans.modules.bpel.debugger.api.TracerFactory;
  119.28 -
  119.29 -/**
  119.30 - * @author Vladimir Yaroslavskiy
  119.31 - * @version 2005.11.29
  119.32 - */
  119.33 -public class BpelOutputViewFactory implements TracerFactory {
  119.34 -
  119.35 -    /**{@inheritDoc}*/
  119.36 -    public Tracer getTracer(Session session) {
  119.37 -//System.out.println();
  119.38 -//System.out.println("GET TRACER: " + session);
  119.39 -        String name = null;
  119.40 -
  119.41 -        if (session != null) {
  119.42 -           name = session.getName();
  119.43 -        }
  119.44 -        return new BpelOutputView(name);
  119.45 -    }
  119.46 -}
   120.1 --- a/bpel.debugger.ui/src/org/netbeans/modules/bpel/debugger/ui/output/Bundle.properties	Fri Dec 29 11:53:50 2006 +0000
   120.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
   120.3 @@ -1,22 +0,0 @@
   120.4 -#
   120.5 -# The contents of this file are subject to the terms of the Common Development
   120.6 -# and Distribution License (the License). You may not use this file except in
   120.7 -# compliance with the License.
   120.8 -#
   120.9 -# You can obtain a copy of the License at http://www.netbeans.org/cddl.html
  120.10 -# or http://www.netbeans.org/cddl.txt.
  120.11 -#
  120.12 -# When distributing Covered Code, include this CDDL Header Notice in each file
  120.13 -# and include the License file at http://www.netbeans.org/cddl.txt.
  120.14 -# If applicable, add the following below the CDDL Header, with the fields
  120.15 -# enclosed by brackets [] replaced by your own identifying information:
  120.16 -# "Portions Copyrighted [year] [name of copyright owner]"
  120.17 -#
  120.18 -# The Original Software is NetBeans. The Initial Developer of the Original
  120.19 -# Software is Sun Microsystems, Inc. Portions Copyright 1997-2006 Sun
  120.20 -# Microsystems, Inc. All Rights Reserved.
  120.21 -
  120.22 -# BpelOutputView
  120.23 -# {0} - session name
  120.24 -CTL_DebuggerConsole=BPEL Debugger Console ({0})
  120.25 -CTL_DebuggerConsoleName=BPEL Debugger Console
   121.1 --- a/bpel.debugger.ui/src/org/netbeans/modules/bpel/debugger/ui/process/Bundle.properties	Fri Dec 29 11:53:50 2006 +0000
   121.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
   121.3 @@ -1,41 +0,0 @@
   121.4 -#
   121.5 -# The contents of this file are subject to the terms of the Common Development
   121.6 -# and Distribution License (the License). You may not use this file except in
   121.7 -# compliance with the License.
   121.8 -#
   121.9 -# You can obtain a copy of the License at http://www.netbeans.org/cddl.html
  121.10 -# or http://www.netbeans.org/cddl.txt.
  121.11 -#
  121.12 -# When distributing Covered Code, include this CDDL Header Notice in each file
  121.13 -# and include the License file at http://www.netbeans.org/cddl.txt.
  121.14 -# If applicable, add the following below the CDDL Header, with the fields
  121.15 -# enclosed by brackets [] replaced by your own identifying information:
  121.16 -# "Portions Copyrighted [year] [name of copyright owner]"
  121.17 -#
  121.18 -# The Original Software is NetBeans. The Initial Developer of the Original
  121.19 -# Software is Sun Microsystems, Inc. Portions Copyright 1997-2006 Sun
  121.20 -# Microsystems, Inc. All Rights Reserved.
  121.21 -
  121.22 -# BpelProcessActionProvider
  121.23 -CTL_Process_Action_Resume=Resume
  121.24 -CTL_Process_Action_Make_Current=Make Current
  121.25 -
  121.26 -# BpelProcessView
  121.27 -CTL_Process_Column_Name=Name
  121.28 -CTL_Process_Column_Name_Tooltip=Process's name
  121.29 -CTL_Process_State_Unknown=Unknown
  121.30 -CTL_Process_State_Running=Running
  121.31 -CTL_Process_State_Completed=Completed
  121.32 -CTL_Process_State_Failed=Failed
  121.33 -CTL_Process_State_Suspended=Suspended
  121.34 -CTL_Process_State_Terminated=Terminated
  121.35 -
  121.36 -# BpelProcessView
  121.37 -CTL_Process_View=BPEL Process Instances
  121.38 -CTL_Process_View_Tooltip=BPEL Process Instances
  121.39 -
  121.40 -# BpelProcessColumn
  121.41 -CTL_Process_Column_State=State
  121.42 -CTL_Process_Column_State_Tooltip=State of process instance
  121.43 -CTL_Process_Column_Suspended=Suspended
  121.44 -CTL_Process_Column_Suspended_Tooltip=Is process instance suspended
   122.1 --- a/bpel.debugger.ui/src/org/netbeans/modules/bpel/debugger/ui/resources/Bundle.properties	Fri Dec 29 11:53:50 2006 +0000
   122.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
   122.3 @@ -1,26 +0,0 @@
   122.4 -#
   122.5 -# The contents of this file are subject to the terms of the Common Development
   122.6 -# and Distribution License (the License). You may not use this file except in
   122.7 -# compliance with the License.
   122.8 -#
   122.9 -# You can obtain a copy of the License at http://www.netbeans.org/cddl.html
  122.10 -# or http://www.netbeans.org/cddl.txt.
  122.11 -#
  122.12 -# When distributing Covered Code, include this CDDL Header Notice in each file
  122.13 -# and include the License file at http://www.netbeans.org/cddl.txt.
  122.14 -# If applicable, add the following below the CDDL Header, with the fields
  122.15 -# enclosed by brackets [] replaced by your own identifying information:
  122.16 -# "Portions Copyrighted [year] [name of copyright owner]"
  122.17 -#
  122.18 -# The Original Software is NetBeans. The Initial Developer of the Original
  122.19 -# Software is Sun Microsystems, Inc. Portions Copyright 1997-2006 Sun
  122.20 -# Microsystems, Inc. All Rights Reserved.
  122.21 -
  122.22 -# manifest
  122.23 -OpenIDE-Module-Name=BPEL Debugger UI
  122.24 -OpenIDE-Module-Display-Category=Service-Oriented Architecture
  122.25 -OpenIDE-Module-Short-Description=Enables debugging on BPEL files.
  122.26 -OpenIDE-Module-Long-Description=The BPEL Debugger module allows you to debug BPEL files.
  122.27 -
  122.28 -# layer
  122.29 -Menu/Window/Debug/BPEL=B&PEL
   123.1 --- a/bpel.debugger.ui/src/org/netbeans/modules/bpel/debugger/ui/resources/layer.xml	Fri Dec 29 11:53:50 2006 +0000
   123.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
   123.3 @@ -1,108 +0,0 @@
   123.4 -<?xml version="1.0"?>
   123.5 -<!--
   123.6 -The contents of this file are subject to the terms of the Common Development
   123.7 -and Distribution License (the License). You may not use this file except in
   123.8 -compliance with the License.
   123.9 -
  123.10 - You can obtain a copy of the License at http://www.netbeans.org/cddl.html
  123.11 -or http://www.netbeans.org/cddl.txt.
  123.12 -
  123.13 -When distributing Covered Code, include this CDDL Header Notice in each file
  123.14 -and include the License file at http://www.netbeans.org/cddl.txt.
  123.15 -If applicable, add the following below the CDDL Header, with the fields
  123.16 -enclosed by brackets [] replaced by your own identifying information:
  123.17 -"Portions Copyrighted [year] [name of copyright owner]"
  123.18 -
  123.19 - The Original Software is NetBeans. The Initial Developer of the Original
  123.20 -Software is Sun Microsystems, Inc. Portions Copyright 1997-2006 Sun
  123.21 - Microsystems, Inc. All Rights Reserved.
  123.22 --->
  123.23 -<!DOCTYPE filesystem PUBLIC "-//NetBeans//DTD Filesystem 1.0//EN" "http://www.netbeans.org/dtds/filesystem-1_0.dtd">
  123.24 -<filesystem>
  123.25 -    <folder name="Actions">
  123.26 -        <folder name="Window">
  123.27 -            <folder name="Debug">
  123.28 -                <folder name="BPEL">
  123.29 -                    <file name="org-netbeans-modules-bpel-debugger-ui-action-Variable.instance"/>
  123.30 -                    <file name="org-netbeans-modules-bpel-debugger-ui-action-Process.instance"/>
  123.31 -                    <file name="org-netbeans-modules-bpel-debugger-ui-action-Console.instance"/>
  123.32 -                </folder>
  123.33 -            </folder>
  123.34 -        </folder>
  123.35 -    </folder>
  123.36 -
  123.37 -    <folder name="Menu">
  123.38 -        <folder name="Window">
  123.39 -            <folder name="Debug">
  123.40 -                <folder name="BPEL">
  123.41 -                    <attr name="SystemFileSystem.localizingBundle" stringvalue="org.netbeans.modules.bpel.debugger.ui.resources.Bundle"/>
  123.42 -                    <file name="org-netbeans-modules-bpel-debugger-ui-action-Variable.shadow">
  123.43 -                        <attr name="originalFile" stringvalue="Actions/Window/Debug/BPEL/org-netbeans-modules-bpel-debugger-ui-action-Variable.instance"/>
  123.44 -                    </file>
  123.45 -                    <attr name="org-netbeans-modules-bpel-debugger-ui-action-Variable.shadow/org-netbeans-modules-bpel-debugger-ui-action-Process.shadow" boolvalue="true"/>
  123.46 -                    <file name="org-netbeans-modules-bpel-debugger-ui-action-Process.shadow">
  123.47 -                        <attr name="originalFile" stringvalue="Actions/Window/Debug/BPEL/org-netbeans-modules-bpel-debugger-ui-action-Process.instance"/>
  123.48 -                    </file>
  123.49 -                    <attr name="org-netbeans-modules-bpel-debugger-ui-action-Process.shadow/org-netbeans-modules-bpel-debugger-ui-action-Console.shadow" boolvalue="true"/>
  123.50 -                    <file name="org-netbeans-modules-bpel-debugger-ui-action-Console.shadow">
  123.51 -                        <attr name="originalFile" stringvalue="Actions/Window/Debug/BPEL/org-netbeans-modules-bpel-debugger-ui-action-Console.instance"/>
  123.52 -                    </file>
  123.53 -                    <attr name="org-netbeans-modules-bpel-debugger-ui-action-Console.shadow/org-netbeans-modules-bpel-debugger-ui-action-Breakpoints.shadow" boolvalue="true"/>
  123.54 -                    <file name="org-netbeans-modules-bpel-debugger-ui-action-Breakpoints.shadow">
  123.55 -                        <attr name="originalFile" stringvalue="Actions/Window/Debug/org-netbeans-modules-debugger-ui-actions-BreakpointsViewAction.instance"/>
  123.56 -                    </file>
  123.57 -                    <attr name="org-netbeans-modules-bpel-debugger-ui-action-Breakpoints.shadow/org-netbeans-modules-bpel-debugger-ui-action-Sessions.shadow" boolvalue="true"/>
  123.58 -                    <file name="org-netbeans-modules-bpel-debugger-ui-action-Sessions.shadow">
  123.59 -                        <attr name="originalFile" stringvalue="Actions/Window/Debug/org-netbeans-modules-debugger-ui-actions-SessionsViewAction.instance"/>
  123.60 -                    </file>
  123.61 -                    <file name="org-netbeans-modules-debugger-ui-actions-WatchesViewAction.shadow">
  123.62 -                      <attr name="originalFile" stringvalue="Actions/Window/Debug/org-netbeans-modules-debugger-ui-actions-WatchesViewAction.instance"/>
  123.63 -                    </file>
  123.64 -                    <attr name="org-netbeans-modules-bpel-debugger-ui-action-Breakpoints.shadow/org-netbeans-modules-debugger-ui-actions-WatchesViewAction.shadow" boolvalue="true" />
  123.65 -                </folder>
  123.66 -            </folder>
  123.67 -        </folder>
  123.68 -    </folder>
  123.69 -
  123.70 -    <folder name="Shortcuts">
  123.71 -        <file name="SO-0.shadow">
  123.72 -            <attr name="originalFile" stringvalue="Actions/Window/Debug/BPEL/org-netbeans-modules-bpel-debugger-ui-action-Variable.instance"/>
  123.73 -        </file>
  123.74 -        <file name="SO-I.shadow">
  123.75 -            <attr name="originalFile" stringvalue="Actions/Window/Debug/BPEL/org-netbeans-modules-bpel-debugger-ui-action-Process.instance"/>
  123.76 -        </file>
  123.77 -        <file name="SO-C.shadow">
  123.78 -            <attr name="originalFile" stringvalue="Actions/Window/Debug/BPEL/org-netbeans-modules-bpel-debugger-ui-action-Console.instance"/>
  123.79 -        </file>
  123.80 -    </folder>
  123.81 -
  123.82 -    <folder name="Windows2">
  123.83 -        <folder name="Components">
  123.84 -            <file name="BpelVariablesView.settings" url="BpelVariablesView.settings"/>
  123.85 -            <file name="ProcessView.settings" url="process.settings"/>
  123.86 -        </folder>
  123.87 -
  123.88 -        <folder name="Modes">
  123.89 -
  123.90 -            <folder name="debugger">
  123.91 -                <file name="BpelVariablesView.wstcref" url="BpelVariablesView.wstcref"/>
  123.92 -                <attr name="BpelVariablesView.wstcref/ProcessView.wstcref" boolvalue="true"/>
  123.93 -                <file name="ProcessView.wstcref" url="process.wstcref"/>
  123.94 -            </folder>
  123.95 -        </folder>
  123.96 -        
  123.97 -        <folder name="Groups">
  123.98 -            <folder name="debugger">
  123.99 -                <file name="BpelVariablesView.wstcgrp" url="BpelVariablesView.wstcgrp"/>
 123.100 -                <file name="ProcessView.wstcgrp" url="process.wstcgrp"/>
 123.101 -            </folder>
 123.102 -        </folder>
 123.103 -    </folder>
 123.104 -    
 123.105 -    <folder name="BPELProjectDebuggerAction">
 123.106 -        <file name="Action">
 123.107 -            <attr name="Action" stringvalue="org.netbeans.modules.bpel.debugger.ui.action.AttachDebuggerAction"/>
 123.108 -        </file>
 123.109 -    </folder> 
 123.110 -    
 123.111 -</filesystem>
   124.1 --- a/bpel.debugger.ui/src/org/netbeans/modules/bpel/debugger/ui/resources/process.settings	Fri Dec 29 11:53:50 2006 +0000
   124.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
   124.3 @@ -1,9 +0,0 @@
   124.4 -<?xml version="1.0"?>
   124.5 -<!DOCTYPE settings PUBLIC "-//NetBeans//DTD Session settings 1.0//EN" "http://www.netbeans.org/dtds/sessionsettings-1_0.dtd">
   124.6 -
   124.7 -<settings version="1.0">
   124.8 -    <module name="org.netbeans.modules.bpel.debugger.ui/1" spec="1.0"/>
   124.9 -    <instanceof class="org.openide.explorer.ExplorerManager$Provider"/>
  124.10 -    <instanceof class="org.openide.windows.TopComponent"/>
  124.11 -    <instance class="org.netbeans.modules.bpel.debugger.ui.process.BpelProcessTopComponent"/>
  124.12 -</settings>
   125.1 --- a/bpel.debugger.ui/src/org/netbeans/modules/bpel/debugger/ui/resources/process.wstcgrp	Fri Dec 29 11:53:50 2006 +0000
   125.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
   125.3 @@ -1,8 +0,0 @@
   125.4 -<?xml version="1.0" encoding="UTF-8" ?>
   125.5 -<!DOCTYPE tc-group PUBLIC "-//NetBeans//DTD Top Component in Group Properties 2.0//EN" "http://www.netbeans.org/dtds/tc-group2_0.dtd">
   125.6 -
   125.7 -<tc-group version="2.0">
   125.8 -    <module name="org.netbeans.modules.bpel.debugger.ui/1" spec="1.0"/>
   125.9 -    <tc-id id="ProcessView"/>
  125.10 -    <open-close-behavior open="true" close="true"/>
  125.11 -</tc-group>
   126.1 --- a/bpel.debugger.ui/src/org/netbeans/modules/bpel/debugger/ui/resources/process.wstcref	Fri Dec 29 11:53:50 2006 +0000
   126.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
   126.3 @@ -1,7 +0,0 @@
   126.4 -<?xml version="1.0" encoding="UTF-8" ?>
   126.5 -<!DOCTYPE tc-ref PUBLIC "-//NetBeans//DTD Top Component in Mode Properties 2.0//EN" "http://www.netbeans.org/dtds/tc-ref2_0.dtd">
   126.6 -
   126.7 -<tc-ref version="2.0">
   126.8 -    <tc-id id="ProcessView"/>
   126.9 -    <state opened="false"/>
  126.10 -</tc-ref>
   127.1 --- a/bpel.debugger.ui/src/org/netbeans/modules/bpel/debugger/ui/session/BpelSessionView.java	Fri Dec 29 11:53:50 2006 +0000
   127.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
   127.3 @@ -1,150 +0,0 @@
   127.4 -/*
   127.5 - * The contents of this file are subject to the terms of the Common Development
   127.6 - * and Distribution License (the License). You may not use this file except in
   127.7 - * compliance with the License.
   127.8 - *
   127.9 - * You can obtain a copy of the License at http://www.netbeans.org/cddl.html
  127.10 - * or http://www.netbeans.org/cddl.txt.
  127.11 -
  127.12 - * When distributing Covered Code, include this CDDL Header Notice in each file
  127.13 - * and include the License file at http://www.netbeans.org/cddl.txt.
  127.14 - * If applicable, add the following below the CDDL Header, with the fields
  127.15 - * enclosed by brackets [] replaced by your own identifying information:
  127.16 - * "Portions Copyrighted [year] [name of copyright owner]"
  127.17 - *
  127.18 - * The Original Software is NetBeans. The Initial Developer of the Original
  127.19 - * Software is Sun Microsystems, Inc. Portions Copyright 1997-2006 Sun
  127.20 - * Microsystems, Inc. All Rights Reserved.
  127.21 - */
  127.22 -
  127.23 -package org.netbeans.modules.bpel.debugger.ui.session;
  127.24 -
  127.25 -import java.beans.PropertyChangeEvent;
  127.26 -import java.beans.PropertyChangeListener;
  127.27 -import java.util.Vector;
  127.28 -import org.netbeans.api.debugger.DebuggerEngine;
  127.29 -import org.netbeans.api.debugger.Session;
  127.30 -import org.netbeans.modules.bpel.debugger.api.BpelDebugger;
  127.31 -import org.netbeans.spi.debugger.ContextProvider;
  127.32 -import org.netbeans.spi.debugger.ui.Constants;
  127.33 -import org.netbeans.spi.viewmodel.TableModel;
  127.34 -import org.netbeans.spi.viewmodel.ModelListener;
  127.35 -import org.netbeans.spi.viewmodel.UnknownTypeException;
  127.36 -import org.openide.util.NbBundle;
  127.37 -
  127.38 -/**
  127.39 - * @author Alexander Zgursky
  127.40 - */
  127.41 -public class BpelSessionView
  127.42 -        implements TableModel, Constants, PropertyChangeListener
  127.43 -{
  127.44 -    private Vector listeners = new Vector();
  127.45 -
  127.46 -    public BpelSessionView(ContextProvider contextProvider) {
  127.47 -        BpelDebugger debugger = (BpelDebugger) contextProvider.
  127.48 -            lookupFirst (null, BpelDebugger.class);
  127.49 -        debugger.addPropertyChangeListener(debugger.PROP_STATE, this);
  127.50 -    }
  127.51 -    
  127.52 -    private static String loc(String key) {
  127.53 -        return NbBundle.getBundle(BpelSessionView.class).getString(key);
  127.54 -    }
  127.55 -
  127.56 -    private static String getSessionState(Session s) {
  127.57 -        DebuggerEngine e = s.getCurrentEngine ();
  127.58 -        if (e == null) {
  127.59 -            return "";
  127.60 -        }
  127.61 -        BpelDebugger d = (BpelDebugger)e.lookupFirst(null, BpelDebugger.class);
  127.62 -        if (d != null) {
  127.63 -            switch (d.getState()) {
  127.64 -            case BpelDebugger.STATE_DISCONNECTED:
  127.65 -                return loc("MSG_Session_State_Disconnected"); // NOI18N
  127.66 -            case BpelDebugger.STATE_RUNNING:
  127.67 -                return loc("MSG_Session_State_Running"); // NOI18N
  127.68 -            case BpelDebugger.STATE_STARTING:
  127.69 -                return loc("MSG_Session_State_Starting"); // NOI18N
  127.70 -            }
  127.71 -        }
  127.72 -        return "";
  127.73 -    }
  127.74 -    
  127.75 -    //*********************
  127.76 -    // TableModel interface
  127.77 -    //*********************
  127.78 -
  127.79 -    public Object getValueAt(Object row, String columnID)
  127.80 -            throws UnknownTypeException
  127.81 -    {
  127.82 -        if (row instanceof Session) {
  127.83 -            if (columnID.equals (SESSION_STATE_COLUMN_ID)) {
  127.84 -                return getSessionState ((Session) row);
  127.85 -            } else if (columnID.equals (SESSION_LANGUAGE_COLUMN_ID)) {
  127.86 -                return row;
  127.87 -            } else if (columnID.equals (SESSION_HOST_NAME_COLUMN_ID)) {
  127.88 -                return ((Session) row).getLocationName ();
  127.89 -            }
  127.90 -        }
  127.91 -        throw new UnknownTypeException (row);
  127.92 -    }
  127.93 -    
  127.94 -    public boolean isReadOnly(Object row, String columnID)
  127.95 -            throws UnknownTypeException
  127.96 -    {
  127.97 -        if (row instanceof Session) {
  127.98 -            return true;
  127.99 -        }
 127.100 -        throw new UnknownTypeException (row);
 127.101 -    }
 127.102 -    
 127.103 -    public void setValueAt(Object row, String columnID, Object value) 
 127.104 -            throws UnknownTypeException
 127.105 -    {
 127.106 -        throw new UnknownTypeException (row);
 127.107 -    }
 127.108 -    
 127.109 -    //*********************************
 127.110 -    // PropertyChangeListener interface
 127.111 -    //*********************************
 127.112 -
 127.113 -    public void propertyChange(PropertyChangeEvent e) {
 127.114 -        fireTreeChanged();
 127.115 -        if (e.getNewValue().equals(BpelDebugger.STATE_DISCONNECTED)) {
 127.116 -            ((BpelDebugger)e.getSource()).removePropertyChangeListener(
 127.117 -                BpelDebugger.PROP_STATE, this);
 127.118 -        }
 127.119 -    }
 127.120 -    
 127.121 -    //*********************
 127.122 -    // Other public methods
 127.123 -    //*********************
 127.124 -
 127.125 -    /** 
 127.126 -     * Registers given listener.
 127.127 -     * 
 127.128 -     * @param l the listener to add
 127.129 -     */
 127.130 -    public void addModelListener(ModelListener l) {
 127.131 -        listeners.add(l);
 127.132 -    }
 127.133 -
 127.134 -    /** 
 127.135 -     * Unregisters given listener.
 127.136 -     *
 127.137 -     * @param l the listener to remove
 127.138 -     */
 127.139 -    public void removeModelListener (ModelListener l) {
 127.140 -        listeners.remove(l);
 127.141 -    }
 127.142 -    
 127.143 -    //****************
 127.144 -    // Private methods
 127.145 -    //****************
 127.146 -    
 127.147 -    private void fireTreeChanged() {
 127.148 -        Vector v = (Vector)listeners.clone();
 127.149 -        int  k = v.size();
 127.150 -        for (int i = 0; i < k; i++)
 127.151 -            ((ModelListener)v.get(i)).modelChanged(null);
 127.152 -    }
 127.153 -}
   128.1 --- a/bpel.debugger.ui/src/org/netbeans/modules/bpel/debugger/ui/session/Bundle.properties	Fri Dec 29 11:53:50 2006 +0000
   128.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
   128.3 @@ -1,22 +0,0 @@
   128.4 -#
   128.5 -# The contents of this file are subject to the terms of the Common Development
   128.6 -# and Distribution License (the License). You may not use this file except in
   128.7 -# compliance with the License.
   128.8 -#
   128.9 -# You can obtain a copy of the License at http://www.netbeans.org/cddl.html
  128.10 -# or http://www.netbeans.org/cddl.txt.
  128.11 -#
  128.12 -# When distributing Covered Code, include this CDDL Header Notice in each file
  128.13 -# and include the License file at http://www.netbeans.org/cddl.txt.
  128.14 -# If applicable, add the following below the CDDL Header, with the fields
  128.15 -# enclosed by brackets [] replaced by your own identifying information:
  128.16 -# "Portions Copyrighted [year] [name of copyright owner]"
  128.17 -#
  128.18 -# The Original Software is NetBeans. The Initial Developer of the Original
  128.19 -# Software is Sun Microsystems, Inc. Portions Copyright 1997-2006 Sun
  128.20 -# Microsystems, Inc. All Rights Reserved.
  128.21 -
  128.22 -# BpelSessionView
  128.23 -MSG_Session_State_Disconnected=Disconnected
  128.24 -MSG_Session_State_Running=Running
  128.25 -MSG_Session_State_Starting=Starting
   129.1 --- a/bpel.debugger.ui/src/org/netbeans/modules/bpel/debugger/ui/source/SourcePathImpl.java	Fri Dec 29 11:53:50 2006 +0000
   129.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
   129.3 @@ -1,58 +0,0 @@
   129.4 -/*
   129.5 - * The contents of this file are subject to the terms of the Common Development
   129.6 - * and Distribution License (the License). You may not use this file except in
   129.7 - * compliance with the License.
   129.8 - *
   129.9 - * You can obtain a copy of the License at http://www.netbeans.org/cddl.html
  129.10 - * or http://www.netbeans.org/cddl.txt.
  129.11 -
  129.12 - * When distributing Covered Code, include this CDDL Header Notice in each file
  129.13 - * and include the License file at http://www.netbeans.org/cddl.txt.
  129.14 - * If applicable, add the following below the CDDL Header, with the fields
  129.15 - * enclosed by brackets [] replaced by your own identifying information:
  129.16 - * "Portions Copyrighted [year] [name of copyright owner]"
  129.17 - *
  129.18 - * The Original Software is NetBeans. The Initial Developer of the Original
  129.19 - * Software is Sun Microsystems, Inc. Portions Copyright 1997-2006 Sun
  129.20 - * Microsystems, Inc. All Rights Reserved.
  129.21 - */
  129.22 -
  129.23 -package org.netbeans.modules.bpel.debugger.ui.source;
  129.24 -
  129.25 -import java.util.HashMap;
  129.26 -import java.util.Map;
  129.27 -import javax.xml.namespace.QName;
  129.28 -import org.netbeans.modules.bpel.debugger.api.BpelDebugger;
  129.29 -import org.netbeans.modules.bpel.debugger.api.SourcePath;
  129.30 -import org.netbeans.spi.debugger.ContextProvider;
  129.31 -
  129.32 -/**
  129.33 - *
  129.34 - * @author Alexander Zgursky
  129.35 - */
  129.36 -public class SourcePathImpl implements SourcePath {
  129.37 -    
  129.38 -    private ContextProvider          myLookupProvider;
  129.39 -    private BpelDebugger             myDebugger;
  129.40 -    
  129.41 -    private Map<QName, String>       mySourceMap =
  129.42 -            new HashMap<QName, String>();
  129.43 -
  129.44 -    /** Creates new instance of SourcePath.
  129.45 -     *
  129.46 -     * @param lookupProvider debugger context
  129.47 -     */
  129.48 -    public SourcePathImpl(ContextProvider lookupProvider) {
  129.49 -        myLookupProvider = lookupProvider;
  129.50 -        myDebugger = (BpelDebugger) lookupProvider.lookupFirst
  129.51 -                (null, BpelDebugger.class);
  129.52 -    }
  129.53 -    
  129.54 -    public synchronized String getURL(QName processQName) {
  129.55 -        return mySourceMap.get(processQName);
  129.56 -    }
  129.57 -
  129.58 -    public synchronized void setURL(QName processQName, String url) {
  129.59 -        mySourceMap.put(processQName, url);
  129.60 -    }
  129.61 -}
   130.1 --- a/bpel.debugger.ui/src/org/netbeans/modules/bpel/debugger/ui/util/Log.java	Fri Dec 29 11:53:50 2006 +0000
   130.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
   130.3 @@ -1,46 +0,0 @@
   130.4 -/*
   130.5 - * The contents of this file are subject to the terms of the Common Development
   130.6 - * and Distribution License (the License). You may not use this file except in
   130.7 - * compliance with the License.
   130.8 - *
   130.9 - * You can obtain a copy of the License at http://www.netbeans.org/cddl.html
  130.10 - * or http://www.netbeans.org/cddl.txt.
  130.11 -
  130.12 - * When distributing Covered Code, include this CDDL Header Notice in each file
  130.13 - * and include the License file at http://www.netbeans.org/cddl.txt.
  130.14 - * If applicable, add the following below the CDDL Header, with the fields
  130.15 - * enclosed by brackets [] replaced by your own identifying information:
  130.16 - * "Portions Copyrighted [year] [name of copyright owner]"
  130.17 - *
  130.18 - * The Original Software is NetBeans. The Initial Developer of the Original
  130.19 - * Software is Sun Microsystems, Inc. Portions Copyright 1997-2006 Sun
  130.20 - * Microsystems, Inc. All Rights Reserved.
  130.21 - */
  130.22 -
  130.23 -package org.netbeans.modules.bpel.debugger.ui.util;
  130.24 -
  130.25 -/**
  130.26 - * @author Vladimir Yaroslavskiy
  130.27 - * @version 2005.10.14
  130.28 - */
  130.29 -public abstract class Log {
  130.30 -
  130.31 -    private Log () {}
  130.32 -
  130.33 -    /**{@inheritDoc}*/
  130.34 -    public static void out() {
  130.35 -        if (ENABLED) {
  130.36 -            System.out.println();
  130.37 -        }
  130.38 -    }
  130.39 -
  130.40 -    /**{@inheritDoc}*/
  130.41 -    public static void out(String message) {
  130.42 -        if (ENABLED) {
  130.43 -            System.out.println("*** " + message); // NOI18N
  130.44 -        }
  130.45 -    }
  130.46 -
  130.47 -    private static final boolean ENABLED = System.getProperty(
  130.48 -      "org.netbeans.modules.bpel.debugger.ui") != null; // NOI18N
  130.49 -}
   131.1 --- a/bpel.debugger.ui/src/org/netbeans/modules/bpel/debugger/ui/util/ModelUtil.java	Fri Dec 29 11:53:50 2006 +0000
   131.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
   131.3 @@ -1,193 +0,0 @@
   131.4 -/*
   131.5 - * The contents of this file are subject to the terms of the Common Development
   131.6 - * and Distribution License (the License). You may not use this file except in
   131.7 - * compliance with the License.
   131.8 - *
   131.9 - * You can obtain a copy of the License at http://www.netbeans.org/cddl.html
  131.10 - * or http://www.netbeans.org/cddl.txt.
  131.11 - 
  131.12 - * When distributing Covered Code, include this CDDL Header Notice in each file
  131.13 - * and include the License file at http://www.netbeans.org/cddl.txt.
  131.14 - * If applicable, add the following below the CDDL Header, with the fields
  131.15 - * enclosed by brackets [] replaced by your own identifying information:
  131.16 - * "Portions Copyrighted [year] [name of copyright owner]"
  131.17 - *
  131.18 - * The Original Software is NetBeans. The Initial Developer of the Original
  131.19 - * Software is Sun Microsystems, Inc. Portions Copyright 1997-2006 Sun
  131.20 - * Microsystems, Inc. All Rights Reserved.
  131.21 - */
  131.22 -
  131.23 -package org.netbeans.modules.bpel.debugger.ui.util;
  131.24 -
  131.25 -import java.io.IOException;
  131.26 -import java.util.concurrent.Callable;
  131.27 -import javax.swing.text.StyledDocument;
  131.28 -import org.netbeans.modules.bpel.debugger.api.EditorContextBridge;
  131.29 -import org.netbeans.modules.bpel.model.api.BpelEntity;
  131.30 -import org.netbeans.modules.bpel.model.api.BpelModel;
  131.31 -import org.netbeans.modules.bpel.model.api.support.UniqueId;
  131.32 -import org.netbeans.modules.bpel.model.spi.FindHelper;
  131.33 -import org.openide.text.NbDocument;
  131.34 -import org.openide.util.Lookup;
  131.35 -
  131.36 -/**
  131.37 - *
  131.38 - * @author Alexander Zgursky
  131.39 - */
  131.40 -public final class ModelUtil {
  131.41 -    private static FindHelper findHelper =
  131.42 -            (FindHelper)Lookup.getDefault().lookup(FindHelper.class);
  131.43 -    
  131.44 -    private ModelUtil() {
  131.45 -    }
  131.46 -    
  131.47 -    public static String getXpath(final UniqueId bpelEntityId) {
  131.48 -        final BpelModel model = bpelEntityId.getModel();
  131.49 -        
  131.50 -        try {
  131.51 -            model.sync();
  131.52 -        } catch (IOException ex) {
  131.53 -            return null;
  131.54 -        }
  131.55 -        
  131.56 -        
  131.57 -        class MyRunnable implements Runnable{
  131.58 -            private String result = null;
  131.59 -            
  131.60 -            public String getResult(){
  131.61 -                return this.result;
  131.62 -            }
  131.63 -            
  131.64 -            public void run() {
  131.65 -                if (!model.getState().equals(BpelModel.State.VALID)) {
  131.66 -                    return;
  131.67 -                }
  131.68 -                BpelEntity bpelEntity = model.getEntity(bpelEntityId);
  131.69 -                if (bpelEntity != null) {
  131.70 -                    result = EditorContextBridge.normalizeXpath(
  131.71 -                            findHelper.getXPath(bpelEntity));
  131.72 -                }
  131.73 -                
  131.74 -                
  131.75 -            }
  131.76 -        };
  131.77 -        
  131.78 -        MyRunnable r = new MyRunnable();
  131.79 -        
  131.80 -        model.invoke(r);
  131.81 -        
  131.82 -        return r.getResult();
  131.83 -    }
  131.84 -    
  131.85 -    public static UniqueId getBpelEntityId(
  131.86 -            final BpelModel model, final String xpath)
  131.87 -    {
  131.88 -        try {
  131.89 -            model.sync();
  131.90 -        } catch (IOException ex) {
  131.91 -            return null;
  131.92 -        }
  131.93 -        
  131.94 -        class MyRunnable implements Runnable{
  131.95 -            private UniqueId result = null;
  131.96 -            
  131.97 -            public UniqueId getResult(){
  131.98 -                return this.result;
  131.99 -            }
 131.100 -            
 131.101 -            public void run() {
 131.102 -                if (!model.getState().equals(BpelModel.State.VALID)) {
 131.103 -                    return;
 131.104 -                }
 131.105 -        
 131.106 -                BpelEntity[] entities = findHelper.findModelElements(model, xpath);
 131.107 -                if (entities.length == 1) {
 131.108 -                    result = entities[0].getUID();
 131.109 -                }
 131.110 -                
 131.111 -            }
 131.112 -        };
 131.113 -        
 131.114 -        MyRunnable r = new MyRunnable();
 131.115 -        
 131.116 -        model.invoke(r);
 131.117 -        
 131.118 -        return r.getResult();
 131.119 -    }
 131.120 -    
 131.121 -    public static UniqueId getBpelEntityId(
 131.122 -            final BpelModel model, final int offset)
 131.123 -    {
 131.124 -        try {
 131.125 -            model.sync();
 131.126 -        } catch (IOException ex) {
 131.127 -            return null;
 131.128 -        }
 131.129 -        
 131.130 -        
 131.131 -        class MyRunnable implements Runnable{
 131.132 -            private UniqueId result = null;
 131.133 -            
 131.134 -            public UniqueId getResult(){
 131.135 -                return this.result;
 131.136 -            }
 131.137 -            
 131.138 -            public void run() {
 131.139 -                if (!model.getState().equals(BpelModel.State.VALID)) {
 131.140 -                    return;
 131.141 -                }
 131.142 -                BpelEntity bpelEntity = model.findElement(offset);
 131.143 -                if (bpelEntity != null) {
 131.144 -                    result =  bpelEntity.getUID();
 131.145 -                }
 131.146 -                
 131.147 -            }
 131.148 -        };
 131.149 -        
 131.150 -        MyRunnable r = new MyRunnable();
 131.151 -        
 131.152 -        model.invoke(r);
 131.153 -        
 131.154 -        return r.getResult();
 131.155 -    }
 131.156 -    
 131.157 -    public static int getLineNumber(final UniqueId bpelEntityId) {
 131.158 -        final BpelModel model = bpelEntityId.getModel();
 131.159 -        
 131.160 -        try {
 131.161 -            model.sync();
 131.162 -        } catch (IOException ex) {
 131.163 -            return -1;
 131.164 -        }
 131.165 -        
 131.166 -        class MyRunnable implements Runnable{
 131.167 -            private int result = -1;
 131.168 -            
 131.169 -            public int getResult(){
 131.170 -                return this.result;
 131.171 -            }
 131.172 -            
 131.173 -            public void run() {
 131.174 -                if (!model.getState().equals(BpelModel.State.VALID)) {
 131.175 -                    return;
 131.176 -                }
 131.177 -                BpelEntity bpelEntity = model.getEntity(bpelEntityId);
 131.178 -                if (bpelEntity != null) {
 131.179 -                    
 131.180 -                    int offset = bpelEntity.findPosition();
 131.181 -                    
 131.182 -                    StyledDocument doc =(StyledDocument)model.getModelSource().getLookup().
 131.183 -                            lookup(StyledDocument.class);
 131.184 -                    
 131.185 -                    result =  NbDocument.findLineNumber(doc, offset) + 1;
 131.186 -                }
 131.187 -            }
 131.188 -        };
 131.189 -        
 131.190 -        MyRunnable r = new MyRunnable();
 131.191 -        
 131.192 -        model.invoke(r);
 131.193 -        
 131.194 -        return r.getResult();
 131.195 -    }
 131.196 -}
   132.1 --- a/bpel.debugger.ui/src/org/netbeans/modules/bpel/debugger/ui/variable/Bundle.properties	Fri Dec 29 11:53:50 2006 +0000
   132.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
   132.3 @@ -1,36 +0,0 @@
   132.4 -#
   132.5 -# The contents of this file are subject to the terms of the Common Development
   132.6 -# and Distribution License (the License). You may not use this file except in
   132.7 -# compliance with the License.
   132.8 -#
   132.9 -# You can obtain a copy of the License at http://www.netbeans.org/cddl.html
  132.10 -# or http://www.netbeans.org/cddl.txt.
  132.11 -#
  132.12 -# When distributing Covered Code, include this CDDL Header Notice in each file
  132.13 -# and include the License file at http://www.netbeans.org/cddl.txt.
  132.14 -# If applicable, add the following below the CDDL Header, with the fields
  132.15 -# enclosed by brackets [] replaced by your own identifying information:
  132.16 -# "Portions Copyrighted [year] [name of copyright owner]"
  132.17 -#
  132.18 -# The Original Software is NetBeans. The Initial Developer of the Original
  132.19 -# Software is Sun Microsystems, Inc. Portions Copyright 1997-2006 Sun
  132.20 -# Microsystems, Inc. All Rights Reserved.
  132.21 -
  132.22 -# BpelVariableView
  132.23 -CTL_Variables_View=BPEL Variables
  132.24 -CTL_Variables_View_Tooltip=BPEL Variables
  132.25 -
  132.26 -# BpelVariableColumn
  132.27 -CTL_Variable_Column_Name=Name
  132.28 -CTL_Variable_Column_Name_Tooltip=Variable's name
  132.29 -CTL_Variable_Column_Type=Type
  132.30 -CTL_Variable_Column_Type_Tooltip=Variable's type
  132.31 -CTL_Variable_Column_Value=Value
  132.32 -CTL_Variable_Column_Value_Tooltip=Variable's value
  132.33 -CTL_Variable_Column_To_String=As string
  132.34 -CTL_Variable_Column_To_String_Tooltip=Variable's value as string
  132.35 -
  132.36 -# BpelVariableCustomEditor
  132.37 -ACSD_BpelVariableCustomEditor=Editor for BPEL Variable values
  132.38 -ACS_EditorPane=Text:
  132.39 -ACSD_EditorPane=Enter the variable's value here
   133.1 --- a/bpel.debugger.ui/src/org/netbeans/modules/bpel/debugger/ui/watch/Bundle.properties	Fri Dec 29 11:53:50 2006 +0000
   133.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
   133.3 @@ -1,35 +0,0 @@
   133.4 -#
   133.5 -# The contents of this file are subject to the terms of the Common Development
   133.6 -# and Distribution License (the License). You may not use this file except in
   133.7 -# compliance with the License.
   133.8 -#
   133.9 -# You can obtain a copy of the License at http://www.netbeans.org/cddl.html
  133.10 -# or http://www.netbeans.org/cddl.txt.
  133.11 -#
  133.12 -# When distributing Covered Code, include this CDDL Header Notice in each file
  133.13 -# and include the License file at http://www.netbeans.org/cddl.txt.
  133.14 -# If applicable, add the following below the CDDL Header, with the fields
  133.15 -# enclosed by brackets [] replaced by your own identifying information:
  133.16 -# "Portions Copyrighted [year] [name of copyright owner]"
  133.17 -#
  133.18 -# The Original Software is NetBeans. The Initial Developer of the Original
  133.19 -# Software is Sun Microsystems, Inc. Portions Copyright 1997-2006 Sun
  133.20 -# Microsystems, Inc. All Rights Reserved.
  133.21 -
  133.22 -# BpelVariableColumn
  133.23 -CTL_Watch_Column_Name_Name=Name
  133.24 -
  133.25 -# WatchesActionsProvider
  133.26 -CTL_WatchAction_AddNew = New watch ...
  133.27 -CTL_WatchAction_DeleteAll = Delete All
  133.28 -CTL_WatchAction_Delete = Delete
  133.29 -CTL_WatchAction_Customize = Properties
  133.30 -CTL_Edit_Watch_Dialog_Title=Properties - {0}
  133.31 -CTL_New_Watch_Dialog_Title=New watch expression
  133.32 -
  133.33 -# Watch panel
  133.34 -CTL_Watch_Name=Watch Expression:
  133.35 -CTL_Watch_Name_Mnemonic=W
  133.36 -CTL_Watch_Title=New Watch
  133.37 -ACSD_CTL_Watch_Name=
  133.38 -ACSD_WatchPanel=
   134.1 --- a/bpel.debugger.ui/src/org/netbeans/modules/bpel/debugger/ui/watch/WatchesActionsProvider.java	Fri Dec 29 11:53:50 2006 +0000
   134.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
   134.3 @@ -1,166 +0,0 @@
   134.4 -/*
   134.5 - * The contents of this file are subject to the terms of the Common Development
   134.6 - * and Distribution License (the License). You may not use this file except in
   134.7 - * compliance with the License.
   134.8 - * 
   134.9 - * You can obtain a copy of the License at http://www.netbeans.org/cddl.html
  134.10 - * or http://www.netbeans.org/cddl.txt.
  134.11 - * 
  134.12 - * When distributing Covered Code, include this CDDL Header Notice in each file
  134.13 - * and include the License file at http://www.netbeans.org/cddl.txt.
  134.14 - * If applicable, add the following below the CDDL Header, with the fields
  134.15 - * enclosed by brackets [] replaced by your own identifying information:
  134.16 - * "Portions Copyrighted [year] [name of copyright owner]"
  134.17 - * 
  134.18 - * The Original Software is NetBeans. The Initial Developer of the Original
  134.19 - * Software is Sun Microsystems, Inc. Portions Copyright 1997-2006 Sun
  134.20 - * Microsystems, Inc. All Rights Reserved.
  134.21 - */
  134.22 -
  134.23 -package org.netbeans.modules.bpel.debugger.ui.watch;
  134.24 -
  134.25 -import java.awt.Dialog;
  134.26 -import java.awt.event.ActionEvent;
  134.27 -import java.util.*;
  134.28 -import javax.swing.*;
  134.29 -import javax.swing.KeyStroke;
  134.30 -import org.netbeans.api.debugger.DebuggerManager;
  134.31 -import org.netbeans.api.debugger.Watch;
  134.32 -
  134.33 -import org.netbeans.modules.bpel.debugger.api.BpelWatch;
  134.34 -import org.netbeans.spi.viewmodel.Models;
  134.35 -import org.netbeans.spi.viewmodel.TreeModel;
  134.36 -import org.netbeans.spi.viewmodel.NodeActionsProvider;
  134.37 -import org.netbeans.spi.viewmodel.ModelListener;
  134.38 -import org.netbeans.spi.viewmodel.UnknownTypeException;
  134.39 -import org.openide.util.NbBundle;
  134.40 -import org.openide.util.HelpCtx;
  134.41 -import org.openide.DialogDisplayer;
  134.42 -
  134.43 -
  134.44 -/**
  134.45 - * @author   Alexander Zgursky
  134.46 - */
  134.47 -public class WatchesActionsProvider implements NodeActionsProvider {    
  134.48 -    
  134.49 -    
  134.50 -    private static final Action NEW_WATCH_ACTION = new AbstractAction
  134.51 -        (NbBundle.getBundle(WatchesActionsProvider.class).getString("CTL_WatchAction_AddNew")) {
  134.52 -            public void actionPerformed (ActionEvent e) {
  134.53 -                newWatch ();
  134.54 -            }
  134.55 -    };
  134.56 -    private static final Action DELETE_ALL_ACTION = new AbstractAction 
  134.57 -        (NbBundle.getBundle(WatchesActionsProvider.class).getString("CTL_WatchAction_DeleteAll")) {
  134.58 -            public void actionPerformed (ActionEvent e) {
  134.59 -                DebuggerManager.getDebuggerManager ().removeAllWatches ();
  134.60 -            }
  134.61 -    };
  134.62 -    private static final Action DELETE_ACTION = Models.createAction (
  134.63 -        NbBundle.getBundle(WatchesActionsProvider.class).getString("CTL_WatchAction_Delete"),
  134.64 -        new Models.ActionPerformer () {
  134.65 -            public boolean isEnabled (Object node) {
  134.66 -                return true;
  134.67 -            }
  134.68 -            public void perform (Object[] nodes) {
  134.69 -                int i, k = nodes.length;
  134.70 -                for (i = 0; i < k; i++)
  134.71 -                    ((BpelWatch) nodes [i]).remove ();
  134.72 -            }
  134.73 -        },
  134.74 -        Models.MULTISELECTION_TYPE_ANY
  134.75 -    );
  134.76 -    static { 
  134.77 -        DELETE_ACTION.putValue (
  134.78 -            Action.ACCELERATOR_KEY,
  134.79 -            KeyStroke.getKeyStroke ("DELETE")
  134.80 -        );
  134.81 -    };
  134.82 -    private static final Action CUSTOMIZE_ACTION = Models.createAction (
  134.83 -        NbBundle.getBundle(WatchesActionsProvider.class).getString("CTL_WatchAction_Customize"),
  134.84 -        new Models.ActionPerformer () {
  134.85 -            public boolean isEnabled (Object node) {
  134.86 -                return true;
  134.87 -            }
  134.88 -            public void perform (Object[] nodes) {
  134.89 -                customize ((BpelWatch) nodes [0]);
  134.90 -            }
  134.91 -        },
  134.92 -        Models.MULTISELECTION_TYPE_EXACTLY_ONE
  134.93 -    );
  134.94 -    
  134.95 -    
  134.96 -    public Action[] getActions (Object node) throws UnknownTypeException {
  134.97 -        if (node == TreeModel.ROOT) 
  134.98 -            return new Action [] {
  134.99 -                NEW_WATCH_ACTION,
 134.100 -                null,
 134.101 -                DELETE_ALL_ACTION
 134.102 -            };
 134.103 -        if (node instanceof BpelWatch)
 134.104 -            return new Action [] {
 134.105 -                NEW_WATCH_ACTION,
 134.106 -                null,
 134.107 -                DELETE_ACTION,
 134.108 -                DELETE_ALL_ACTION,
 134.109 -                null,
 134.110 -                CUSTOMIZE_ACTION
 134.111 -            };
 134.112 -        throw new UnknownTypeException (node);
 134.113 -    }
 134.114 -    
 134.115 -    public void performDefaultAction (Object node) throws UnknownTypeException {
 134.116 -        if (node == TreeModel.ROOT) 
 134.117 -            return;
 134.118 -        if (node instanceof BpelWatch) {
 134.119 -            return;
 134.120 -        }
 134.121 -        throw new UnknownTypeException (node);
 134.122 -    }
 134.123 -
 134.124 -    public void addModelListener (ModelListener l) {
 134.125 -    }
 134.126 -
 134.127 -    public void removeModelListener (ModelListener l) {
 134.128 -    }
 134.129 -
 134.130 -    private static void customize (BpelWatch w) {
 134.131 -        //DebuggerManager.getDebuggerManager().getActionsManager().
 134.132 -        WatchPanel wp = new WatchPanel (w.getExpression ());
 134.133 -        JComponent panel = wp.getPanel ();
 134.134 -
 134.135 -        ResourceBundle bundle = NbBundle.getBundle (WatchesActionsProvider.class);
 134.136 -        org.openide.DialogDescriptor dd = new org.openide.DialogDescriptor (
 134.137 -            panel,
 134.138 -            java.text.MessageFormat.format(bundle.getString("CTL_Edit_Watch_Dialog_Title"), // NOI18N
 134.139 -                                           new Object [] { w.getExpression() })
 134.140 -        );
 134.141 -        dd.setHelpCtx (new HelpCtx ("debug.customize.watch"));
 134.142 -        Dialog dialog = DialogDisplayer.getDefault ().createDialog (dd);
 134.143 -        dialog.setVisible (true);
 134.144 -        dialog.dispose ();
 134.145 -
 134.146 -        if (dd.getValue () != org.openide.DialogDescriptor.OK_OPTION) return;
 134.147 -        if (panel.getClientProperty("WatchCanceled") != null) return ; //NOI18N
 134.148 -        w.setExpression (wp.getExpression ());
 134.149 -    }
 134.150 -
 134.151 -    private static void newWatch () {
 134.152 -        WatchPanel wp = new WatchPanel ("");
 134.153 -        JComponent panel = wp.getPanel ();
 134.154 -
 134.155 -        ResourceBundle bundle = NbBundle.getBundle (WatchesActionsProvider.class);
 134.156 -        org.openide.DialogDescriptor dd = new org.openide.DialogDescriptor (
 134.157 -            panel,
 134.158 -            bundle.getString ("CTL_New_Watch_Dialog_Title") // NOI18N
 134.159 -        );
 134.160 -        dd.setHelpCtx (new HelpCtx ("debug.new.watch"));
 134.161 -        Dialog dialog = DialogDisplayer.getDefault ().createDialog (dd);
 134.162 -        dialog.setVisible (true);
 134.163 -        dialog.dispose ();
 134.164 -
 134.165 -        if (dd.getValue () != org.openide.DialogDescriptor.OK_OPTION) return;
 134.166 -        if (panel.getClientProperty("WatchCanceled") != null) return ; //NOI18N
 134.167 -        DebuggerManager.getDebuggerManager ().createWatch (wp.getExpression ());
 134.168 -    }
 134.169 -}