Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

create gitlab connector (#37) #197

Merged
merged 15 commits into from
Aug 3, 2023
Merged
Show file tree
Hide file tree
Changes from 12 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .mvn/maven.config
Original file line number Diff line number Diff line change
@@ -1 +1 @@
-Dtycho.pomless.aggregator.names=mylyn.builds,mylyn.commons,mylyn.context,mylyn.egit,mylyn.github,mylyn.releng,mylyn.reviews,mylyn.tasks,mylyn.versions,connectors,bugzilla,bugzilla-rest,trac
-Dtycho.pomless.aggregator.names=mylyn.builds,mylyn.commons,mylyn.context,mylyn.egit,mylyn.github,mylyn.releng,mylyn.reviews,mylyn.tasks,mylyn.versions,connectors,bugzilla,bugzilla-rest,trac,gitlab
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
/*******************************************************************************
* Copyright (c) 2011 Tasktop Technologies and others.
*
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0 which is available at
* https://www.eclipse.org/legal/epl-2.0
*
*
* SPDX-License-Identifier: EPL-2.0
*
* Tasktop Technologies - initial API and implementation
Expand Down Expand Up @@ -46,7 +46,7 @@ public IdentityModel() {
}

public void addConnector(IdentityConnector connector) {
connectors.add(new GravatarConnector());
connectors.add(connector);
}

public synchronized IIdentity getIdentity(Account account) {
Expand Down
16 changes: 16 additions & 0 deletions mylyn.commons/org.eclipse.mylyn.commons.ui/.settings/.api_filters
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<component id="org.eclipse.mylyn.commons.ui" version="2">
<resource path="src/org/eclipse/mylyn/commons/ui/CommonImages.java" type="org.eclipse.mylyn.commons.ui.CommonImages">
<filter id="336658481">
<message_arguments>
<message_argument value="org.eclipse.mylyn.commons.ui.CommonImages"/>
<message_argument value="GITLAB"/>
</message_arguments>
</filter>
<filter id="1143996420">
<message_arguments>
<message_argument value="GITLAB"/>
</message_arguments>
</filter>
</resource>
</component>
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
/*******************************************************************************
* Copyright (c) 2004, 2015 Tasktop Technologies and others.
*
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0 which is available at
* https://www.eclipse.org/legal/epl-2.0
*
*
* SPDX-License-Identifier: EPL-2.0
*
* Tasktop Technologies - initial API and implementation
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-17">
<attributes>
<attribute name="module" value="true"/>
</attributes>
</classpathentry>
<classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
<classpathentry kind="src" path="src"/>
<classpathentry kind="output" path="bin"/>
</classpath>
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>org.eclipse.mylyn.gitlab.core</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>org.eclipse.jdt.core.javabuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.pde.ManifestBuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.pde.SchemaBuilder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.pde.PluginNature</nature>
<nature>org.eclipse.jdt.core.javanature</nature>
</natures>
</projectDescription>
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
eclipse.preferences.version=1
encoding/<project>=UTF-8
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
eclipse.preferences.version=1
org.eclipse.jdt.core.compiler.codegen.targetPlatform=17
org.eclipse.jdt.core.compiler.compliance=17
org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
org.eclipse.jdt.core.compiler.problem.enablePreviewFeatures=disabled
org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
org.eclipse.jdt.core.compiler.problem.reportPreviewFeatures=warning
org.eclipse.jdt.core.compiler.release=enabled
org.eclipse.jdt.core.compiler.source=17
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: Gitlab Connector Core
Bundle-SymbolicName: org.eclipse.mylyn.gitlab.core;singleton:=true
Bundle-Vendor: %Bundle-Vendor
Bundle-Version: 4.0.0.qualifier
Export-Package: org.eclipse.mylyn.gitlab.core,
org.eclipse.mylyn.internal.gitlab.core;x-internal:=true
Import-Package: com.google.common.base;version="31.1.0",
com.google.common.cache;version="31.1.0",
com.google.common.collect;version="31.1.0",
com.google.common.util.concurrent;version="31.1.0",
com.google.gson;version="2.10.1",
com.google.gson.reflect;version="2.10.1",
com.google.gson.stream;version="2.10.1",
org.apache.http;version="4.4.16",
org.apache.http.client;version="4.5.13",
org.apache.http.client.cache;version="4.5.13",
org.apache.http.client.config;version="4.5.13",
org.apache.http.client.entity;version="4.5.13",
org.apache.http.client.fluent;version="4.5.13",
org.apache.http.client.methods;version="4.5.13",
org.apache.http.client.params;version="4.5.13",
org.apache.http.client.protocol;version="4.5.13",
org.apache.http.client.utils;version="4.5.13",
org.apache.http.entity;version="4.4.16",
org.apache.http.message;version="4.4.16"
Bundle-Activator: org.eclipse.mylyn.gitlab.core.GitlabCoreActivator
Bundle-ClassPath: .
Require-Bundle: org.eclipse.core.runtime,
org.eclipse.equinox.security;bundle-version="1.3.1000",
org.eclipse.jdt.annotation,
org.eclipse.mylyn.commons.core;bundle-version="4.0.0",
org.eclipse.mylyn.commons.net;bundle-version="4.0.0",
org.eclipse.mylyn.commons.repositories.core;bundle-version="4.0.0",
org.eclipse.mylyn.commons.repositories.http.core;bundle-version="4.0.0",
org.eclipse.mylyn.tasks.core;bundle-version="4.0.0"
Bundle-RequiredExecutionEnvironment: JavaSE-17
Automatic-Module-Name: org.eclipse.mylyn.gitlab.core
Bundle-ActivationPolicy: lazy
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
###############################################################################
# Copyright (c) 2023 Frank Becker and others.
# All rights reserved. This program and the accompanying materials
# are made available under the terms of the Eclipse Public License v2.0
# which accompanies this distribution, and is available at
# http://www.eclipse.org/legal/epl-v20.html
###############################################################################
bin.includes = META-INF/,\
.,\
plugin.properties,\
plugin.xml
source.. = src/
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
###############################################################################
# Copyright (c) 2009, 2013 Tasktop Technologies and others.
#
# This program and the accompanying materials are made available under the
# terms of the Eclipse Public License v. 2.0 which is available at
# https://www.eclipse.org/legal/epl-2.0
#
# SPDX-License-Identifier: EPL-2.0
#
# Contributors:
# Tasktop Technologies - initial API and implementation
###############################################################################
#Properties file for org.eclipse.mylyn.bugzilla.core
Bundle-Vendor = Eclipse Mylyn
Bundle-Name = Gitlab Connector Core

gitlab.repository.name=Gitlab Repository
GitlabRepositoryConnector.name=Gitlab Repository Connector
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
<?xml version="1.0" encoding="UTF-8"?>
<?eclipse version="3.4"?>
<!--
Copyright (c) 2023 Frank Becker and others.

This program and the accompanying materials are made available under the
terms of the Eclipse Public License v. 2.0 which is available at
https://www.eclipse.org/legal/epl-2.0

SPDX-License-Identifier: EPL-2.0

Contributors:
Frank Becker - initial API and implementation
-->
<plugin>
<extension
id="org.eclipse.mylyn.gitlab.repository"
name="%gitlab.repository.name"
point="org.eclipse.mylyn.tasks.core.repositories">
<connectorCore
class="org.eclipse.mylyn.internal.gitlab.core.GitlabRepositoryConnector"
id="org.eclipse.mylyn.gitlab"
name="%GitlabRepositoryConnector.name">
</connectorCore>
</extension>
</plugin>
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
/*******************************************************************************
* Copyright (c) 2023 Frank Becker and others.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0 which is available at
* https://www.eclipse.org/legal/epl-2.0
*
* SPDX-License-Identifier: EPL-2.0
*
* Contributors:
* Frank Becker - initial API and implementation
*******************************************************************************/
package org.eclipse.mylyn.gitlab.core;
BeckerFrank marked this conversation as resolved.
Show resolved Hide resolved

import java.util.concurrent.TimeUnit;

public final class Duration {
final TimeUnit unit;

final long value;

public Duration(long value, TimeUnit unit) {
this.unit = unit;
this.value = value;
}

public TimeUnit getUnit() {
return unit;
}

public long getValue() {
return value;
}

}
Loading