Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
View | Details | Raw Unified | Return to bug 180796 | Differences between
and this patch

Collapse All | Expand All

(-)src/org/eclipse/ecf/bulletinboard/IMessageBase.java (-82 lines)
Removed Link Here
1
/*******************************************************************************
2
 * Copyright (c) 2005, 2006 Erkki Lindpere and others.
3
 * All rights reserved. This program and the accompanying materials
4
 * are made available under the terms of the Eclipse Public License v1.0
5
 * which accompanies this distribution, and is available at
6
 * http://www.eclipse.org/legal/epl-v10.html
7
 *
8
 * Contributors:
9
 *     Erkki Lindpere - initial API and implementation
10
 *******************************************************************************/
11
package org.eclipse.ecf.bulletinboard;
12
13
import java.util.Date;
14
15
/**
16
 * This interface contains accessors for properties common to Private and Thread
17
 * Messages.
18
 * 
19
 * @author Erkki
20
 */
21
public interface IMessageBase extends IBBObject {
22
	/**
23
	 * Returns the moment in time when this message was posted.
24
	 * 
25
	 * TODO Design timezone handling.
26
	 * 
27
	 * @return
28
	 */
29
	public Date getTimePosted();
30
31
	/**
32
	 * Sets the name (title) of the message.
33
	 * 
34
	 * @param name
35
	 *            the name to set
36
	 * @throws IllegalWriteException
37
	 *             if the message is read-only
38
	 */
39
	public void setName(String name) throws IllegalWriteException;
40
41
	/**
42
	 * Returns the contents of the message.
43
	 * 
44
	 * @return contents
45
	 */
46
	public String getMessage();
47
48
	/**
49
	 * Sets the contents of the message.
50
	 * 
51
	 * @param message
52
	 *            the contents to set
53
	 * @throws IllegalWriteException
54
	 *             if the message is read-only
55
	 */
56
	public void setMessage(String message) throws IllegalWriteException;
57
58
	/**
59
	 * Returns the author (sender) of the message.
60
	 * 
61
	 * @return author
62
	 */
63
	public IMember getFrom();
64
65
	/**
66
	 * Returns the message that this one is a reply to or null if it's not a
67
	 * reply.
68
	 * 
69
	 * @return the message that this is a reply to
70
	 */
71
	public IMessageBase getReplyTo();
72
73
	/**
74
	 * Sets this message as a reply to another message.
75
	 * 
76
	 * @param message
77
	 *            the message that this will be set as a reply to.
78
	 * @throws IllegalWriteException
79
	 *             if the message is read-only
80
	 */
81
	public void setReplyTo(IMessageBase message) throws IllegalWriteException;
82
}
(-)src/org/eclipse/ecf/bulletinboard/BBException.java (+5 lines)
Lines 10-15 Link Here
10
 *******************************************************************************/
10
 *******************************************************************************/
11
package org.eclipse.ecf.bulletinboard;
11
package org.eclipse.ecf.bulletinboard;
12
12
13
import org.eclipse.core.runtime.IStatus;
13
import org.eclipse.ecf.core.util.ECFException;
14
import org.eclipse.ecf.core.util.ECFException;
14
15
15
/**
16
/**
Lines 35-38 Link Here
35
	public BBException(Throwable cause) {
36
	public BBException(Throwable cause) {
36
		super(cause);
37
		super(cause);
37
	}
38
	}
39
40
	public BBException(IStatus status) {
41
		super(status);
42
	}
38
}
43
}
(-)src/org/eclipse/ecf/bulletinboard/IForum.java (-5 / +19 lines)
Lines 14-27 Link Here
14
import java.util.List;
14
import java.util.List;
15
15
16
/**
16
/**
17
 * This interface models a forum or a forum category.
17
 * This is an interface for forums and forum categories.
18
 * 
18
 * 
19
 * Some bulletin boards support flexible forum structures, including forums
19
 * Some bulletin boards support flexible forum structures, including forums
20
 * inside other forums; some support forum categories that can contain forums,
20
 * inside other forums; some support forum categories that can contain forums,
21
 * but no forums inside other forums. Implementations should model categories as
21
 * but no forums inside other forums. Implementations should model categories as
22
 * forums that do not have the HOLDS_FORUMS type.
22
 * forums that have the HOLDS_FORUMS type, but not the HOLDS_THREADS type.
23
 * 
23
 * 
24
 * Two different forum instances representing the same forum must be equal.
24
 * <pre>
25
 * Flexible structure: 
26
 * Top Level Forum 1 - HOLDS_FORUMS | HOLDS_THREADS
27
 * 		Sub Forum 2 - HOLDS_FORUMS | HOLDS_THREADS
28
 * 			Sub Sub Forum 3 - HOLDS_FORUMS | HOLDS_THREADS
29
 * 		Sub Forum 4 - HOLDS_FORUMS | HOLDS_THREADS
30
 * 
31
 * Fixed structure:
32
 * Category 1 - HOLDS_FORUMS
33
 * 		Forum 1 - HOLDS_THREADS
34
 * Category 2 - HOLDS_FORUMS
35
 * 		Forum 2 - HOLDS_THREADS
36
 * </pre>
37
 * 
38
 * Two different IForum instances representing the same forum must be equal.
25
 * 
39
 * 
26
 * @author Erkki
40
 * @author Erkki
27
 */
41
 */
Lines 32-38 Link Here
32
	public static final int HOLDS_FORUMS = 1;
46
	public static final int HOLDS_FORUMS = 1;
33
47
34
	/**
48
	/**
35
	 * This forum can contain messages.
49
	 * This forum can contain message threads.
36
	 */
50
	 */
37
	public static final int HOLDS_THREADS = 2;
51
	public static final int HOLDS_THREADS = 2;
38
52
Lines 56-62 Link Here
56
	 * 
70
	 * 
57
	 * @return the parent of this forum or null
71
	 * @return the parent of this forum or null
58
	 */
72
	 */
59
	public IForum getParentForum();
73
	public IForum getParent();
60
74
61
	/**
75
	/**
62
	 * Returns the subforums of this forum or an empty list if there are none.
76
	 * Returns the subforums of this forum or an empty list if there are none.
(-)src/org/eclipse/ecf/bulletinboard/IPrivateMessage.java (-1 / +1 lines)
Lines 20-26 Link Here
20
 * 
20
 * 
21
 * @author Erkki
21
 * @author Erkki
22
 */
22
 */
23
public interface IPrivateMessage extends IMessageBase {
23
public interface IPrivateMessage extends IBBMessage {
24
24
25
	/**
25
	/**
26
	 * Returns the recipients of this message.
26
	 * Returns the recipients of this message.
(-)src/org/eclipse/ecf/bulletinboard/IThreadMessage.java (-1 / +1 lines)
Lines 18-24 Link Here
18
 * 
18
 * 
19
 * @author Erkki
19
 * @author Erkki
20
 */
20
 */
21
public interface IThreadMessage extends IMessageBase {
21
public interface IThreadMessage extends IBBMessage {
22
	/**
22
	/**
23
	 * Returns the thread that this message belongs to or null if it's unknown.
23
	 * Returns the thread that this message belongs to or null if it's unknown.
24
	 * 
24
	 * 
(-)src/org/eclipse/ecf/bulletinboard/IBBMessage.java (+84 lines)
Added Link Here
1
/*******************************************************************************
2
 * Copyright (c) 2005, 2006 Erkki Lindpere and others.
3
 * All rights reserved. This program and the accompanying materials
4
 * are made available under the terms of the Eclipse Public License v1.0
5
 * which accompanies this distribution, and is available at
6
 * http://www.eclipse.org/legal/epl-v10.html
7
 *
8
 * Contributors:
9
 *     Erkki Lindpere - initial API and implementation
10
 *******************************************************************************/
11
package org.eclipse.ecf.bulletinboard;
12
13
import java.util.Date;
14
15
/**
16
 * This is a super interface for all bulletin board messages and contains
17
 * accessors for properties common to both private and thread messages.
18
 * 
19
 * @see IThreadMessage, IPrivateMessage
20
 * 
21
 * @author Erkki
22
 */
23
public interface IBBMessage extends IBBObject {
24
	/**
25
	 * Returns the author (sender) of the message.
26
	 * 
27
	 * @return author
28
	 */
29
	public IMember getFrom();
30
31
	/**
32
	 * Returns the moment in time when this message was posted.
33
	 * 
34
	 * TODO Design timezone handling.
35
	 * 
36
	 * @return
37
	 */
38
	public Date getTimePosted();
39
40
	/**
41
	 * Sets the name (title) of the message.
42
	 * 
43
	 * @param name
44
	 *            the name to set
45
	 * @throws IllegalWriteException
46
	 *             if the message is read-only
47
	 */
48
	public void setName(String name) throws IllegalWriteException;
49
50
	/**
51
	 * Returns the contents of the message.
52
	 * 
53
	 * @return contents
54
	 */
55
	public String getBody();
56
57
	/**
58
	 * Sets the contents of the message.
59
	 * 
60
	 * @param message
61
	 *            the contents to set
62
	 * @throws IllegalWriteException
63
	 *             if the message is read-only
64
	 */
65
	public void setBody(String message) throws IllegalWriteException;
66
67
	/**
68
	 * Returns the message that this one is a reply to or null if it's not a
69
	 * reply.
70
	 * 
71
	 * @return the message that this is a reply to
72
	 */
73
	public IBBMessage getReplyTo();
74
75
	/**
76
	 * Sets this message as a reply to another message.
77
	 * 
78
	 * @param message
79
	 *            the message that this will be set as a reply to.
80
	 * @throws IllegalWriteException
81
	 *             if the message is read-only
82
	 */
83
	public void setReplyTo(IBBMessage message) throws IllegalWriteException;
84
}
(-)src/org/eclipse/ecf/internal/provider/phpbb/ThreadMessage.java (-5 / +5 lines)
Lines 13-19 Link Here
13
import java.util.Date;
13
import java.util.Date;
14
14
15
import org.eclipse.ecf.bulletinboard.IMember;
15
import org.eclipse.ecf.bulletinboard.IMember;
16
import org.eclipse.ecf.bulletinboard.IMessageBase;
16
import org.eclipse.ecf.bulletinboard.IBBMessage;
17
import org.eclipse.ecf.bulletinboard.IThread;
17
import org.eclipse.ecf.bulletinboard.IThread;
18
import org.eclipse.ecf.bulletinboard.IThreadMessage;
18
import org.eclipse.ecf.bulletinboard.IThreadMessage;
19
import org.eclipse.ecf.bulletinboard.IllegalWriteException;
19
import org.eclipse.ecf.bulletinboard.IllegalWriteException;
Lines 49-55 Link Here
49
		return -1;
49
		return -1;
50
	}
50
	}
51
51
52
	public String getMessage() {
52
	public String getBody() {
53
		return message;
53
		return message;
54
	}
54
	}
55
55
Lines 57-68 Link Here
57
		return author;
57
		return author;
58
	}
58
	}
59
59
60
	public IMessageBase getReplyTo() {
60
	public IBBMessage getReplyTo() {
61
		// TODO Implement reply relationships
61
		// TODO Implement reply relationships
62
		return null;
62
		return null;
63
	}
63
	}
64
64
65
	public void setReplyTo(IMessageBase message) throws IllegalWriteException {
65
	public void setReplyTo(IBBMessage message) throws IllegalWriteException {
66
		// TODO Auto-generated method stub
66
		// TODO Auto-generated method stub
67
	}
67
	}
68
68
Lines 89-95 Link Here
89
		this.name = name;
89
		this.name = name;
90
	}
90
	}
