blob: 78c336c82cc31800376d06419fe6dc1fa15b39d2 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
/*******************************************************************************
* Copyright (c) 2014 Frank Becker 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:
* Frank Becker - initial API and implementation
*******************************************************************************/
package org.eclipse.mylyn.internal.bugzilla.rest.ui;
import java.text.MessageFormat;
import org.eclipse.mylyn.internal.bugzilla.rest.core.BugzillaRestCore;
import org.eclipse.mylyn.tasks.core.TaskRepository;
import org.eclipse.mylyn.tasks.ui.wizards.AbstractRepositorySettingsPage;
import org.eclipse.swt.widgets.Composite;
public class BugzillaRestRepositorySettingsPage extends AbstractRepositorySettingsPage {
private static final String LABEL_VERSION_NUMBER = "5.0"; //$NON-NLS-1$
private static final String DESCRIPTION = MessageFormat.format(
"Supports Bugzilla {0} Example: https://bugs.eclipse.org/bugs/ (do not include rest.cgi)",
LABEL_VERSION_NUMBER);
public BugzillaRestRepositorySettingsPage(TaskRepository taskRepository) {
super("Bugzilla REST Repository Settings", DESCRIPTION, taskRepository);
setNeedsAnonymousLogin(true);
setNeedsValidateOnFinish(true);
}
@Override
public String getConnectorKind() {
return BugzillaRestCore.CONNECTOR_KIND;
}
@Override
protected void createAdditionalControls(Composite parent) {
// ignore
}
}
|