mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-24 09:25:31 +02:00
Bug 103162: Module View: Missing context menu on detailed pane.
This commit is contained in:
parent
9faa7fee14
commit
f440bfe5de
4 changed files with 23 additions and 6 deletions
|
@ -1,3 +1,9 @@
|
|||
2005-07-12 Mikhail Khodjaiants
|
||||
Bug 103162: Module View: Missing context menu on detailed pane.
|
||||
* ModulesMessages.properties
|
||||
* ModulesView.java
|
||||
* plugin.xml
|
||||
|
||||
2005-07-08 Mikhail Khodjaiants
|
||||
Bug 79371: Setting breakpoints in the left hand side ruler of the disassembly view is sluggish.
|
||||
Asynchronous breakpoint handling.
|
||||
|
|
|
@ -25,6 +25,7 @@
|
|||
<import plugin="org.eclipse.cdt.ui"/>
|
||||
<import plugin="org.eclipse.cdt.core"/>
|
||||
<import plugin="org.eclipse.core.runtime"/>
|
||||
<import plugin="org.eclipse.ui.console"/>
|
||||
</requires>
|
||||
|
||||
|
||||
|
|
|
@ -13,6 +13,8 @@ ModulesView.1=executable
|
|||
ModulesView.10=Size:
|
||||
ModulesView.11=\ (symbols loaded)
|
||||
ModulesView.12=(symbols not loaded)
|
||||
ModulesView.13=Select &All
|
||||
ModulesView.16=&Copy
|
||||
ModulesView.2=shared library
|
||||
ModulesView.3=Type:
|
||||
ModulesView.4=Symbols:
|
||||
|
|
|
@ -47,6 +47,7 @@ import org.eclipse.jface.text.Document;
|
|||
import org.eclipse.jface.text.DocumentEvent;
|
||||
import org.eclipse.jface.text.IDocument;
|
||||
import org.eclipse.jface.text.IDocumentListener;
|
||||
import org.eclipse.jface.text.ITextOperationTarget;
|
||||
import org.eclipse.jface.text.source.ISourceViewer;
|
||||
import org.eclipse.jface.text.source.SourceViewer;
|
||||
import org.eclipse.jface.text.source.SourceViewerConfiguration;
|
||||
|
@ -89,8 +90,10 @@ import org.eclipse.ui.IWorkbenchActionConstants;
|
|||
import org.eclipse.ui.IWorkbenchPart;
|
||||
import org.eclipse.ui.PartInitException;
|
||||
import org.eclipse.ui.actions.ActionFactory;
|
||||
import org.eclipse.ui.console.actions.TextViewerAction;
|
||||
import org.eclipse.ui.model.IWorkbenchAdapter;
|
||||
import org.eclipse.ui.texteditor.IUpdate;
|
||||
import org.eclipse.ui.texteditor.IWorkbenchActionDefinitionIds;
|
||||
|
||||
/**
|
||||
* Displays the modules currently loaded by the process being debugged.
|
||||
|
@ -348,7 +351,14 @@ public class ModulesView extends AbstractDebugEventHandlerView implements IDebug
|
|||
* @see org.eclipse.debug.ui.AbstractDebugView#createActions()
|
||||
*/
|
||||
protected void createActions() {
|
||||
// TODO Auto-generated method stub
|
||||
TextViewerAction textAction = new TextViewerAction( getDetailViewer(), ITextOperationTarget.SELECT_ALL );
|
||||
textAction.configureAction( ModulesMessages.getString( "ModulesView.13" ), "", "" ); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
|
||||
textAction.setActionDefinitionId( IWorkbenchActionDefinitionIds.SELECT_ALL );
|
||||
setAction( ActionFactory.SELECT_ALL.getId(), textAction );
|
||||
textAction = new TextViewerAction( getDetailViewer(), ITextOperationTarget.COPY );
|
||||
textAction.configureAction( ModulesMessages.getString( "ModulesView.16" ), "", "" ); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
|
||||
textAction.setActionDefinitionId( IWorkbenchActionDefinitionIds.COPY );
|
||||
setAction( ActionFactory.COPY.getId(), textAction );
|
||||
}
|
||||
|
||||
/* (non-Javadoc)
|
||||
|
@ -690,12 +700,10 @@ public class ModulesView extends AbstractDebugEventHandlerView implements IDebug
|
|||
protected void fillDetailContextMenu( IMenuManager menu ) {
|
||||
menu.add( new Separator( ICDebugUIConstants.MODULES_GROUP ) );
|
||||
menu.add( new Separator() );
|
||||
menu.add( getAction( ActionFactory.CUT.getId() ) );
|
||||
menu.add( getAction( ActionFactory.COPY.getId() + ".Detail" ) ); //$NON-NLS-1$
|
||||
menu.add( getAction( ActionFactory.PASTE.getId() ) );
|
||||
menu.add( new Separator( "FIND" ) ); //$NON-NLS-1$
|
||||
menu.add( getAction( ActionFactory.FIND.getId() ) );
|
||||
menu.add( getAction( ActionFactory.COPY.getId() ) );
|
||||
menu.add( getAction( ActionFactory.SELECT_ALL.getId() ) );
|
||||
menu.add( new Separator( IWorkbenchActionConstants.MB_ADDITIONS ) );
|
||||
updateObjects();
|
||||
}
|
||||
|
||||
private ICursorListener getCursorListener() {
|
||||
|
|
Loading…
Add table
Reference in a new issue