diff options
Diffstat (limited to 'plugins/org.eclipse.tm.tcf.dsf.ui/src/org/eclipse/tm/internal/tcf')
8 files changed, 82 insertions, 82 deletions
diff --git a/plugins/org.eclipse.tm.tcf.dsf.ui/src/org/eclipse/tm/internal/tcf/dsf/ui/Activator.java b/plugins/org.eclipse.tm.tcf.dsf.ui/src/org/eclipse/tm/internal/tcf/dsf/ui/Activator.java index 9565d7ffe..ae7e7ec68 100644 --- a/plugins/org.eclipse.tm.tcf.dsf.ui/src/org/eclipse/tm/internal/tcf/dsf/ui/Activator.java +++ b/plugins/org.eclipse.tm.tcf.dsf.ui/src/org/eclipse/tm/internal/tcf/dsf/ui/Activator.java @@ -1,10 +1,10 @@ /******************************************************************************* * Copyright (c) 2007, 2008 Wind River Systems, Inc. and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * * Contributors: * Wind River Systems - initial API and implementation *******************************************************************************/ @@ -23,7 +23,7 @@ public class Activator extends AbstractUIPlugin { // The shared instance private static Activator plugin; - + /** * The constructor */ diff --git a/plugins/org.eclipse.tm.tcf.dsf.ui/src/org/eclipse/tm/internal/tcf/dsf/ui/AdapterFactory.java b/plugins/org.eclipse.tm.tcf.dsf.ui/src/org/eclipse/tm/internal/tcf/dsf/ui/AdapterFactory.java index 6be73513f..b48e7f9d0 100644 --- a/plugins/org.eclipse.tm.tcf.dsf.ui/src/org/eclipse/tm/internal/tcf/dsf/ui/AdapterFactory.java +++ b/plugins/org.eclipse.tm.tcf.dsf.ui/src/org/eclipse/tm/internal/tcf/dsf/ui/AdapterFactory.java @@ -1,10 +1,10 @@ /******************************************************************************* * Copyright (c) 2007, 2008 Wind River Systems, Inc. and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * * Contributors: * Wind River Systems - initial API and implementation *******************************************************************************/ @@ -68,7 +68,7 @@ public class AdapterFactory implements IAdapterFactory, DsfSession.SessionEndedL final TcfTerminateCommand terminate_command; final IDebugModelProvider debug_model_provider; final TCFDSFLaunch lunch; - //final BreakpointCommand breakpoint_command; + //final BreakpointCommand breakpoint_command; //final DsfMemoryBlockRetrieval memory_retrieval; SessionAdapterSet(DsfSession session, TCFDSFLaunch launch) { @@ -115,10 +115,10 @@ public class AdapterFactory implements IAdapterFactory, DsfSession.SessionEndedL lunch = launch; /* - * Registering the launch as an adapter, ensures that this launch, - * and debug model ID will be associated with all DMContexts from this - * session. - */ + * Registering the launch as an adapter, ensures that this launch, + * and debug model ID will be associated with all DMContexts from this + * session. + */ session.registerModelAdapter(ILaunch.class, lunch); } @@ -133,14 +133,14 @@ public class AdapterFactory implements IAdapterFactory, DsfSession.SessionEndedL session.unregisterModelAdapter(IStepReturnHandler.class); session.unregisterModelAdapter(ISuspendHandler.class); session.unregisterModelAdapter(IResumeHandler.class); - session.unregisterModelAdapter(ITerminateHandler.class); + session.unregisterModelAdapter(ITerminateHandler.class); step_into_command.dispose(); step_over_command.dispose(); step_return_command.dispose(); suspend_command.dispose(); resume_command.dispose(); terminate_command.dispose(); - } + } } private static final Class<?>[] adapter_list = { @@ -150,7 +150,7 @@ public class AdapterFactory implements IAdapterFactory, DsfSession.SessionEndedL ITerminateHandler.class }; - private static final Map<String,SessionAdapterSet> session_adapter_set_map = + private static final Map<String,SessionAdapterSet> session_adapter_set_map = Collections.synchronizedMap(new HashMap<String,SessionAdapterSet>()); public AdapterFactory() { @@ -178,13 +178,13 @@ public class AdapterFactory implements IAdapterFactory, DsfSession.SessionEndedL @SuppressWarnings("unchecked") public Object getAdapter(Object adaptableObject, Class adapterType) { - if (!(adaptableObject instanceof TCFDSFLaunch)) return null; + if (!(adaptableObject instanceof TCFDSFLaunch)) return null; TCFDSFLaunch launch = (TCFDSFLaunch)adaptableObject; // Find the correct set of adapters based on the launch session-ID. If not found - // it means that we have a new launch and new session, and we have to create a - // new set of adapters. + // it means that we have a new launch and new session, and we have to create a + // new set of adapters. DsfSession session = launch.getSession(); if (session == null) return null; @@ -232,7 +232,7 @@ public class AdapterFactory implements IAdapterFactory, DsfSession.SessionEndedL session_adapter_set_map.remove(id).dispose(); } } - } + } } } } diff --git a/plugins/org.eclipse.tm.tcf.dsf.ui/src/org/eclipse/tm/internal/tcf/dsf/ui/actions/TcfTerminateCommand.java b/plugins/org.eclipse.tm.tcf.dsf.ui/src/org/eclipse/tm/internal/tcf/dsf/ui/actions/TcfTerminateCommand.java index 331352409..7d378666a 100644 --- a/plugins/org.eclipse.tm.tcf.dsf.ui/src/org/eclipse/tm/internal/tcf/dsf/ui/actions/TcfTerminateCommand.java +++ b/plugins/org.eclipse.tm.tcf.dsf.ui/src/org/eclipse/tm/internal/tcf/dsf/ui/actions/TcfTerminateCommand.java @@ -6,18 +6,18 @@ import org.eclipse.debug.core.commands.IEnabledStateRequest; import org.eclipse.debug.core.commands.ITerminateHandler; public class TcfTerminateCommand implements ITerminateHandler { - + public TcfTerminateCommand(DsfSession session) { - + } - + public void dispose() { - + } public void canExecute(IEnabledStateRequest request) { // TODO Auto-generated method stub - + } public boolean execute(IDebugCommandRequest request) { diff --git a/plugins/org.eclipse.tm.tcf.dsf.ui/src/org/eclipse/tm/internal/tcf/dsf/ui/launch/LaunchDialogTabGroup.java b/plugins/org.eclipse.tm.tcf.dsf.ui/src/org/eclipse/tm/internal/tcf/dsf/ui/launch/LaunchDialogTabGroup.java index 999e4ada5..b4de66a27 100644 --- a/plugins/org.eclipse.tm.tcf.dsf.ui/src/org/eclipse/tm/internal/tcf/dsf/ui/launch/LaunchDialogTabGroup.java +++ b/plugins/org.eclipse.tm.tcf.dsf.ui/src/org/eclipse/tm/internal/tcf/dsf/ui/launch/LaunchDialogTabGroup.java @@ -1,10 +1,10 @@ /******************************************************************************* * Copyright (c) 2007, 2008 Wind River Systems, Inc. and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * * Contributors: * Wind River Systems - initial API and implementation *******************************************************************************/ diff --git a/plugins/org.eclipse.tm.tcf.dsf.ui/src/org/eclipse/tm/internal/tcf/dsf/ui/viewmodel/ExecutableContextLayoutNode.java b/plugins/org.eclipse.tm.tcf.dsf.ui/src/org/eclipse/tm/internal/tcf/dsf/ui/viewmodel/ExecutableContextLayoutNode.java index a56ed0172..3cc90bff7 100644 --- a/plugins/org.eclipse.tm.tcf.dsf.ui/src/org/eclipse/tm/internal/tcf/dsf/ui/viewmodel/ExecutableContextLayoutNode.java +++ b/plugins/org.eclipse.tm.tcf.dsf.ui/src/org/eclipse/tm/internal/tcf/dsf/ui/viewmodel/ExecutableContextLayoutNode.java @@ -4,7 +4,7 @@ * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html - * + * * Contributors: * Ericsson - Initial API and implementation * Wind River Systems - reused for TCF connection type @@ -57,7 +57,7 @@ public class ExecutableContextLayoutNode extends AbstractDMVMNode implements IEl public ExecutableContextLayoutNode(AbstractDMVMProvider provider, DsfSession session) { super(provider, session, IRunControl.IExecutionDMContext.class); } - + private void doneViewerUpdate(final IViewerUpdate req) { PlatformUI.getWorkbench().getDisplay().asyncExec(new Runnable() { public void run() { @@ -71,7 +71,7 @@ public class ExecutableContextLayoutNode extends AbstractDMVMNode implements IEl TCFDSFRunControl service = getServicesTracker().getService(TCFDSFRunControl.class); if (service == null) { update.setStatus(new Status(IStatus.ERROR, - Activator.PLUGIN_ID, IDsfStatusConstants.INVALID_STATE, + Activator.PLUGIN_ID, IDsfStatusConstants.INVALID_STATE, "Run Control service not available.", null)); //$NON-NLS-1$ handleFailedUpdate(update); return; @@ -107,19 +107,19 @@ public class ExecutableContextLayoutNode extends AbstractDMVMNode implements IEl catch (RejectedExecutionException e) { for (ILabelUpdate update : updates) { update.setStatus(new Status(IStatus.ERROR, - Activator.PLUGIN_ID, IDsfStatusConstants.INTERNAL_ERROR, + Activator.PLUGIN_ID, IDsfStatusConstants.INTERNAL_ERROR, "Cannot execute update request.", e)); //$NON-NLS-1$ handleFailedUpdate(update); } } } - + private void updateLabelInSessionThread(final ILabelUpdate[] updates) { TCFDSFRunControl service = getServicesTracker().getService(TCFDSFRunControl.class); if (service == null) { for (final ILabelUpdate update : updates) { update.setStatus(new Status(IStatus.ERROR, - Activator.PLUGIN_ID, IDsfStatusConstants.INVALID_STATE, + Activator.PLUGIN_ID, IDsfStatusConstants.INVALID_STATE, "Run Control service not available.", null)); //$NON-NLS-1$ handleFailedUpdate(update); } @@ -140,7 +140,7 @@ public class ExecutableContextLayoutNode extends AbstractDMVMNode implements IEl }); return; } - + for (final ILabelUpdate update : updates) { TCFDSFExecutionDMC dmc = (TCFDSFExecutionDMC)findDmcInPath(update.getViewerInput(), update.getElementPath(), IContainerDMContext.class); @@ -175,10 +175,10 @@ public class ExecutableContextLayoutNode extends AbstractDMVMNode implements IEl } if (e instanceof IRunControl.IResumedDMEvent || e instanceof IRunControl.ISuspendedDMEvent) { return IModelDelta.STATE; - } + } return IModelDelta.NO_CHANGE; } - + private List<TCFDSFExecutionDMC> getPath(TCFDSFExecutionDMC dmc) { List<TCFDSFExecutionDMC> list = new ArrayList<TCFDSFExecutionDMC>(); while (dmc != null) { @@ -234,7 +234,7 @@ public class ExecutableContextLayoutNode extends AbstractDMVMNode implements IEl } else if (e instanceof IStartedDMEvent || e instanceof IExitedDMEvent) { parentDelta.setFlags(parentDelta.getFlags() | IModelDelta.CONTENT); - } + } rm.done(); } } diff --git a/plugins/org.eclipse.tm.tcf.dsf.ui/src/org/eclipse/tm/internal/tcf/dsf/ui/viewmodel/LaunchVMProvider.java b/plugins/org.eclipse.tm.tcf.dsf.ui/src/org/eclipse/tm/internal/tcf/dsf/ui/viewmodel/LaunchVMProvider.java index 2934513e6..bea389b41 100644 --- a/plugins/org.eclipse.tm.tcf.dsf.ui/src/org/eclipse/tm/internal/tcf/dsf/ui/viewmodel/LaunchVMProvider.java +++ b/plugins/org.eclipse.tm.tcf.dsf.ui/src/org/eclipse/tm/internal/tcf/dsf/ui/viewmodel/LaunchVMProvider.java @@ -1,10 +1,10 @@ /******************************************************************************* * Copyright (c) 2007, 2008 Wind River Systems, Inc. and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * * Contributors: * Wind River Systems - initial API and implementation *******************************************************************************/ @@ -30,12 +30,12 @@ import org.eclipse.debug.internal.ui.viewers.model.provisional.IPresentationCont @SuppressWarnings("restriction") -public class LaunchVMProvider extends AbstractDMVMProvider +public class LaunchVMProvider extends AbstractDMVMProvider implements IDebugEventSetListener, ILaunchesListener2 { @ThreadSafe public LaunchVMProvider(AbstractVMAdapter adapter, - IPresentationContext presentationContext, + IPresentationContext presentationContext, DsfSession session, ILaunch launch) { super(adapter, presentationContext, session); @@ -44,7 +44,7 @@ implements IDebugEventSetListener, ILaunchesListener2 { IVMNode threads_node = new ExecutableContextLayoutNode(this, getSession()); addChildNodes(launch_node, new IVMNode[] { threads_node }); - + IVMNode stack_frames_node = new StackFramesVMNode(this, getSession()); addChildNodes(threads_node, new IVMNode[] { stack_frames_node, threads_node }); @@ -55,14 +55,14 @@ implements IDebugEventSetListener, ILaunchesListener2 { public void handleDebugEvents(final DebugEvent[] events) { if (isDisposed()) return; - - // We're in session's executor thread. Re-dispatch to VM Adapter + + // We're in session's executor thread. Re-dispatch to VM Adapter // executor thread and then call root layout node. try { getExecutor().execute(new Runnable() { public void run() { if (isDisposed()) return; - + for (final DebugEvent event : events) { handleEvent(event); } @@ -70,8 +70,8 @@ implements IDebugEventSetListener, ILaunchesListener2 { }); } catch (RejectedExecutionException e) { - // Ignore. This exception could be thrown if the provider is being - // shut down. + // Ignore. This exception could be thrown if the provider is being + // shut down. } } @@ -83,31 +83,31 @@ implements IDebugEventSetListener, ILaunchesListener2 { } public void launchesAdded(ILaunch[] launches) { - handleLaunchesEvent(new LaunchesEvent(launches, LaunchesEvent.Type.ADDED)); + handleLaunchesEvent(new LaunchesEvent(launches, LaunchesEvent.Type.ADDED)); } public void launchesRemoved(ILaunch[] launches) { - handleLaunchesEvent(new LaunchesEvent(launches, LaunchesEvent.Type.REMOVED)); + handleLaunchesEvent(new LaunchesEvent(launches, LaunchesEvent.Type.REMOVED)); } public void launchesChanged(ILaunch[] launches) { - handleLaunchesEvent(new LaunchesEvent(launches, LaunchesEvent.Type.CHANGED)); + handleLaunchesEvent(new LaunchesEvent(launches, LaunchesEvent.Type.CHANGED)); } public void launchesTerminated(ILaunch[] launches) { - handleLaunchesEvent(new LaunchesEvent(launches, LaunchesEvent.Type.TERMINATED)); + handleLaunchesEvent(new LaunchesEvent(launches, LaunchesEvent.Type.TERMINATED)); } private void handleLaunchesEvent(final LaunchesEvent event) { if (isDisposed()) return; - - // We're in session's executor thread. Re-dispach to VM Adapter + + // We're in session's executor thread. Re-dispach to VM Adapter // executor thread and then call root layout node. try { getExecutor().execute(new Runnable() { public void run() { if (isDisposed()) return; - + IRootVMNode rootLayoutNode = getRootVMNode(); if (rootLayoutNode != null && rootLayoutNode.getDeltaFlags(event) != 0) { handleEvent(event); @@ -115,8 +115,8 @@ implements IDebugEventSetListener, ILaunchesListener2 { }}); } catch (RejectedExecutionException e) { - // Ignore. This exception could be thrown if the provider is being - // shut down. + // Ignore. This exception could be thrown if the provider is being + // shut down. } } } diff --git a/plugins/org.eclipse.tm.tcf.dsf.ui/src/org/eclipse/tm/internal/tcf/dsf/ui/viewmodel/RegisterVMProvider.java b/plugins/org.eclipse.tm.tcf.dsf.ui/src/org/eclipse/tm/internal/tcf/dsf/ui/viewmodel/RegisterVMProvider.java index 8822dc419..347e7ab01 100644 --- a/plugins/org.eclipse.tm.tcf.dsf.ui/src/org/eclipse/tm/internal/tcf/dsf/ui/viewmodel/RegisterVMProvider.java +++ b/plugins/org.eclipse.tm.tcf.dsf.ui/src/org/eclipse/tm/internal/tcf/dsf/ui/viewmodel/RegisterVMProvider.java @@ -4,7 +4,7 @@ * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html - * + * * Contributors: * Wind River Systems - initial API and implementation *******************************************************************************/ @@ -36,7 +36,7 @@ import org.eclipse.jface.util.PropertyChangeEvent; */ @SuppressWarnings("restriction") public class RegisterVMProvider extends AbstractDMVMProvider implements IPropertyChangeListener { - + /* * Current default for register formatting. */ @@ -44,17 +44,17 @@ public class RegisterVMProvider extends AbstractDMVMProvider implements IPropert super(adapter, context, session); context.addPropertyChangeListener(this); - + /* * Create the register data access routines. */ SyncRegisterDataAccess regAccess = new SyncRegisterDataAccess(session) ; - + /* * Create the top level node to deal with the root selection. */ IRootVMNode rootNode = new RootDMVMNode(this); - + IVMNode registerGroupNode = new RegisterGroupVMNode(this, getSession(), regAccess); IVMNode registerNode = new RegisterVMNode(FormattedValuePreferenceStore.getDefault(), this, getSession(), regAccess); IVMNode bitFieldNode = new RegisterBitFieldVMNode(FormattedValuePreferenceStore.getDefault(), this, getSession(), regAccess); @@ -64,17 +64,17 @@ public class RegisterVMProvider extends AbstractDMVMProvider implements IPropert */ addChildNodes(rootNode, new IVMNode[] { registerGroupNode, registerNode }); - + /* * Create the next level which is the registers themselves. */ addChildNodes(registerGroupNode, new IVMNode[] { registerNode, bitFieldNode }); - + /* * Create the next level which is the bitfield level. */ addChildNodes(registerNode, new IVMNode[] { bitFieldNode }); - + /* * Now set this schema set as the layout set. */ @@ -85,7 +85,7 @@ public class RegisterVMProvider extends AbstractDMVMProvider implements IPropert protected IVMUpdatePolicy[] createUpdateModes() { return new IVMUpdatePolicy[] { new AutomaticUpdatePolicy(), new ManualUpdatePolicy(), new BreakpointHitUpdatePolicy() }; } - + @Override public void dispose() { getPresentationContext().removePropertyChangeListener(this); @@ -96,12 +96,12 @@ public class RegisterVMProvider extends AbstractDMVMProvider implements IPropert public IColumnPresentation createColumnPresentation(IPresentationContext context, Object element) { return new RegisterColumnPresentation(); } - + @Override public String getColumnPresentationId(IPresentationContext context, Object element) { return RegisterColumnPresentation.ID; } - + public void propertyChange(PropertyChangeEvent event) { handleEvent(event); } diff --git a/plugins/org.eclipse.tm.tcf.dsf.ui/src/org/eclipse/tm/internal/tcf/dsf/ui/viewmodel/ViewModelAdapter.java b/plugins/org.eclipse.tm.tcf.dsf.ui/src/org/eclipse/tm/internal/tcf/dsf/ui/viewmodel/ViewModelAdapter.java index 051e4abfa..c624e256d 100644 --- a/plugins/org.eclipse.tm.tcf.dsf.ui/src/org/eclipse/tm/internal/tcf/dsf/ui/viewmodel/ViewModelAdapter.java +++ b/plugins/org.eclipse.tm.tcf.dsf.ui/src/org/eclipse/tm/internal/tcf/dsf/ui/viewmodel/ViewModelAdapter.java @@ -1,10 +1,10 @@ /******************************************************************************* * Copyright (c) 2007, 2008 Wind River Systems, Inc. and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * * Contributors: * Wind River Systems - initial API and implementation *******************************************************************************/ @@ -44,7 +44,7 @@ public class ViewModelAdapter extends AbstractDMVMAdapter { @Override protected IVMProvider createViewModelProvider(IPresentationContext context) { if (IDebugUIConstants.ID_DEBUG_VIEW.equals(context.getId()) ) { - return new LaunchVMProvider(this, context, getSession(), launch); + return new LaunchVMProvider(this, context, getSession(), launch); } if (IDebugUIConstants.ID_VARIABLE_VIEW.equals(context.getId()) ) { return new VariableVMProvider(this, context, getSession()); |