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 26557 Details for
Bug 96600
[DynamicUI] [Commands] [Contexts] [KeyBindings] Commands architecture isn't dynamic
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 to "org.eclipse.ui.tests"
Bug96600-org.eclipse.ui.tests-r1.patch (text/plain), 47.62 KB, created by
Douglas Pollock
on 2005-08-26 15:33:48 EDT
(
hide
)
Description:
Patch to "org.eclipse.ui.tests"
Filename:
MIME Type:
Creator:
Douglas Pollock
Created:
2005-08-26 15:33:48 EDT
Size:
47.62 KB
patch
obsolete
>Index: Eclipse UI Tests/org/eclipse/ui/tests/dynamicplugins/DynamicPluginsTestSuite.java >=================================================================== >RCS file: /home/eclipse/org.eclipse.ui.tests/Eclipse UI Tests/org/eclipse/ui/tests/dynamicplugins/DynamicPluginsTestSuite.java,v >retrieving revision 1.18 >diff -u -r1.18 DynamicPluginsTestSuite.java >--- Eclipse UI Tests/org/eclipse/ui/tests/dynamicplugins/DynamicPluginsTestSuite.java 7 Apr 2005 16:39:29 -0000 1.18 >+++ Eclipse UI Tests/org/eclipse/ui/tests/dynamicplugins/DynamicPluginsTestSuite.java 26 Aug 2005 19:17:26 -0000 >@@ -29,9 +29,17 @@ > * Construct the test suite. > */ > public DynamicPluginsTestSuite() { >+ addTest(new TestSuite( >+ AcceleratorConfigurationsExtensionDynamicTest.class)); >+ addTest(new TestSuite(AcceleratorScopesExtensionDynamicTest.class)); >+ addTest(new TestSuite(ActionDefinitionsExtensionDynamicTest.class)); > addTest(new TestSuite(ActionSetTests.class)); > addTest(new TestSuite(ActivitySupportTests.class)); >+ addTest(new TestSuite(BindingsExtensionDynamicTest.class)); > addTest(new TestSuite(BrowserTests.class)); >+ addTest(new TestSuite(CommandsExtensionDynamicTest.class)); >+ addTest(new TestSuite(ContextsExtensionDynamicTest.class)); >+ addTest(new TestSuite(HandlersExtensionDynamicTest.class)); > addTest(new TestSuite(PreferencePageTests.class)); > addTest(new TestSuite(KeywordTests.class)); > addTest(new TestSuite(PropertyPageTests.class)); >Index: data/dynamic_classes.zip >=================================================================== >RCS file: /home/eclipse/org.eclipse.ui.tests/data/dynamic_classes.zip,v >retrieving revision 1.10 >diff -u -r1.10 dynamic_classes.zip >Binary files /tmp/cvs.tJjB1S and dynamic_classes.zip differ >Index: Eclipse UI Tests/org/eclipse/ui/tests/dynamicplugins/AcceleratorConfigurationsExtensionDynamicTest.java >=================================================================== >RCS file: Eclipse UI Tests/org/eclipse/ui/tests/dynamicplugins/AcceleratorConfigurationsExtensionDynamicTest.java >diff -N Eclipse UI Tests/org/eclipse/ui/tests/dynamicplugins/AcceleratorConfigurationsExtensionDynamicTest.java >--- /dev/null 1 Jan 1970 00:00:00 -0000 >+++ Eclipse UI Tests/org/eclipse/ui/tests/dynamicplugins/AcceleratorConfigurationsExtensionDynamicTest.java 1 Jan 1970 00:00:00 -0000 >@@ -0,0 +1,104 @@ >+/******************************************************************************* >+ * Copyright (c) 2005 IBM Corporation and others. >+ * All rights reserved. This program and the accompanying materials >+ * are made available under the terms of the Eclipse Public License v1.0 >+ * which accompanies this distribution, and is available at >+ * http://www.eclipse.org/legal/epl-v10.html >+ * >+ * Contributors: >+ * IBM Corporation - initial API and implementation >+ *******************************************************************************/ >+package org.eclipse.ui.tests.dynamicplugins; >+ >+import org.eclipse.core.commands.common.NamedHandleObject; >+import org.eclipse.core.commands.common.NotDefinedException; >+import org.eclipse.ui.internal.IWorkbenchConstants; >+import org.eclipse.ui.keys.IBindingService; >+ >+/** >+ * Tests whether the "org.eclipse.ui.acceleratorConfigurations" extension point >+ * can be added and removed dynamically. >+ * >+ * @since 3.1.1 >+ */ >+public final class AcceleratorConfigurationsExtensionDynamicTest extends >+ DynamicTestCase { >+ >+ /** >+ * Constructs a new instance of >+ * <code>AcceleratorConfigurationsExtensionDynamicTest</code>. >+ * >+ * @param testName >+ * The name of the test; may be <code>null</code>. >+ */ >+ public AcceleratorConfigurationsExtensionDynamicTest(final String testName) { >+ super(testName); >+ } >+ >+ /** >+ * Returns the full-qualified identifier of the extension to be tested. >+ * >+ * @return The extension identifier; never <code>null</code>. >+ */ >+ protected final String getExtensionId() { >+ return "acceleratorConfigurationsExtensionDynamicTest.testDynamicAcceleratorConfigurationAddition"; >+ } >+ >+ /** >+ * Returns the unqualified identifier of the extension point to be tested. >+ * >+ * @return The extension point identifier; never <code>null</code>. >+ */ >+ protected final String getExtensionPoint() { >+ return IWorkbenchConstants.PL_ACCELERATOR_CONFIGURATIONS; >+ } >+ >+ /** >+ * Returns the relative location of the folder on disk containing the >+ * plugin.xml file. >+ * >+ * @return The relative install location; never <code>null</code>. >+ */ >+ protected final String getInstallLocation() { >+ return "data/org.eclipse.acceleratorConfigurationsExtensionDynamicTest"; >+ } >+ >+ /** >+ * Tests whether the items defined in the extension point can be added and >+ * removed dynamically. It tests that the data doesn't exist, and then loads >+ * the extension. It tests that the data then exists, and unloads the >+ * extension. It tests that the data then doesn't exist. >+ */ >+ public final void testAcceleratorConfigurations() { >+ final IBindingService service = (IBindingService) getWorkbench() >+ .getAdapter(IBindingService.class); >+ NamedHandleObject namedHandleObject; >+ >+ namedHandleObject = service.getScheme("monkey"); >+ try { >+ namedHandleObject.getName(); >+ fail(); >+ } catch (final NotDefinedException e) { >+ assertTrue(true); >+ } >+ >+ getBundle(); >+ >+ namedHandleObject = service.getScheme("monkey"); >+ try { >+ assertTrue("Monkey".equals(namedHandleObject.getName())); >+ } catch (final NotDefinedException e) { >+ fail(); >+ } >+ >+ removeBundle(); >+ >+ namedHandleObject = service.getScheme("monkey"); >+ try { >+ namedHandleObject.getName(); >+ fail(); >+ } catch (final NotDefinedException e) { >+ assertTrue(true); >+ } >+ } >+} >Index: Eclipse UI Tests/org/eclipse/ui/tests/dynamicplugins/AcceleratorScopesExtensionDynamicTest.java >=================================================================== >RCS file: Eclipse UI Tests/org/eclipse/ui/tests/dynamicplugins/AcceleratorScopesExtensionDynamicTest.java >diff -N Eclipse UI Tests/org/eclipse/ui/tests/dynamicplugins/AcceleratorScopesExtensionDynamicTest.java >--- /dev/null 1 Jan 1970 00:00:00 -0000 >+++ Eclipse UI Tests/org/eclipse/ui/tests/dynamicplugins/AcceleratorScopesExtensionDynamicTest.java 1 Jan 1970 00:00:00 -0000 >@@ -0,0 +1,104 @@ >+/******************************************************************************* >+ * Copyright (c) 2005 IBM Corporation and others. >+ * All rights reserved. This program and the accompanying materials >+ * are made available under the terms of the Eclipse Public License v1.0 >+ * which accompanies this distribution, and is available at >+ * http://www.eclipse.org/legal/epl-v10.html >+ * >+ * Contributors: >+ * IBM Corporation - initial API and implementation >+ *******************************************************************************/ >+package org.eclipse.ui.tests.dynamicplugins; >+ >+import org.eclipse.core.commands.common.NamedHandleObject; >+import org.eclipse.core.commands.common.NotDefinedException; >+import org.eclipse.ui.contexts.IContextService; >+import org.eclipse.ui.internal.IWorkbenchConstants; >+ >+/** >+ * Tests whether the "org.eclipse.ui.acceleratorScopes" extension point can be >+ * added and removed dynamically. >+ * >+ * @since 3.1.1 >+ */ >+public final class AcceleratorScopesExtensionDynamicTest extends >+ DynamicTestCase { >+ >+ /** >+ * Constructs a new instance of >+ * <code>AcceleratorScopesExtensionDynamicTest</code>. >+ * >+ * @param testName >+ * The name of the test; may be <code>null</code>. >+ */ >+ public AcceleratorScopesExtensionDynamicTest(final String testName) { >+ super(testName); >+ } >+ >+ /** >+ * Returns the full-qualified identifier of the extension to be tested. >+ * >+ * @return The extension identifier; never <code>null</code>. >+ */ >+ protected final String getExtensionId() { >+ return "acceleratorScopesExtensionDynamicTest.testDynamicAcceleratorScopeAddition"; >+ } >+ >+ /** >+ * Returns the unqualified identifier of the extension point to be tested. >+ * >+ * @return The extension point identifier; never <code>null</code>. >+ */ >+ protected final String getExtensionPoint() { >+ return IWorkbenchConstants.PL_ACCELERATOR_SCOPES; >+ } >+ >+ /** >+ * Returns the relative location of the folder on disk containing the >+ * plugin.xml file. >+ * >+ * @return The relative install location; never <code>null</code>. >+ */ >+ protected final String getInstallLocation() { >+ return "data/org.eclipse.acceleratorScopesExtensionDynamicTest"; >+ } >+ >+ /** >+ * Tests whether the items defined in the extension point can be added and >+ * removed dynamically. It tests that the data doesn't exist, and then loads >+ * the extension. It tests that the data then exists, and unloads the >+ * extension. It tests that the data then doesn't exist. >+ */ >+ public final void testAcceleratorScopes() { >+ final IContextService service = (IContextService) getWorkbench() >+ .getAdapter(IContextService.class); >+ NamedHandleObject namedHandleObject; >+ >+ namedHandleObject = service.getContext("monkey"); >+ try { >+ namedHandleObject.getName(); >+ fail(); >+ } catch (final NotDefinedException e) { >+ assertTrue(true); >+ } >+ >+ getBundle(); >+ >+ namedHandleObject = service.getContext("monkey"); >+ try { >+ assertTrue("Monkey".equals(namedHandleObject.getName())); >+ } catch (final NotDefinedException e) { >+ fail(); >+ } >+ >+ removeBundle(); >+ >+ namedHandleObject = service.getContext("monkey"); >+ try { >+ namedHandleObject.getName(); >+ fail(); >+ } catch (final NotDefinedException e) { >+ assertTrue(true); >+ } >+ } >+} >Index: Eclipse UI Tests/org/eclipse/ui/tests/dynamicplugins/ActionDefinitionsExtensionDynamicTest.java >=================================================================== >RCS file: Eclipse UI Tests/org/eclipse/ui/tests/dynamicplugins/ActionDefinitionsExtensionDynamicTest.java >diff -N Eclipse UI Tests/org/eclipse/ui/tests/dynamicplugins/ActionDefinitionsExtensionDynamicTest.java >--- /dev/null 1 Jan 1970 00:00:00 -0000 >+++ Eclipse UI Tests/org/eclipse/ui/tests/dynamicplugins/ActionDefinitionsExtensionDynamicTest.java 1 Jan 1970 00:00:00 -0000 >@@ -0,0 +1,104 @@ >+/******************************************************************************* >+ * Copyright (c) 2005 IBM Corporation and others. >+ * All rights reserved. This program and the accompanying materials >+ * are made available under the terms of the Eclipse Public License v1.0 >+ * which accompanies this distribution, and is available at >+ * http://www.eclipse.org/legal/epl-v10.html >+ * >+ * Contributors: >+ * IBM Corporation - initial API and implementation >+ *******************************************************************************/ >+package org.eclipse.ui.tests.dynamicplugins; >+ >+import org.eclipse.core.commands.common.NamedHandleObject; >+import org.eclipse.core.commands.common.NotDefinedException; >+import org.eclipse.ui.commands.ICommandService; >+import org.eclipse.ui.internal.IWorkbenchConstants; >+ >+/** >+ * Tests whether the "org.eclipse.ui.actionDefinitions" extension point can be >+ * added and removed dynamically. >+ * >+ * @since 3.1.1 >+ */ >+public final class ActionDefinitionsExtensionDynamicTest extends >+ DynamicTestCase { >+ >+ /** >+ * Constructs a new instance of >+ * <code>ActionDefinitionsExtensionDynamicTest</code>. >+ * >+ * @param testName >+ * The name of the test; may be <code>null</code>. >+ */ >+ public ActionDefinitionsExtensionDynamicTest(final String testName) { >+ super(testName); >+ } >+ >+ /** >+ * Returns the full-qualified identifier of the extension to be tested. >+ * >+ * @return The extension identifier; never <code>null</code>. >+ */ >+ protected final String getExtensionId() { >+ return "actionDefinitionsExtensionDynamicTest.testDynamicActionDefinitionAddition"; >+ } >+ >+ /** >+ * Returns the unqualified identifier of the extension point to be tested. >+ * >+ * @return The extension point identifier; never <code>null</code>. >+ */ >+ protected final String getExtensionPoint() { >+ return IWorkbenchConstants.PL_ACTION_DEFINITIONS; >+ } >+ >+ /** >+ * Returns the relative location of the folder on disk containing the >+ * plugin.xml file. >+ * >+ * @return The relative install location; never <code>null</code>. >+ */ >+ protected final String getInstallLocation() { >+ return "data/org.eclipse.actionDefinitionsExtensionDynamicTest"; >+ } >+ >+ /** >+ * Tests whether the items defined in the extension point can be added and >+ * removed dynamically. It tests that the data doesn't exist, and then loads >+ * the extension. It tests that the data then exists, and unloads the >+ * extension. It tests that the data then doesn't exist. >+ */ >+ public final void testActionDefinitions() { >+ final ICommandService service = (ICommandService) getWorkbench() >+ .getAdapter(ICommandService.class); >+ NamedHandleObject namedHandleObject; >+ >+ namedHandleObject = service.getCommand("monkey"); >+ try { >+ namedHandleObject.getName(); >+ fail(); >+ } catch (final NotDefinedException e) { >+ assertTrue(true); >+ } >+ >+ getBundle(); >+ >+ namedHandleObject = service.getCommand("monkey"); >+ try { >+ assertTrue("Monkey".equals(namedHandleObject.getName())); >+ } catch (final NotDefinedException e) { >+ fail(); >+ } >+ >+ removeBundle(); >+ >+ namedHandleObject = service.getCommand("monkey"); >+ try { >+ namedHandleObject.getName(); >+ fail(); >+ } catch (final NotDefinedException e) { >+ assertTrue(true); >+ } >+ } >+} >Index: Eclipse UI Tests/org/eclipse/ui/tests/dynamicplugins/BindingsExtensionDynamicTest.java >=================================================================== >RCS file: Eclipse UI Tests/org/eclipse/ui/tests/dynamicplugins/BindingsExtensionDynamicTest.java >diff -N Eclipse UI Tests/org/eclipse/ui/tests/dynamicplugins/BindingsExtensionDynamicTest.java >--- /dev/null 1 Jan 1970 00:00:00 -0000 >+++ Eclipse UI Tests/org/eclipse/ui/tests/dynamicplugins/BindingsExtensionDynamicTest.java 1 Jan 1970 00:00:00 -0000 >@@ -0,0 +1,182 @@ >+/******************************************************************************* >+ * Copyright (c) 2005 IBM Corporation and others. >+ * All rights reserved. This program and the accompanying materials >+ * are made available under the terms of the Eclipse Public License v1.0 >+ * which accompanies this distribution, and is available at >+ * http://www.eclipse.org/legal/epl-v10.html >+ * >+ * Contributors: >+ * IBM Corporation - initial API and implementation >+ *******************************************************************************/ >+package org.eclipse.ui.tests.dynamicplugins; >+ >+import org.eclipse.core.commands.common.NotDefinedException; >+import org.eclipse.jface.bindings.Binding; >+import org.eclipse.jface.bindings.Scheme; >+import org.eclipse.jface.bindings.TriggerSequence; >+import org.eclipse.jface.bindings.keys.KeySequence; >+import org.eclipse.jface.bindings.keys.ParseException; >+import org.eclipse.jface.contexts.IContextIds; >+import org.eclipse.ui.internal.IWorkbenchConstants; >+import org.eclipse.ui.keys.IBindingService; >+ >+/** >+ * Tests whether the "org.eclipse.ui.bindings" extension point can be added and >+ * removed dynamically. >+ * >+ * @since 3.1.1 >+ */ >+public final class BindingsExtensionDynamicTest extends DynamicTestCase { >+ >+ /** >+ * Constructs a new instance of <code>BindingsExtensionDynamicTest</code>. >+ * >+ * @param testName >+ * The name of the test; may be <code>null</code>. >+ */ >+ public BindingsExtensionDynamicTest(final String testName) { >+ super(testName); >+ } >+ >+ /** >+ * Returns the full-qualified identifier of the extension to be tested. >+ * >+ * @return The extension identifier; never <code>null</code>. >+ */ >+ protected final String getExtensionId() { >+ return "bindingsExtensionDynamicTest.testDynamicBindingAddition"; >+ } >+ >+ /** >+ * Returns the unqualified identifier of the extension point to be tested. >+ * >+ * @return The extension point identifier; never <code>null</code>. >+ */ >+ protected final String getExtensionPoint() { >+ return IWorkbenchConstants.PL_BINDINGS; >+ } >+ >+ /** >+ * Returns the relative location of the folder on disk containing the >+ * plugin.xml file. >+ * >+ * @return The relative install location; never <code>null</code>. >+ */ >+ protected final String getInstallLocation() { >+ return "data/org.eclipse.bindingsExtensionDynamicTest"; >+ } >+ >+ /** >+ * Tests whether the items defined in the extension point can be added and >+ * removed dynamically. It tests that the data doesn't exist, and then loads >+ * the extension. It tests that the data then exists, and unloads the >+ * extension. It tests that the data then doesn't exist. >+ * >+ * @throws ParseException >+ * If "M1+W" can't be parsed by the extension point. >+ */ >+ public void testBindings() throws ParseException { >+ final IBindingService bindingService = (IBindingService) getWorkbench() >+ .getAdapter(IBindingService.class); >+ final TriggerSequence triggerSequence = KeySequence.getInstance("M1+W"); >+ Binding[] bindings; >+ Scheme scheme; >+ boolean found; >+ >+ found = false; >+ bindings = bindingService.getBindings(); >+ if (bindings != null) { >+ for (int i = 0; i < bindings.length; i++) { >+ final Binding binding = bindings[i]; >+ if ("monkey".equals(binding.getSchemeId()) >+ && IContextIds.CONTEXT_ID_WINDOW.equals(binding >+ .getContextId()) >+ && "org.eclipse.ui.views.showView".equals(binding >+ .getParameterizedCommand().getId()) >+ && binding.getParameterizedCommand().getParameterMap() >+ .containsKey( >+ "org.eclipse.ui.views.showView.viewId") >+ && binding.getPlatform() == null >+ && binding.getLocale() == null >+ && binding.getType() == Binding.SYSTEM >+ && triggerSequence.equals(binding.getTriggerSequence())) { >+ found = true; >+ >+ } >+ } >+ } >+ assertTrue(!found); >+ scheme = bindingService.getScheme("monkey"); >+ try { >+ scheme.getName(); >+ fail(); >+ } catch (final NotDefinedException e) { >+ assertTrue(true); >+ } >+ >+ getBundle(); >+ >+ found = false; >+ bindings = bindingService.getBindings(); >+ if (bindings != null) { >+ for (int i = 0; i < bindings.length; i++) { >+ final Binding binding = bindings[i]; >+ if ("monkey".equals(binding.getSchemeId()) >+ && IContextIds.CONTEXT_ID_WINDOW.equals(binding >+ .getContextId()) >+ && "org.eclipse.ui.views.showView".equals(binding >+ .getParameterizedCommand().getId()) >+ && binding.getParameterizedCommand().getParameterMap() >+ .containsKey( >+ "org.eclipse.ui.views.showView.viewId") >+ && binding.getPlatform() == null >+ && binding.getLocale() == null >+ && binding.getType() == Binding.SYSTEM >+ && triggerSequence.equals(binding.getTriggerSequence())) { >+ found = true; >+ >+ } >+ } >+ } >+ assertTrue(found); >+ scheme = bindingService.getScheme("monkey"); >+ try { >+ assertTrue("Monkey".equals(scheme.getName())); >+ } catch (final NotDefinedException e) { >+ fail(); >+ } >+ >+ removeBundle(); >+ >+ found = false; >+ bindings = bindingService.getBindings(); >+ if (bindings != null) { >+ for (int i = 0; i < bindings.length; i++) { >+ final Binding binding = bindings[i]; >+ if ("monkey".equals(binding.getSchemeId()) >+ && IContextIds.CONTEXT_ID_WINDOW.equals(binding >+ .getContextId()) >+ && "org.eclipse.ui.views.showView".equals(binding >+ .getParameterizedCommand().getId()) >+ && binding.getParameterizedCommand().getParameterMap() >+ .containsKey( >+ "org.eclipse.ui.views.showView.viewId") >+ && binding.getPlatform() == null >+ && binding.getLocale() == null >+ && binding.getType() == Binding.SYSTEM >+ && triggerSequence.equals(binding.getTriggerSequence())) { >+ found = true; >+ >+ } >+ } >+ } >+ assertTrue(!found); >+ scheme = bindingService.getScheme("monkey"); >+ try { >+ scheme.getName(); >+ fail(); >+ } catch (final NotDefinedException e) { >+ assertTrue(true); >+ } >+ } >+} >Index: Eclipse UI Tests/org/eclipse/ui/tests/dynamicplugins/CommandsExtensionDynamicTest.java >=================================================================== >RCS file: Eclipse UI Tests/org/eclipse/ui/tests/dynamicplugins/CommandsExtensionDynamicTest.java >diff -N Eclipse UI Tests/org/eclipse/ui/tests/dynamicplugins/CommandsExtensionDynamicTest.java >--- /dev/null 1 Jan 1970 00:00:00 -0000 >+++ Eclipse UI Tests/org/eclipse/ui/tests/dynamicplugins/CommandsExtensionDynamicTest.java 1 Jan 1970 00:00:00 -0000 >@@ -0,0 +1,292 @@ >+/******************************************************************************* >+ * Copyright (c) 2005 IBM Corporation and others. >+ * All rights reserved. This program and the accompanying materials >+ * are made available under the terms of the Eclipse Public License v1.0 >+ * which accompanies this distribution, and is available at >+ * http://www.eclipse.org/legal/epl-v10.html >+ * >+ * Contributors: >+ * IBM Corporation - initial API and implementation >+ *******************************************************************************/ >+package org.eclipse.ui.tests.dynamicplugins; >+ >+import java.util.Collections; >+ >+import org.eclipse.core.commands.Command; >+import org.eclipse.core.commands.ExecutionEvent; >+import org.eclipse.core.commands.ExecutionException; >+import org.eclipse.core.commands.NotHandledException; >+import org.eclipse.core.commands.common.NamedHandleObject; >+import org.eclipse.core.commands.common.NotDefinedException; >+import org.eclipse.jface.bindings.Binding; >+import org.eclipse.jface.bindings.TriggerSequence; >+import org.eclipse.jface.bindings.keys.KeySequence; >+import org.eclipse.jface.bindings.keys.ParseException; >+import org.eclipse.jface.contexts.IContextIds; >+import org.eclipse.ui.commands.ICommandService; >+import org.eclipse.ui.contexts.IContextService; >+import org.eclipse.ui.internal.IWorkbenchConstants; >+import org.eclipse.ui.keys.IBindingService; >+ >+/** >+ * Tests whether the "org.eclipse.ui.commands" extension point can be added and >+ * removed dynamically. >+ * >+ * @since 3.1.1 >+ */ >+public final class CommandsExtensionDynamicTest extends DynamicTestCase { >+ >+ /** >+ * Constructs a new instance of <code>CommandsExtensionDynamicTest</code>. >+ * >+ * @param testName >+ * The name of the test; may be <code>null</code>. >+ */ >+ public CommandsExtensionDynamicTest(final String testName) { >+ super(testName); >+ } >+ >+ /** >+ * Returns the full-qualified identifier of the extension to be tested. >+ * >+ * @return The extension identifier; never <code>null</code>. >+ */ >+ protected final String getExtensionId() { >+ return "commandsExtensionDynamicTest.testDynamicCommandAddition"; >+ } >+ >+ /** >+ * Returns the unqualified identifier of the extension point to be tested. >+ * >+ * @return The extension point identifier; never <code>null</code>. >+ */ >+ protected final String getExtensionPoint() { >+ return IWorkbenchConstants.PL_COMMANDS; >+ } >+ >+ /** >+ * Returns the relative location of the folder on disk containing the >+ * plugin.xml file. >+ * >+ * @return The relative install location; never <code>null</code>. >+ */ >+ protected final String getInstallLocation() { >+ return "data/org.eclipse.commandsExtensionDynamicTest"; >+ } >+ >+ /** >+ * Tests whether the items defined in the extension point can be added and >+ * removed dynamically. It tests that the data doesn't exist, and then loads >+ * the extension. It tests that the data then exists, and unloads the >+ * extension. It tests that the data then doesn't exist. >+ * >+ * @throws ParseException >+ * If "M1+W" can't be parsed by the extension point. >+ */ >+ public final void testCommands() throws ParseException { >+ final IBindingService bindingService = (IBindingService) getWorkbench() >+ .getAdapter(IBindingService.class); >+ final ICommandService commandService = (ICommandService) getWorkbench() >+ .getAdapter(ICommandService.class); >+ final IContextService contextService = (IContextService) getWorkbench() >+ .getAdapter(IContextService.class); >+ final TriggerSequence triggerSequence = KeySequence.getInstance("M1+W"); >+ NamedHandleObject namedHandleObject; >+ Binding[] bindings; >+ Command command; >+ boolean found; >+ >+ assertTrue(!"monkey".equals(bindingService.getActiveScheme().getId())); >+ found = false; >+ bindings = bindingService.getBindings(); >+ if (bindings != null) { >+ for (int i = 0; i < bindings.length; i++) { >+ final Binding binding = bindings[i]; >+ if ("monkey".equals(binding.getSchemeId()) >+ && IContextIds.CONTEXT_ID_WINDOW.equals(binding >+ .getContextId()) >+ && "monkey".equals(binding.getParameterizedCommand() >+ .getId()) && binding.getPlatform() == null >+ && binding.getLocale() == null >+ && binding.getType() == Binding.SYSTEM >+ && triggerSequence.equals(binding.getTriggerSequence())) { >+ found = true; >+ >+ } >+ } >+ } >+ assertTrue(!found); >+ namedHandleObject = bindingService.getScheme("monkey"); >+ try { >+ namedHandleObject.getName(); >+ fail(); >+ } catch (final NotDefinedException e) { >+ assertTrue(true); >+ } >+ namedHandleObject = commandService.getCategory("monkey"); >+ try { >+ namedHandleObject.getName(); >+ fail(); >+ } catch (final NotDefinedException e) { >+ assertTrue(true); >+ } >+ command = commandService.getCommand("monkey"); >+ try { >+ command.execute(new ExecutionEvent(Collections.EMPTY_MAP, null, >+ null)); >+ fail(); >+ } catch (final ExecutionException e) { >+ fail(); >+ } catch (final NotHandledException e) { >+ assertTrue(true); >+ } >+ try { >+ command.getName(); >+ fail(); >+ } catch (final NotDefinedException e) { >+ assertTrue(true); >+ } >+ namedHandleObject = contextService.getContext("context"); >+ try { >+ namedHandleObject.getName(); >+ fail(); >+ } catch (final NotDefinedException e) { >+ assertTrue(true); >+ } >+ namedHandleObject = contextService.getContext("scope"); >+ try { >+ namedHandleObject.getName(); >+ fail(); >+ } catch (final NotDefinedException e) { >+ assertTrue(true); >+ } >+ >+ getBundle(); >+ >+ assertTrue("monkey".equals(bindingService.getActiveScheme().getId())); >+ found = false; >+ bindings = bindingService.getBindings(); >+ if (bindings != null) { >+ for (int i = 0; i < bindings.length; i++) { >+ final Binding binding = bindings[i]; >+ if ("monkey".equals(binding.getSchemeId()) >+ && IContextIds.CONTEXT_ID_WINDOW.equals(binding >+ .getContextId()) >+ && "monkey".equals(binding.getParameterizedCommand() >+ .getId()) && binding.getPlatform() == null >+ && binding.getLocale() == null >+ && binding.getType() == Binding.SYSTEM >+ && triggerSequence.equals(binding.getTriggerSequence())) { >+ found = true; >+ >+ } >+ } >+ } >+ assertTrue(found); >+ namedHandleObject = bindingService.getScheme("monkey"); >+ try { >+ assertTrue("Monkey".equals(namedHandleObject.getName())); >+ } catch (final NotDefinedException e) { >+ fail(); >+ } >+ command = commandService.getCommand("monkey"); >+ try { >+ command.execute(new ExecutionEvent(Collections.EMPTY_MAP, null, >+ null)); >+ } catch (final ExecutionException e) { >+ fail(); >+ } catch (final NotHandledException e) { >+ fail(); >+ } >+ try { >+ assertEquals("Monkey", command.getName()); >+ } catch (final NotDefinedException e) { >+ fail(); >+ } >+ namedHandleObject = commandService.getCommand("monkey"); >+ try { >+ assertTrue("Monkey".equals(namedHandleObject.getName())); >+ } catch (final NotDefinedException e) { >+ fail(); >+ } >+ namedHandleObject = contextService.getContext("context"); >+ try { >+ assertTrue("Monkey".equals(namedHandleObject.getName())); >+ } catch (final NotDefinedException e) { >+ fail(); >+ } >+ namedHandleObject = contextService.getContext("scope"); >+ try { >+ assertTrue("Monkey".equals(namedHandleObject.getName())); >+ } catch (final NotDefinedException e) { >+ fail(); >+ } >+ >+ removeBundle(); >+ >+ assertTrue(!"monkey".equals(bindingService.getActiveScheme().getId())); >+ found = false; >+ bindings = bindingService.getBindings(); >+ if (bindings != null) { >+ for (int i = 0; i < bindings.length; i++) { >+ final Binding binding = bindings[i]; >+ if ("monkey".equals(binding.getSchemeId()) >+ && IContextIds.CONTEXT_ID_WINDOW.equals(binding >+ .getContextId()) >+ && "monkey".equals(binding.getParameterizedCommand() >+ .getId()) && binding.getPlatform() == null >+ && binding.getLocale() == null >+ && binding.getType() == Binding.SYSTEM >+ && triggerSequence.equals(binding.getTriggerSequence())) { >+ found = true; >+ >+ } >+ } >+ } >+ assertTrue(!found); >+ namedHandleObject = bindingService.getScheme("monkey"); >+ try { >+ namedHandleObject.getName(); >+ fail(); >+ } catch (final NotDefinedException e) { >+ assertTrue(true); >+ } >+ namedHandleObject = commandService.getCategory("monkey"); >+ try { >+ namedHandleObject.getName(); >+ fail(); >+ } catch (final NotDefinedException e) { >+ assertTrue(true); >+ } >+ command = commandService.getCommand("monkey"); >+ try { >+ command.execute(new ExecutionEvent(Collections.EMPTY_MAP, null, >+ null)); >+ fail(); >+ } catch (final ExecutionException e) { >+ fail(); >+ } catch (final NotHandledException e) { >+ assertTrue(true); >+ } >+ try { >+ command.getName(); >+ fail(); >+ } catch (final NotDefinedException e) { >+ assertTrue(true); >+ } >+ namedHandleObject = contextService.getContext("context"); >+ try { >+ namedHandleObject.getName(); >+ fail(); >+ } catch (final NotDefinedException e) { >+ assertTrue(true); >+ } >+ namedHandleObject = contextService.getContext("scope"); >+ try { >+ namedHandleObject.getName(); >+ fail(); >+ } catch (final NotDefinedException e) { >+ assertTrue(true); >+ } >+ } >+} >Index: Eclipse UI Tests/org/eclipse/ui/tests/dynamicplugins/ContextsExtensionDynamicTest.java >=================================================================== >RCS file: Eclipse UI Tests/org/eclipse/ui/tests/dynamicplugins/ContextsExtensionDynamicTest.java >diff -N Eclipse UI Tests/org/eclipse/ui/tests/dynamicplugins/ContextsExtensionDynamicTest.java >--- /dev/null 1 Jan 1970 00:00:00 -0000 >+++ Eclipse UI Tests/org/eclipse/ui/tests/dynamicplugins/ContextsExtensionDynamicTest.java 1 Jan 1970 00:00:00 -0000 >@@ -0,0 +1,102 @@ >+/******************************************************************************* >+ * Copyright (c) 2005 IBM Corporation and others. >+ * All rights reserved. This program and the accompanying materials >+ * are made available under the terms of the Eclipse Public License v1.0 >+ * which accompanies this distribution, and is available at >+ * http://www.eclipse.org/legal/epl-v10.html >+ * >+ * Contributors: >+ * IBM Corporation - initial API and implementation >+ *******************************************************************************/ >+package org.eclipse.ui.tests.dynamicplugins; >+ >+import org.eclipse.core.commands.common.NamedHandleObject; >+import org.eclipse.core.commands.common.NotDefinedException; >+import org.eclipse.ui.contexts.IContextService; >+import org.eclipse.ui.internal.IWorkbenchConstants; >+ >+/** >+ * Tests whether the "org.eclipse.ui.contexts" extension point can be added and >+ * removed dynamically. >+ * >+ * @since 3.1.1 >+ */ >+public final class ContextsExtensionDynamicTest extends DynamicTestCase { >+ >+ /** >+ * Constructs a new instance of <code>ContextsExtensionDynamicTest</code>. >+ * >+ * @param testName >+ * The name of the test; may be <code>null</code>. >+ */ >+ public ContextsExtensionDynamicTest(final String testName) { >+ super(testName); >+ } >+ >+ /** >+ * Returns the full-qualified identifier of the extension to be tested. >+ * >+ * @return The extension identifier; never <code>null</code>. >+ */ >+ protected final String getExtensionId() { >+ return "contextsExtensionDynamicTest.testDynamicContextAddition"; >+ } >+ >+ /** >+ * Returns the unqualified identifier of the extension point to be tested. >+ * >+ * @return The extension point identifier; never <code>null</code>. >+ */ >+ protected final String getExtensionPoint() { >+ return IWorkbenchConstants.PL_CONTEXTS; >+ } >+ >+ /** >+ * Returns the relative location of the folder on disk containing the >+ * plugin.xml file. >+ * >+ * @return The relative install location; never <code>null</code>. >+ */ >+ protected final String getInstallLocation() { >+ return "data/org.eclipse.contextsExtensionDynamicTest"; >+ } >+ >+ /** >+ * Tests whether the items defined in the extension point can be added and >+ * removed dynamically. It tests that the data doesn't exist, and then loads >+ * the extension. It tests that the data then exists, and unloads the >+ * extension. It tests that the data then doesn't exist. >+ */ >+ public final void testContexts() { >+ final IContextService service = (IContextService) getWorkbench() >+ .getAdapter(IContextService.class); >+ NamedHandleObject namedHandleObject; >+ >+ namedHandleObject = service.getContext("monkey"); >+ try { >+ namedHandleObject.getName(); >+ fail(); >+ } catch (final NotDefinedException e) { >+ assertTrue(true); >+ } >+ >+ getBundle(); >+ >+ namedHandleObject = service.getContext("monkey"); >+ try { >+ assertTrue("Monkey".equals(namedHandleObject.getName())); >+ } catch (final NotDefinedException e) { >+ fail(); >+ } >+ >+ removeBundle(); >+ >+ namedHandleObject = service.getContext("monkey"); >+ try { >+ namedHandleObject.getName(); >+ fail(); >+ } catch (final NotDefinedException e) { >+ assertTrue(true); >+ } >+ } >+} >Index: Eclipse UI Tests/org/eclipse/ui/tests/dynamicplugins/HandlersExtensionDynamicTest.java >=================================================================== >RCS file: Eclipse UI Tests/org/eclipse/ui/tests/dynamicplugins/HandlersExtensionDynamicTest.java >diff -N Eclipse UI Tests/org/eclipse/ui/tests/dynamicplugins/HandlersExtensionDynamicTest.java >--- /dev/null 1 Jan 1970 00:00:00 -0000 >+++ Eclipse UI Tests/org/eclipse/ui/tests/dynamicplugins/HandlersExtensionDynamicTest.java 1 Jan 1970 00:00:00 -0000 >@@ -0,0 +1,115 @@ >+/******************************************************************************* >+ * Copyright (c) 2005 IBM Corporation and others. >+ * All rights reserved. This program and the accompanying materials >+ * are made available under the terms of the Eclipse Public License v1.0 >+ * which accompanies this distribution, and is available at >+ * http://www.eclipse.org/legal/epl-v10.html >+ * >+ * Contributors: >+ * IBM Corporation - initial API and implementation >+ *******************************************************************************/ >+package org.eclipse.ui.tests.dynamicplugins; >+ >+import java.util.Collections; >+ >+import org.eclipse.core.commands.Command; >+import org.eclipse.core.commands.ExecutionEvent; >+import org.eclipse.core.commands.ExecutionException; >+import org.eclipse.core.commands.NotHandledException; >+import org.eclipse.ui.commands.ICommandService; >+import org.eclipse.ui.internal.IWorkbenchConstants; >+ >+/** >+ * Tests whether the "org.eclipse.ui.handlers" extension point can be added and >+ * removed dynamically. >+ * >+ * @since 3.1.1 >+ */ >+public final class HandlersExtensionDynamicTest extends DynamicTestCase { >+ >+ /** >+ * Constructs a new instance of <code>HandlersExtensionDynamicTest</code>. >+ * >+ * @param testName >+ * The name of the test; may be <code>null</code>. >+ */ >+ public HandlersExtensionDynamicTest(final String testName) { >+ super(testName); >+ } >+ >+ /** >+ * Returns the full-qualified identifier of the extension to be tested. >+ * >+ * @return The extension identifier; never <code>null</code>. >+ */ >+ protected final String getExtensionId() { >+ return "handlersExtensionDynamicTest.testDynamicHandlerAddition"; >+ } >+ >+ /** >+ * Returns the unqualified identifier of the extension point to be tested. >+ * >+ * @return The extension point identifier; never <code>null</code>. >+ */ >+ protected final String getExtensionPoint() { >+ return IWorkbenchConstants.PL_HANDLERS; >+ } >+ >+ /** >+ * Returns the relative location of the folder on disk containing the >+ * plugin.xml file. >+ * >+ * @return The relative install location; never <code>null</code>. >+ */ >+ protected final String getInstallLocation() { >+ return "data/org.eclipse.handlersExtensionDynamicTest"; >+ } >+ >+ /** >+ * Tests whether the items defined in the extension point can be added and >+ * removed dynamically. It tests that the data doesn't exist, and then loads >+ * the extension. It tests that the data then exists, and unloads the >+ * extension. It tests that the data then doesn't exist. >+ */ >+ public final void testHandlers() { >+ final ICommandService commandService = (ICommandService) getWorkbench() >+ .getAdapter(ICommandService.class); >+ Command command; >+ >+ command = commandService.getCommand("monkey"); >+ try { >+ command.execute(new ExecutionEvent(Collections.EMPTY_MAP, null, >+ null)); >+ fail(); >+ } catch (final ExecutionException e) { >+ fail(); >+ } catch (final NotHandledException e) { >+ assertTrue(true); >+ } >+ >+ getBundle(); >+ >+ command = commandService.getCommand("monkey"); >+ try { >+ command.execute(new ExecutionEvent(Collections.EMPTY_MAP, null, >+ null)); >+ } catch (final ExecutionException e) { >+ fail(); >+ } catch (final NotHandledException e) { >+ fail(); >+ } >+ >+ removeBundle(); >+ >+ command = commandService.getCommand("monkey"); >+ try { >+ command.execute(new ExecutionEvent(Collections.EMPTY_MAP, null, >+ null)); >+ fail(); >+ } catch (final ExecutionException e) { >+ fail(); >+ } catch (final NotHandledException e) { >+ assertTrue(true); >+ } >+ } >+} >Index: data/org.eclipse.acceleratorConfigurationsExtensionDynamicTest/plugin.xml >=================================================================== >RCS file: data/org.eclipse.acceleratorConfigurationsExtensionDynamicTest/plugin.xml >diff -N data/org.eclipse.acceleratorConfigurationsExtensionDynamicTest/plugin.xml >--- /dev/null 1 Jan 1970 00:00:00 -0000 >+++ data/org.eclipse.acceleratorConfigurationsExtensionDynamicTest/plugin.xml 1 Jan 1970 00:00:00 -0000 >@@ -0,0 +1,20 @@ >+<?xml version="1.0" encoding="UTF-8"?> >+<?eclipse version="3.0"?> >+<plugin >+ id="acceleratorConfigurationsExtensionDynamicTest" >+ name="Accelerator Configurations Extension Dynamic Test Plug-in" >+ version="1.0.0"> >+ >+ <requires> >+ <import plugin="org.eclipse.ui"/> >+ </requires> >+ >+ <extension >+ id="testDynamicAcceleratorConfigurationAddition" >+ point="org.eclipse.ui.acceleratorConfigurations"> >+ <acceleratorConfiguration >+ id="monkey" >+ name="Monkey" /> >+ </extension> >+ >+</plugin> >Index: data/org.eclipse.acceleratorScopesExtensionDynamicTest/plugin.xml >=================================================================== >RCS file: data/org.eclipse.acceleratorScopesExtensionDynamicTest/plugin.xml >diff -N data/org.eclipse.acceleratorScopesExtensionDynamicTest/plugin.xml >--- /dev/null 1 Jan 1970 00:00:00 -0000 >+++ data/org.eclipse.acceleratorScopesExtensionDynamicTest/plugin.xml 1 Jan 1970 00:00:00 -0000 >@@ -0,0 +1,20 @@ >+<?xml version="1.0" encoding="UTF-8"?> >+<?eclipse version="3.0"?> >+<plugin >+ id="acceleratorScopesExtensionDynamicTest" >+ name="Accelerator Scopes Extension Dynamic Test Plug-in" >+ version="1.0.0"> >+ >+ <requires> >+ <import plugin="org.eclipse.ui"/> >+ </requires> >+ >+ <extension >+ id="testDynamicAcceleratorScopeAddition" >+ point="org.eclipse.ui.acceleratorScopes"> >+ <acceleratorScope >+ id="monkey" >+ name="Monkey" /> >+ </extension> >+ >+</plugin> >Index: data/org.eclipse.actionDefinitionsExtensionDynamicTest/plugin.xml >=================================================================== >RCS file: data/org.eclipse.actionDefinitionsExtensionDynamicTest/plugin.xml >diff -N data/org.eclipse.actionDefinitionsExtensionDynamicTest/plugin.xml >--- /dev/null 1 Jan 1970 00:00:00 -0000 >+++ data/org.eclipse.actionDefinitionsExtensionDynamicTest/plugin.xml 1 Jan 1970 00:00:00 -0000 >@@ -0,0 +1,20 @@ >+<?xml version="1.0" encoding="UTF-8"?> >+<?eclipse version="3.0"?> >+<plugin >+ id="actionDefinitionsExtensionDynamicTest" >+ name="Action Definitions Extension Dynamic Test Plug-in" >+ version="1.0.0"> >+ >+ <requires> >+ <import plugin="org.eclipse.ui"/> >+ </requires> >+ >+ <extension >+ id="testDynamicActionDefinitionAddition" >+ point="org.eclipse.ui.actionDefinitions"> >+ <actionDefinition >+ id="monkey" >+ name="Monkey" /> >+ </extension> >+ >+</plugin> >Index: data/org.eclipse.bindingsExtensionDynamicTest/plugin.xml >=================================================================== >RCS file: data/org.eclipse.bindingsExtensionDynamicTest/plugin.xml >diff -N data/org.eclipse.bindingsExtensionDynamicTest/plugin.xml >--- /dev/null 1 Jan 1970 00:00:00 -0000 >+++ data/org.eclipse.bindingsExtensionDynamicTest/plugin.xml 1 Jan 1970 00:00:00 -0000 >@@ -0,0 +1,28 @@ >+<?xml version="1.0" encoding="UTF-8"?> >+<?eclipse version="3.0"?> >+<plugin >+ id="bindingsExtensionDynamicTest" >+ name="Bindings Extension Dynamic Test Plug-in" >+ version="1.0.0"> >+ >+ <requires> >+ <import plugin="org.eclipse.ui"/> >+ </requires> >+ >+ <extension >+ id="testDynamicBindingAddition" >+ point="org.eclipse.ui.bindings"> >+ <key >+ commandId="org.eclipse.ui.views.showView" >+ sequence="M1+W" >+ schemeId="monkey"> >+ <parameter >+ id="org.eclipse.ui.views.showView.viewId" >+ value="monkey" /> >+ </key> >+ <scheme >+ id="monkey" >+ name="Monkey" /> >+ </extension> >+ >+</plugin> >Index: data/org.eclipse.commandsExtensionDynamicTest/commands.jar >=================================================================== >RCS file: data/org.eclipse.commandsExtensionDynamicTest/commands.jar >diff -N data/org.eclipse.commandsExtensionDynamicTest/commands.jar >--- /dev/null 1 Jan 1970 00:00:00 -0000 >+++ data/org.eclipse.commandsExtensionDynamicTest/commands.jar 1 Jan 1970 00:00:00 -0000 >@@ -0,0 +1,19 @@ >+PK >+]w3 META-INF/??PK >+\w3???^jMETA-INF/MANIFEST.MF?M??LK-.? >+K-*????R0?3??r?Cq,HL?HU?%??Ly???RKRSt?*A?M?? >+Lt?L4?K?|3????+?KRs?<???4y?x?PK >+7w3org/PK >+7w3org/eclipse/PK >+7w3org/eclipse/ui/PK >+7w3org/eclipse/ui/dynamic/PK >+7w3 org/eclipse/ui/dynamic/commands/PK >+7w3?m? /(4org/eclipse/ui/dynamic/commands/DynamicHandler.class?P?J1=?k??V[??.???D+.](?g?PSf2???+] .??J???A??>???&o?/?F?Pa?v????]?x?????DK.?$f???u???X?5??W?L??d?D??B????8?F? C???1?N??j????h0tBm?e?D???(V?0?"? ?}\&k?Vg???3?^??Q?I??}?i??????q?A?+?ca?*Z*??U]????}??in?:????????~?T??_!P? a}??????$?(?[t???@?M??6:?????5????](???R??????"?}PK >+]w3 ?AMETA-INF/??PK >+\w3???^j??+META-INF/MANIFEST.MFPK >+7w3?A?org/PK >+7w3?A?org/eclipse/PK >+7w3?Aorg/eclipse/ui/PK >+7w3?A4org/eclipse/ui/dynamic/PK >+7w3 ?Aiorg/eclipse/ui/dynamic/commands/PK >+7w3?m? /(4???org/eclipse/ui/dynamic/commands/DynamicHandler.classPK( >Index: data/org.eclipse.commandsExtensionDynamicTest/plugin.xml >=================================================================== >RCS file: data/org.eclipse.commandsExtensionDynamicTest/plugin.xml >diff -N data/org.eclipse.commandsExtensionDynamicTest/plugin.xml >--- /dev/null 1 Jan 1970 00:00:00 -0000 >+++ data/org.eclipse.commandsExtensionDynamicTest/plugin.xml 1 Jan 1970 00:00:00 -0000 >@@ -0,0 +1,49 @@ >+<?xml version="1.0" encoding="UTF-8"?> >+<?eclipse version="3.0"?> >+<plugin >+ id="commandsExtensionDynamicTest" >+ name="Commands Extension Dynamic Test Plug-in" >+ version="1.0.0"> >+ >+ <runtime> >+ <library name="commands.jar"> >+ <export name="*"/> >+ </library> >+ </runtime> >+ <requires> >+ <import plugin="org.eclipse.ui"/> >+ </requires> >+ >+ <extension >+ id="testDynamicCommandAddition" >+ point="org.eclipse.ui.commands"> >+ <activeKeyConfiguration >+ keyConfigurationId="monkey" /> >+ <category >+ id="monkey" >+ name="Monkey" /> >+ <command >+ id="monkey" >+ name="Monkey" >+ categoryId="monkey" >+ defaultHandler="org.eclipse.ui.dynamic.commands.DynamicHandler"> >+ <commandParameter >+ id="monkey" >+ name="Monkey" /> >+ </command> >+ <keyBinding >+ keySequence="M1+W" >+ commandId="monkey" >+ keyConfigurationId="monkey" /> >+ <keyConfiguration >+ id="monkey" >+ name="Monkey" /> >+ <context >+ id="context" >+ name="Monkey" /> >+ <scope >+ id="scope" >+ name="Monkey" /> >+ </extension> >+ >+</plugin> >Index: data/org.eclipse.contextsExtensionDynamicTest/plugin.xml >=================================================================== >RCS file: data/org.eclipse.contextsExtensionDynamicTest/plugin.xml >diff -N data/org.eclipse.contextsExtensionDynamicTest/plugin.xml >--- /dev/null 1 Jan 1970 00:00:00 -0000 >+++ data/org.eclipse.contextsExtensionDynamicTest/plugin.xml 1 Jan 1970 00:00:00 -0000 >@@ -0,0 +1,20 @@ >+<?xml version="1.0" encoding="UTF-8"?> >+<?eclipse version="3.0"?> >+<plugin >+ id="contextsExtensionDynamicTest" >+ name="Contexts Extension Dynamic Test Plug-in" >+ version="1.0.0"> >+ >+ <requires> >+ <import plugin="org.eclipse.ui"/> >+ </requires> >+ >+ <extension >+ id="testDynamicContextAddition" >+ point="org.eclipse.ui.contexts"> >+ <context >+ id="monkey" >+ name="Monkey" /> >+ </extension> >+ >+</plugin> >Index: data/org.eclipse.handlersExtensionDynamicTest/handlers.jar >=================================================================== >RCS file: data/org.eclipse.handlersExtensionDynamicTest/handlers.jar >diff -N data/org.eclipse.handlersExtensionDynamicTest/handlers.jar >--- /dev/null 1 Jan 1970 00:00:00 -0000 >+++ data/org.eclipse.handlersExtensionDynamicTest/handlers.jar 1 Jan 1970 00:00:00 -0000 >@@ -0,0 +1,21 @@ >+PK >+]w3 META-INF/??PK >+\w3???^jMETA-INF/MANIFEST.MF?M??LK-.? >+K-*????R0?3??r?Cq,HL?HU?%??Ly???RKRSt?*A?M?? >+Lt?L4?K?|3????+?KRs?<???4y?x?PK >+7w3org/PK >+7w3org/eclipse/PK >+7w3org/eclipse/ui/PK >+7w3org/eclipse/ui/dynamic/PK >+7w3 org/eclipse/ui/dynamic/handlers/PK >+7w3w??P0(4org/eclipse/ui/dynamic/handlers/DynamicHandler.class?P?J1=?kt????7?]4?qS)?V\?P????M??d2E?JW????off??? ?s??{????7cx?1?S??JF?>S<?|???XK??"R&?e???=4?_525??12~f?i+:C?T'?N?????q?.??:??h??? >+t???8T?N??b???\??*??+?1?[w???%sK=?????gK??l?;k?<????k%-?j*Wc?????F?K??????? >+?1?w?N?<??E??6G/?z.?>?V????K?.?>:?V???????N?<,???y{?w{E??PK >+]w3 ?AMETA-INF/??PK >+\w3???^j??+META-INF/MANIFEST.MFPK >+7w3?A?org/PK >+7w3?A?org/eclipse/PK >+7w3?Aorg/eclipse/ui/PK >+7w3?A4org/eclipse/ui/dynamic/PK >+7w3 ?Aiorg/eclipse/ui/dynamic/handlers/PK >+7w3w??P0(4???org/eclipse/ui/dynamic/handlers/DynamicHandler.classPK) >Index: data/org.eclipse.handlersExtensionDynamicTest/plugin.xml >=================================================================== >RCS file: data/org.eclipse.handlersExtensionDynamicTest/plugin.xml >diff -N data/org.eclipse.handlersExtensionDynamicTest/plugin.xml >--- /dev/null 1 Jan 1970 00:00:00 -0000 >+++ data/org.eclipse.handlersExtensionDynamicTest/plugin.xml 1 Jan 1970 00:00:00 -0000 >@@ -0,0 +1,31 @@ >+<?xml version="1.0" encoding="UTF-8"?> >+<?eclipse version="3.0"?> >+<plugin >+ id="handlersExtensionDynamicTest" >+ name="Handlers Extension Dynamic Test Plug-in" >+ version="1.0.0"> >+ >+ <runtime> >+ <library name="handlers.jar"> >+ <export name="*"/> >+ </library> >+ </runtime> >+ <requires> >+ <import plugin="org.eclipse.ui"/> >+ </requires> >+ >+ <extension >+ point="org.eclipse.ui.commands"> >+ <command >+ id="monkey" >+ name="Monkey" /> >+ </extension> >+ <extension >+ id="testDynamicHandlerAddition" >+ point="org.eclipse.ui.handlers"> >+ <handler >+ commandId="monkey" >+ class="org.eclipse.ui.dynamic.handlers.DynamicHandler" /> >+ </extension> >+ >+</plugin>
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 96600
:
26476
|
26477
|
26479
|
26556
| 26557 |
26558
|
26561
|
26590
|
26591