Download
Getting Started
Members
Projects
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
More
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
Toggle navigation
Bugzilla – Attachment 89588 Details for
Bug 205477
Copy / Paste should not be available in the logical test navigator
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read
this important communication.
[patch]
Patch
patch-205477.txt (text/plain), 2.34 KB, created by
Paul Klicnik
on 2008-02-12 21:10:00 EST
(
hide
)
Description:
Patch
Filename:
MIME Type:
Creator:
Paul Klicnik
Created:
2008-02-12 21:10:00 EST
Size:
2.34 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P org.eclipse.hyades.test.ui >Index: src/org/eclipse/hyades/test/ui/internal/navigator/TestNavigator.java >=================================================================== >RCS file: /cvsroot/tptp/test/org.eclipse.hyades.test.ui/src/org/eclipse/hyades/test/ui/internal/navigator/TestNavigator.java,v >retrieving revision 1.33 >diff -u -r1.33 TestNavigator.java >--- src/org/eclipse/hyades/test/ui/internal/navigator/TestNavigator.java 3 May 2007 15:50:12 -0000 1.33 >+++ src/org/eclipse/hyades/test/ui/internal/navigator/TestNavigator.java 13 Feb 2008 02:08:43 -0000 >@@ -652,6 +652,16 @@ > getViewSite().getActionBars().setGlobalActionHandler(ActionFactory.REFRESH.getId(), HTNActionGroup.getRefreshAction()); > IActionBars actionBars = getViewSite().getActionBars(); > IToolBarManager viewMenu = actionBars.getToolBarManager(); >+ >+ /* Set the enablement of the copy/paste options when the Test Navigator opens */ >+ if ( HTNActionGroup != null && currentViewIndex == VIEW_ID_LOGICAL ) { >+ HTNActionGroup.getPasteAction().setEnabled( false ); >+ HTNActionGroup.getCopyAction().setEnabled( false ); >+ } else if ( HTNActionGroup != null && currentViewIndex == VIEW_ID_RESOURCE ) { >+ HTNActionGroup.getPasteAction().setEnabled( true ); >+ HTNActionGroup.getCopyAction().setEnabled( true ); >+ } >+ > for (int i = 0; i < viewActions.length; i++) { > ToggleViewAction action = viewActions[i]; > viewMenu.add(action); >@@ -1001,6 +1011,15 @@ > ToggleViewAction action = viewActions[i]; > action.setChecked(currentViewIndex == action.getViewerIndex()); > } >+ /* Change the enablement of the copy/past options when the view changes */ >+ TestNavigatorActionGroup HTNActionGroup = (TestNavigatorActionGroup)getActionGroup(); >+ if ( HTNActionGroup != null && currentViewIndex == VIEW_ID_LOGICAL ) { >+ HTNActionGroup.getPasteAction().setEnabled( false ); >+ HTNActionGroup.getCopyAction().setEnabled( false ); >+ } else if ( HTNActionGroup != null && currentViewIndex == VIEW_ID_RESOURCE ) { >+ HTNActionGroup.getPasteAction().setEnabled( true ); >+ HTNActionGroup.getCopyAction().setEnabled( true ); >+ } > } > > /**
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 205477
: 89588