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 44702 Details for
Bug 145123
Support for generic web-based repositories
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]
Support for creating new task
WebRepositoryConnector1.patch (text/plain), 4.73 KB, created by
Eugene Kuleshov
on 2006-06-16 18:44:18 EDT
(
hide
)
Description:
Support for creating new task
Filename:
MIME Type:
Creator:
Eugene Kuleshov
Created:
2006-06-16 18:44:18 EDT
Size:
4.73 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P org.eclipse.mylar.sandbox >Index: src/org/eclipse/mylar/internal/sandbox/web/WebRepositoryConnector.java >=================================================================== >RCS file: /home/technology/org.eclipse.mylar/org.eclipse.mylar.sandbox/src/org/eclipse/mylar/internal/sandbox/web/WebRepositoryConnector.java,v >retrieving revision 1.2 >diff -u -r1.2 WebRepositoryConnector.java >--- src/org/eclipse/mylar/internal/sandbox/web/WebRepositoryConnector.java 16 Jun 2006 18:34:08 -0000 1.2 >+++ src/org/eclipse/mylar/internal/sandbox/web/WebRepositoryConnector.java 16 Jun 2006 22:34:14 -0000 >@@ -136,8 +136,7 @@ > } > > public IWizard getNewTaskWizard(TaskRepository taskRepository) { >- // TODO >- return null; >+ return new WebTaskWizard(taskRepository); > } > > >Index: src/org/eclipse/mylar/internal/sandbox/web/WebTaskNewPage.java >=================================================================== >RCS file: src/org/eclipse/mylar/internal/sandbox/web/WebTaskNewPage.java >diff -N src/org/eclipse/mylar/internal/sandbox/web/WebTaskNewPage.java >--- /dev/null 1 Jan 1970 00:00:00 -0000 >+++ src/org/eclipse/mylar/internal/sandbox/web/WebTaskNewPage.java 1 Jan 1970 00:00:00 -0000 >@@ -0,0 +1,40 @@ >+/******************************************************************************* >+ * Copyright (c) 2004 - 2006 University Of British Columbia 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: >+ * University Of British Columbia - initial API and implementation >+ *******************************************************************************/ >+ >+package org.eclipse.mylar.internal.sandbox.web; >+ >+import org.eclipse.jface.wizard.WizardPage; >+import org.eclipse.swt.SWT; >+import org.eclipse.swt.widgets.Composite; >+import org.eclipse.swt.widgets.Text; >+ >+ >+/** >+ * Wizard page for new task wizard >+ * >+ * @author Eugene Kuleshov >+ */ >+public class WebTaskNewPage extends WizardPage { >+ >+ public WebTaskNewPage() { >+ super("New web task"); >+ } >+ >+ public void createControl(Composite parent) { >+ Text text = new Text(parent, SWT.WRAP); >+ text.setEditable(false); >+ text.setText("This will open a web browser that can be used to create new task.\n" + >+ "Once done you can link newly created task back to the Task List."); >+ setControl(text); >+ } >+ >+} >+ >Index: src/org/eclipse/mylar/internal/sandbox/web/WebTaskWizard.java >=================================================================== >RCS file: src/org/eclipse/mylar/internal/sandbox/web/WebTaskWizard.java >diff -N src/org/eclipse/mylar/internal/sandbox/web/WebTaskWizard.java >--- /dev/null 1 Jan 1970 00:00:00 -0000 >+++ src/org/eclipse/mylar/internal/sandbox/web/WebTaskWizard.java 1 Jan 1970 00:00:00 -0000 >@@ -0,0 +1,57 @@ >+/******************************************************************************* >+ * Copyright (c) 2004 - 2006 University Of British Columbia 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: >+ * University Of British Columbia - initial API and implementation >+ *******************************************************************************/ >+ >+package org.eclipse.mylar.internal.sandbox.web; >+ >+import org.eclipse.jface.viewers.IStructuredSelection; >+import org.eclipse.jface.wizard.Wizard; >+import org.eclipse.mylar.internal.tasklist.ui.TaskUiUtil; >+import org.eclipse.mylar.provisional.tasklist.TaskRepository; >+import org.eclipse.ui.INewWizard; >+import org.eclipse.ui.IWorkbench; >+ >+/** >+ * Wizard used to create new web task >+ * >+ * @author Eugene Kuleshov >+ */ >+public class WebTaskWizard extends Wizard implements INewWizard { >+ >+ private final TaskRepository taskRepository; >+ >+ private IWorkbench workbench; >+ private IStructuredSelection selection; >+ >+ public WebTaskWizard(TaskRepository taskRepository) { >+ this.taskRepository = taskRepository; >+ } >+ >+ public void init(IWorkbench workbench, IStructuredSelection selection) { >+ this.workbench = workbench; >+ this.selection = selection; >+ } >+ >+ public void addPages() { >+ super.addPages(); >+ addPage(new WebTaskNewPage()); >+ } >+ >+ public boolean canFinish() { >+ return true; >+ } >+ >+ public boolean performFinish() { >+ TaskUiUtil.openUrl(taskRepository.getProperty(WebRepositoryConnector.PROPERTY_NEW_TASK_URL)); >+ return true; >+ } >+ >+} >+
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 145123
:
44702
|
45141
|
45184
|
45736
|
45811
|
45814
|
45892
|
46105
|
46185
|
46217
|
46219
|
46247
|
46300