Community
Participate
Working Groups
if (!repository.getConnectorKind().equals(LocalRepositoryConnector.CONNECTOR_KIND)) {
repository.setRepositoryUrl(newUrl);
}
settingsPage.applyTo(repository);
settingsPage.performFinish(repository);
if (oldUrl != null && newUrl != null && !oldUrl.equals(newUrl)) {
TasksUiPlugin.getRepositoryManager().notifyRepositoryUrlChanged(repository, oldUrl);
public boolean performFinish() {
if (canFinish()) {
taskRepository = new TaskRepository(connector.getConnectorKind(), settingsPage.getRepositoryUrl());
settingsPage.applyTo(taskRepository);
settingsPage.performFinish(taskRepository);
TasksUi.getRepositoryManager().addRepository(taskRepository);
return true;
/**
* {@inheritDoc}
* <p>
* Invokes {@link #applyTo(TaskRepository)} by default. Client may override.
*
* @since 3.6
*/
public void performFinish(TaskRepository repository) {
applyTo(repository);
* Returns a status if there is a message to display, otherwise null.
private IStatus computeValidation() {
public interface ITaskRepositoryPage extends IWizardPage {
* Invoked to commit changes from the wizard page to the <code>repository</code> object.
* @since 3.0
* @param repository
* the task repository to persists settings to
public abstract void applyTo(TaskRepository repository);
* Returns the URL currently entered on the page. This is used by the framework to detect if the URL of the
* repository has changed which requires a migration job to run.
* @return the repository URL that is currently entered
public abstract String getRepositoryUrl();
* Invoked when the wizard that contains page finishes. This method should commit all entered data to the
* <code>repository</code> object.
* @see #applyTo(TaskRepository)
public abstract void performFinish(TaskRepository repository);