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 46217 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]
fixing stuff after applied patch
Clipboard-attachment (text/plain), 6.87 KB, created by
Eugene Kuleshov
on 2006-07-12 19:17:25 EDT
(
hide
)
Description:
fixing stuff after applied patch
Filename:
MIME Type:
Creator:
Eugene Kuleshov
Created:
2006-07-12 19:17:25 EDT
Size:
6.87 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P org.eclipse.mylar.sandbox >Index: src/org/eclipse/mylar/internal/sandbox/web/WebRepositorySettingsPage.java >=================================================================== >RCS file: /home/technology/org.eclipse.mylar/sandbox/org.eclipse.mylar.sandbox/src/org/eclipse/mylar/internal/sandbox/web/WebRepositorySettingsPage.java,v >retrieving revision 1.4 >diff -u -r1.4 WebRepositorySettingsPage.java >--- src/org/eclipse/mylar/internal/sandbox/web/WebRepositorySettingsPage.java 12 Jul 2006 19:14:09 -0000 1.4 >+++ src/org/eclipse/mylar/internal/sandbox/web/WebRepositorySettingsPage.java 12 Jul 2006 23:12:30 -0000 >@@ -22,89 +22,54 @@ > import org.eclipse.swt.widgets.Composite; > > /** >- * Settings page for generic web-based repository connector >+ * Settings page for generic web-based repository connector > * > * @author Eugene Kuleshov > */ > public class WebRepositorySettingsPage extends AbstractRepositorySettingsPage implements IPropertyChangeListener { > private static final String TITLE = "Web Repository Settings"; >- > private static final String DESCRIPTION = "Generic web-based repository connector"; > > protected StringFieldEditor taskPrefixUrlEditor; >- > protected StringFieldEditor newTaskUrlEditor; >- >- private static WebRepositoryInfo[] REPOSITORY_TEMPLATES = { >- new WebRepositoryInfo( >- "Subclipse (IssueZilla)", >- // "http://subclipse.tigris.org/issues/buglist.cgi?issue_status=NEW&issue_status=STARTED&issue_status=REOPENED&order=Issue+Number", >- "http://subclipse.tigris.org/issues/", >- "http://subclipse.tigris.org/issues/enter_bug.cgi?component=subclipse", >- "http://subclipse.tigris.org/issues/show_bug.cgi?id="), >- new WebRepositoryInfo( >- "GlasFish (IssueZilla)", >- // "https://glassfish.dev.java.net/issues/buglist.cgi?component=glassfish&issue_status=NEW&issue_status=STARTED&issue_status=REOPENED&order=Issue+Number", >- "https://glassfish.dev.java.net/servlets/ProjectIssues", >- "https://glassfish.dev.java.net/issues/enter_bug.cgi?issue_type=DEFECT", >- "https://glassfish.dev.java.net/issues/show_bug.cgi?id="), >- new WebRepositoryInfo("Spring Framework (Jira)", >- "http://opensource.atlassian.com/projects/spring/browse/SPR", >- "http://opensource.atlassian.com/projects/spring/secure/CreateIssue!default.jspa", >- "http://opensource.atlassian.com/projects/spring/browse/"), >- new WebRepositoryInfo("ASM (GForge)", "http://forge.objectweb.org/tracker/?atid=100023&group_id=23", >- "http://forge.objectweb.org/tracker/?func=add&group_id=23&atid=100023", >- "http://forge.objectweb.org/tracker/index.php?func=detail&group_id=23&atid=100023&aid="), >- new WebRepositoryInfo("edgewall.org (Trac)", >- // "http://trac.edgewall.org/query?status=new&status=assigned&status=reopened&order=id" >- "http://trac.edgewall.org/", "http://trac.edgewall.org/newticket", >- "http://trac.edgewall.org/ticket/"), }; >- >+ >+ > public WebRepositorySettingsPage(AbstractRepositoryConnector connector) { > super(TITLE, DESCRIPTION, connector); > } > > @Override > protected void createAdditionalControls(Composite parent) { >- for (WebRepositoryInfo info : REPOSITORY_TEMPLATES) { >- if (repositoryLabelCombo.indexOf(info.label) == -1) { >- repositoryLabelCombo.add(info.label); >+ for (WebRepositoryTemplate template : WebRepositoryConnector.REPOSITORY_TEMPLATES) { >+ if(repositoryLabelCombo.indexOf(template.label)==-1) { >+ repositoryLabelCombo.add(template.label); > } > } >- >+ > repositoryLabelCombo.addSelectionListener(new SelectionListener() { > >- public void widgetSelected(SelectionEvent e) { >- WebRepositoryInfo info = getInfo(repositoryLabelCombo.getText()); >- if (info != null) { >- serverUrlEditor.setStringValue(info.repositoryUrl); >- taskPrefixUrlEditor.setStringValue(info.taskPrefix); >- newTaskUrlEditor.setStringValue(info.newTaskUrl); >- } >- } >- >- public void widgetDefaultSelected(SelectionEvent e) { >- // ignore >- } >- >- private WebRepositoryInfo getInfo(String text) { >- for (WebRepositoryInfo info : REPOSITORY_TEMPLATES) { >- if (text.equals(info.label)) { >- return info; >+ public void widgetSelected(SelectionEvent e) { >+ WebRepositoryTemplate template = WebRepositoryConnector.getTemplate(repositoryLabelCombo.getText()); >+ if(template!=null) { >+ serverUrlEditor.setStringValue(template.url); >+ taskPrefixUrlEditor.setStringValue(template.prefix); >+ newTaskUrlEditor.setStringValue(template.newTask); > } > } >- return null; >- } >- }); > >- taskPrefixUrlEditor = new StringFieldEditor("taskPrefixUrl", "Task prefix URL:", StringFieldEditor.UNLIMITED, >- parent); >+ public void widgetDefaultSelected(SelectionEvent e) { >+ // ignore >+ } >+ >+ }); >+ >+ taskPrefixUrlEditor = new StringFieldEditor("taskPrefixUrl", "Task prefix URL:", StringFieldEditor.UNLIMITED, parent); > taskPrefixUrlEditor.setPropertyChangeListener(this); >- >+ > newTaskUrlEditor = new StringFieldEditor("newTaskUrl", "New task URL:", StringFieldEditor.UNLIMITED, parent); > newTaskUrlEditor.setPropertyChangeListener(this); >- >- if (repository != null) { >+ >+ if(repository!=null) { > taskPrefixUrlEditor.setStringValue(repository.getProperty(WebRepositoryConnector.PROPERTY_TASK_PREFIX_URL)); > newTaskUrlEditor.setStringValue(repository.getProperty(WebRepositoryConnector.PROPERTY_NEW_TASK_URL)); > } >@@ -118,11 +83,12 @@ > // ignore > } > >+ > // IPropertyChangeListener >- >+ > public void propertyChange(PropertyChangeEvent event) { > Object source = event.getSource(); >- if (source == taskPrefixUrlEditor || source == newTaskUrlEditor) { >+ if(source==taskPrefixUrlEditor || source == newTaskUrlEditor) { > getWizard().getContainer().updateButtons(); > } > } >@@ -130,27 +96,10 @@ > @Override > public TaskRepository createTaskRepository() { > TaskRepository repository = super.createTaskRepository(); >- repository.setProperty(WebRepositoryConnector.PROPERTY_TASK_PREFIX_URL, taskPrefixUrlEditor.getStringValue()); >- repository.setProperty(WebRepositoryConnector.PROPERTY_NEW_TASK_URL, newTaskUrlEditor.getStringValue()); >+ repository.setProperty(WebRepositoryConnector.PROPERTY_TASK_PREFIX_URL, taskPrefixUrlEditor.getStringValue()); >+ repository.setProperty(WebRepositoryConnector.PROPERTY_NEW_TASK_URL, newTaskUrlEditor.getStringValue()); > return repository; > } >- >- private static class WebRepositoryInfo { >- public final String label; >- >- public final String repositoryUrl; >- >- public final String newTaskUrl; >- >- public final String taskPrefix; >- >- public WebRepositoryInfo(String label, String repositoryUrl, String newTaskUrl, String taskPrefix) { >- this.label = label; >- this.repositoryUrl = repositoryUrl; >- this.newTaskUrl = newTaskUrl; >- this.taskPrefix = taskPrefix; >- } >- >- } >- >+ > } >+
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