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 106068 Details for
Bug 237500
[wikitext] Task repository should have a properties field where configuration settings can be made
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]
a patch adding a PropertyTester
clipboard.txt (text/plain), 4.43 KB, created by
Jingwen 'Owen' Ou
on 2008-06-28 23:35:30 EDT
(
hide
)
Description:
a patch adding a PropertyTester
Filename:
MIME Type:
Creator:
Jingwen 'Owen' Ou
Created:
2008-06-28 23:35:30 EDT
Size:
4.43 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P org.eclipse.mylyn.sandbox.ui >Index: plugin.xml >=================================================================== >RCS file: /cvsroot/tools/org.eclipse.mylyn/sandbox/org.eclipse.mylyn.sandbox.ui/plugin.xml,v >retrieving revision 1.86 >diff -u -r1.86 plugin.xml >--- plugin.xml 27 Jun 2008 07:37:54 -0000 1.86 >+++ plugin.xml 29 Jun 2008 03:33:34 -0000 >@@ -375,9 +375,34 @@ > class="org.eclipse.mylyn.internal.sandbox.ui.editors.EditorStyleContributionItem" > id="org.eclipse.mylyn.sandbox.ui.editorStyleDropDown"> > </dynamic> >+ <visibleWhen >+ checkEnabled="false"> >+ <and> >+ <count >+ value="1"> >+ </count> >+ <iterate> >+ <test >+ forcePluginActivation="false" >+ property="org.eclipse.mylyn.repository.connectorKind" >+ value="bugzilla"> >+ </test> >+ </iterate> >+ </and> >+ </visibleWhen> > </menu> > </menuContribution> > </extension> >+ <extension >+ point="org.eclipse.core.expressions.propertyTesters"> >+ <propertyTester >+ class="org.eclipse.mylyn.internal.sandbox.ui.util.TaskRepositoryPropertyTester" >+ id="org.eclipse.mylyn.sandbox.ui.repositoryPropertyTester" >+ namespace="org.eclipse.mylyn.repository" >+ properties="connectorKind" >+ type="org.eclipse.mylyn.tasks.core.TaskRepository"> >+ </propertyTester> >+ </extension> > > > >Index: META-INF/MANIFEST.MF >=================================================================== >RCS file: /cvsroot/tools/org.eclipse.mylyn/sandbox/org.eclipse.mylyn.sandbox.ui/META-INF/MANIFEST.MF,v >retrieving revision 1.211 >diff -u -r1.211 MANIFEST.MF >--- META-INF/MANIFEST.MF 25 Jun 2008 21:09:46 -0000 1.211 >+++ META-INF/MANIFEST.MF 29 Jun 2008 03:33:34 -0000 >@@ -27,7 +27,8 @@ > org.eclipse.mylyn.monitor.core;bundle-version="[3.0.0,4.0.0)", > org.eclipse.mylyn.resources.ui;bundle-version="[3.0.0,4.0.0)", > org.eclipse.mylyn.ide.ant;bundle-version="[3.0.0,4.0.0)", >- org.eclipse.mylyn.pde.ui;bundle-version="[3.0.0,4.0.0)" >+ org.eclipse.mylyn.pde.ui;bundle-version="[3.0.0,4.0.0)", >+ org.eclipse.core.expressions > Bundle-ActivationPolicy: lazy > Bundle-Vendor: Eclipse.org > Export-Package: org.eclipse.mylyn.internal.sandbox.bridge.bugs;x-internal:=true, >@@ -40,3 +41,4 @@ > org.eclipse.mylyn.internal.sandbox.ui.views;x-internal:=true > Bundle-RequiredExecutionEnvironment: J2SE-1.5 > Bundle-ClassPath: . >+Import-Package: org.eclipse.mylyn.commons.net >Index: src/org/eclipse/mylyn/internal/sandbox/ui/util/TaskRepositoryPropertyTester.java >=================================================================== >RCS file: src/org/eclipse/mylyn/internal/sandbox/ui/util/TaskRepositoryPropertyTester.java >diff -N src/org/eclipse/mylyn/internal/sandbox/ui/util/TaskRepositoryPropertyTester.java >--- /dev/null 1 Jan 1970 00:00:00 -0000 >+++ src/org/eclipse/mylyn/internal/sandbox/ui/util/TaskRepositoryPropertyTester.java 1 Jan 1970 00:00:00 -0000 >@@ -0,0 +1,33 @@ >+/******************************************************************************* >+ * Copyright (c) 2004, 2007 Mylyn project committers 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 >+ *******************************************************************************/ >+ >+package org.eclipse.mylyn.internal.sandbox.ui.util; >+ >+import org.eclipse.core.expressions.PropertyTester; >+import org.eclipse.mylyn.tasks.core.TaskRepository; >+ >+/** >+ * @author Jingwen Ou >+ */ >+ >+public class TaskRepositoryPropertyTester extends PropertyTester { >+ >+ private static final String PROPERTY_CONNECTOR_KIND = "connectorKind"; >+ >+ public boolean test(Object receiver, String property, Object[] args, Object expectedValue) { >+ if (receiver instanceof TaskRepository) { >+ TaskRepository taskRepository = (TaskRepository) receiver; >+ if (PROPERTY_CONNECTOR_KIND.equals(property)) { >+ return taskRepository.getConnectorKind().equals(expectedValue); >+ } >+ } >+ >+ return false; >+ } >+ >+}
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 237500
:
105347
|
105848
|
105957
|
105980
|
105981
| 106068 |
106069
|
106070