Thread: [Mantisconnect-cvs] SF.net SVN: mantisconnect: [46] mantisconnect/trunk/clients/java/eclipse/ org.m
Brought to you by:
vboctor
From: <pl...@us...> - 2006-09-17 15:16:08
|
Revision: 46 http://svn.sourceforge.net/mantisconnect/?rev=46&view=rev Author: planser Date: 2006-09-17 08:15:47 -0700 (Sun, 17 Sep 2006) Log Message: ----------- Added ability to filter issues listed in view Added Paths: ----------- mantisconnect/trunk/clients/java/eclipse/org.mantisbt.connect.eclipse/icons/clear_16.gif mantisconnect/trunk/clients/java/eclipse/org.mantisbt.connect.eclipse/src/org/mantisbt/connect/eclipse/util/StringMatcher.java mantisconnect/trunk/clients/java/eclipse/org.mantisbt.connect.eclipse/src/org/mantisbt/connect/eclipse/views/IssuesPatternFilter.java Added: mantisconnect/trunk/clients/java/eclipse/org.mantisbt.connect.eclipse/icons/clear_16.gif =================================================================== (Binary files differ) Property changes on: mantisconnect/trunk/clients/java/eclipse/org.mantisbt.connect.eclipse/icons/clear_16.gif ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: mantisconnect/trunk/clients/java/eclipse/org.mantisbt.connect.eclipse/src/org/mantisbt/connect/eclipse/util/StringMatcher.java =================================================================== --- mantisconnect/trunk/clients/java/eclipse/org.mantisbt.connect.eclipse/src/org/mantisbt/connect/eclipse/util/StringMatcher.java (rev 0) +++ mantisconnect/trunk/clients/java/eclipse/org.mantisbt.connect.eclipse/src/org/mantisbt/connect/eclipse/util/StringMatcher.java 2006-09-17 15:15:47 UTC (rev 46) @@ -0,0 +1,445 @@ +package org.mantisbt.connect.eclipse.util; + +import java.util.Vector; + +/** + * A string pattern matcher, suppporting "*" and "?" wildcards. + */ +public class StringMatcher { + protected String fPattern; + + protected int fLength; // pattern length + + protected boolean fIgnoreWildCards; + + protected boolean fIgnoreCase; + + protected boolean fHasLeadingStar; + + protected boolean fHasTrailingStar; + + protected String fSegments[]; //the given pattern is split into * separated segments + + /* boundary value beyond which we don't need to search in the text */ + protected int fBound = 0; + + protected static final char fSingleWildCard = '\u0000'; + + public static class Position { + int start; //inclusive + + int end; //exclusive + + public Position(int start, int end) { + this.start = start; + this.end = end; + } + + public int getStart() { + return start; + } + + public int getEnd() { + return end; + } + } + + /** + * StringMatcher constructor takes in a String object that is a simple + * pattern which may contain '*' for 0 and many characters and + * '?' for exactly one character. + * + * Literal '*' and '?' characters must be escaped in the pattern + * e.g., "\*" means literal "*", etc. + * + * Escaping any other character (including the escape character itself), + * just results in that character in the pattern. + * e.g., "\a" means "a" and "\\" means "\" + * + * If invoking the StringMatcher with string literals in Java, don't forget + * escape characters are represented by "\\". + * + * @param pattern the pattern to match text against + * @param ignoreCase if true, case is ignored + * @param ignoreWildCards if true, wild cards and their escape sequences are ignored + * (everything is taken literally). + */ + public StringMatcher(String pattern, boolean ignoreCase, + boolean ignoreWildCards) { + if (pattern == null) { + throw new IllegalArgumentException(); + } + fIgnoreCase = ignoreCase; + fIgnoreWildCards = ignoreWildCards; + fPattern = pattern; + fLength = pattern.length(); + + if (fIgnoreWildCards) { + parseNoWildCards(); + } else { + parseWildCards(); + } + } + + /** + * Find the first occurrence of the pattern between <code>start</code)(inclusive) + * and <code>end</code>(exclusive). + * @param <code>text</code>, the String object to search in + * @param <code>start</code>, the starting index of the search range, inclusive + * @param <code>end</code>, the ending index of the search range, exclusive + * @return an <code>StringMatcher.Position</code> object that keeps the starting + * (inclusive) and ending positions (exclusive) of the first occurrence of the + * pattern in the specified range of the text; return null if not found or subtext + * is empty (start==end). A pair of zeros is returned if pattern is empty string + * Note that for pattern like "*abc*" with leading and trailing stars, position of "abc" + * is returned. For a pattern like"*??*" in text "abcdf", (1,3) is returned + */ + public StringMatcher.Position find(String text, int start, int end) { + if (text == null) { + throw new IllegalArgumentException(); + } + + int tlen = text.length(); + if (start < 0) { + start = 0; + } + if (end > tlen) { + end = tlen; + } + if (end < 0 || start >= end) { + return null; + } + if (fLength == 0) { + return new Position(start, start); + } + if (fIgnoreWildCards) { + int x = posIn(text, start, end); + if (x < 0) { + return null; + } + return new Position(x, x + fLength); + } + + int segCount = fSegments.length; + if (segCount == 0) { + return new Position(start, end); + } + + int curPos = start; + int matchStart = -1; + int i; + for (i = 0; i < segCount && curPos < end; ++i) { + String current = fSegments[i]; + int nextMatch = regExpPosIn(text, curPos, end, current); + if (nextMatch < 0) { + return null; + } + if (i == 0) { + matchStart = nextMatch; + } + curPos = nextMatch + current.length(); + } + if (i < segCount) { + return null; + } + return new Position(matchStart, curPos); + } + + /** + * match the given <code>text</code> with the pattern + * @return true if matched eitherwise false + * @param <code>text</code>, a String object + */ + public boolean match(String text) { + if(text == null) { + return false; + } + return match(text, 0, text.length()); + } + + /** + * Given the starting (inclusive) and the ending (exclusive) positions in the + * <code>text</code>, determine if the given substring matches with aPattern + * @return true if the specified portion of the text matches the pattern + * @param String <code>text</code>, a String object that contains the substring to match + * @param int <code>start<code> marks the starting position (inclusive) of the substring + * @param int <code>end<code> marks the ending index (exclusive) of the substring + */ + public boolean match(String text, int start, int end) { + if (null == text) { + throw new IllegalArgumentException(); + } + + if (start > end) { + return false; + } + + if (fIgnoreWildCards) { + return (end - start == fLength) + && fPattern.regionMatches(fIgnoreCase, 0, text, start, + fLength); + } + int segCount = fSegments.length; + if (segCount == 0 && (fHasLeadingStar || fHasTrailingStar)) { + return true; + } + if (start == end) { + return fLength == 0; + } + if (fLength == 0) { + return start == end; + } + + int tlen = text.length(); + if (start < 0) { + start = 0; + } + if (end > tlen) { + end = tlen; + } + + int tCurPos = start; + int bound = end - fBound; + if (bound < 0) { + return false; + } + int i = 0; + String current = fSegments[i]; + int segLength = current.length(); + + /* process first segment */ + if (!fHasLeadingStar) { + if (!regExpRegionMatches(text, start, current, 0, segLength)) { + return false; + } else { + ++i; + tCurPos = tCurPos + segLength; + } + } + if ((fSegments.length == 1) && (!fHasLeadingStar) + && (!fHasTrailingStar)) { + // only one segment to match, no wildcards specified + return tCurPos == end; + } + /* process middle segments */ + while (i < segCount) { + current = fSegments[i]; + int currentMatch; + int k = current.indexOf(fSingleWildCard); + if (k < 0) { + currentMatch = textPosIn(text, tCurPos, end, current); + if (currentMatch < 0) { + return false; + } + } else { + currentMatch = regExpPosIn(text, tCurPos, end, current); + if (currentMatch < 0) { + return false; + } + } + tCurPos = currentMatch + current.length(); + i++; + } + + /* process final segment */ + if (!fHasTrailingStar && tCurPos != end) { + int clen = current.length(); + return regExpRegionMatches(text, end - clen, current, 0, clen); + } + return i == segCount; + } + + /** + * This method parses the given pattern into segments seperated by wildcard '*' characters. + * Since wildcards are not being used in this case, the pattern consists of a single segment. + */ + private void parseNoWildCards() { + fSegments = new String[1]; + fSegments[0] = fPattern; + fBound = fLength; + } + + /** + * Parses the given pattern into segments seperated by wildcard '*' characters. + * @param p, a String object that is a simple regular expression with '*' and/or '?' + */ + @SuppressWarnings("unchecked") + private void parseWildCards() { + if (fPattern.startsWith("*")) { //$NON-NLS-1$ + fHasLeadingStar = true; + } + if (fPattern.endsWith("*")) {//$NON-NLS-1$ + /* make sure it's not an escaped wildcard */ + if (fLength > 1 && fPattern.charAt(fLength - 2) != '\\') { + fHasTrailingStar = true; + } + } + + Vector temp = new Vector(); + + int pos = 0; + StringBuffer buf = new StringBuffer(); + while (pos < fLength) { + char c = fPattern.charAt(pos++); + switch (c) { + case '\\': + if (pos >= fLength) { + buf.append(c); + } else { + char next = fPattern.charAt(pos++); + /* if it's an escape sequence */ + if (next == '*' || next == '?' || next == '\\') { + buf.append(next); + } else { + /* not an escape sequence, just insert literally */ + buf.append(c); + buf.append(next); + } + } + break; + case '*': + if (buf.length() > 0) { + /* new segment */ + temp.addElement(buf.toString()); + fBound += buf.length(); + buf.setLength(0); + } + break; + case '?': + /* append special character representing single match wildcard */ + buf.append(fSingleWildCard); + break; + default: + buf.append(c); + } + } + + /* add last buffer to segment list */ + if (buf.length() > 0) { + temp.addElement(buf.toString()); + fBound += buf.length(); + } + + fSegments = new String[temp.size()]; + temp.copyInto(fSegments); + } + + /** + * @param <code>text</code>, a string which contains no wildcard + * @param <code>start</code>, the starting index in the text for search, inclusive + * @param <code>end</code>, the stopping point of search, exclusive + * @return the starting index in the text of the pattern , or -1 if not found + */ + protected int posIn(String text, int start, int end) {//no wild card in pattern + int max = end - fLength; + + if (!fIgnoreCase) { + int i = text.indexOf(fPattern, start); + if (i == -1 || i > max) { + return -1; + } + return i; + } + + for (int i = start; i <= max; ++i) { + if (text.regionMatches(true, i, fPattern, 0, fLength)) { + return i; + } + } + + return -1; + } + + /** + * @param <code>text</code>, a simple regular expression that may only contain '?'(s) + * @param <code>start</code>, the starting index in the text for search, inclusive + * @param <code>end</code>, the stopping point of search, exclusive + * @param <code>p</code>, a simple regular expression that may contains '?' + * @param <code>caseIgnored</code>, wether the pattern is not casesensitive + * @return the starting index in the text of the pattern , or -1 if not found + */ + protected int regExpPosIn(String text, int start, int end, String p) { + int plen = p.length(); + + int max = end - plen; + for (int i = start; i <= max; ++i) { + if (regExpRegionMatches(text, i, p, 0, plen)) { + return i; + } + } + return -1; + } + + /** + * + * @return boolean + * @param <code>text</code>, a String to match + * @param <code>start</code>, int that indicates the starting index of match, inclusive + * @param <code>end</code> int that indicates the ending index of match, exclusive + * @param <code>p</code>, String, String, a simple regular expression that may contain '?' + * @param <code>ignoreCase</code>, boolean indicating wether code>p</code> is case sensitive + */ + protected boolean regExpRegionMatches(String text, int tStart, String p, + int pStart, int plen) { + while (plen-- > 0) { + char tchar = text.charAt(tStart++); + char pchar = p.charAt(pStart++); + + /* process wild cards */ + if (!fIgnoreWildCards) { + /* skip single wild cards */ + if (pchar == fSingleWildCard) { + continue; + } + } + if (pchar == tchar) { + continue; + } + if (fIgnoreCase) { + if (Character.toUpperCase(tchar) == Character + .toUpperCase(pchar)) { + continue; + } + // comparing after converting to upper case doesn't handle all cases; + // also compare after converting to lower case + if (Character.toLowerCase(tchar) == Character + .toLowerCase(pchar)) { + continue; + } + } + return false; + } + return true; + } + + /** + * @param <code>text</code>, the string to match + * @param <code>start</code>, the starting index in the text for search, inclusive + * @param <code>end</code>, the stopping point of search, exclusive + * @param code>p</code>, a string that has no wildcard + * @param <code>ignoreCase</code>, boolean indicating wether code>p</code> is case sensitive + * @return the starting index in the text of the pattern , or -1 if not found + */ + protected int textPosIn(String text, int start, int end, String p) { + + int plen = p.length(); + int max = end - plen; + + if (!fIgnoreCase) { + int i = text.indexOf(p, start); + if (i == -1 || i > max) { + return -1; + } + return i; + } + + for (int i = start; i <= max; ++i) { + if (text.regionMatches(true, i, p, 0, plen)) { + return i; + } + } + + return -1; + } +} + Added: mantisconnect/trunk/clients/java/eclipse/org.mantisbt.connect.eclipse/src/org/mantisbt/connect/eclipse/views/IssuesPatternFilter.java =================================================================== --- mantisconnect/trunk/clients/java/eclipse/org.mantisbt.connect.eclipse/src/org/mantisbt/connect/eclipse/views/IssuesPatternFilter.java (rev 0) +++ mantisconnect/trunk/clients/java/eclipse/org.mantisbt.connect.eclipse/src/org/mantisbt/connect/eclipse/views/IssuesPatternFilter.java 2006-09-17 15:15:47 UTC (rev 46) @@ -0,0 +1,47 @@ +package org.mantisbt.connect.eclipse.views; + +import org.eclipse.jface.viewers.Viewer; +import org.eclipse.jface.viewers.ViewerFilter; +import org.mantisbt.connect.eclipse.util.StringMatcher; +import org.mantisbt.connect.service.IssueHeaderData; + +public class IssuesPatternFilter extends ViewerFilter { + + private boolean includeLeadingWildcard; + + private StringMatcher matcher; + + public IssuesPatternFilter() { + this(true); + } + + public IssuesPatternFilter(boolean includeLeadingWildcard) { + this.includeLeadingWildcard = includeLeadingWildcard; + } + + @Override + public boolean select(Viewer viewer, Object parentElement, Object element) { + if (element instanceof IssueHeaderData) { + if (matcher != null) { + return matcher.match(((IssueHeaderData) element).getSummary()); + } else { + return true; + } + } else { + return false; + } + } + + public void setPattern(String patternString) { + if (patternString == null || patternString.equals("")) { //$NON-NLS-1$ + matcher = null; + } else { + String pattern = patternString + "*"; //$NON-NLS-1$ + if (includeLeadingWildcard) { + pattern = "*" + pattern; //$NON-NLS-1$ + } + matcher = new StringMatcher(pattern, true, false); + } + } + +} This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <pl...@us...> - 2006-10-19 14:32:14
|
Revision: 75 http://svn.sourceforge.net/mantisconnect/?rev=75&view=rev Author: planser Date: 2006-10-19 07:31:50 -0700 (Thu, 19 Oct 2006) Log Message: ----------- Restructured layout of editor (moved section for custom fields on main page) Modified Paths: -------------- mantisconnect/trunk/clients/java/eclipse/org.mantisbt.connect.eclipse/lib/mantisconnect-client-api-0.0.6.jar mantisconnect/trunk/clients/java/eclipse/org.mantisbt.connect.eclipse/src/org/mantisbt/connect/eclipse/editors/CustomFieldsPage.java mantisconnect/trunk/clients/java/eclipse/org.mantisbt.connect.eclipse/src/org/mantisbt/connect/eclipse/editors/GeneralPage.java mantisconnect/trunk/clients/java/eclipse/org.mantisbt.connect.eclipse/src/org/mantisbt/connect/eclipse/editors/IssueEditor.java mantisconnect/trunk/clients/java/eclipse/org.mantisbt.connect.eclipse/src/org/mantisbt/connect/eclipse/editors/TextSection.java mantisconnect/trunk/clients/java/eclipse/org.mantisbt.connect.eclipse/src/org/mantisbt/connect/eclipse/views/IssuesLabelProvider.java Added Paths: ----------- mantisconnect/trunk/clients/java/eclipse/org.mantisbt.connect.eclipse/src/org/mantisbt/connect/eclipse/editors/AdditionalInfoSection.java mantisconnect/trunk/clients/java/eclipse/org.mantisbt.connect.eclipse/src/org/mantisbt/connect/eclipse/editors/CustomFieldsSection.java mantisconnect/trunk/clients/java/eclipse/org.mantisbt.connect.eclipse/src/org/mantisbt/connect/eclipse/editors/ExpandableTextSection.java mantisconnect/trunk/clients/java/eclipse/org.mantisbt.connect.eclipse/src/org/mantisbt/connect/eclipse/editors/StepsToReproduceSection.java Removed Paths: ------------- mantisconnect/trunk/clients/java/eclipse/org.mantisbt.connect.eclipse/src/org/mantisbt/connect/eclipse/editors/CustomFieldsPart.java Modified: mantisconnect/trunk/clients/java/eclipse/org.mantisbt.connect.eclipse/lib/mantisconnect-client-api-0.0.6.jar =================================================================== (Binary files differ) Added: mantisconnect/trunk/clients/java/eclipse/org.mantisbt.connect.eclipse/src/org/mantisbt/connect/eclipse/editors/AdditionalInfoSection.java =================================================================== --- mantisconnect/trunk/clients/java/eclipse/org.mantisbt.connect.eclipse/src/org/mantisbt/connect/eclipse/editors/AdditionalInfoSection.java (rev 0) +++ mantisconnect/trunk/clients/java/eclipse/org.mantisbt.connect.eclipse/src/org/mantisbt/connect/eclipse/editors/AdditionalInfoSection.java 2006-10-19 14:31:50 UTC (rev 75) @@ -0,0 +1,41 @@ +/* + * Copyright 2005 Peter Lanser + * + * MantisConnect is copyrighted to Victor Boctor + * + * This program is distributed under the terms and conditions of the GPL + * See LICENSE file for details. + * + * For commercial applications to link with or modify MantisConnect, they + * require the purchase of a MantisConnect commercial license. + */ +package org.mantisbt.connect.eclipse.editors; + +import org.eclipse.swt.widgets.Composite; +import org.eclipse.ui.forms.widgets.Section; + +/** + * @author Peter Lanser, pl...@us... + */ +public class AdditionalInfoSection extends ExpandableTextSection { + + public AdditionalInfoSection(IssuePage page, Composite parent) { + super(page, parent, Section.TITLE_BAR | Section.TWISTIE); + getSection().setText("Additional Information"); + getSection().setExpanded(! isEmpty(getIssue().getAdditional_information())); + } + + public void commit(boolean onSave) { + if (onSave) { + getIssue().setAdditional_information(text.getText()); + super.commit(onSave); + } + } + + public void refresh() { + text.setText(getIssue().getAdditional_information() != null ? getIssue() + .getAdditional_information() : ""); + super.refresh(); + } + +} Modified: mantisconnect/trunk/clients/java/eclipse/org.mantisbt.connect.eclipse/src/org/mantisbt/connect/eclipse/editors/CustomFieldsPage.java =================================================================== --- mantisconnect/trunk/clients/java/eclipse/org.mantisbt.connect.eclipse/src/org/mantisbt/connect/eclipse/editors/CustomFieldsPage.java 2006-10-19 14:26:23 UTC (rev 74) +++ mantisconnect/trunk/clients/java/eclipse/org.mantisbt.connect.eclipse/src/org/mantisbt/connect/eclipse/editors/CustomFieldsPage.java 2006-10-19 14:31:50 UTC (rev 75) @@ -40,8 +40,8 @@ } } - private CustomFieldsPart createCustomFieldsPart(Composite parent) { - CustomFieldsPart part = new CustomFieldsPart(this, parent); + private CustomFieldsSection createCustomFieldsPart(Composite parent) { + CustomFieldsSection part = new CustomFieldsSection(this, parent); TableWrapData gd = new TableWrapData(TableWrapData.FILL_GRAB); part.getSection().setLayoutData(gd); return part; Deleted: mantisconnect/trunk/clients/java/eclipse/org.mantisbt.connect.eclipse/src/org/mantisbt/connect/eclipse/editors/CustomFieldsPart.java =================================================================== --- mantisconnect/trunk/clients/java/eclipse/org.mantisbt.connect.eclipse/src/org/mantisbt/connect/eclipse/editors/CustomFieldsPart.java 2006-10-19 14:26:23 UTC (rev 74) +++ mantisconnect/trunk/clients/java/eclipse/org.mantisbt.connect.eclipse/src/org/mantisbt/connect/eclipse/editors/CustomFieldsPart.java 2006-10-19 14:31:50 UTC (rev 75) @@ -1,158 +0,0 @@ -/* - * Copyright 2005 Peter Lanser - * - * MantisConnect is copyrighted to Victor Boctor - * - * This program is distributed under the terms and conditions of the GPL - * See LICENSE file for details. - * - * For commercial applications to link with or modify MantisConnect, they - * require the purchase of a MantisConnect commercial license. - */ -package org.mantisbt.connect.eclipse.editors; - -import java.util.ArrayList; -import java.util.List; - -import org.eclipse.core.runtime.IStatus; -import org.eclipse.swt.widgets.Composite; -import org.eclipse.swt.widgets.Shell; -import org.eclipse.ui.forms.widgets.FormToolkit; -import org.eclipse.ui.forms.widgets.Section; -import org.eclipse.ui.forms.widgets.TableWrapLayout; -import org.mantisbt.connect.ISession; -import org.mantisbt.connect.eclipse.CustomFieldType; -import org.mantisbt.connect.eclipse.MantisConnectPlugin; -import org.mantisbt.connect.eclipse.ui.customfields.CheckboxCustomFieldControl; -import org.mantisbt.connect.eclipse.ui.customfields.CustomFieldControl; -import org.mantisbt.connect.eclipse.ui.customfields.DateCustomFieldControl; -import org.mantisbt.connect.eclipse.ui.customfields.EmailCustomFieldControl; -import org.mantisbt.connect.eclipse.ui.customfields.EnumerationCustomFieldControl; -import org.mantisbt.connect.eclipse.ui.customfields.FloatCustomFieldControl; -import org.mantisbt.connect.eclipse.ui.customfields.ICustomFieldContainer; -import org.mantisbt.connect.eclipse.ui.customfields.ListCustomFieldControl; -import org.mantisbt.connect.eclipse.ui.customfields.NumericCustomFieldControl; -import org.mantisbt.connect.eclipse.ui.customfields.StringCustomFieldControl; -import org.mantisbt.connect.service.CustomFieldDefinitionData; -import org.mantisbt.connect.service.CustomFieldValueForIssueData; -import org.mantisbt.connect.service.IssueData; -import org.mantisbt.connect.service.ObjectRef; - -/** - * @author Peter Lanser, pl...@us... - */ -public class CustomFieldsPart extends IssuePart implements ICustomFieldContainer { - - private List<CustomFieldControl> controls; - - public CustomFieldsPart(IssuePage page, Composite parent) { - super(page, parent, Section.NO_TITLE); - } - - @Override - protected void createClient(Section section, FormToolkit toolkit) { - controls = new ArrayList<CustomFieldControl>(); - Composite container = toolkit.createComposite(section); - TableWrapLayout layout = new TableWrapLayout(); - layout.bottomMargin = layout.topMargin = layout.leftMargin = layout.rightMargin = 2; - layout.verticalSpacing = 7; - layout.numColumns = 4; - container.setLayout(layout); - for (CustomFieldValueForIssueData field : getIssue().getCustom_fields()) { - CustomFieldType type = getType(field.getField()); - CustomFieldControl control = null; - if (type != null) { - if (type.equals(CustomFieldType.STRING)) { - control = new StringCustomFieldControl(this, field); - } else if (type.equals(CustomFieldType.NUMERIC)) { - control = new NumericCustomFieldControl(this, field); - } else if (type.equals(CustomFieldType.FLOAT)) { - control = new FloatCustomFieldControl(this, field); - } else if (type.equals(CustomFieldType.ENUM)) { - control = new EnumerationCustomFieldControl(this, field); - } else if (type.equals(CustomFieldType.CHECKBOX)) { - control = new CheckboxCustomFieldControl(this, field); - } else if (type.equals(CustomFieldType.EMAIL)) { - control = new EmailCustomFieldControl(this, field); - } else if (type.equals(CustomFieldType.LIST)) { - control = new ListCustomFieldControl(this, field, true); - } else if (type.equals(CustomFieldType.MULTI_SELECTION_LIST)) { - control = new ListCustomFieldControl(this, field, false); - } else if (type.equals(CustomFieldType.DATE)) { - control = new DateCustomFieldControl(this, field); - } - if (control != null) { - control.fillIntoGrid(container, 2, toolkit); - controls.add(control); - } - } - } - toolkit.paintBordersFor(container); - section.setClient(container); - } - - @Override - public void commit(boolean onSave) { - if (onSave) { - for (CustomFieldControl control : controls) { - control.commit(); - } - super.commit(onSave); - } - } - - @Override - public void refresh() { - for (CustomFieldControl control : controls) { - control.refresh(); - } - super.refresh(); - } - - private CustomFieldType getType(ObjectRef field) { - CustomFieldDefinitionData[] definitions; - try { - definitions = getSession().getCustomFieldDefinitions( - getIssue().getProject().getId().longValue()); - } catch (Exception e) { - MantisConnectPlugin.getDefault().error("Could not get custom field definitions.", e, - false); - definitions = null; - } - if (definitions != null) { - for (CustomFieldDefinitionData definition : definitions) { - if (definition.getField().equals(field)) { - return CustomFieldType.fromType(definition.getType().intValue()); - } - } - } - return null; - } - - public void modified(CustomFieldControl source) { - markDirty(); - ((IssueEditor) getPage().getEditor()).validate(); - } - - public Shell getShell() { - return getPage().getSite().getShell(); - } - - public IssueData getIssue() { - return super.getIssue(); - } - - public ISession getSession() { - return super.getSession(); - } - - @Override - public IStatus[] validate() { - IStatus[] status = new IStatus[controls.size()]; - for (int i = 0; i < status.length; i++) { - status[i] = controls.get(i).validate(); - } - return status; - } - -} Copied: mantisconnect/trunk/clients/java/eclipse/org.mantisbt.connect.eclipse/src/org/mantisbt/connect/eclipse/editors/CustomFieldsSection.java (from rev 66, mantisconnect/trunk/clients/java/eclipse/org.mantisbt.connect.eclipse/src/org/mantisbt/connect/eclipse/editors/CustomFieldsPart.java) =================================================================== --- mantisconnect/trunk/clients/java/eclipse/org.mantisbt.connect.eclipse/src/org/mantisbt/connect/eclipse/editors/CustomFieldsSection.java (rev 0) +++ mantisconnect/trunk/clients/java/eclipse/org.mantisbt.connect.eclipse/src/org/mantisbt/connect/eclipse/editors/CustomFieldsSection.java 2006-10-19 14:31:50 UTC (rev 75) @@ -0,0 +1,159 @@ +/* + * Copyright 2005 Peter Lanser + * + * MantisConnect is copyrighted to Victor Boctor + * + * This program is distributed under the terms and conditions of the GPL + * See LICENSE file for details. + * + * For commercial applications to link with or modify MantisConnect, they + * require the purchase of a MantisConnect commercial license. + */ +package org.mantisbt.connect.eclipse.editors; + +import java.util.ArrayList; +import java.util.List; + +import org.eclipse.core.runtime.IStatus; +import org.eclipse.swt.widgets.Composite; +import org.eclipse.swt.widgets.Shell; +import org.eclipse.ui.forms.widgets.FormToolkit; +import org.eclipse.ui.forms.widgets.Section; +import org.eclipse.ui.forms.widgets.TableWrapLayout; +import org.mantisbt.connect.ISession; +import org.mantisbt.connect.eclipse.CustomFieldType; +import org.mantisbt.connect.eclipse.MantisConnectPlugin; +import org.mantisbt.connect.eclipse.ui.customfields.CheckboxCustomFieldControl; +import org.mantisbt.connect.eclipse.ui.customfields.CustomFieldControl; +import org.mantisbt.connect.eclipse.ui.customfields.DateCustomFieldControl; +import org.mantisbt.connect.eclipse.ui.customfields.EmailCustomFieldControl; +import org.mantisbt.connect.eclipse.ui.customfields.EnumerationCustomFieldControl; +import org.mantisbt.connect.eclipse.ui.customfields.FloatCustomFieldControl; +import org.mantisbt.connect.eclipse.ui.customfields.ICustomFieldContainer; +import org.mantisbt.connect.eclipse.ui.customfields.ListCustomFieldControl; +import org.mantisbt.connect.eclipse.ui.customfields.NumericCustomFieldControl; +import org.mantisbt.connect.eclipse.ui.customfields.StringCustomFieldControl; +import org.mantisbt.connect.service.CustomFieldDefinitionData; +import org.mantisbt.connect.service.CustomFieldValueForIssueData; +import org.mantisbt.connect.service.IssueData; +import org.mantisbt.connect.service.ObjectRef; + +/** + * @author Peter Lanser, pl...@us... + */ +public class CustomFieldsSection extends IssuePart implements ICustomFieldContainer { + + private List<CustomFieldControl> controls; + + public CustomFieldsSection(IssuePage page, Composite parent) { + super(page, parent, Section.TITLE_BAR | Section.TWISTIE | Section.EXPANDED); + getSection().setText("Custom Fields"); + } + + @Override + protected void createClient(Section section, FormToolkit toolkit) { + controls = new ArrayList<CustomFieldControl>(); + Composite container = toolkit.createComposite(section); + TableWrapLayout layout = new TableWrapLayout(); + layout.bottomMargin = layout.topMargin = layout.leftMargin = layout.rightMargin = 2; + layout.verticalSpacing = 7; + layout.numColumns = 4; + container.setLayout(layout); + for (CustomFieldValueForIssueData field : getIssue().getCustom_fields()) { + CustomFieldType type = getType(field.getField()); + CustomFieldControl control = null; + if (type != null) { + if (type.equals(CustomFieldType.STRING)) { + control = new StringCustomFieldControl(this, field); + } else if (type.equals(CustomFieldType.NUMERIC)) { + control = new NumericCustomFieldControl(this, field); + } else if (type.equals(CustomFieldType.FLOAT)) { + control = new FloatCustomFieldControl(this, field); + } else if (type.equals(CustomFieldType.ENUM)) { + control = new EnumerationCustomFieldControl(this, field); + } else if (type.equals(CustomFieldType.CHECKBOX)) { + control = new CheckboxCustomFieldControl(this, field); + } else if (type.equals(CustomFieldType.EMAIL)) { + control = new EmailCustomFieldControl(this, field); + } else if (type.equals(CustomFieldType.LIST)) { + control = new ListCustomFieldControl(this, field, true); + } else if (type.equals(CustomFieldType.MULTI_SELECTION_LIST)) { + control = new ListCustomFieldControl(this, field, false); + } else if (type.equals(CustomFieldType.DATE)) { + control = new DateCustomFieldControl(this, field); + } + if (control != null) { + control.fillIntoGrid(container, 2, toolkit); + controls.add(control); + } + } + } + toolkit.paintBordersFor(container); + section.setClient(container); + } + + @Override + public void commit(boolean onSave) { + if (onSave) { + for (CustomFieldControl control : controls) { + control.commit(); + } + super.commit(onSave); + } + } + + @Override + public void refresh() { + for (CustomFieldControl control : controls) { + control.refresh(); + } + super.refresh(); + } + + private CustomFieldType getType(ObjectRef field) { + CustomFieldDefinitionData[] definitions; + try { + definitions = getSession().getCustomFieldDefinitions( + getIssue().getProject().getId().longValue()); + } catch (Exception e) { + MantisConnectPlugin.getDefault().error("Could not get custom field definitions.", e, + false); + definitions = null; + } + if (definitions != null) { + for (CustomFieldDefinitionData definition : definitions) { + if (definition.getField().equals(field)) { + return CustomFieldType.fromType(definition.getType().intValue()); + } + } + } + return null; + } + + public void modified(CustomFieldControl source) { + markDirty(); + ((IssueEditor) getPage().getEditor()).validate(); + } + + public Shell getShell() { + return getPage().getSite().getShell(); + } + + public IssueData getIssue() { + return super.getIssue(); + } + + public ISession getSession() { + return super.getSession(); + } + + @Override + public IStatus[] validate() { + IStatus[] status = new IStatus[controls.size()]; + for (int i = 0; i < status.length; i++) { + status[i] = controls.get(i).validate(); + } + return status; + } + +} Added: mantisconnect/trunk/clients/java/eclipse/org.mantisbt.connect.eclipse/src/org/mantisbt/connect/eclipse/editors/ExpandableTextSection.java =================================================================== --- mantisconnect/trunk/clients/java/eclipse/org.mantisbt.connect.eclipse/src/org/mantisbt/connect/eclipse/editors/ExpandableTextSection.java (rev 0) +++ mantisconnect/trunk/clients/java/eclipse/org.mantisbt.connect.eclipse/src/org/mantisbt/connect/eclipse/editors/ExpandableTextSection.java 2006-10-19 14:31:50 UTC (rev 75) @@ -0,0 +1,53 @@ +package org.mantisbt.connect.eclipse.editors; + +import org.eclipse.core.runtime.IStatus; +import org.eclipse.swt.SWT; +import org.eclipse.swt.widgets.Composite; +import org.eclipse.swt.widgets.Text; +import org.eclipse.ui.forms.widgets.FormToolkit; +import org.eclipse.ui.forms.widgets.Section; +import org.eclipse.ui.forms.widgets.TableWrapData; +import org.eclipse.ui.forms.widgets.TableWrapLayout; + +public abstract class ExpandableTextSection extends IssuePart { + + protected Text text; + + public ExpandableTextSection(IssuePage page, Composite parent, String label) { + super(page, parent, Section.TITLE_BAR | Section.TWISTIE); + getSection().setText(label); + } + + public ExpandableTextSection(IssuePage page, Composite parent, int style) { + super(page, parent, style); + } + + public void createClient(Section section, FormToolkit toolkit) { + Composite container = toolkit.createComposite(section); + TableWrapLayout layout = new TableWrapLayout(); + layout.numColumns = 1; + layout.bottomMargin = layout.topMargin = layout.leftMargin = layout.rightMargin = 2; + layout.verticalSpacing = 7; + container.setLayout(layout); + text = createText(toolkit, container, "", SWT.MULTI | SWT.WRAP | SWT.V_SCROLL); + TableWrapData twd = new TableWrapData(TableWrapData.FILL_GRAB); + twd.heightHint = 100; + text.setLayoutData(twd); + toolkit.paintBordersFor(container); + section.setClient(container); + } + + protected String getText() { + return text.getText(); + } + + @Override + public IStatus[] validate() { + return new IStatus[0]; + } + + protected boolean isEmpty(String string) { + return string == null || string.trim().length() == 0; + } + +} \ No newline at end of file Modified: mantisconnect/trunk/clients/java/eclipse/org.mantisbt.connect.eclipse/src/org/mantisbt/connect/eclipse/editors/GeneralPage.java =================================================================== --- mantisconnect/trunk/clients/java/eclipse/org.mantisbt.connect.eclipse/src/org/mantisbt/connect/eclipse/editors/GeneralPage.java 2006-10-19 14:26:23 UTC (rev 74) +++ mantisconnect/trunk/clients/java/eclipse/org.mantisbt.connect.eclipse/src/org/mantisbt/connect/eclipse/editors/GeneralPage.java 2006-10-19 14:31:50 UTC (rev 75) @@ -91,6 +91,11 @@ managedForm.addPart(createMainAttributesSection(form.getBody())); managedForm.addPart(createDetailSection(form.getBody())); managedForm.addPart(createTextSection(form.getBody())); + managedForm.addPart(createAdditionalInfoSection(form.getBody())); + managedForm.addPart(createStepsToReproduceSection(form.getBody())); + if (getIssue().getCustom_fields() != null && getIssue().getCustom_fields().length > 0) { + managedForm.addPart(createCustomFieldsPart(form.getBody())); + } attachmentsSection = createAttachmentsSection(form.getBody()); managedForm.addPart(attachmentsSection); managedForm.addPart(createRelationshipsSection(form.getBody())); @@ -124,7 +129,31 @@ textSection.getSection().setLayoutData(gd); return textSection; } + + private ExpandableTextSection createAdditionalInfoSection(Composite parent) { + ExpandableTextSection textSection = new AdditionalInfoSection(this, parent); + TableWrapData gd = new TableWrapData(TableWrapData.FILL_GRAB); + gd.colspan = 2; + textSection.getSection().setLayoutData(gd); + return textSection; + } + private ExpandableTextSection createStepsToReproduceSection(Composite parent) { + ExpandableTextSection textSection = new StepsToReproduceSection(this, parent); + TableWrapData gd = new TableWrapData(TableWrapData.FILL_GRAB); + gd.colspan = 2; + textSection.getSection().setLayoutData(gd); + return textSection; + } + + private CustomFieldsSection createCustomFieldsPart(Composite parent) { + CustomFieldsSection part = new CustomFieldsSection(this, parent); + TableWrapData gd = new TableWrapData(TableWrapData.FILL_GRAB); + gd.colspan = 2; + part.getSection().setLayoutData(gd); + return part; + } + private MainAttributesSection createMainAttributesSection(Composite parent) { MainAttributesSection mainAttributesSection = new MainAttributesSection(this, parent); TableWrapData gd = new TableWrapData(TableWrapData.FILL_GRAB); Modified: mantisconnect/trunk/clients/java/eclipse/org.mantisbt.connect.eclipse/src/org/mantisbt/connect/eclipse/editors/IssueEditor.java =================================================================== --- mantisconnect/trunk/clients/java/eclipse/org.mantisbt.connect.eclipse/src/org/mantisbt/connect/eclipse/editors/IssueEditor.java 2006-10-19 14:26:23 UTC (rev 74) +++ mantisconnect/trunk/clients/java/eclipse/org.mantisbt.connect.eclipse/src/org/mantisbt/connect/eclipse/editors/IssueEditor.java 2006-10-19 14:31:50 UTC (rev 75) @@ -58,9 +58,6 @@ protected void addPages() { try { addPage(new GeneralPage(this)); - if (getIssue().getCustom_fields() != null && getIssue().getCustom_fields().length > 0) { - addPage(new CustomFieldsPage(this)); - } addPage(new NotesPage(this)); URL url = ((IssueEditorInput) getEditorInput()).getUrlForIssue(); if (includeBrowserPage && url != null) { Added: mantisconnect/trunk/clients/java/eclipse/org.mantisbt.connect.eclipse/src/org/mantisbt/connect/eclipse/editors/StepsToReproduceSection.java =================================================================== --- mantisconnect/trunk/clients/java/eclipse/org.mantisbt.connect.eclipse/src/org/mantisbt/connect/eclipse/editors/StepsToReproduceSection.java (rev 0) +++ mantisconnect/trunk/clients/java/eclipse/org.mantisbt.connect.eclipse/src/org/mantisbt/connect/eclipse/editors/StepsToReproduceSection.java 2006-10-19 14:31:50 UTC (rev 75) @@ -0,0 +1,41 @@ +/* + * Copyright 2005 Peter Lanser + * + * MantisConnect is copyrighted to Victor Boctor + * + * This program is distributed under the terms and conditions of the GPL + * See LICENSE file for details. + * + * For commercial applications to link with or modify MantisConnect, they + * require the purchase of a MantisConnect commercial license. + */ +package org.mantisbt.connect.eclipse.editors; + +import org.eclipse.swt.widgets.Composite; +import org.eclipse.ui.forms.widgets.Section; + +/** + * @author Peter Lanser, pl...@us... + */ +public class StepsToReproduceSection extends ExpandableTextSection { + + public StepsToReproduceSection(IssuePage page, Composite parent) { + super(page, parent, Section.TITLE_BAR | Section.TWISTIE); + getSection().setText("Steps To Reproduce"); + getSection().setExpanded(! isEmpty(getIssue().getSteps_to_reproduce())); + } + + public void commit(boolean onSave) { + if (onSave) { + getIssue().setSteps_to_reproduce(text.getText()); + super.commit(onSave); + } + } + + public void refresh() { + text.setText(getIssue().getSteps_to_reproduce() != null ? getIssue() + .getSteps_to_reproduce() : ""); + super.refresh(); + } + +} Modified: mantisconnect/trunk/clients/java/eclipse/org.mantisbt.connect.eclipse/src/org/mantisbt/connect/eclipse/editors/TextSection.java =================================================================== --- mantisconnect/trunk/clients/java/eclipse/org.mantisbt.connect.eclipse/src/org/mantisbt/connect/eclipse/editors/TextSection.java 2006-10-19 14:26:23 UTC (rev 74) +++ mantisconnect/trunk/clients/java/eclipse/org.mantisbt.connect.eclipse/src/org/mantisbt/connect/eclipse/editors/TextSection.java 2006-10-19 14:31:50 UTC (rev 75) @@ -33,10 +33,6 @@ private Text description; - private Text additional; - - private Text stepsToReproduce; - public TextSection(IssuePage page, Composite parent) { super(page, parent); getSection().setText("Text"); @@ -61,18 +57,6 @@ twd.heightHint = 100; description.setLayoutData(twd); description.addModifyListener(validateListener); - toolkit.createLabel(container, "Additional Information:").setLayoutData( - new TableWrapData(TableWrapData.FILL)); - additional = createText(toolkit, container, "", SWT.MULTI | SWT.WRAP | SWT.V_SCROLL); - twd = new TableWrapData(TableWrapData.FILL_GRAB); - twd.heightHint = 100; - additional.setLayoutData(twd); - toolkit.createLabel(container, " Steps To Reproduce:").setLayoutData( - new TableWrapData(TableWrapData.FILL)); - stepsToReproduce = createText(toolkit, container, "", SWT.MULTI | SWT.WRAP | SWT.V_SCROLL); - twd = new TableWrapData(TableWrapData.FILL_GRAB); - twd.heightHint = 100; - stepsToReproduce.setLayoutData(twd); toolkit.paintBordersFor(container); section.setClient(container); } @@ -81,8 +65,6 @@ if (onSave) { getIssue().setSummary(summary.getText()); getIssue().setDescription(description.getText()); - getIssue().setAdditional_information(additional.getText()); - getIssue().setSteps_to_reproduce(stepsToReproduce.getText()); super.commit(onSave); } } @@ -90,10 +72,6 @@ public void refresh() { summary.setText(getIssue().getSummary() != null ? getIssue().getSummary() : ""); description.setText(getIssue().getDescription() != null ? getIssue().getDescription() : ""); - additional.setText(getIssue().getAdditional_information() != null ? getIssue() - .getAdditional_information() : ""); - stepsToReproduce.setText(getIssue().getSteps_to_reproduce() != null ? getIssue() - .getSteps_to_reproduce() : ""); super.refresh(); } Modified: mantisconnect/trunk/clients/java/eclipse/org.mantisbt.connect.eclipse/src/org/mantisbt/connect/eclipse/views/IssuesLabelProvider.java =================================================================== --- mantisconnect/trunk/clients/java/eclipse/org.mantisbt.connect.eclipse/src/org/mantisbt/connect/eclipse/views/IssuesLabelProvider.java 2006-10-19 14:26:23 UTC (rev 74) +++ mantisconnect/trunk/clients/java/eclipse/org.mantisbt.connect.eclipse/src/org/mantisbt/connect/eclipse/views/IssuesLabelProvider.java 2006-10-19 14:31:50 UTC (rev 75) @@ -169,7 +169,7 @@ private String getHandlerLabel(BigInteger projectId, BigInteger handler) { try { AccountData[] data = view.getSession().getProjectUsers( - projectId.longValue(), ISession.ANYBODY); + projectId.longValue(), ISession.AL_ANYBODY); for (AccountData account : data) { if (account.getId().equals(handler)) { return account.getName(); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <pl...@us...> - 2007-12-07 13:47:14
|
Revision: 149 http://mantisconnect.svn.sourceforge.net/mantisconnect/?rev=149&view=rev Author: planser Date: 2007-12-07 05:47:05 -0800 (Fri, 07 Dec 2007) Log Message: ----------- - Some UI changes - Move towards Eclipse 3.3 Modified Paths: -------------- mantisconnect/trunk/clients/java/eclipse/org.mantisbt.connect.eclipse/lib/mantisconnect-client-api-1.1.1.0-SVN.jar mantisconnect/trunk/clients/java/eclipse/org.mantisbt.connect.eclipse/src/org/mantisbt/connect/eclipse/MantisConnectPlugin.java mantisconnect/trunk/clients/java/eclipse/org.mantisbt.connect.eclipse/src/org/mantisbt/connect/eclipse/actions/NewIssueAction.java mantisconnect/trunk/clients/java/eclipse/org.mantisbt.connect.eclipse/src/org/mantisbt/connect/eclipse/dialogs/ConnectionSettingsDialog.java mantisconnect/trunk/clients/java/eclipse/org.mantisbt.connect.eclipse/src/org/mantisbt/connect/eclipse/editors/GeneralPage.java mantisconnect/trunk/clients/java/eclipse/org.mantisbt.connect.eclipse/src/org/mantisbt/connect/eclipse/editors/MainAttributesSection.java mantisconnect/trunk/clients/java/eclipse/org.mantisbt.connect.eclipse/src/org/mantisbt/connect/eclipse/editors/NotesPage.java mantisconnect/trunk/clients/java/eclipse/org.mantisbt.connect.eclipse/src/org/mantisbt/connect/eclipse/editors/TextSection.java mantisconnect/trunk/clients/java/eclipse/org.mantisbt.connect.eclipse/src/org/mantisbt/connect/eclipse/views/MantisConnectView.java Added Paths: ----------- mantisconnect/trunk/clients/java/eclipse/org.mantisbt.connect.eclipse/.settings/ mantisconnect/trunk/clients/java/eclipse/org.mantisbt.connect.eclipse/.settings/org.eclipse.jdt.core.prefs mantisconnect/trunk/clients/java/eclipse/org.mantisbt.connect.eclipse/.settings/org.eclipse.jdt.ui.prefs mantisconnect/trunk/clients/java/eclipse/org.mantisbt.connect.eclipse/src/org/mantisbt/connect/eclipse/views/InitProjectJob.java mantisconnect/trunk/clients/java/eclipse/org.mantisbt.connect.eclipse/src/org/mantisbt/connect/eclipse/views/InitSessionJob.java Added: mantisconnect/trunk/clients/java/eclipse/org.mantisbt.connect.eclipse/.settings/org.eclipse.jdt.core.prefs =================================================================== --- mantisconnect/trunk/clients/java/eclipse/org.mantisbt.connect.eclipse/.settings/org.eclipse.jdt.core.prefs (rev 0) +++ mantisconnect/trunk/clients/java/eclipse/org.mantisbt.connect.eclipse/.settings/org.eclipse.jdt.core.prefs 2007-12-07 13:47:05 UTC (rev 149) @@ -0,0 +1,256 @@ +#Tue Nov 06 10:34:43 CET 2007 +eclipse.preferences.version=1 +org.eclipse.jdt.core.formatter.align_type_members_on_columns=false +org.eclipse.jdt.core.formatter.alignment_for_arguments_in_allocation_expression=16 +org.eclipse.jdt.core.formatter.alignment_for_arguments_in_enum_constant=16 +org.eclipse.jdt.core.formatter.alignment_for_arguments_in_explicit_constructor_call=16 +org.eclipse.jdt.core.formatter.alignment_for_arguments_in_method_invocation=16 +org.eclipse.jdt.core.formatter.alignment_for_arguments_in_qualified_allocation_expression=16 +org.eclipse.jdt.core.formatter.alignment_for_assignment=0 +org.eclipse.jdt.core.formatter.alignment_for_binary_expression=16 +org.eclipse.jdt.core.formatter.alignment_for_compact_if=16 +org.eclipse.jdt.core.formatter.alignment_for_conditional_expression=80 +org.eclipse.jdt.core.formatter.alignment_for_enum_constants=0 +org.eclipse.jdt.core.formatter.alignment_for_expressions_in_array_initializer=16 +org.eclipse.jdt.core.formatter.alignment_for_multiple_fields=16 +org.eclipse.jdt.core.formatter.alignment_for_parameters_in_constructor_declaration=16 +org.eclipse.jdt.core.formatter.alignment_for_parameters_in_method_declaration=16 +org.eclipse.jdt.core.formatter.alignment_for_selector_in_method_invocation=16 +org.eclipse.jdt.core.formatter.alignment_for_superclass_in_type_declaration=16 +org.eclipse.jdt.core.formatter.alignment_for_superinterfaces_in_enum_declaration=16 +org.eclipse.jdt.core.formatter.alignment_for_superinterfaces_in_type_declaration=16 +org.eclipse.jdt.core.formatter.alignment_for_throws_clause_in_constructor_declaration=16 +org.eclipse.jdt.core.formatter.alignment_for_throws_clause_in_method_declaration=16 +org.eclipse.jdt.core.formatter.blank_lines_after_imports=1 +org.eclipse.jdt.core.formatter.blank_lines_after_package=1 +org.eclipse.jdt.core.formatter.blank_lines_before_field=0 +org.eclipse.jdt.core.formatter.blank_lines_before_first_class_body_declaration=0 +org.eclipse.jdt.core.formatter.blank_lines_before_imports=1 +org.eclipse.jdt.core.formatter.blank_lines_before_member_type=1 +org.eclipse.jdt.core.formatter.blank_lines_before_method=1 +org.eclipse.jdt.core.formatter.blank_lines_before_new_chunk=1 +org.eclipse.jdt.core.formatter.blank_lines_before_package=0 +org.eclipse.jdt.core.formatter.blank_lines_between_import_groups=1 +org.eclipse.jdt.core.formatter.blank_lines_between_type_declarations=1 +org.eclipse.jdt.core.formatter.brace_position_for_annotation_type_declaration=end_of_line +org.eclipse.jdt.core.formatter.brace_position_for_anonymous_type_declaration=end_of_line +org.eclipse.jdt.core.formatter.brace_position_for_array_initializer=end_of_line +org.eclipse.jdt.core.formatter.brace_position_for_block=end_of_line +org.eclipse.jdt.core.formatter.brace_position_for_block_in_case=end_of_line +org.eclipse.jdt.core.formatter.brace_position_for_constructor_declaration=end_of_line +org.eclipse.jdt.core.formatter.brace_position_for_enum_constant=end_of_line +org.eclipse.jdt.core.formatter.brace_position_for_enum_declaration=end_of_line +org.eclipse.jdt.core.formatter.brace_position_for_method_declaration=end_of_line +org.eclipse.jdt.core.formatter.brace_position_for_switch=end_of_line +org.eclipse.jdt.core.formatter.brace_position_for_type_declaration=end_of_line +org.eclipse.jdt.core.formatter.comment.clear_blank_lines_in_block_comment=false +org.eclipse.jdt.core.formatter.comment.clear_blank_lines_in_javadoc_comment=false +org.eclipse.jdt.core.formatter.comment.format_block_comments=true +org.eclipse.jdt.core.formatter.comment.format_header=false +org.eclipse.jdt.core.formatter.comment.format_html=true +org.eclipse.jdt.core.formatter.comment.format_javadoc_comments=true +org.eclipse.jdt.core.formatter.comment.format_line_comments=true +org.eclipse.jdt.core.formatter.comment.format_source_code=true +org.eclipse.jdt.core.formatter.comment.indent_parameter_description=true +org.eclipse.jdt.core.formatter.comment.indent_root_tags=true +org.eclipse.jdt.core.formatter.comment.insert_new_line_before_root_tags=insert +org.eclipse.jdt.core.formatter.comment.insert_new_line_for_parameter=insert +org.eclipse.jdt.core.formatter.comment.line_length=80 +org.eclipse.jdt.core.formatter.compact_else_if=true +org.eclipse.jdt.core.formatter.continuation_indentation=2 +org.eclipse.jdt.core.formatter.continuation_indentation_for_array_initializer=2 +org.eclipse.jdt.core.formatter.format_guardian_clause_on_one_line=false +org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_annotation_declaration_header=true +org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_enum_constant_header=true +org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_enum_declaration_header=true +org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_type_header=true +org.eclipse.jdt.core.formatter.indent_breaks_compare_to_cases=true +org.eclipse.jdt.core.formatter.indent_empty_lines=false +org.eclipse.jdt.core.formatter.indent_statements_compare_to_block=true +org.eclipse.jdt.core.formatter.indent_statements_compare_to_body=true +org.eclipse.jdt.core.formatter.indent_switchstatements_compare_to_cases=true +org.eclipse.jdt.core.formatter.indent_switchstatements_compare_to_switch=false +org.eclipse.jdt.core.formatter.indentation.size=4 +org.eclipse.jdt.core.formatter.insert_new_line_after_annotation=insert +org.eclipse.jdt.core.formatter.insert_new_line_after_opening_brace_in_array_initializer=do not insert +org.eclipse.jdt.core.formatter.insert_new_line_at_end_of_file_if_missing=do not insert +org.eclipse.jdt.core.formatter.insert_new_line_before_catch_in_try_statement=do not insert +org.eclipse.jdt.core.formatter.insert_new_line_before_closing_brace_in_array_initializer=do not insert +org.eclipse.jdt.core.formatter.insert_new_line_before_else_in_if_statement=do not insert +org.eclipse.jdt.core.formatter.insert_new_line_before_finally_in_try_statement=do not insert +org.eclipse.jdt.core.formatter.insert_new_line_before_while_in_do_statement=do not insert +org.eclipse.jdt.core.formatter.insert_new_line_in_empty_annotation_declaration=insert +org.eclipse.jdt.core.formatter.insert_new_line_in_empty_anonymous_type_declaration=insert +org.eclipse.jdt.core.formatter.insert_new_line_in_empty_block=insert +org.eclipse.jdt.core.formatter.insert_new_line_in_empty_enum_constant=insert +org.eclipse.jdt.core.formatter.insert_new_line_in_empty_enum_declaration=insert +org.eclipse.jdt.core.formatter.insert_new_line_in_empty_method_body=insert +org.eclipse.jdt.core.formatter.insert_new_line_in_empty_type_declaration=insert +org.eclipse.jdt.core.formatter.insert_space_after_and_in_type_parameter=insert +org.eclipse.jdt.core.formatter.insert_space_after_assignment_operator=insert +org.eclipse.jdt.core.formatter.insert_space_after_at_in_annotation=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_at_in_annotation_type_declaration=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_binary_operator=insert +org.eclipse.jdt.core.formatter.insert_space_after_closing_angle_bracket_in_type_arguments=insert +org.eclipse.jdt.core.formatter.insert_space_after_closing_angle_bracket_in_type_parameters=insert +org.eclipse.jdt.core.formatter.insert_space_after_closing_brace_in_block=insert +org.eclipse.jdt.core.formatter.insert_space_after_closing_paren_in_cast=insert +org.eclipse.jdt.core.formatter.insert_space_after_colon_in_assert=insert +org.eclipse.jdt.core.formatter.insert_space_after_colon_in_case=insert +org.eclipse.jdt.core.formatter.insert_space_after_colon_in_conditional=insert +org.eclipse.jdt.core.formatter.insert_space_after_colon_in_for=insert +org.eclipse.jdt.core.formatter.insert_space_after_colon_in_labeled_statement=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_allocation_expression=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_annotation=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_array_initializer=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_constructor_declaration_parameters=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_constructor_declaration_throws=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_enum_constant_arguments=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_enum_declarations=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_explicitconstructorcall_arguments=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_for_increments=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_for_inits=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_method_declaration_parameters=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_method_declaration_throws=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_method_invocation_arguments=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_multiple_field_declarations=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_multiple_local_declarations=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_parameterized_type_reference=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_superinterfaces=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_type_arguments=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_type_parameters=insert +org.eclipse.jdt.core.formatter.insert_space_after_ellipsis=insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_angle_bracket_in_parameterized_type_reference=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_angle_bracket_in_type_arguments=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_angle_bracket_in_type_parameters=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_brace_in_array_initializer=insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_bracket_in_array_allocation_expression=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_bracket_in_array_reference=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_annotation=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_cast=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_catch=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_constructor_declaration=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_enum_constant=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_for=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_if=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_method_declaration=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_method_invocation=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_parenthesized_expression=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_switch=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_synchronized=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_while=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_postfix_operator=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_prefix_operator=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_question_in_conditional=insert +org.eclipse.jdt.core.formatter.insert_space_after_question_in_wildcard=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_semicolon_in_for=insert +org.eclipse.jdt.core.formatter.insert_space_after_unary_operator=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_and_in_type_parameter=insert +org.eclipse.jdt.core.formatter.insert_space_before_assignment_operator=insert +org.eclipse.jdt.core.formatter.insert_space_before_at_in_annotation_type_declaration=insert +org.eclipse.jdt.core.formatter.insert_space_before_binary_operator=insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_angle_bracket_in_parameterized_type_reference=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_angle_bracket_in_type_arguments=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_angle_bracket_in_type_parameters=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_brace_in_array_initializer=insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_bracket_in_array_allocation_expression=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_bracket_in_array_reference=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_annotation=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_cast=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_catch=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_constructor_declaration=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_enum_constant=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_for=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_if=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_method_declaration=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_method_invocation=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_parenthesized_expression=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_switch=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_synchronized=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_while=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_colon_in_assert=insert +org.eclipse.jdt.core.formatter.insert_space_before_colon_in_case=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_colon_in_conditional=insert +org.eclipse.jdt.core.formatter.insert_space_before_colon_in_default=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_colon_in_for=insert +org.eclipse.jdt.core.formatter.insert_space_before_colon_in_labeled_statement=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_allocation_expression=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_annotation=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_array_initializer=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_constructor_declaration_parameters=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_constructor_declaration_throws=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_enum_constant_arguments=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_enum_declarations=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_explicitconstructorcall_arguments=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_for_increments=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_for_inits=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_declaration_parameters=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_declaration_throws=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_invocation_arguments=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_multiple_field_declarations=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_multiple_local_declarations=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_parameterized_type_reference=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_superinterfaces=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_type_arguments=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_type_parameters=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_ellipsis=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_angle_bracket_in_parameterized_type_reference=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_angle_bracket_in_type_arguments=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_angle_bracket_in_type_parameters=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_annotation_type_declaration=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_anonymous_type_declaration=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_array_initializer=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_block=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_constructor_declaration=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_enum_constant=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_enum_declaration=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_method_declaration=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_switch=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_type_declaration=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_bracket_in_array_allocation_expression=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_bracket_in_array_reference=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_bracket_in_array_type_reference=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_annotation=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_annotation_type_member_declaration=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_catch=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_constructor_declaration=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_enum_constant=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_for=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_if=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_method_declaration=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_method_invocation=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_parenthesized_expression=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_switch=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_synchronized=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_while=insert +org.eclipse.jdt.core.formatter.insert_space_before_parenthesized_expression_in_return=insert +org.eclipse.jdt.core.formatter.insert_space_before_parenthesized_expression_in_throw=insert +org.eclipse.jdt.core.formatter.insert_space_before_postfix_operator=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_prefix_operator=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_question_in_conditional=insert +org.eclipse.jdt.core.formatter.insert_space_before_question_in_wildcard=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_semicolon=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_semicolon_in_for=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_unary_operator=do not insert +org.eclipse.jdt.core.formatter.insert_space_between_brackets_in_array_type_reference=do not insert +org.eclipse.jdt.core.formatter.insert_space_between_empty_braces_in_array_initializer=do not insert +org.eclipse.jdt.core.formatter.insert_space_between_empty_brackets_in_array_allocation_expression=do not insert +org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_annotation_type_member_declaration=do not insert +org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_constructor_declaration=do not insert +org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_enum_constant=do not insert +org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_method_declaration=do not insert +org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_method_invocation=do not insert +org.eclipse.jdt.core.formatter.keep_else_statement_on_same_line=false +org.eclipse.jdt.core.formatter.keep_empty_array_initializer_on_one_line=false +org.eclipse.jdt.core.formatter.keep_imple_if_on_one_line=false +org.eclipse.jdt.core.formatter.keep_then_statement_on_same_line=false +org.eclipse.jdt.core.formatter.lineSplit=100 +org.eclipse.jdt.core.formatter.never_indent_block_comments_on_first_column=false +org.eclipse.jdt.core.formatter.never_indent_line_comments_on_first_column=false +org.eclipse.jdt.core.formatter.number_of_blank_lines_at_beginning_of_method_body=0 +org.eclipse.jdt.core.formatter.number_of_empty_lines_to_preserve=1 +org.eclipse.jdt.core.formatter.put_empty_statement_on_new_line=true +org.eclipse.jdt.core.formatter.tabulation.char=tab +org.eclipse.jdt.core.formatter.tabulation.size=4 +org.eclipse.jdt.core.formatter.use_tabs_only_for_leading_indentations=false +org.eclipse.jdt.core.formatter.wrap_before_binary_operator=true Property changes on: mantisconnect/trunk/clients/java/eclipse/org.mantisbt.connect.eclipse/.settings/org.eclipse.jdt.core.prefs ___________________________________________________________________ Name: svn:mime-type + text/plain Added: mantisconnect/trunk/clients/java/eclipse/org.mantisbt.connect.eclipse/.settings/org.eclipse.jdt.ui.prefs =================================================================== --- mantisconnect/trunk/clients/java/eclipse/org.mantisbt.connect.eclipse/.settings/org.eclipse.jdt.ui.prefs (rev 0) +++ mantisconnect/trunk/clients/java/eclipse/org.mantisbt.connect.eclipse/.settings/org.eclipse.jdt.ui.prefs 2007-12-07 13:47:05 UTC (rev 149) @@ -0,0 +1,4 @@ +#Tue Nov 06 10:34:43 CET 2007 +eclipse.preferences.version=1 +formatter_profile=_Eclipse [built-in] 100 +formatter_settings_version=11 Property changes on: mantisconnect/trunk/clients/java/eclipse/org.mantisbt.connect.eclipse/.settings/org.eclipse.jdt.ui.prefs ___________________________________________________________________ Name: svn:mime-type + text/plain Modified: mantisconnect/trunk/clients/java/eclipse/org.mantisbt.connect.eclipse/lib/mantisconnect-client-api-1.1.1.0-SVN.jar =================================================================== (Binary files differ) Modified: mantisconnect/trunk/clients/java/eclipse/org.mantisbt.connect.eclipse/src/org/mantisbt/connect/eclipse/MantisConnectPlugin.java =================================================================== --- mantisconnect/trunk/clients/java/eclipse/org.mantisbt.connect.eclipse/src/org/mantisbt/connect/eclipse/MantisConnectPlugin.java 2007-12-07 13:12:48 UTC (rev 148) +++ mantisconnect/trunk/clients/java/eclipse/org.mantisbt.connect.eclipse/src/org/mantisbt/connect/eclipse/MantisConnectPlugin.java 2007-12-07 13:47:05 UTC (rev 149) @@ -91,13 +91,11 @@ public static final String PREF_CHANGED = "Changed"; - public final static String MC_ENDPOINT_FILENAME = "mantisconnect.php"; - public final static String MANTIS_INDEX_FILENAME = "index.php"; public final static String MANTIS_VIEW_ISSUE_FILENAME = "view.php"; - public final static String MC_ENDPOINT_DEFAULT_PATH = "mc"; + public final static String MC_ENDPOINT_REL_DEFAULT_PATH = "api/soap/mantisconnect.php"; private static MantisConnectPlugin plugin; Modified: mantisconnect/trunk/clients/java/eclipse/org.mantisbt.connect.eclipse/src/org/mantisbt/connect/eclipse/actions/NewIssueAction.java =================================================================== --- mantisconnect/trunk/clients/java/eclipse/org.mantisbt.connect.eclipse/src/org/mantisbt/connect/eclipse/actions/NewIssueAction.java 2007-12-07 13:12:48 UTC (rev 148) +++ mantisconnect/trunk/clients/java/eclipse/org.mantisbt.connect.eclipse/src/org/mantisbt/connect/eclipse/actions/NewIssueAction.java 2007-12-07 13:47:05 UTC (rev 149) @@ -11,14 +11,18 @@ */ package org.mantisbt.connect.eclipse.actions; +import org.eclipse.core.runtime.IProgressMonitor; +import org.eclipse.core.runtime.IStatus; import org.eclipse.core.runtime.jobs.IJobChangeEvent; +import org.eclipse.core.runtime.jobs.Job; import org.eclipse.core.runtime.jobs.JobChangeAdapter; import org.eclipse.jface.action.Action; import org.eclipse.jface.dialogs.Dialog; -import org.eclipse.swt.custom.BusyIndicator; import org.eclipse.swt.widgets.Shell; +import org.mantisbt.connect.IMCSession; import org.mantisbt.connect.MCException; import org.mantisbt.connect.eclipse.MantisConnectPlugin; +import org.mantisbt.connect.eclipse.StatusInfo; import org.mantisbt.connect.eclipse.dialogs.IssueDialog; import org.mantisbt.connect.eclipse.views.AddIssueJob; import org.mantisbt.connect.eclipse.views.ErrorRunnable; @@ -47,43 +51,74 @@ if (view.getSession() == null || view.getCurrentProject() == null) { return; } - final IIssue[] issue = new IIssue[1]; - final Throwable[] error = new Throwable[1]; - BusyIndicator.showWhile(shell.getDisplay(), new Runnable() { - public void run() { - try { - issue[0] = view.getSession().newIssue(view.getCurrentProject().getId()); - view.getSession().getCategories(view.getCurrentProject().getId()); - } catch (MCException e) { - error[0] = e; + NewIssueJob job = new NewIssueJob(view.getSession(), view.getCurrentProject().getId()); + job.setUser(true); + job.addJobChangeListener(new JobChangeAdapter() { + public void done(final IJobChangeEvent event) { + if (event.getResult().getSeverity() == IStatus.OK) { + shell.getDisplay().asyncExec(new Runnable() { + public void run() { + showIssueDialog(((NewIssueJob) event.getJob()).getIssue()); + } + }); + } else { + MantisConnectPlugin.getDefault().error("Could not create new issue.", + event.getJob().getResult().getException(), true); } } }); - if (error[0] == null) { - IssueDialog dialog = new IssueDialog(shell, issue[0], view.getSession()); - if (dialog.open() == Dialog.OK) { - AddIssueJob job = new AddIssueJob(view.getSession(), issue[0]); - job.setUser(true); - job.addJobChangeListener(new JobChangeAdapter() { - public void done(IJobChangeEvent event) { - AddIssueJob job = (AddIssueJob) event.getJob(); - if (job.getError() != null) { - shell.getDisplay().syncExec( - new ErrorRunnable("Error adding issue.", job.getError(), true, - false, view)); + view.getProgressService().schedule(job); + } + + private void showIssueDialog(IIssue issue) { + IssueDialog dialog = new IssueDialog(shell, issue, view.getSession()); + if (dialog.open() == Dialog.OK) { + AddIssueJob job = new AddIssueJob(view.getSession(), issue); + job.setUser(true); + job.addJobChangeListener(new JobChangeAdapter() { + public void done(IJobChangeEvent event) { + AddIssueJob job = (AddIssueJob) event.getJob(); + if (job.getError() != null) { + shell.getDisplay().syncExec( + new ErrorRunnable("Error adding issue.", job.getError(), true, + false, view)); + } + shell.getDisplay().syncExec(new Runnable() { + public void run() { + view.updateIssues(); } - shell.getDisplay().syncExec(new Runnable() { - public void run() { - view.updateIssues(); - } - }); - } - }); - view.getProgressService().schedule(job); + }); + } + }); + view.getProgressService().schedule(job); + } + } + + private class NewIssueJob extends Job { + + private IMCSession session; + private long projectId; + private IIssue issue; + + public NewIssueJob(IMCSession session, long projectId) { + super("Creating new Issue"); + this.session = session; + this.projectId = projectId; + } + + protected IStatus run(IProgressMonitor monitor) { + try { + issue = session.newIssue(projectId); + return StatusInfo.OK; + } catch (MCException e) { + return new StatusInfo("Error while creating new issue", e); } - } else { - MantisConnectPlugin.getDefault().error("Could not create new issue.", error[0], true); } + + public IIssue getIssue() { + return issue; + } + } } Modified: mantisconnect/trunk/clients/java/eclipse/org.mantisbt.connect.eclipse/src/org/mantisbt/connect/eclipse/dialogs/ConnectionSettingsDialog.java =================================================================== --- mantisconnect/trunk/clients/java/eclipse/org.mantisbt.connect.eclipse/src/org/mantisbt/connect/eclipse/dialogs/ConnectionSettingsDialog.java 2007-12-07 13:12:48 UTC (rev 148) +++ mantisconnect/trunk/clients/java/eclipse/org.mantisbt.connect.eclipse/src/org/mantisbt/connect/eclipse/dialogs/ConnectionSettingsDialog.java 2007-12-07 13:47:05 UTC (rev 149) @@ -362,18 +362,9 @@ private String guessBrowserUrl() { String mcUrl = mantisConnectUrl.getText().trim(); - if (mcUrl.endsWith(MantisConnectPlugin.MC_ENDPOINT_FILENAME)) { + if (mcUrl.endsWith(MantisConnectPlugin.MC_ENDPOINT_REL_DEFAULT_PATH)) { String result = mcUrl.substring(0, mcUrl.length() - - MantisConnectPlugin.MC_ENDPOINT_FILENAME.length()); - if (result.endsWith("/")) { - result = result.substring(0, result.length() - 1); - } - if (result - .endsWith(MantisConnectPlugin.MC_ENDPOINT_DEFAULT_PATH)) { - result = result.substring(0, result.length() - - MantisConnectPlugin.MC_ENDPOINT_DEFAULT_PATH - .length()); - } + - MantisConnectPlugin.MC_ENDPOINT_REL_DEFAULT_PATH.length()); result += MantisConnectPlugin.MANTIS_VIEW_ISSUE_FILENAME + "?id=" + BrowserUrlVariable.ISSUE_ID; return result; Modified: mantisconnect/trunk/clients/java/eclipse/org.mantisbt.connect.eclipse/src/org/mantisbt/connect/eclipse/editors/GeneralPage.java =================================================================== --- mantisconnect/trunk/clients/java/eclipse/org.mantisbt.connect.eclipse/src/org/mantisbt/connect/eclipse/editors/GeneralPage.java 2007-12-07 13:12:48 UTC (rev 148) +++ mantisconnect/trunk/clients/java/eclipse/org.mantisbt.connect.eclipse/src/org/mantisbt/connect/eclipse/editors/GeneralPage.java 2007-12-07 13:47:05 UTC (rev 149) @@ -111,6 +111,8 @@ protected void createFormContent(IManagedForm managedForm) { super.createFormContent(managedForm); ScrolledForm form = managedForm.getForm(); + form.setText("Issue " + getEditor().getEditorInput().getName() + " - General"); + managedForm.getToolkit().decorateFormHeading(form.getForm()); createLayout(form.getBody()); managedForm.addPart(createMainAttributesSection(form.getBody())); managedForm.addPart(createDetailSection(form.getBody())); Modified: mantisconnect/trunk/clients/java/eclipse/org.mantisbt.connect.eclipse/src/org/mantisbt/connect/eclipse/editors/MainAttributesSection.java =================================================================== --- mantisconnect/trunk/clients/java/eclipse/org.mantisbt.connect.eclipse/src/org/mantisbt/connect/eclipse/editors/MainAttributesSection.java 2007-12-07 13:12:48 UTC (rev 148) +++ mantisconnect/trunk/clients/java/eclipse/org.mantisbt.connect.eclipse/src/org/mantisbt/connect/eclipse/editors/MainAttributesSection.java 2007-12-07 13:47:05 UTC (rev 149) @@ -88,9 +88,7 @@ } protected void createClient(Section section, FormToolkit toolkit) { - AccountDataLabelProvider accountDataLabelProvider = new AccountDataLabelProvider(); - Composite container = toolkit.createComposite(section); TableWrapLayout layout = new TableWrapLayout(); layout.numColumns = 4; Modified: mantisconnect/trunk/clients/java/eclipse/org.mantisbt.connect.eclipse/src/org/mantisbt/connect/eclipse/editors/NotesPage.java =================================================================== --- mantisconnect/trunk/clients/java/eclipse/org.mantisbt.connect.eclipse/src/org/mantisbt/connect/eclipse/editors/NotesPage.java 2007-12-07 13:12:48 UTC (rev 148) +++ mantisconnect/trunk/clients/java/eclipse/org.mantisbt.connect.eclipse/src/org/mantisbt/connect/eclipse/editors/NotesPage.java 2007-12-07 13:47:05 UTC (rev 149) @@ -71,6 +71,8 @@ protected void createFormContent(IManagedForm managedForm) { final ScrolledForm form = managedForm.getForm(); + form.setText("Issue " + getEditor().getEditorInput().getName() + " - Notes"); + managedForm.getToolkit().decorateFormHeading(form.getForm()); createLayout(form); newNoteSection = createNewNoteSection(form.getBody()); managedForm.addPart(newNoteSection); Modified: mantisconnect/trunk/clients/java/eclipse/org.mantisbt.connect.eclipse/src/org/mantisbt/connect/eclipse/editors/TextSection.java =================================================================== --- mantisconnect/trunk/clients/java/eclipse/org.mantisbt.connect.eclipse/src/org/mantisbt/connect/eclipse/editors/TextSection.java 2007-12-07 13:12:48 UTC (rev 148) +++ mantisconnect/trunk/clients/java/eclipse/org.mantisbt.connect.eclipse/src/org/mantisbt/connect/eclipse/editors/TextSection.java 2007-12-07 13:47:05 UTC (rev 149) @@ -59,6 +59,7 @@ description.addModifyListener(validateListener); toolkit.paintBordersFor(container); section.setClient(container); + } public void commit(boolean onSave) { Added: mantisconnect/trunk/clients/java/eclipse/org.mantisbt.connect.eclipse/src/org/mantisbt/connect/eclipse/views/InitProjectJob.java =================================================================== --- mantisconnect/trunk/clients/java/eclipse/org.mantisbt.connect.eclipse/src/org/mantisbt/connect/eclipse/views/InitProjectJob.java (rev 0) +++ mantisconnect/trunk/clients/java/eclipse/org.mantisbt.connect.eclipse/src/org/mantisbt/connect/eclipse/views/InitProjectJob.java 2007-12-07 13:47:05 UTC (rev 149) @@ -0,0 +1,42 @@ +package org.mantisbt.connect.eclipse.views; + +import org.eclipse.core.runtime.IProgressMonitor; +import org.eclipse.core.runtime.IStatus; +import org.eclipse.core.runtime.jobs.Job; +import org.mantisbt.connect.IMCSession; +import org.mantisbt.connect.MCException; +import org.mantisbt.connect.eclipse.StatusInfo; + +public class InitProjectJob extends Job { + + private IMCSession session; + + private long projectId; + + public InitProjectJob(IMCSession session, long projectId) { + super("Initializing project"); + this.session = session; + this.projectId = projectId; + } + + protected IStatus run(IProgressMonitor monitor) { + try { + monitor.beginTask("Initializing project", 3); + monitor.subTask("Fetching categories"); + session.getCategories(projectId); + monitor.worked(1); + monitor.subTask("Fetching released versions"); + session.getReleasedVersions(projectId); + monitor.worked(1); + monitor.subTask("Fetching custom field definitions"); + session.getCustomFieldDefinitions(projectId); + monitor.worked(1); + return StatusInfo.OK; + } catch (MCException e) { + return new StatusInfo("Error while initializing project", e); + } finally { + monitor.done(); + } + } + +} Property changes on: mantisconnect/trunk/clients/java/eclipse/org.mantisbt.connect.eclipse/src/org/mantisbt/connect/eclipse/views/InitProjectJob.java ___________________________________________________________________ Name: svn:mime-type + text/plain Added: mantisconnect/trunk/clients/java/eclipse/org.mantisbt.connect.eclipse/src/org/mantisbt/connect/eclipse/views/InitSessionJob.java =================================================================== --- mantisconnect/trunk/clients/java/eclipse/org.mantisbt.connect.eclipse/src/org/mantisbt/connect/eclipse/views/InitSessionJob.java (rev 0) +++ mantisconnect/trunk/clients/java/eclipse/org.mantisbt.connect.eclipse/src/org/mantisbt/connect/eclipse/views/InitSessionJob.java 2007-12-07 13:47:05 UTC (rev 149) @@ -0,0 +1,43 @@ +package org.mantisbt.connect.eclipse.views; + +import org.eclipse.core.runtime.IProgressMonitor; +import org.eclipse.core.runtime.IStatus; +import org.eclipse.core.runtime.jobs.Job; +import org.mantisbt.connect.IMCSession; +import org.mantisbt.connect.MCException; +import org.mantisbt.connect.eclipse.StatusInfo; + +public class InitSessionJob extends Job { + + private IMCSession session; + + public InitSessionJob(IMCSession session) { + super("Initializing session"); + this.session = session; + } + + @Override + protected IStatus run(IProgressMonitor monitor) { + try { + monitor.beginTask("Initializing session", 4); + monitor.subTask("Fetching default issue severity"); + session.getDefaultIssueSeverity(); + monitor.worked(1); + monitor.subTask("Fetching default issue priority"); + session.getDefaultIssuePriority(); + monitor.worked(1); + monitor.subTask("Fetching default issue viewstate"); + session.getDefaultIssueViewState(); + monitor.worked(1); + monitor.subTask("Fetching default note viewstate"); + session.getDefaultNoteViewState(); + monitor.worked(1); + return StatusInfo.OK; + } catch (MCException e) { + return new StatusInfo("Error while initializing project", e); + } finally { + monitor.done(); + } + } + +} Property changes on: mantisconnect/trunk/clients/java/eclipse/org.mantisbt.connect.eclipse/src/org/mantisbt/connect/eclipse/views/InitSessionJob.java ___________________________________________________________________ Name: svn:mime-type + text/plain Modified: mantisconnect/trunk/clients/java/eclipse/org.mantisbt.connect.eclipse/src/org/mantisbt/connect/eclipse/views/MantisConnectView.java =================================================================== --- mantisconnect/trunk/clients/java/eclipse/org.mantisbt.connect.eclipse/src/org/mantisbt/connect/eclipse/views/MantisConnectView.java 2007-12-07 13:12:48 UTC (rev 148) +++ mantisconnect/trunk/clients/java/eclipse/org.mantisbt.connect.eclipse/src/org/mantisbt/connect/eclipse/views/MantisConnectView.java 2007-12-07 13:47:05 UTC (rev 149) @@ -809,6 +809,8 @@ } }); getProgressService().schedule(job); + InitProjectJob job2 = new InitProjectJob(session, projectNode.getProjectData().getId()); + getProgressService().schedule(job2); } } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <pl...@us...> - 2008-02-01 17:02:04
|
Revision: 179 http://mantisconnect.svn.sourceforge.net/mantisconnect/?rev=179&view=rev Author: planser Date: 2008-02-01 09:01:58 -0800 (Fri, 01 Feb 2008) Log Message: ----------- Prepare for release 1.1.1.0 Modified Paths: -------------- mantisconnect/trunk/clients/java/eclipse/org.mantisbt.connect.eclipse/.classpath mantisconnect/trunk/clients/java/eclipse/org.mantisbt.connect.eclipse/META-INF/MANIFEST.MF mantisconnect/trunk/clients/java/eclipse/org.mantisbt.connect.eclipse/build.properties mantisconnect/trunk/clients/java/eclipse/org.mantisbt.connect.eclipse/build.xml Added Paths: ----------- mantisconnect/trunk/clients/java/eclipse/org.mantisbt.connect.eclipse/lib/mantisconnect-client-api-1.1.1.0.jar Removed Paths: ------------- mantisconnect/trunk/clients/java/eclipse/org.mantisbt.connect.eclipse/LICENSE.txt mantisconnect/trunk/clients/java/eclipse/org.mantisbt.connect.eclipse/lib/mantisconnect-client-api-1.1.1.0-SVN.jar Modified: mantisconnect/trunk/clients/java/eclipse/org.mantisbt.connect.eclipse/.classpath =================================================================== --- mantisconnect/trunk/clients/java/eclipse/org.mantisbt.connect.eclipse/.classpath 2008-02-01 16:57:07 UTC (rev 178) +++ mantisconnect/trunk/clients/java/eclipse/org.mantisbt.connect.eclipse/.classpath 2008-02-01 17:01:58 UTC (rev 179) @@ -1,6 +1,7 @@ <?xml version="1.0" encoding="UTF-8"?> <classpath> <classpathentry kind="src" path="src"/> + <classpathentry exported="true" kind="lib" path="lib/mantisconnect-client-api-1.1.1.0.jar"/> <classpathentry exported="true" kind="lib" path="lib/activation.jar"/> <classpathentry exported="true" kind="lib" path="lib/axis.jar"/> <classpathentry exported="true" kind="lib" path="lib/axis-ant.jar"/> @@ -11,7 +12,6 @@ <classpathentry exported="true" kind="lib" path="lib/saaj.jar"/> <classpathentry exported="true" kind="lib" path="lib/wsdl4j-1.5.1.jar"/> <classpathentry exported="true" kind="lib" path="lib/swtcalendar.jar"/> - <classpathentry exported="true" kind="lib" path="lib/mantisconnect-client-api-1.1.1.0-SVN.jar" sourcepath="/MantisConnect-Client"/> <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/> <classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/> <classpathentry kind="output" path="classes"/> Deleted: mantisconnect/trunk/clients/java/eclipse/org.mantisbt.connect.eclipse/LICENSE.txt =================================================================== --- mantisconnect/trunk/clients/java/eclipse/org.mantisbt.connect.eclipse/LICENSE.txt 2008-02-01 16:57:07 UTC (rev 178) +++ mantisconnect/trunk/clients/java/eclipse/org.mantisbt.connect.eclipse/LICENSE.txt 2008-02-01 17:01:58 UTC (rev 179) @@ -1,340 +0,0 @@ - GNU GENERAL PUBLIC LICENSE - Version 2, June 1991 - - Copyright (C) 1989, 1991 Free Software Foundation, Inc. - 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA - Everyone is permitted to copy and distribute verbatim copies - of this license document, but changing it is not allowed. - - Preamble - - The licenses for most software are designed to take away your -freedom to share and change it. By contrast, the GNU General Public -License is intended to guarantee your freedom to share and change free -software--to make sure the software is free for all its users. This -General Public License applies to most of the Free Software -Foundation's software and to any other program whose authors commit to -using it. (Some other Free Software Foundation software is covered by -the GNU Library General Public License instead.) You can apply it to -your programs, too. - - When we speak of free software, we are referring to freedom, not -price. Our General Public Licenses are designed to make sure that you -have the freedom to distribute copies of free software (and charge for -this service if you wish), that you receive source code or can get it -if you want it, that you can change the software or use pieces of it -in new free programs; and that you know you can do these things. - - To protect your rights, we need to make restrictions that forbid -anyone to deny you these rights or to ask you to surrender the rights. -These restrictions translate to certain responsibilities for you if you -distribute copies of the software, or if you modify it. - - For example, if you distribute copies of such a program, whether -gratis or for a fee, you must give the recipients all the rights that -you have. You must make sure that they, too, receive or can get the -source code. And you must show them these terms so they know their -rights. - - We protect your rights with two steps: (1) copyright the software, and -(2) offer you this license which gives you legal permission to copy, -distribute and/or modify the software. - - Also, for each author's protection and ours, we want to make certain -that everyone understands that there is no warranty for this free -software. If the software is modified by someone else and passed on, we -want its recipients to know that what they have is not the original, so -that any problems introduced by others will not reflect on the original -authors' reputations. - - Finally, any free program is threatened constantly by software -patents. We wish to avoid the danger that redistributors of a free -program will individually obtain patent licenses, in effect making the -program proprietary. To prevent this, we have made it clear that any -patent must be licensed for everyone's free use or not licensed at all. - - The precise terms and conditions for copying, distribution and -modification follow. - - GNU GENERAL PUBLIC LICENSE - TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION - - 0. This License applies to any program or other work which contains -a notice placed by the copyright holder saying it may be distributed -under the terms of this General Public License. The "Program", below, -refers to any such program or work, and a "work based on the Program" -means either the Program or any derivative work under copyright law: -that is to say, a work containing the Program or a portion of it, -either verbatim or with modifications and/or translated into another -language. (Hereinafter, translation is included without limitation in -the term "modification".) Each licensee is addressed as "you". - -Activities other than copying, distribution and modification are not -covered by this License; they are outside its scope. The act of -running the Program is not restricted, and the output from the Program -is covered only if its contents constitute a work based on the -Program (independent of having been made by running the Program). -Whether that is true depends on what the Program does. - - 1. You may copy and distribute verbatim copies of the Program's -source code as you receive it, in any medium, provided that you -conspicuously and appropriately publish on each copy an appropriate -copyright notice and disclaimer of warranty; keep intact all the -notices that refer to this License and to the absence of any warranty; -and give any other recipients of the Program a copy of this License -along with the Program. - -You may charge a fee for the physical act of transferring a copy, and -you may at your option offer warranty protection in exchange for a fee. - - 2. You may modify your copy or copies of the Program or any portion -of it, thus forming a work based on the Program, and copy and -distribute such modifications or work under the terms of Section 1 -above, provided that you also meet all of these conditions: - - a) You must cause the modified files to carry prominent notices - stating that you changed the files and the date of any change. - - b) You must cause any work that you distribute or publish, that in - whole or in part contains or is derived from the Program or any - part thereof, to be licensed as a whole at no charge to all third - parties under the terms of this License. - - c) If the modified program normally reads commands interactively - when run, you must cause it, when started running for such - interactive use in the most ordinary way, to print or display an - announcement including an appropriate copyright notice and a - notice that there is no warranty (or else, saying that you provide - a warranty) and that users may redistribute the program under - these conditions, and telling the user how to view a copy of this - License. (Exception: if the Program itself is interactive but - does not normally print such an announcement, your work based on - the Program is not required to print an announcement.) - -These requirements apply to the modified work as a whole. If -identifiable sections of that work are not derived from the Program, -and can be reasonably considered independent and separate works in -themselves, then this License, and its terms, do not apply to those -sections when you distribute them as separate works. But when you -distribute the same sections as part of a whole which is a work based -on the Program, the distribution of the whole must be on the terms of -this License, whose permissions for other licensees extend to the -entire whole, and thus to each and every part regardless of who wrote it. - -Thus, it is not the intent of this section to claim rights or contest -your rights to work written entirely by you; rather, the intent is to -exercise the right to control the distribution of derivative or -collective works based on the Program. - -In addition, mere aggregation of another work not based on the Program -with the Program (or with a work based on the Program) on a volume of -a storage or distribution medium does not bring the other work under -the scope of this License. - - 3. You may copy and distribute the Program (or a work based on it, -under Section 2) in object code or executable form under the terms of -Sections 1 and 2 above provided that you also do one of the following: - - a) Accompany it with the complete corresponding machine-readable - source code, which must be distributed under the terms of Sections - 1 and 2 above on a medium customarily used for software interchange; or, - - b) Accompany it with a written offer, valid for at least three - years, to give any third party, for a charge no more than your - cost of physically performing source distribution, a complete - machine-readable copy of the corresponding source code, to be - distributed under the terms of Sections 1 and 2 above on a medium - customarily used for software interchange; or, - - c) Accompany it with the information you received as to the offer - to distribute corresponding source code. (This alternative is - allowed only for noncommercial distribution and only if you - received the program in object code or executable form with such - an offer, in accord with Subsection b above.) - -The source code for a work means the preferred form of the work for -making modifications to it. For an executable work, complete source -code means all the source code for all modules it contains, plus any -associated interface definition files, plus the scripts used to -control compilation and installation of the executable. However, as a -special exception, the source code distributed need not include -anything that is normally distributed (in either source or binary -form) with the major components (compiler, kernel, and so on) of the -operating system on which the executable runs, unless that component -itself accompanies the executable. - -If distribution of executable or object code is made by offering -access to copy from a designated place, then offering equivalent -access to copy the source code from the same place counts as -distribution of the source code, even though third parties are not -compelled to copy the source along with the object code. - - 4. You may not copy, modify, sublicense, or distribute the Program -except as expressly provided under this License. Any attempt -otherwise to copy, modify, sublicense or distribute the Program is -void, and will automatically terminate your rights under this License. -However, parties who have received copies, or rights, from you under -this License will not have their licenses terminated so long as such -parties remain in full compliance. - - 5. You are not required to accept this License, since you have not -signed it. However, nothing else grants you permission to modify or -distribute the Program or its derivative works. These actions are -prohibited by law if you do not accept this License. Therefore, by -modifying or distributing the Program (or any work based on the -Program), you indicate your acceptance of this License to do so, and -all its terms and conditions for copying, distributing or modifying -the Program or works based on it. - - 6. Each time you redistribute the Program (or any work based on the -Program), the recipient automatically receives a license from the -original licensor to copy, distribute or modify the Program subject to -these terms and conditions. You may not impose any further -restrictions on the recipients' exercise of the rights granted herein. -You are not responsible for enforcing compliance by third parties to -this License. - - 7. If, as a consequence of a court judgment or allegation of patent -infringement or for any other reason (not limited to patent issues), -conditions are imposed on you (whether by court order, agreement or -otherwise) that contradict the conditions of this License, they do not -excuse you from the conditions of this License. If you cannot -distribute so as to satisfy simultaneously your obligations under this -License and any other pertinent obligations, then as a consequence you -may not distribute the Program at all. For example, if a patent -license would not permit royalty-free redistribution of the Program by -all those who receive copies directly or indirectly through you, then -the only way you could satisfy both it and this License would be to -refrain entirely from distribution of the Program. - -If any portion of this section is held invalid or unenforceable under -any particular circumstance, the balance of the section is intended to -apply and the section as a whole is intended to apply in other -circumstances. - -It is not the purpose of this section to induce you to infringe any -patents or other property right claims or to contest validity of any -such claims; this section has the sole purpose of protecting the -integrity of the free software distribution system, which is -implemented by public license practices. Many people have made -generous contributions to the wide range of software distributed -through that system in reliance on consistent application of that -system; it is up to the author/donor to decide if he or she is willing -to distribute software through any other system and a licensee cannot -impose that choice. - -This section is intended to make thoroughly clear what is believed to -be a consequence of the rest of this License. - - 8. If the distribution and/or use of the Program is restricted in -certain countries either by patents or by copyrighted interfaces, the -original copyright holder who places the Program under this License -may add an explicit geographical distribution limitation excluding -those countries, so that distribution is permitted only in or among -countries not thus excluded. In such case, this License incorporates -the limitation as if written in the body of this License. - - 9. The Free Software Foundation may publish revised and/or new versions -of the General Public License from time to time. Such new versions will -be similar in spirit to the present version, but may differ in detail to -address new problems or concerns. - -Each version is given a distinguishing version number. If the Program -specifies a version number of this License which applies to it and "any -later version", you have the option of following the terms and conditions -either of that version or of any later version published by the Free -Software Foundation. If the Program does not specify a version number of -this License, you may choose any version ever published by the Free Software -Foundation. - - 10. If you wish to incorporate parts of the Program into other free -programs whose distribution conditions are different, write to the author -to ask for permission. For software which is copyrighted by the Free -Software Foundation, write to the Free Software Foundation; we sometimes -make exceptions for this. Our decision will be guided by the two goals -of preserving the free status of all derivatives of our free software and -of promoting the sharing and reuse of software generally. - - NO WARRANTY - - 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY -FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN -OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES -PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED -OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF -MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS -TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE -PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, -REPAIR OR CORRECTION. - - 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING -WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR -REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, -INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING -OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED -TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY -YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER -PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE -POSSIBILITY OF SUCH DAMAGES. - - END OF TERMS AND CONDITIONS - - How to Apply These Terms to Your New Programs - - If you develop a new program, and you want it to be of the greatest -possible use to the public, the best way to achieve this is to make it -free software which everyone can redistribute and change under these terms. - - To do so, attach the following notices to the program. It is safest -to attach them to the start of each source file to most effectively -convey the exclusion of warranty; and each file should have at least -the "copyright" line and a pointer to where the full notice is found. - - <one line to give the program's name and a brief idea of what it does.> - Copyright (C) <year> <name of author> - - This program is free software; you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation; either version 2 of the License, or - (at your option) any later version. - - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - You should have received a copy of the GNU General Public License - along with this program; if not, write to the Free Software - Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA - - -Also add information on how to contact you by electronic and paper mail. - -If the program is interactive, make it output a short notice like this -when it starts in an interactive mode: - - Gnomovision version 69, Copyright (C) year name of author - Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. - This is free software, and you are welcome to redistribute it - under certain conditions; type `show c' for details. - -The hypothetical commands `show w' and `show c' should show the appropriate -parts of the General Public License. Of course, the commands you use may -be called something other than `show w' and `show c'; they could even be -mouse-clicks or menu items--whatever suits your program. - -You should also get your employer (if you work as a programmer) or your -school, if any, to sign a "copyright disclaimer" for the program, if -necessary. Here is a sample; alter the names: - - Yoyodyne, Inc., hereby disclaims all copyright interest in the program - `Gnomovision' (which makes passes at compilers) written by James Hacker. - - <signature of Ty Coon>, 1 April 1989 - Ty Coon, President of Vice - -This General Public License does not permit incorporating your program into -proprietary programs. If your program is a subroutine library, you may -consider it more useful to permit linking proprietary applications with the -library. If this is what you want to do, use the GNU Library General -Public License instead of this License. Modified: mantisconnect/trunk/clients/java/eclipse/org.mantisbt.connect.eclipse/META-INF/MANIFEST.MF =================================================================== --- mantisconnect/trunk/clients/java/eclipse/org.mantisbt.connect.eclipse/META-INF/MANIFEST.MF 2008-02-01 16:57:07 UTC (rev 178) +++ mantisconnect/trunk/clients/java/eclipse/org.mantisbt.connect.eclipse/META-INF/MANIFEST.MF 2008-02-01 17:01:58 UTC (rev 179) @@ -21,7 +21,7 @@ lib/saaj.jar, lib/wsdl4j-1.5.1.jar, lib/swtcalendar.jar, - lib/mantisconnect-client-api-1.1.1.0-SVN.jar + lib/mantisconnect-client-api-1.1.1.0.jar Export-Package: com.ibm.wsdl, org.mantisbt.connect, org.mantisbt.connect.eclipse, Modified: mantisconnect/trunk/clients/java/eclipse/org.mantisbt.connect.eclipse/build.properties =================================================================== --- mantisconnect/trunk/clients/java/eclipse/org.mantisbt.connect.eclipse/build.properties 2008-02-01 16:57:07 UTC (rev 178) +++ mantisconnect/trunk/clients/java/eclipse/org.mantisbt.connect.eclipse/build.properties 2008-02-01 17:01:58 UTC (rev 179) @@ -12,4 +12,4 @@ lib/saaj.jar,\ lib/wsdl4j-1.5.1.jar,\ lib/swtcalendar.jar,\ - lib/mantisconnect-client-api-1.1.1.0-SVN.jar + lib/mantisconnect-client-api-1.1.1.0.jar Modified: mantisconnect/trunk/clients/java/eclipse/org.mantisbt.connect.eclipse/build.xml =================================================================== --- mantisconnect/trunk/clients/java/eclipse/org.mantisbt.connect.eclipse/build.xml 2008-02-01 16:57:07 UTC (rev 178) +++ mantisconnect/trunk/clients/java/eclipse/org.mantisbt.connect.eclipse/build.xml 2008-02-01 17:01:58 UTC (rev 179) @@ -82,12 +82,12 @@ <pathelement path="lib/commons-logging-1.0.4.jar"/> <pathelement path="lib/jaxrpc.jar"/> <pathelement path="lib/log4j-1.2.8.jar"/> - <pathelement path="lib/mantisconnect-client-api-${version}.jar"/> + <pathelement path="lib/mantisconnect-client-api-1.1.1.0.jar"/> <pathelement path="lib/saaj.jar"/> <pathelement path="lib/wsdl4j-1.5.1.jar"/> <pathelement path="lib/swtcalendar.jar"/> </classpath> - <src path="src/" /> + <src path="src/"/> </javac> <!-- Copy necessary resources --> <copy todir="${temp.folder}/mantisconnect.jar.bin" failonerror="true" overwrite="false"> @@ -118,7 +118,7 @@ <target name="gather.bin.parts" depends="init" if="destination.temp.folder"> <mkdir dir="${destination.temp.folder}/org.mantisbt.connect.eclipse_${version}"/> <copy todir="${destination.temp.folder}/org.mantisbt.connect.eclipse_${version}" failonerror="true" overwrite="false"> - <fileset dir="${build.result.folder}" includes="mantisconnect.jar" /> + <fileset dir="${build.result.folder}" includes="mantisconnect.jar"/> </copy> <copy todir="${destination.temp.folder}/org.mantisbt.connect.eclipse_${version}" failonerror="true" overwrite="false"> <fileset dir="${basedir}" includes="META-INF/,icons/,lib/,mantis.jar,mantissrc.zip,plugin.xml,NOTICE.txt,LICENSE.txt,mantisconnect.jar,README.txt" /> Deleted: mantisconnect/trunk/clients/java/eclipse/org.mantisbt.connect.eclipse/lib/mantisconnect-client-api-1.1.1.0-SVN.jar =================================================================== (Binary files differ) Added: mantisconnect/trunk/clients/java/eclipse/org.mantisbt.connect.eclipse/lib/mantisconnect-client-api-1.1.1.0.jar =================================================================== (Binary files differ) Property changes on: mantisconnect/trunk/clients/java/eclipse/org.mantisbt.connect.eclipse/lib/mantisconnect-client-api-1.1.1.0.jar ___________________________________________________________________ Name: svn:mime-type + application/octet-stream This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <pl...@us...> - 2008-02-01 17:07:27
|
Revision: 181 http://mantisconnect.svn.sourceforge.net/mantisconnect/?rev=181&view=rev Author: planser Date: 2008-02-01 09:07:23 -0800 (Fri, 01 Feb 2008) Log Message: ----------- Updated version info Modified Paths: -------------- mantisconnect/trunk/clients/java/eclipse/org.mantisbt.connect.eclipse/META-INF/MANIFEST.MF mantisconnect/trunk/clients/java/eclipse/org.mantisbt.connect.eclipse/README.txt mantisconnect/trunk/clients/java/eclipse/org.mantisbt.connect.eclipse/build.xml Modified: mantisconnect/trunk/clients/java/eclipse/org.mantisbt.connect.eclipse/META-INF/MANIFEST.MF =================================================================== --- mantisconnect/trunk/clients/java/eclipse/org.mantisbt.connect.eclipse/META-INF/MANIFEST.MF 2008-02-01 17:06:19 UTC (rev 180) +++ mantisconnect/trunk/clients/java/eclipse/org.mantisbt.connect.eclipse/META-INF/MANIFEST.MF 2008-02-01 17:07:23 UTC (rev 181) @@ -2,7 +2,7 @@ Bundle-ManifestVersion: 2 Bundle-Name: MantisConnect Bundle-SymbolicName: org.mantisbt.connect.eclipse;singleton:=true -Bundle-Version: 1.1.1.0-SVN +Bundle-Version: 1.1.2.0-SVN Bundle-Activator: org.mantisbt.connect.eclipse.MantisConnectPlugin Bundle-Vendor: Peter Lanser Bundle-Localization: plugin Modified: mantisconnect/trunk/clients/java/eclipse/org.mantisbt.connect.eclipse/README.txt =================================================================== --- mantisconnect/trunk/clients/java/eclipse/org.mantisbt.connect.eclipse/README.txt 2008-02-01 17:06:19 UTC (rev 180) +++ mantisconnect/trunk/clients/java/eclipse/org.mantisbt.connect.eclipse/README.txt 2008-02-01 17:07:23 UTC (rev 181) @@ -41,7 +41,7 @@ plugin-major: Stands for API changes within the plugin plugin-minor: Stands for bugfixes within the plugin (no API changes) -This is version 1.1.1.0 which means that it's compatible with webservices +This is version 1.1.2.0 which means that it's compatible with webservices versioned 1.1 respectively 1.1.x (first two parts). It is the first version of the Eclipse plugin (1.0 - the second two parts). Modified: mantisconnect/trunk/clients/java/eclipse/org.mantisbt.connect.eclipse/build.xml =================================================================== --- mantisconnect/trunk/clients/java/eclipse/org.mantisbt.connect.eclipse/build.xml 2008-02-01 17:06:19 UTC (rev 180) +++ mantisconnect/trunk/clients/java/eclipse/org.mantisbt.connect.eclipse/build.xml 2008-02-01 17:07:23 UTC (rev 181) @@ -6,7 +6,7 @@ <property name="basearch" value="${arch}"/> <property name="basenl" value="${nl}"/> - <property name="version" value="1.1.1.0-SVN"/> + <property name="version" value="1.1.2.0-SVN"/> <!-- Compiler settings. --> <property name="javacFailOnError" value="false"/> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |