Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
View | Details | Raw Unified | Return to bug 237500 | Differences between
and this patch

Collapse All | Expand All

(-)plugin.xml (+25 lines)
Lines 375-383 Link Here
375
                  class="org.eclipse.mylyn.internal.sandbox.ui.editors.EditorStyleContributionItem"
375
                  class="org.eclipse.mylyn.internal.sandbox.ui.editors.EditorStyleContributionItem"
376
                  id="org.eclipse.mylyn.sandbox.ui.editorStyleDropDown">
376
                  id="org.eclipse.mylyn.sandbox.ui.editorStyleDropDown">
377
            </dynamic>
377
            </dynamic>
378
            <visibleWhen
379
                  checkEnabled="false">
380
               <and>
381
                  <count
382
                        value="1">
383
                  </count>
384
                  <iterate>
385
                     <test
386
                           forcePluginActivation="false"
387
                           property="org.eclipse.mylyn.repository.connectorKind"
388
                           value="bugzilla">
389
                     </test>
390
                  </iterate>
391
               </and>
392
            </visibleWhen>
378
         </menu>
393
         </menu>
379
      </menuContribution>
394
      </menuContribution>
380
   </extension>
395
   </extension>
396
   <extension
397
         point="org.eclipse.core.expressions.propertyTesters">
398
      <propertyTester
399
            class="org.eclipse.mylyn.internal.sandbox.ui.util.TaskRepositoryPropertyTester"
400
            id="org.eclipse.mylyn.sandbox.ui.repositoryPropertyTester"
401
            namespace="org.eclipse.mylyn.repository"
402
            properties="connectorKind"
403
            type="org.eclipse.mylyn.tasks.core.TaskRepository">
404
      </propertyTester>
405
   </extension>
381
   
406
   
382
   
407
   
383
   
408
   
(-)META-INF/MANIFEST.MF (-1 / +3 lines)
Lines 27-33 Link Here
27
 org.eclipse.mylyn.monitor.core;bundle-version="[3.0.0,4.0.0)",
27
 org.eclipse.mylyn.monitor.core;bundle-version="[3.0.0,4.0.0)",
28
 org.eclipse.mylyn.resources.ui;bundle-version="[3.0.0,4.0.0)",
28
 org.eclipse.mylyn.resources.ui;bundle-version="[3.0.0,4.0.0)",
29
 org.eclipse.mylyn.ide.ant;bundle-version="[3.0.0,4.0.0)",
29
 org.eclipse.mylyn.ide.ant;bundle-version="[3.0.0,4.0.0)",
30
 org.eclipse.mylyn.pde.ui;bundle-version="[3.0.0,4.0.0)"
30
 org.eclipse.mylyn.pde.ui;bundle-version="[3.0.0,4.0.0)",
31
 org.eclipse.core.expressions
31
Bundle-ActivationPolicy: lazy
32
Bundle-ActivationPolicy: lazy
32
Bundle-Vendor: Eclipse.org
33
Bundle-Vendor: Eclipse.org
33
Export-Package: org.eclipse.mylyn.internal.sandbox.bridge.bugs;x-internal:=true,
34
Export-Package: org.eclipse.mylyn.internal.sandbox.bridge.bugs;x-internal:=true,
Lines 40-42 Link Here
40
 org.eclipse.mylyn.internal.sandbox.ui.views;x-internal:=true
41
 org.eclipse.mylyn.internal.sandbox.ui.views;x-internal:=true
41
Bundle-RequiredExecutionEnvironment: J2SE-1.5
42
Bundle-RequiredExecutionEnvironment: J2SE-1.5
42
Bundle-ClassPath: .
43
Bundle-ClassPath: .
44
Import-Package: org.eclipse.mylyn.commons.net
(-)src/org/eclipse/mylyn/internal/sandbox/ui/util/TaskRepositoryPropertyTester.java (+33 lines)
Added Link Here
1
/*******************************************************************************
2
 * Copyright (c) 2004, 2007 Mylyn project committers and others.
3
 * All rights reserved. This program and the accompanying materials
4
 * are made available under the terms of the Eclipse Public License v1.0
5
 * which accompanies this distribution, and is available at
6
 * http://www.eclipse.org/legal/epl-v10.html
7
 *******************************************************************************/
8
9
package org.eclipse.mylyn.internal.sandbox.ui.util;
10
11
import org.eclipse.core.expressions.PropertyTester;
12
import org.eclipse.mylyn.tasks.core.TaskRepository;
13
14
/**
15
 * @author Jingwen Ou
16
 */
17
18
public class TaskRepositoryPropertyTester extends PropertyTester {
19
20
	private static final String PROPERTY_CONNECTOR_KIND = "connectorKind";
21
22
	public boolean test(Object receiver, String property, Object[] args, Object expectedValue) {
23
		if (receiver instanceof TaskRepository) {
24
			TaskRepository taskRepository = (TaskRepository) receiver;
25
			if (PROPERTY_CONNECTOR_KIND.equals(property)) {
26
				return taskRepository.getConnectorKind().equals(expectedValue);
27
			}
28
		}
29
30
		return false;
31
	}
32
33
}

Return to bug 237500