91
91
92
	public void setMessage(String message) throws IllegalWriteException {
92
	public void setBody(String message) throws IllegalWriteException {
93
		if ((mode & READ_ONLY) == READ_ONLY) {
93
		if ((mode & READ_ONLY) == READ_ONLY) {
94
			throw new IllegalWriteException(E_READ_ONLY);
94
			throw new IllegalWriteException(E_READ_ONLY);
95
		}
95
		}
(-)src/org/eclipse/ecf/internal/provider/phpbb/PHPBBParser.java (-3 / +3 lines)
Lines 64-71 Link Here
64
64
65
	public static final Pattern PAT_FORUM_OR_CATEGORY = Pattern
65
	public static final Pattern PAT_FORUM_OR_CATEGORY = Pattern
66
			.compile("(?:"
66
			.compile("(?:"
67
					+ "<span class=\"forumlink\"> <a href=\"viewforum.php\\?f=([0-9]+)(?:.*)\" class=\"forumlink\">(.*)</a><br />"
67
					+ "<span class=\"forumlink\">(?:\\s*)<a href=\"viewforum.php\\?f=([0-9]+)(?:.*)\" class=\"forumlink\">(.*)</a><br />"
68
					+ "(?:\\s*)</span> <span class=\"genmed\">(?s)(.*?)</span>"
68
					+ "(?:\\s*)</span>(?:\\s*)<span class=\"gen(?:med|small)\">(?s)(.*?)</span>"
69
					+ ")|(?:"
69
					+ ")|(?:"
70
					+ "<a href=\"index.php\\?c=([0-9]+)(?:.*)\" class=\"cattitle\">(.*)</a>"
70
					+ "<a href=\"index.php\\?c=([0-9]+)(?:.*)\" class=\"cattitle\">(.*)</a>"
71
					+ ")");
71
					+ ")");
Lines 136-142 Link Here
136
				.defaultCustom(
136
				.defaultCustom(
137
						Pattern
137
						Pattern
138
								.compile(
138
								.compile(
139
										"<a href=\"viewtopic.php\\?t=([0-9]+)(?:.*?)\" class=\"topictitle\">(.*)</a>(?:.*?)<span class=\"name\">(.+?)</span>",
139
										"<a href=\"viewtopic.php\\?t=([0-9]+?)(?:.*?)\" class=\"topictitle\">(.+?)</a>(?:.*?)<span class=\"name\">(.+?)</span>",
140
										Pattern.DOTALL), new String[] { "id",
140
										Pattern.DOTALL), new String[] { "id",
141
								"name", "authorInfo" });
141
								"name", "authorInfo" });
142
	}
142
	}
(-)src/org/eclipse/ecf/internal/provider/phpbb/PHPBB.java (-1 / +1 lines)
Lines 91-97 Link Here
91
	public List<IForum> getTopLevelForums() {
91
	public List<IForum> getTopLevelForums() {
92
		List<IForum> topForums = new ArrayList<IForum>();
92
		List<IForum> topForums = new ArrayList<IForum>();
93
		for (IForum forum : getForums()) {
93
		for (IForum forum : getForums()) {
94
			if (forum.getParentForum() == null) {
94
			if (forum.getParent() == null) {
95
				topForums.add(forum);
95
				topForums.add(forum);
96
			}
96
			}
97
		}
97
		}
(-)src/org/eclipse/ecf/internal/provider/phpbb/Thread.java (-1 / +1 lines)
Lines 133-139 Link Here
133
				"posting.php");
133
				"posting.php");
134
		NameValuePair[] params = new NameValuePair[] {
134
		NameValuePair[] params = new NameValuePair[] {
135
				new NameValuePair("subject", msg.getName()),
135
				new NameValuePair("subject", msg.getName()),
136
				new NameValuePair("message", msg.getMessage()),
136
				new NameValuePair("message", msg.getBody()),
137
				new NameValuePair("t", String.valueOf(id.getLongValue())),
137
				new NameValuePair("t", String.valueOf(id.getLongValue())),
138
				new NameValuePair("mode", "reply"),
138
				new NameValuePair("mode", "reply"),
139
				// checkbox : disabled new NameValuePair("disable_smilies",
139
				// checkbox : disabled new NameValuePair("disable_smilies",
(-)src/org/eclipse/ecf/internal/provider/phpbb/Forum.java (-2 / +2 lines)
Lines 69-75 Link Here
69
		return IForum.HOLDS_THREADS;
69
		return IForum.HOLDS_THREADS;
70
	}
70
	}
71
71
72
	public IForum getParentForum() {
72
	public IForum getParent() {
73
		return parent;
73
		return parent;
74
	}
74
	}
75
75
Lines 123-129 Link Here
123
				new NameValuePair("subject", thread.getPrePostMessage()
123
				new NameValuePair("subject", thread.getPrePostMessage()
124
						.getName()),
124
						.getName()),
125
				new NameValuePair("message", thread.getPrePostMessage()
125
				new NameValuePair("message", thread.getPrePostMessage()
126
						.getMessage()),
126
						.getBody()),
127
				new NameValuePair("f", String.valueOf(id.getLongValue())),
127
				new NameValuePair("f", String.valueOf(id.getLongValue())),
128
				new NameValuePair("mode", "newtopic"),
128
				new NameValuePair("mode", "newtopic"),
129
				// checkbox : disabled new NameValuePair("disable_smilies",
129
				// checkbox : disabled new NameValuePair("disable_smilies",
(-)src/org/eclipse/ecf/internal/provider/phpbb/GuestFactory.java (+3 lines)
Lines 10-15 Link Here
10
 *******************************************************************************/
10
 *******************************************************************************/
11
package org.eclipse.ecf.internal.provider.phpbb;
11
package org.eclipse.ecf.internal.provider.phpbb;
12
12
13
import java.io.UnsupportedEncodingException;
13
import java.net.URI;
14
import java.net.URI;
14
import java.net.URISyntaxException;
15
import java.net.URISyntaxException;
15
import java.net.URL;
16
import java.net.URL;
Lines 39-44 Link Here
39
			return new GuestID((PHPBBNamespace) namespace, baseURL, longValue);
40
			return new GuestID((PHPBBNamespace) namespace, baseURL, longValue);
40
		} catch (URISyntaxException e) {
41
		} catch (URISyntaxException e) {
41
			throw new IDCreateException(e);
42
			throw new IDCreateException(e);
43
		} catch (UnsupportedEncodingException e) {
44
			throw new IDCreateException(e);
42
		}
45
		}
43
	}
46
	}
44
47
(-)src/org/eclipse/ecf/internal/provider/phpbb/identity/GuestID.java (-2 / +5 lines)
Lines 10-18 Link Here
10
 *******************************************************************************/
10
 *******************************************************************************/
11
package org.eclipse.ecf.internal.provider.phpbb.identity;
11
package org.eclipse.ecf.internal.provider.phpbb.identity;
12
12
13
import java.io.UnsupportedEncodingException;
13
import java.net.URI;
14
import java.net.URI;
14
import java.net.URISyntaxException;
15
import java.net.URISyntaxException;
15
import java.net.URL;
16
import java.net.URL;
17
import java.net.URLEncoder;
16
18
17
import org.eclipse.ecf.internal.bulletinboard.commons.util.IDUtil;
19
import org.eclipse.ecf.internal.bulletinboard.commons.util.IDUtil;
18
20
Lines 25-33 Link Here
25
	}
27
	}
26
28
27
	public GuestID(PHPBBNamespace namespace, URL baseURL, String name)
29
	public GuestID(PHPBBNamespace namespace, URL baseURL, String name)
28
			throws URISyntaxException {
30
			throws URISyntaxException, UnsupportedEncodingException {
29
		super(namespace, IDUtil.composeURI(baseURL,
31
		super(namespace, IDUtil.composeURI(baseURL,
30
				"profile.php?mode=viewprofile&u=0#" + name));
32
				"profile.php?mode=viewprofile&u=0#"
33
						+ URLEncoder.encode(name, "UTF-8")));
31
	}
34
	}
32
35
33
	public long getLongValue() {
36
	public long getLongValue() {
(-)plugin.xml (-1 / +1 lines)
Lines 129-135 Link Here
129
      <objectContribution
129
      <objectContribution
130
            adaptable="false"
130
            adaptable="false"
131
            id="org.eclipse.ecf.examples.bbreader.objectContribution2"
131
            id="org.eclipse.ecf.examples.bbreader.objectContribution2"
132
            objectClass="org.eclipse.ecf.examples.bbreader.model.IURLProvider">
132
            objectClass="org.eclipse.ecf.examples.bbreader.model.IURIProvider">
133
         <action
133
         <action
134
               class="org.eclipse.ecf.examples.bbreader.actions.OpenInBrowserAction"
134
               class="org.eclipse.ecf.examples.bbreader.actions.OpenInBrowserAction"
135
               id="org.eclipse.ecf.examples.bbreader.action1"
135
               id="org.eclipse.ecf.examples.bbreader.action1"
(-)BB Explorer.launch (-5 / +5 lines)
Lines 6-27 Link Here
6
<booleanAttribute key="useProduct" value="false"/>
6
<booleanAttribute key="useProduct" value="false"/>
7
<stringAttribute key="deselected_workspace_plugins" value="org.tigris.bbapi.core,org.tigris.bbapi.example.reader,org.tigris.bbapi.googlegroups,org.tigris.bbapi.phpbb,org.tigris.bbapi.commons,org.tigris.bbapi.vbulletin,org.tigris.bbapi.phpbb.test,org.tigris.bbapi.vbulletin.test"/>
7
<stringAttribute key="deselected_workspace_plugins" value="org.tigris.bbapi.core,org.tigris.bbapi.example.reader,org.tigris.bbapi.googlegroups,org.tigris.bbapi.phpbb,org.tigris.bbapi.commons,org.tigris.bbapi.vbulletin,org.tigris.bbapi.phpbb.test,org.tigris.bbapi.vbulletin.test"/>
8
<booleanAttribute key="tracing" value="false"/>
8
<booleanAttribute key="tracing" value="false"/>
9
<stringAttribute key="selected_target_plugins" value="com.ibm.icu,org.apache.commons_logging,org.apache.jakarta_log4j,org.eclipse.core.commands,org.eclipse.core.contenttype,org.eclipse.core.expressions,org.eclipse.core.jobs,org.eclipse.core.runtime,org.eclipse.core.runtime.compatibility.auth,org.eclipse.core.runtime.compatibility.registry,org.eclipse.equinox.common,org.eclipse.equinox.preferences,org.eclipse.equinox.registry,org.eclipse.help,org.eclipse.jface,org.eclipse.osgi,org.eclipse.swt,org.eclipse.swt.win32.win32.x86,org.eclipse.ui,org.eclipse.ui.browser,org.eclipse.ui.forms,org.eclipse.ui.navigator,org.eclipse.ui.workbench"/>
9
<stringAttribute key="selected_target_plugins" value="com.ibm.icu,org.eclipse.core.commands,org.eclipse.core.contenttype,org.eclipse.core.databinding,org.eclipse.core.expressions,org.eclipse.core.jobs,org.eclipse.core.runtime,org.eclipse.core.runtime.compatibility.auth,org.eclipse.core.runtime.compatibility.registry,org.eclipse.equinox.app,org.eclipse.equinox.common,org.eclipse.equinox.preferences,org.eclipse.equinox.registry,org.eclipse.help,org.eclipse.jface,org.eclipse.jface.databinding,org.eclipse.osgi,org.eclipse.osgi.services,org.eclipse.swt,org.eclipse.swt.win32.win32.x86,org.eclipse.ui,org.eclipse.ui.browser,org.eclipse.ui.forms,org.eclipse.ui.navigator,org.eclipse.ui.workbench"/>
10
<booleanAttribute key="automaticValidate" value="false"/>
10
<booleanAttribute key="automaticValidate" value="false"/>
11
<booleanAttribute key="automaticAdd" value="false"/>
11
<booleanAttribute key="automaticAdd" value="false"/>
12
<stringAttribute key="checked" value="[NONE]"/>
12
<stringAttribute key="checked" value="[NONE]"/>
13
<stringAttribute key="location" value="${workspace_loc}/../runtime-New_configuration"/>
13
<stringAttribute key="location" value="${workspace_loc}/../runtime-New_configuration"/>
14
<stringAttribute key="selected_workspace_plugins" value="org.eclipse.ecf.provider.nntp,org.eclipse.ecf.bulletinboard.commons,org.eclipse.ecf.bulletinboard,org.eclipse.ecf.provider.phpbb,org.apache.oro,org.eclipse.ecf.provider.vbulletin,org.eclipse.ecf.identity,org.eclipse.ecf.examples.bbreader,org.eclipse.mylar.context.core,org.apache.commons.httpclient,org.apache.commons.net,org.eclipse.ecf"/>
14
<stringAttribute key="selected_workspace_plugins" value="org.eclipse.ecf.provider.nntp,org.eclipse.ecf.provider.vbulletin,org.eclipse.ecf.identity,org.eclipse.ecf.examples.bbreader,org.eclipse.ecf.bulletinboard.commons,org.eclipse.mylar,org.eclipse.ecf.bulletinboard,org.apache.oro,org.apache.commons.net,org.eclipse.ecf.provider.phpbb,org.eclipse.ecf"/>
15
<stringAttribute key="configLocation" value=""/>
16
<stringAttribute key="application" value="org.eclipse.ecf.examples.bbreader.bbReader"/>
15
<stringAttribute key="application" value="org.eclipse.ecf.examples.bbreader.bbReader"/>
16
<stringAttribute key="configLocation" value=""/>
17
<booleanAttribute key="clearws" value="false"/>
17
<booleanAttribute key="clearws" value="false"/>
18
<stringAttribute key="pde.version" value="3.2a"/>
18
<stringAttribute key="pde.version" value="3.3"/>
19
<stringAttribute key="templateConfig" value="${target_home}\configuration\config.ini"/>
19
<stringAttribute key="templateConfig" value="${target_home}\configuration\config.ini"/>
20
<booleanAttribute key="default" value="false"/>
20
<booleanAttribute key="default" value="false"/>
21
<booleanAttribute key="clearConfig" value="false"/>
21
<booleanAttribute key="clearConfig" value="false"/>
22
<booleanAttribute key="org.eclipse.debug.core.appendEnvironmentVariables" value="true"/>
22
<booleanAttribute key="org.eclipse.debug.core.appendEnvironmentVariables" value="true"/>
23
<stringAttribute key="org.eclipse.jdt.launching.SOURCE_PATH_PROVIDER" value="org.eclipse.pde.ui.workbenchClasspathProvider"/>
24
<booleanAttribute key="useDefaultConfigArea" value="true"/>
23
<booleanAttribute key="useDefaultConfigArea" value="true"/>
24
<stringAttribute key="org.eclipse.jdt.launching.SOURCE_PATH_PROVIDER" value="org.eclipse.pde.ui.workbenchClasspathProvider"/>
25
<booleanAttribute key="useDefaultConfig" value="true"/>
25
<booleanAttribute key="useDefaultConfig" value="true"/>
26
<booleanAttribute key="askclear" value="true"/>
26
<booleanAttribute key="askclear" value="true"/>
27
<booleanAttribute key="includeOptional" value="true"/>
27
<booleanAttribute key="includeOptional" value="true"/>
(-)src/org/eclipse/ecf/examples/bbreader/navigator/Group.java (-7 / +7 lines)
Lines 3-10 Link Here
3
 */
3
 */
4
package org.eclipse.ecf.examples.bbreader.navigator;
4
package org.eclipse.ecf.examples.bbreader.navigator;
5
5
6
import java.net.MalformedURLException;
6
import java.net.URI;
7
import java.net.URL;
7
import java.net.URISyntaxException;
8
import java.util.ArrayList;
8
import java.util.ArrayList;
9
import java.util.List;
9
import java.util.List;
10
10
Lines 12-21 Link Here
12
import org.eclipse.ecf.bulletinboard.IMemberGroup;
12
import org.eclipse.ecf.bulletinboard.IMemberGroup;
13
import org.eclipse.ecf.examples.bbreader.Activator;
13
import org.eclipse.ecf.examples.bbreader.Activator;
14
import org.eclipse.ecf.examples.bbreader.model.ITreeNode;
14
import org.eclipse.ecf.examples.bbreader.model.ITreeNode;
15
import org.eclipse.ecf.examples.bbreader.model.IURLProvider;
15
import org.eclipse.ecf.examples.bbreader.model.IURIProvider;
16
import org.eclipse.swt.graphics.Image;
16
import org.eclipse.swt.graphics.Image;
17
17
18
public final class Group implements ITreeNode, IURLProvider {
18
public final class Group implements ITreeNode, IURIProvider {
19
	private final ITreeNode parent;
19
	private final ITreeNode parent;
20
20
21
	private final IMemberGroup group;
21
	private final IMemberGroup group;
Lines 55-64 Link Here
55
		return parent;
55
		return parent;
56
	}
56
	}
57
57
58
	public URL getURL() {
58
	public URI getURI() {
59
		try {
59
		try {
60
			return new URL(group.getID().toExternalForm());
60
			return new URI(group.getID().toExternalForm());
61
		} catch (MalformedURLException e) {
61
		} catch (URISyntaxException e) {
62
			// TODO Auto-generated catch block
62
			// TODO Auto-generated catch block
63
			e.printStackTrace();
63
			e.printStackTrace();
64
		}
64
		}
(-)src/org/eclipse/ecf/examples/bbreader/navigator/ThreadMessage.java (-7 / +7 lines)
Lines 3-20 Link Here
3
 */
3
 */
4
package org.eclipse.ecf.examples.bbreader.navigator;
4
package org.eclipse.ecf.examples.bbreader.navigator;
5
5
6
import java.net.MalformedURLException;
6
import java.net.URI;
7
import java.net.URL;
7
import java.net.URISyntaxException;
8
import java.util.List;
8
import java.util.List;
9
9
10
import org.eclipse.ecf.bulletinboard.IThreadMessage;
10
import org.eclipse.ecf.bulletinboard.IThreadMessage;
11
import org.eclipse.ecf.examples.bbreader.Activator;
11
import org.eclipse.ecf.examples.bbreader.Activator;
12
import org.eclipse.ecf.examples.bbreader.model.ITreeNode;
12
import org.eclipse.ecf.examples.bbreader.model.ITreeNode;
13
import org.eclipse.ecf.examples.bbreader.model.IURLProvider;
13
import org.eclipse.ecf.examples.bbreader.model.IURIProvider;
14
import org.eclipse.ecf.internal.bulletinboard.commons.util.StringUtil;
14
import org.eclipse.ecf.internal.bulletinboard.commons.util.StringUtil;
15
import org.eclipse.swt.graphics.Image;
15
import org.eclipse.swt.graphics.Image;
16
16
17
public final class ThreadMessage implements ITreeNode, IURLProvider {
17
public final class ThreadMessage implements ITreeNode, IURIProvider {
18
	private final ITreeNode parent;
18
	private final ITreeNode parent;
19
19
20
	private final IThreadMessage msg;
20
	private final IThreadMessage msg;
Lines 57-66 Link Here
57
		return parent;
57
		return parent;
58
	}
58
	}
59
59
60
	public URL getURL() {
60
	public URI getURI() {
61
		try {
61
		try {
62
			return new URL(msg.getID().toExternalForm());
62
			return new URI(msg.getID().toExternalForm());
63
		} catch (MalformedURLException e) {
63
		} catch (URISyntaxException e) {
64
			// TODO Auto-generated catch block
64
			// TODO Auto-generated catch block
65
			e.printStackTrace();
65
			e.printStackTrace();
66
		}
66
		}
(-)src/org/eclipse/ecf/examples/bbreader/navigator/BBRoot.java (-1 / +1 lines)
Lines 148-154 Link Here
148
			BulletinBoard bb = (BulletinBoard) elem;
148
			BulletinBoard bb = (BulletinBoard) elem;
149
			IMemento child = memento.createChild(BB_ELEM);
149
			IMemento child = memento.createChild(BB_ELEM);
150
			child.putString(TYPE_ELEM, bb.getContainerName());
150
			child.putString(TYPE_ELEM, bb.getContainerName());
151
			child.putString(URL_ELEM, bb.getURL().toString());
151
			child.putString(URL_ELEM, bb.getURI().toString());
152
			if (bb.getCredentials() != null) {
152
			if (bb.getCredentials() != null) {
153
				child.putString(USERNAME_ELEM, bb.getCredentials()
153
				child.putString(USERNAME_ELEM, bb.getCredentials()
154
						.getUsername());
154
						.getUsername());
(-)src/org/eclipse/ecf/examples/bbreader/navigator/Forum.java (-7 / +7 lines)
Lines 3-10 Link Here
3
 */
3
 */
4
package org.eclipse.ecf.examples.bbreader.navigator;
4
package org.eclipse.ecf.examples.bbreader.navigator;
5
5
6
import java.net.MalformedURLException;
6
import java.net.URI;
7
import java.net.URL;
7
import java.net.URISyntaxException;
8
import java.util.ArrayList;
8
import java.util.ArrayList;
9
import java.util.List;
9
import java.util.List;
10
10
Lines 12-21 Link Here
12
import org.eclipse.ecf.bulletinboard.IThread;
12
import org.eclipse.ecf.bulletinboard.IThread;
13
import org.eclipse.ecf.examples.bbreader.Activator;
13
import org.eclipse.ecf.examples.bbreader.Activator;
14
import org.eclipse.ecf.examples.bbreader.model.ITreeNode;
14
import org.eclipse.ecf.examples.bbreader.model.ITreeNode;
15
import org.eclipse.ecf.examples.bbreader.model.IURLProvider;
15
import org.eclipse.ecf.examples.bbreader.model.IURIProvider;
16
import org.eclipse.swt.graphics.Image;
16
import org.eclipse.swt.graphics.Image;
17
17
18
public final class Forum implements ITreeNode, IURLProvider {
18
public final class Forum implements ITreeNode, IURIProvider {
19
	private final ITreeNode parent;
19
	private final ITreeNode parent;
20
20
21
	private final IForum forum;
21
	private final IForum forum;
Lines 68-77 Link Here
68
	 * 
68
	 * 
69
	 * @see org.eclipse.ecf.examples.bbreader.navigator.IURLProvider#getURL()
69
	 * @see org.eclipse.ecf.examples.bbreader.navigator.IURLProvider#getURL()
70
	 */
70
	 */
71
	public URL getURL() {
71
	public URI getURI() {
72
		try {
72
		try {
73
			return new URL(forum.getID().toExternalForm());
73
			return new URI(forum.getID().toExternalForm());
74
		} catch (MalformedURLException e) {
74
		} catch (URISyntaxException e) {
75
			// TODO Auto-generated catch block
75
			// TODO Auto-generated catch block
76
			e.printStackTrace();
76
			e.printStackTrace();
77
		}
77
		}
(-)src/org/eclipse/ecf/examples/bbreader/navigator/BulletinBoard.java (-7 / +7 lines)
Lines 3-10 Link Here
3
 */
3
 */
4
package org.eclipse.ecf.examples.bbreader.navigator;
4
package org.eclipse.ecf.examples.bbreader.navigator;
5
5
6
import java.net.MalformedURLException;
6
import java.net.URI;
7
import java.net.URL;
7
import java.net.URISyntaxException;
8
import java.util.Arrays;
8
import java.util.Arrays;
9
import java.util.Collections;
9
import java.util.Collections;
10
import java.util.List;
10
import java.util.List;
Lines 21-30 Link Here
21
import org.eclipse.ecf.examples.bbreader.Activator;
21
import org.eclipse.ecf.examples.bbreader.Activator;
22
import org.eclipse.ecf.examples.bbreader.jobs.ContainerConnectJob;
22
import org.eclipse.ecf.examples.bbreader.jobs.ContainerConnectJob;
23
import org.eclipse.ecf.examples.bbreader.model.ITreeNode;
23
import org.eclipse.ecf.examples.bbreader.model.ITreeNode;
24
import org.eclipse.ecf.examples.bbreader.model.IURLProvider;
24
import org.eclipse.ecf.examples.bbreader.model.IURIProvider;
25
import org.eclipse.swt.graphics.Image;
25
import org.eclipse.swt.graphics.Image;
26
26
27
public final class BulletinBoard implements ITreeNode, IURLProvider, IAdaptable {
27
public final class BulletinBoard implements ITreeNode, IURIProvider, IAdaptable {
28
	private final ITreeNode parent;
28
	private final ITreeNode parent;
29
29
30
	private IContainer container;
30
	private IContainer container;
Lines 91-100 Link Here
91
		return containerName;
91
		return containerName;
92
	}
92
	}
93
93
94
	public URL getURL() {
94
	public URI getURI() {
95
		try {
95
		try {
96
			return new URL(id.toExternalForm());
96
			return new URI(id.toExternalForm());
97
		} catch (MalformedURLException e) {
97
		} catch (URISyntaxException e) {
98
			// TODO Auto-generated catch block
98
			// TODO Auto-generated catch block
99
			e.printStackTrace();
99
			e.printStackTrace();
100
		}
100
		}
(-)src/org/eclipse/ecf/examples/bbreader/navigator/ForumThread.java (-7 / +7 lines)
Lines 3-10 Link Here
3
 */
3
 */
4
package org.eclipse.ecf.examples.bbreader.navigator;
4
package org.eclipse.ecf.examples.bbreader.navigator;
5
5
6
import java.net.MalformedURLException;
6
import java.net.URI;
7
import java.net.URL;
7
import java.net.URISyntaxException;
8
import java.util.ArrayList;
8
import java.util.ArrayList;
9
import java.util.List;
9
import java.util.List;
10
10
Lines 13-22 Link Here
13
import org.eclipse.ecf.bulletinboard.IThreadMessage;
13
import org.eclipse.ecf.bulletinboard.IThreadMessage;
14
import org.eclipse.ecf.examples.bbreader.Activator;
14
import org.eclipse.ecf.examples.bbreader.Activator;
15
import org.eclipse.ecf.examples.bbreader.model.ITreeNode;
15
import org.eclipse.ecf.examples.bbreader.model.ITreeNode;
16
import org.eclipse.ecf.examples.bbreader.model.IURLProvider;
16
import org.eclipse.ecf.examples.bbreader.model.IURIProvider;
17
import org.eclipse.swt.graphics.Image;
17
import org.eclipse.swt.graphics.Image;
18
18
19
public final class ForumThread implements ITreeNode, IURLProvider {
19
public final class ForumThread implements ITreeNode, IURIProvider {
20
	private final ITreeNode parent;
20
	private final ITreeNode parent;
21
21
22
	private final IThread thread;
22
	private final IThread thread;
Lines 67-76 Link Here
67
		return thread;
67
		return thread;
68
	}
68
	}
69
69
70
	public URL getURL() {
70
	public URI getURI() {
71
		try {
71
		try {
72
			return new URL(thread.getID().toExternalForm());
72
			return new URI(thread.getID().toExternalForm());
73
		} catch (MalformedURLException e) {
73
		} catch (URISyntaxException e) {
74
			// TODO Auto-generated catch block
74
			// TODO Auto-generated catch block
75
			e.printStackTrace();
75
			e.printStackTrace();
76
		}
76
		}
(-)src/org/eclipse/ecf/examples/bbreader/navigator/Member.java (-7 / +7 lines)
Lines 3-19 Link Here
3
 */
3
 */
4
package org.eclipse.ecf.examples.bbreader.navigator;
4
package org.eclipse.ecf.examples.bbreader.navigator;
5
5
6
import java.net.MalformedURLException;
6
import java.net.URI;
7
import java.net.URL;
7
import java.net.URISyntaxException;
8
import java.util.List;
8
import java.util.List;
9
9
10
import org.eclipse.ecf.bulletinboard.IMember;
10
import org.eclipse.ecf.bulletinboard.IMember;
11
import org.eclipse.ecf.examples.bbreader.Activator;
11
import org.eclipse.ecf.examples.bbreader.Activator;
12
import org.eclipse.ecf.examples.bbreader.model.ITreeNode;
12
import org.eclipse.ecf.examples.bbreader.model.ITreeNode;
13
import org.eclipse.ecf.examples.bbreader.model.IURLProvider;
13
import org.eclipse.ecf.examples.bbreader.model.IURIProvider;
14
import org.eclipse.swt.graphics.Image;
14
import org.eclipse.swt.graphics.Image;
15
15
16
public final class Member implements ITreeNode, IURLProvider {
16
public final class Member implements ITreeNode, IURIProvider {
17
	private final ITreeNode parent;
17
	private final ITreeNode parent;
18
18
19
	private final IMember member;
19
	private final IMember member;
Lines 43-52 Link Here
43
		return parent;
43
		return parent;
44
	}
44
	}
45
45
46
	public URL getURL() {
46
	public URI getURI() {
47
		try {
47
		try {
48
			return new URL(member.getID().toExternalForm());
48
			return new URI(member.getID().toExternalForm());
49
		} catch (MalformedURLException e) {
49
		} catch (URISyntaxException e) {
50
			// TODO Auto-generated catch block
50
			// TODO Auto-generated catch block
51
			e.printStackTrace();
51
			e.printStackTrace();
52
		}
52
		}
(-)src/org/eclipse/ecf/examples/bbreader/editors/MessageEditor.java (-1 / +1 lines)
Lines 136-142 Link Here
136
					DateFormat.SHORT);
136
					DateFormat.SHORT);
137
			postDate.setText(fmt.format(d));
137
			postDate.setText(fmt.format(d));
138
		}
138
		}
139
		styledText.setText(msg.getMessage());
139
		styledText.setText(msg.getBody());
140
	}
140
	}
141
141
142
	@Override
142
	@Override
(-)src/org/eclipse/ecf/examples/bbreader/editors/MessageEditorInput.java (-1 / +1 lines)
Lines 36-42 Link Here
36
	}
36
	}
37
37
38
	public String getToolTipText() {
38
	public String getToolTipText() {
39
		return msg.getMessage();
39
		return msg.getBody();
40
	}
40
	}
41
41
42
	public Object getAdapter(Class adapter) {
42
	public Object getAdapter(Class adapter) {
(-)src/org/eclipse/ecf/examples/bbreader/model/IURLProvider.java (-9 lines)
Removed Link Here
1
package org.eclipse.ecf.examples.bbreader.model;
2
3
import java.net.URL;
4
5
public interface IURLProvider {
6
7
	public URL getURL();
8
9
}
(-)src/org/eclipse/ecf/examples/bbreader/actions/OpenInBrowserAction.java (-7 / +13 lines)
Lines 1-9 Link Here
1
package org.eclipse.ecf.examples.bbreader.actions;
1
package org.eclipse.ecf.examples.bbreader.actions;
2
2
3
import java.net.MalformedURLException;
3
import java.util.ArrayList;
4
import java.util.ArrayList;
4
import java.util.Iterator;
5
import java.util.Iterator;
5
6
6
import org.eclipse.ecf.examples.bbreader.model.IURLProvider;
7
import org.eclipse.ecf.examples.bbreader.model.IURIProvider;
7
import org.eclipse.jface.action.IAction;
8
import org.eclipse.jface.action.IAction;
8
import org.eclipse.jface.viewers.ISelection;
9
import org.eclipse.jface.viewers.ISelection;
9
import org.eclipse.jface.viewers.StructuredSelection;
10
import org.eclipse.jface.viewers.StructuredSelection;
Lines 14-20 Link Here
14
15
15
public class OpenInBrowserAction implements IObjectActionDelegate {
16
public class OpenInBrowserAction implements IObjectActionDelegate {
16
17
17
	private ArrayList<IURLProvider> urlProviders;
18
	private ArrayList<IURIProvider> urlProviders;
18
19
19
	private IWorkbenchPart targetPart;
20
	private IWorkbenchPart targetPart;
20
21
Lines 28-37 Link Here
28
29
29
	public void run(IAction action) {
30
	public void run(IAction action) {
30
		try {
31
		try {
31
			for (IURLProvider urlProv : urlProviders) {
32
			for (IURIProvider urlProv : urlProviders) {
32
				IWebBrowser browser = targetPart.getSite().getWorkbenchWindow()
33
				IWebBrowser browser = targetPart.getSite().getWorkbenchWindow()
33
						.getWorkbench().getBrowserSupport().createBrowser(null);
34
						.getWorkbench().getBrowserSupport().createBrowser(null);
34
				browser.openURL(urlProv.getURL());
35
				try {
36
					browser.openURL(urlProv.getURI().toURL());
37
				} catch (MalformedURLException e) {
38
					// TODO Auto-generated catch block
39
					e.printStackTrace();
40
				}
35
			}
41
			}
36
		} catch (PartInitException e) {
42
		} catch (PartInitException e) {
37
			// TODO Auto-generated catch block
43
			// TODO Auto-generated catch block
Lines 41-53 Link Here
41
47
42
	@SuppressWarnings("unchecked")
48
	@SuppressWarnings("unchecked")
43
	public void selectionChanged(IAction action, ISelection selection) {
49
	public void selectionChanged(IAction action, ISelection selection) {
44
		urlProviders = new ArrayList<IURLProvider>();
50
		urlProviders = new ArrayList<IURIProvider>();
45
		if (selection instanceof StructuredSelection) {
51
		if (selection instanceof StructuredSelection) {
46
			StructuredSelection sel = (StructuredSelection) selection;
52
			StructuredSelection sel = (StructuredSelection) selection;
47
			for (Iterator<Object> iter = sel.iterator(); iter.hasNext();) {
53
			for (Iterator<Object> iter = sel.iterator(); iter.hasNext();) {
48
				Object obj = iter.next();
54
				Object obj = iter.next();
49
				if (obj instanceof IURLProvider) {
55
				if (obj instanceof IURIProvider) {
50
					urlProviders.add((IURLProvider) obj);
56
					urlProviders.add((IURIProvider) obj);
51
				}
57
				}
52
			}
58
			}
53
		}
59
		}
(-)src/org/eclipse/ecf/examples/bbreader/views/MessageView.java (-1 / +1 lines)
Lines 115-121 Link Here
115
					DateFormat.SHORT);
115
					DateFormat.SHORT);
116
			postDate.setText(fmt.format(d));
116
			postDate.setText(fmt.format(d));
117
		}
117
		}
118
		styledText.setText(msg.getMessage());
118
		styledText.setText(msg.getBody());
119
	}
119
	}
120
120
121
	public void selectionChanged(IWorkbenchPart part, ISelection selection) {
121
	public void selectionChanged(IWorkbenchPart part, ISelection selection) {
(-)src/org/eclipse/ecf/examples/bbreader/model/IURIProvider.java (+9 lines)
Added Link Here
1
package org.eclipse.ecf.examples.bbreader.model;
2
3
import java.net.URI;
4
5
public interface IURIProvider {
6
7
	public URI getURI();
8
9
}
(-).settings/org.eclipse.mylar.tasklist.prefs (+4 lines)
Added Link Here
1
#Mon Apr 02 22:29:36 EEST 2007
2
eclipse.preferences.version=1
3
project.repository.kind=bugzilla
4
project.repository.url=https\://bugs.eclipse.org/bugs
(-)src/org/eclipse/ecf/internal/provider/vbulletin/Thread.java (-1 / +1 lines)
Lines 144-150 Link Here
144
		request.addParameters(params);
144
		request.addParameters(params);
145
		params = new NameValuePair[] {
145
		params = new NameValuePair[] {
146
				new NameValuePair("title", message.getName()),
146
				new NameValuePair("title", message.getName()),
147
				new NameValuePair("message", msg.getMessage()),
147
				new NameValuePair("message", msg.getBody()),
148
				new NameValuePair("iconid", "0"), new NameValuePair("s", ""),
148
				new NameValuePair("iconid", "0"), new NameValuePair("s", ""),
149
				new NameValuePair("do", "postreply"),
149
				new NameValuePair("do", "postreply"),
150
				new NameValuePair("t", String.valueOf(id.getLongValue())) };
150
				new NameValuePair("t", String.valueOf(id.getLongValue())) };
(-)src/org/eclipse/ecf/internal/provider/vbulletin/ThreadMessage.java (-5 / +5 lines)
Lines 15-21 Link Here
15
import java.util.Date;
15
import java.util.Date;
16
16
17
import org.eclipse.ecf.bulletinboard.IMember;
17
import org.eclipse.ecf.bulletinboard.IMember;
18
import org.eclipse.ecf.bulletinboard.IMessageBase;
18
import org.eclipse.ecf.bulletinboard.IBBMessage;
19
import org.eclipse.ecf.bulletinboard.IThread;
19
import org.eclipse.ecf.bulletinboard.IThread;
20
import org.eclipse.ecf.bulletinboard.IThreadMessage;
20
import org.eclipse.ecf.bulletinboard.IThreadMessage;
21
import org.eclipse.ecf.bulletinboard.IllegalWriteException;
21
import org.eclipse.ecf.bulletinboard.IllegalWriteException;
Lines 53-59 Link Here
53
		return number;
53
		return number;
54
	}
54
	}
55
55
56
	public String getMessage() {
56
	public String getBody() {
57
		return message;
57
		return message;
58
	}
58
	}
59
59
Lines 61-72 Link Here
61
		return author;
61
		return author;
62
	}
62
	}
63
63
64
	public IMessageBase getReplyTo() {
64
	public IBBMessage getReplyTo() {
65
		// TODO Implement reply relationships
65
		// TODO Implement reply relationships
66
		return null;
66
		return null;
67
	}
67
	}
68
68
69
	public void setReplyTo(IMessageBase message) throws IllegalWriteException {
69
	public void setReplyTo(IBBMessage message) throws IllegalWriteException {
70
		// TODO Auto-generated method stub
70
		// TODO Auto-generated method stub
71
	}
71
	}
72
72
Lines 102-108 Link Here
102
		this.name = name;
102
		this.name = name;
103
	}
103
	}
104
104
105
	public void setMessage(String message) throws IllegalWriteException {
105
	public void setBody(String message) throws IllegalWriteException {
106
		if ((mode & READ_ONLY) == READ_ONLY) {
106
		if ((mode & READ_ONLY) == READ_ONLY) {
107
			throw new IllegalWriteException(E_READ_ONLY);
107
			throw new IllegalWriteException(E_READ_ONLY);
108
		}
108
		}
(-)src/org/eclipse/ecf/internal/provider/vbulletin/VBulletin.java (-1 / +1 lines)
Lines 107-113 Link Here
107
	public List<IForum> getTopLevelForums() throws BBException {
107
	public List<IForum> getTopLevelForums() throws BBException {
108
		List<IForum> topForums = new ArrayList<IForum>();
108
		List<IForum> topForums = new ArrayList<IForum>();
109
		for (IForum forum : getForums()) {
109
		for (IForum forum : getForums()) {
110
			if (forum.getParentForum() == null) {
110
			if (forum.getParent() == null) {
111
				topForums.add(forum);
111
				topForums.add(forum);
112
			}
112
			}
113
		}
113
		}
(-)src/org/eclipse/ecf/internal/provider/vbulletin/Forum.java (-1 / +1 lines)
Lines 64-70 Link Here
64
		return IForum.HOLDS_THREADS | IForum.HOLDS_FORUMS;
64
		return IForum.HOLDS_THREADS | IForum.HOLDS_FORUMS;
65
	}
65
	}
66
66
67
	public IForum getParentForum() {
67
	public IForum getParent() {
68
		return parent;
68
		return parent;
69
	}
69
	}

Return to bug 180796