You can subscribe to this list here.
2005 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
(4) |
Sep
(316) |
Oct
(26) |
Nov
(89) |
Dec
(30) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2006 |
Jan
|
Feb
(1) |
Mar
|
Apr
(19) |
May
(8) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2007 |
Jan
|
Feb
|
Mar
(253) |
Apr
(100) |
May
(145) |
Jun
(38) |
Jul
(38) |
Aug
(34) |
Sep
(2) |
Oct
(27) |
Nov
|
Dec
|
2008 |
Jan
(6) |
Feb
(1) |
Mar
|
Apr
|
May
(2) |
Jun
(66) |
Jul
(92) |
Aug
(41) |
Sep
(21) |
Oct
(53) |
Nov
(62) |
Dec
(32) |
2009 |
Jan
(8) |
Feb
(1) |
Mar
(11) |
Apr
(25) |
May
(18) |
Jun
(33) |
Jul
(58) |
Aug
(5) |
Sep
(4) |
Oct
(13) |
Nov
(3) |
Dec
(6) |
2010 |
Jan
(23) |
Feb
(4) |
Mar
(3) |
Apr
(4) |
May
(6) |
Jun
(14) |
Jul
(13) |
Aug
(3) |
Sep
|
Oct
|
Nov
|
Dec
(3) |
2011 |
Jan
|
Feb
|
Mar
(5) |
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: Martin W. <mar...@us...> - 2005-09-02 15:59:26
|
Update of /cvsroot/aseclipseplugin/org.asdt.core/src/org/asdt/core/util In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv14673/src/org/asdt/core/util Modified Files: TextScanHelper.java StreamUtilities.java ASInternals.java ASKeywords.java JavaDocKeywords.java UTFUtilities.java ExpressionResolver.java ASTypes.java Added Files: IWordList.java WordList.java Log Message: Cleaned up javadoc comments. Refactor word list classes. Standardised spelling of 'classpathes' to classpath. --- NEW FILE: IWordList.java --- /******************************************************************************* * ActionScript Development Toolkit * Copyright (C) 2005 ASDT Team * * http://www.asdt.org http://sourceforge.net/projects/aseclipseplugin/ * * 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. * ******************************************************************************/ package org.asdt.core.util; /** * Common interface for classes that read and store a list of words * @author Martin Wood */ public interface IWordList { /** * @return an array containing the list of words */ public String[] getWordList(); /** * Load word list from named file * @param fileName */ public void loadWordList(String fileName); /** * @return The number of words in the list */ public int getWordCount(); } Index: JavaDocKeywords.java =================================================================== RCS file: /cvsroot/aseclipseplugin/org.asdt.core/src/org/asdt/core/util/JavaDocKeywords.java,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** JavaDocKeywords.java 8 Jun 2005 16:49:48 -0000 1.3 --- JavaDocKeywords.java 2 Sep 2005 15:59:13 -0000 1.4 *************** *** 33,89 **** /** * @author Nico Zimmermann */ ! public class JavaDocKeywords { ! private List keywords; ! ! private static JavaDocKeywords asKeywords; public JavaDocKeywords() { ! loadKeywords(); } public static JavaDocKeywords getInstance() { ! if (asKeywords == null) { ! asKeywords = new JavaDocKeywords(); ! } ! return asKeywords; ! } ! ! private void loadKeywords() { ! keywords = new ArrayList(); ! BufferedReader reader; ! InputStream is = getClass().getResourceAsStream("javaDocKeywords.txt"); ! if (is != null) { ! reader = new BufferedReader(new InputStreamReader(is)); ! String keyword; ! try { ! while ((keyword = reader.readLine()) != null) { ! keywords.add(keyword); ! } ! } catch (IOException e) { ! e.printStackTrace(); ! } ! } else { ! System.out.println("FileNotFound"); } } - - /** - * getList of keywords - */ - public String[] getKeywords() { - String[] keywordArray = new String[keywords.size()]; - keywords.toArray(keywordArray); - return keywordArray; - } - - /** - * get amout of keywords - */ - public int keywordsCount() { - return keywords.size(); - - } - } \ No newline at end of file --- 33,53 ---- /** + * List of tags used in javadoc comments including html tags. * @author Nico Zimmermann */ ! public class JavaDocKeywords extends WordList{ + private static JavaDocKeywords javaDocKeywords; + private String keywordsFile = "javaDocKeywords.txt"; + public JavaDocKeywords() { ! loadWordList(keywordsFile); } public static JavaDocKeywords getInstance() { ! if (javaDocKeywords == null) { ! javaDocKeywords = new JavaDocKeywords(); } + return javaDocKeywords; } } \ No newline at end of file Index: TextScanHelper.java =================================================================== RCS file: /cvsroot/aseclipseplugin/org.asdt.core/src/org/asdt/core/util/TextScanHelper.java,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** TextScanHelper.java 4 Aug 2005 21:29:55 -0000 1.7 --- TextScanHelper.java 2 Sep 2005 15:59:13 -0000 1.8 *************** *** 81,154 **** } - - - /** - * @param document - * the Document where it should be found - * @param region - * the region in which should be searched (the offset must be the - * openbracket) - * @return - */ - public int findMatchingCloseBracket(IDocument document, int offset) - { - - try - { - int bracketCount = 0; - for (int i = offset; i < document.getLength(); i++) - { - // count the open bracket - if (document.getChar(i) == '{') - { - bracketCount++; - } - // close bracket found? - if (document.getChar(i) == '}') - { - bracketCount--; - if (bracketCount == 0) - { - // we got it ! - return i; - } - } - } - - } - catch (BadLocationException e) - { - // TODO catchBlock - //Do nothing. Just return -1 - } - - return -1; - - } - - /** - * finds the block between two brackets - * - * @param document - * @param region - * @return - */ - public IRegion findBock(IDocument document, IRegion region) - { - Region blockRegion = null; - int lastOffset = region.getOffset() + region.getLength(); - int openBracket = findNextOpenBracket(document, region); - if (openBracket != -1) - { - Region openRegion = new Region(openBracket, lastOffset - openBracket); - int closeBracket = findMatchingCloseBracket(document, openRegion.getOffset()); - if (closeBracket != -1) - { - blockRegion = new Region(openBracket, closeBracket - openBracket); - } - } - return blockRegion; - } - public WordRegion[] getWords(IDocument document, IRegion region) { --- 81,84 ---- *************** *** 258,263 **** * @param offset * @param document ! * @return ! * @throws BadLocationException */ public int getWordStart(int offset, IDocument document) --- 188,192 ---- * @param offset * @param document ! * @return position of the start of the word */ public int getWordStart(int offset, IDocument document) *************** *** 334,338 **** * @param offset * @param untilOffset cuts the word at given offset ! * @return * @throws BadLocationException */ --- 263,267 ---- * @param offset * @param untilOffset cuts the word at given offset ! * @return word region at the document offset * @throws BadLocationException */ *************** *** 365,369 **** * @param document * @param offset ! * @return * @throws BadLocationException */ --- 294,298 ---- * @param document * @param offset ! * @return word region containing the full expression at the offset * @throws BadLocationException */ *************** *** 428,432 **** * @param closeBraceOffset the offset of the closeBrace * @param openBrace the Type of the openbrace "(","{","[" ! * @return * @throws BadLocationException */ --- 357,361 ---- * @param closeBraceOffset the offset of the closeBrace * @param openBrace the Type of the openbrace "(","{","[" ! * @return position of open brace to match given closing brace * @throws BadLocationException */ *************** *** 463,467 **** * @param closeBraceOffset the offset of the closeBrace * @param closeBrace the Type of the openbrace "(","{","[" ! * @return * @throws BadLocationException */ --- 392,396 ---- * @param closeBraceOffset the offset of the closeBrace * @param closeBrace the Type of the openbrace "(","{","[" ! * @return position of matching closing brace for the given opening brace * @throws BadLocationException */ Index: UTFUtilities.java =================================================================== RCS file: /cvsroot/aseclipseplugin/org.asdt.core/src/org/asdt/core/util/UTFUtilities.java,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** UTFUtilities.java 31 Jul 2005 01:01:00 -0000 1.4 --- UTFUtilities.java 2 Sep 2005 15:59:13 -0000 1.5 *************** *** 111,115 **** /** * Add the BOM to the Editorfile ! * @param document * @author Ralf Bokelberg */ --- 111,115 ---- /** * Add the BOM to the Editorfile ! * @param file * @author Ralf Bokelberg */ Index: ASKeywords.java =================================================================== RCS file: /cvsroot/aseclipseplugin/org.asdt.core/src/org/asdt/core/util/ASKeywords.java,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** ASKeywords.java 23 Aug 2005 23:05:49 -0000 1.4 --- ASKeywords.java 2 Sep 2005 15:59:13 -0000 1.5 *************** *** 34,48 **** /** * @author Peter Schreiber ! * */ ! public class ASKeywords { ! ! private List keywords; private static ASKeywords asKeywords; ! public ASKeywords() { ! loadKeywords(); } --- 34,48 ---- /** + * ActionScript 2 keyword list * @author Peter Schreiber ! * @author Martin Wood */ ! public class ASKeywords extends WordList{ private static ASKeywords asKeywords; ! private String keywordsFile = "keywords.txt"; ! public ASKeywords() { ! loadWordList(keywordsFile); } *************** *** 53,94 **** return asKeywords; } - - private void loadKeywords() { - keywords = new ArrayList(); - BufferedReader reader; - InputStream is = getClass().getResourceAsStream("keywords.txt"); - if (is != null) { - reader = new BufferedReader(new InputStreamReader(is)); - String keyword; - try { - while ((keyword = reader.readLine()) != null) { - keywords.add(keyword); - } - } catch (IOException e) { - e.printStackTrace(); - } - } else { - System.out.println("Keywords : FileNotFound"); - } - } - - /** - * getList of keywords - * - * @return - */ - public String[] getKeywords() { - String[] keywordArray = new String[keywords.size()]; - keywords.toArray(keywordArray); - return keywordArray; - } - - /** - * get amout of keywords - * - * @return - */ - public int keywordsCount() { - return keywords.size(); - } } \ No newline at end of file --- 53,55 ---- Index: ASTypes.java =================================================================== RCS file: /cvsroot/aseclipseplugin/org.asdt.core/src/org/asdt/core/util/ASTypes.java,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** ASTypes.java 8 Jun 2005 16:49:48 -0000 1.3 --- ASTypes.java 2 Sep 2005 15:59:13 -0000 1.4 *************** *** 27,47 **** package org.asdt.core.util; - import java.io.BufferedReader; - import java.io.IOException; - import java.io.InputStream; - import java.io.InputStreamReader; - import java.util.ArrayList; - import java.util.List; /** * @author Peter Schreiber ! * */ ! public class ASTypes { ! private List types; private static ASTypes asTypes; ! public ASTypes() { ! loadTypes(); } --- 27,44 ---- package org.asdt.core.util; /** + * ActionScript 2 built in types. Only 'Void' is currently used as AS2 doesnt have + * named primitive types like int, float etc.. * @author Peter Schreiber ! * @author Martin Wood */ ! public class ASTypes extends WordList{ ! private static ASTypes asTypes; ! private String typeFile = "types.txt"; ! public ASTypes() { ! loadWordList(typeFile); } *************** *** 55,98 **** return asTypes; } - - private void loadTypes() { - types = new ArrayList(); - BufferedReader reader; - InputStream is = getClass().getResourceAsStream("types.txt"); - if (is != null) { - reader = new BufferedReader(new InputStreamReader(is)); - String type; - try { - while ((type = reader.readLine()) != null) { - types.add(type); - } - } catch (IOException e) { - e.printStackTrace(); - } - } else { - System.out.println("FileNotFound"); - } - } - - /** - * getList of keywords - * - * @return - */ - public String[] getTypes() { - String[] keywordArray = new String[types.size()]; - types.toArray(keywordArray); - return keywordArray; - } - - /** - * get amout of keywords - * - * @return - */ - public int typesCount() { - return types.size(); - - } - } \ No newline at end of file --- 52,54 ---- Index: ASInternals.java =================================================================== RCS file: /cvsroot/aseclipseplugin/org.asdt.core/src/org/asdt/core/util/ASInternals.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** ASInternals.java 23 Aug 2005 23:05:49 -0000 1.1 --- ASInternals.java 2 Sep 2005 15:59:13 -0000 1.2 *************** *** 26,48 **** package org.asdt.core.util; - import java.io.BufferedReader; - import java.io.IOException; - import java.io.InputStream; - import java.io.InputStreamReader; - import java.util.ArrayList; - import java.util.List; /** * @author Peter Schreiber ! * */ ! public class ASInternals { ! ! private List internals; private static ASInternals asInternals; ! public ASInternals() { ! loadInternals(); } --- 26,42 ---- package org.asdt.core.util; /** + * Flash player built in objects and functions, e.g. _root, fscommand * @author Peter Schreiber ! * @author Martin Wood */ ! public class ASInternals extends WordList{ private static ASInternals asInternals; ! private String internalsFile = "internals.txt"; ! public ASInternals() { ! loadWordList(internalsFile); } *************** *** 53,94 **** return asInternals; } - - private void loadInternals() { - internals = new ArrayList(); - BufferedReader reader; - InputStream is = getClass().getResourceAsStream("internals.txt"); - if (is != null) { - reader = new BufferedReader(new InputStreamReader(is)); - String internal; - try { - while ((internal = reader.readLine()) != null) { - internals.add(internal); - } - } catch (IOException e) { - e.printStackTrace(); - } - } else { - System.out.println("Internals : FileNotFound"); - } - } - - /** - * getList of internals - * - * @return - */ - public String[] getInternals() { - String[] internalsArray = new String[internals.size()]; - internals.toArray(internalsArray); - return internalsArray; - } - - /** - * get amout of internals - * - * @return - */ - public int internalsCount() { - return internals.size(); - } } \ No newline at end of file --- 47,49 ---- Index: ExpressionResolver.java =================================================================== RCS file: /cvsroot/aseclipseplugin/org.asdt.core/src/org/asdt/core/util/ExpressionResolver.java,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** ExpressionResolver.java 8 Jun 2005 16:49:48 -0000 1.3 --- ExpressionResolver.java 2 Sep 2005 15:59:13 -0000 1.4 *************** *** 71,75 **** * @param classpath * @param offset ! * @return */ public ASClass getTypeForExpression(String expression, ASClass object, IProject project, List classpath, int offset) --- 71,75 ---- * @param classpath * @param offset ! * @return the actionscript class resulting from the expression */ public ASClass getTypeForExpression(String expression, ASClass object, IProject project, List classpath, int offset) *************** *** 159,163 **** * [] will be also ignored * @param expression ! * @return */ private List getExpressionParts(String expression) --- 159,163 ---- * [] will be also ignored * @param expression ! * @return list of parts that make up the expression */ private List getExpressionParts(String expression) --- NEW FILE: WordList.java --- /******************************************************************************* * ActionScript Development Toolkit * Copyright (C) 2005 ASDT Team * * http://www.asdt.org http://sourceforge.net/projects/aseclipseplugin/ * * 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. * ******************************************************************************/ package org.asdt.core.util; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStream; import java.io.InputStreamReader; import java.util.ArrayList; import java.util.List; /** * Allows the loading of a list of words from a file * Each line of the file will be treated as one word. * * @author Martin Wood */ public class WordList implements IWordList { private List wordList; /* (non-Javadoc) * @see org.asdt.core.util.IWordList#getWordList() */ public String[] getWordList() { String[] wordArray = new String[wordList.size()]; wordList.toArray(wordArray); return wordArray; } /* (non-Javadoc) * @see org.asdt.core.util.IWordList#loadWordList(java.lang.String) */ public void loadWordList(String wordListFile) { // create the list anyway, even if wordListFile may be empty // so further calls to getWordList dont generate null pointer exceptions wordList = new ArrayList(); if(wordListFile == null) { // TODO : is it worth throwing an exception here? // or should just specify in the comments for this class // how to use it :) // e.g. throw new FileNotSpecifiedException(); System.err.println("No file specified for word list"); return; } BufferedReader reader; InputStream is = getClass().getResourceAsStream(wordListFile); if (is != null) { reader = new BufferedReader(new InputStreamReader(is)); String word; try { while ((word = reader.readLine()) != null) { wordList.add(word); } } catch (IOException e) { e.printStackTrace(); } } else { /** * TODO : should we use a logging system? * or just use System.out ? */ System.err.println(wordListFile + " : FileNotFound"); } } /* (non-Javadoc) * @see org.asdt.core.util.IWordList#getWordCount() */ public int getWordCount() { return wordList.size(); } } Index: StreamUtilities.java =================================================================== RCS file: /cvsroot/aseclipseplugin/org.asdt.core/src/org/asdt/core/util/StreamUtilities.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** StreamUtilities.java 15 Jun 2005 14:08:19 -0000 1.1 --- StreamUtilities.java 2 Sep 2005 15:59:13 -0000 1.2 *************** *** 44,48 **** * * @param stream ! * @return * @throws IOException */ --- 44,48 ---- * * @param stream ! * @return string representation of the input stream * @throws IOException */ |
From: Martin W. <mar...@us...> - 2005-09-02 15:59:26
|
Update of /cvsroot/aseclipseplugin/org.asdt.core/src/org/asdt/core In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv14673/src/org/asdt/core Modified Files: ASCoreMessages.java ASCorePlugin.java ASCoreMessages.properties Log Message: Cleaned up javadoc comments. Refactor word list classes. Standardised spelling of 'classpathes' to classpath. Index: ASCoreMessages.java =================================================================== RCS file: /cvsroot/aseclipseplugin/org.asdt.core/src/org/asdt/core/ASCoreMessages.java,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** ASCoreMessages.java 15 Jun 2005 22:59:11 -0000 1.2 --- ASCoreMessages.java 2 Sep 2005 15:59:13 -0000 1.3 *************** *** 24,27 **** --- 24,32 ---- import java.util.ResourceBundle; + /** + * Provides access to message resource bundle + * @author Peter Schreiber + * + */ public class ASCoreMessages { Index: ASCorePlugin.java =================================================================== RCS file: /cvsroot/aseclipseplugin/org.asdt.core/src/org/asdt/core/ASCorePlugin.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** ASCorePlugin.java 8 Jun 2005 16:49:48 -0000 1.1 --- ASCorePlugin.java 2 Sep 2005 15:59:13 -0000 1.2 *************** *** 22,26 **** /** ! * The constructor. */ public ASCorePlugin() { --- 22,26 ---- /** ! * Creates the shared plugin instance and initializes the resource bundle. */ public ASCorePlugin() { *************** *** 52,56 **** /** ! * Returns the shared instance. */ public static ASCorePlugin getDefault() { --- 52,56 ---- /** ! * @return the shared plugin instance. */ public static ASCorePlugin getDefault() { *************** *** 59,63 **** /** ! * Returns the string from the plugin's resource bundle, * or 'key' if not found. */ --- 59,63 ---- /** ! * @return the string from the plugin's resource bundle, * or 'key' if not found. */ *************** *** 72,76 **** /** ! * Returns the plugin's resource bundle, */ public ResourceBundle getResourceBundle() { --- 72,76 ---- /** ! * @return the plugin's resource bundle, */ public ResourceBundle getResourceBundle() { *************** *** 100,104 **** /** ! * Returns the active workbench window's shell */ public static Shell getActiveWorkbenchShell() { --- 100,104 ---- /** ! * @return the active workbench window's shell */ public static Shell getActiveWorkbenchShell() { Index: ASCoreMessages.properties =================================================================== RCS file: /cvsroot/aseclipseplugin/org.asdt.core/src/org/asdt/core/ASCoreMessages.properties,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** ASCoreMessages.properties 24 Aug 2005 23:15:57 -0000 1.4 --- ASCoreMessages.properties 2 Sep 2005 15:59:13 -0000 1.5 *************** *** 3,7 **** ProjectPropertiesPage.title=Classpath Settings ! ProjectPropertiesPage.pathes=Pathes: ProjectPropertiesPage.classpath=&Classpath or "." for Project: ProjectPropertiesPage.classpathNotExists=classpath doesn't exist --- 3,7 ---- ProjectPropertiesPage.title=Classpath Settings ! ProjectPropertiesPage.paths=Paths: ProjectPropertiesPage.classpath=&Classpath or "." for Project: ProjectPropertiesPage.classpathNotExists=classpath doesn't exist |
From: Martin W. <mar...@us...> - 2005-09-02 15:59:26
|
Update of /cvsroot/aseclipseplugin/org.asdt.core/src/org/asdt/core/ui/properties In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv14673/src/org/asdt/core/ui/properties Modified Files: ASClasspathPropertyPage.java Log Message: Cleaned up javadoc comments. Refactor word list classes. Standardised spelling of 'classpathes' to classpath. Index: ASClasspathPropertyPage.java =================================================================== RCS file: /cvsroot/aseclipseplugin/org.asdt.core/src/org/asdt/core/ui/properties/ASClasspathPropertyPage.java,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** ASClasspathPropertyPage.java 22 Jun 2005 13:30:19 -0000 1.4 --- ASClasspathPropertyPage.java 2 Sep 2005 15:59:13 -0000 1.5 *************** *** 78,82 **** /** ! * @param composite */ private void createListSection(Composite parent) { --- 78,82 ---- /** ! * @param parent */ private void createListSection(Composite parent) { *************** *** 93,97 **** gridData.horizontalSpan = 2; Label label = new Label(composite, SWT.NONE); ! label.setText(ASCoreMessages.getString("ProjectPropertiesPage.pathes")); label.setLayoutData(gridData); --- 93,97 ---- gridData.horizontalSpan = 2; Label label = new Label(composite, SWT.NONE); ! label.setText(ASCoreMessages.getString("ProjectPropertiesPage.paths")); label.setLayoutData(gridData); *************** *** 101,106 **** list = new List(composite, SWT.BORDER); list.setLayoutData(gridData); ! java.util.List classpathes = classpathManager.getClasspathesFromFile((IProject) getElement()); ! for (Iterator iter = classpathes.iterator(); iter.hasNext();) { String classpath = (String) iter.next(); list.add(classpath); --- 101,106 ---- list = new List(composite, SWT.BORDER); list.setLayoutData(gridData); ! java.util.List classpaths = classpathManager.getClasspathsFromFile((IProject) getElement()); ! for (Iterator iter = classpaths.iterator(); iter.hasNext();) { String classpath = (String) iter.next(); list.add(classpath); *************** *** 145,149 **** /** ! * @param composite */ private void createAddSection(Composite parent) { --- 145,149 ---- /** ! * @param parent */ private void createAddSection(Composite parent) { *************** *** 196,200 **** /** - * @throws Exception * @see PreferencePage#createContents(Composite) */ --- 196,199 ---- *************** *** 227,231 **** classpathlist.add(items[i]); } ! classpathManager.setClassPathesToFile((IProject) getElement(), classpathlist); return true; --- 226,230 ---- classpathlist.add(items[i]); } ! classpathManager.setClassPathsToFile((IProject) getElement(), classpathlist); return true; |
From: Martin W. <mar...@us...> - 2005-09-02 15:59:25
|
Update of /cvsroot/aseclipseplugin/org.asdt.core/src/org/asdt/core/ui/preferences In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv14673/src/org/asdt/core/ui/preferences Modified Files: CorePathPreferencesPage.java Log Message: Cleaned up javadoc comments. Refactor word list classes. Standardised spelling of 'classpathes' to classpath. Index: CorePathPreferencesPage.java =================================================================== RCS file: /cvsroot/aseclipseplugin/org.asdt.core/src/org/asdt/core/ui/preferences/CorePathPreferencesPage.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** CorePathPreferencesPage.java 27 Jun 2005 14:54:37 -0000 1.1 --- CorePathPreferencesPage.java 2 Sep 2005 15:59:13 -0000 1.2 *************** *** 56,60 **** super(GRID); setPreferenceStore(ASCorePlugin.getDefault().getPreferenceStore()); ! setDescription("Set pathes for ActionScript 2"); initializeDefaults(); } --- 56,60 ---- super(GRID); setPreferenceStore(ASCorePlugin.getDefault().getPreferenceStore()); ! setDescription("Set paths for ActionScript 2"); initializeDefaults(); } |
From: Martin W. <mar...@us...> - 2005-09-02 15:59:25
|
Update of /cvsroot/aseclipseplugin/org.asdt.core/src/org/asdt/core/resources In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv14673/src/org/asdt/core/resources Modified Files: ClasspathManager.java PackageManager.java AS2TypeManager.java Log Message: Cleaned up javadoc comments. Refactor word list classes. Standardised spelling of 'classpathes' to classpath. Index: AS2TypeManager.java =================================================================== RCS file: /cvsroot/aseclipseplugin/org.asdt.core/src/org/asdt/core/resources/AS2TypeManager.java,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -d -r1.9 -r1.10 *** AS2TypeManager.java 24 Aug 2005 02:22:27 -0000 1.9 --- AS2TypeManager.java 2 Sep 2005 15:59:13 -0000 1.10 *************** *** 33,36 **** --- 33,37 ---- import java.util.Iterator; import java.util.List; + import org.asdt.core.dom.ASClass; import org.asdt.core.dom.ASFunction; *************** *** 40,53 **** import org.asdt.core.dom.IAS2Element; import org.asdt.core.dom.QualifiedName; - import org.asdt.core.util.WordRegion; import org.asdt.core.util.ASPartitionScanner; import org.eclipse.core.resources.IContainer; import org.eclipse.core.resources.IFile; import org.eclipse.core.resources.IProject; import org.eclipse.core.resources.IResource; - import org.eclipse.core.resources.IResourceChangeEvent; - import org.eclipse.core.resources.IResourceChangeListener; import org.eclipse.core.resources.IResourceVisitor; - import org.eclipse.core.resources.ResourcesPlugin; import org.eclipse.core.runtime.CoreException; import org.eclipse.core.runtime.Path; --- 41,51 ---- import org.asdt.core.dom.IAS2Element; import org.asdt.core.dom.QualifiedName; import org.asdt.core.util.ASPartitionScanner; + import org.asdt.core.util.WordRegion; import org.eclipse.core.resources.IContainer; import org.eclipse.core.resources.IFile; import org.eclipse.core.resources.IProject; import org.eclipse.core.resources.IResource; import org.eclipse.core.resources.IResourceVisitor; import org.eclipse.core.runtime.CoreException; import org.eclipse.core.runtime.Path; *************** *** 55,59 **** import org.eclipse.jface.text.IDocument; import org.eclipse.jface.text.IDocumentPartitioner; - import org.eclipse.jface.text.rules.DefaultPartitioner; import org.eclipse.jface.text.rules.FastPartitioner; --- 53,56 ---- *************** *** 311,315 **** * @param project * @param classpath - * @return if the comleation was sucessfull */ public void completeTypeDeclaration(QualifiedName type, ASClass asObject, IProject project, List classpath) --- 308,311 ---- *************** *** 494,499 **** * * @param project ! * @param classPath ! * @return */ public IResource[] getAllASClasses(IProject project, List classPathList) --- 490,495 ---- * * @param project ! * @param classPathList ! * @return all class within the project and its associated classpaths */ public IResource[] getAllASClasses(IProject project, List classPathList) *************** *** 506,512 **** * * @param project ! * @param classPath * @param name the classname or "*" for all classes ! * @return */ public IResource[] getASClassesWithName(IProject project, List classPathList,final String name) --- 502,508 ---- * * @param project ! * @param classPathList * @param name the classname or "*" for all classes ! * @return filtered list of classes within the project and its associated classpaths */ public IResource[] getASClassesWithName(IProject project, List classPathList,final String name) *************** *** 567,572 **** * * @param project ! * @param classPath ! * @return */ public IResource[] getAllASInterfaces(IProject project, List classPathList) --- 563,568 ---- * * @param project ! * @param classPathList ! * @return array of interface resources within the project and its associated classpaths */ public IResource[] getAllASInterfaces(IProject project, List classPathList) *************** *** 641,645 **** * @param parseBody * parse the class/interface body or not ! * @return */ public ASClass getASTypeForResource(IResource resource, boolean parseBody) --- 637,641 ---- * @param parseBody * parse the class/interface body or not ! * @return the actionscript class defined by the resource */ public ASClass getASTypeForResource(IResource resource, boolean parseBody) Index: PackageManager.java =================================================================== RCS file: /cvsroot/aseclipseplugin/org.asdt.core/src/org/asdt/core/resources/PackageManager.java,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** PackageManager.java 23 Jul 2005 03:24:46 -0000 1.4 --- PackageManager.java 2 Sep 2005 15:59:13 -0000 1.5 *************** *** 58,66 **** * if packagename is empty or null, you will get all folders of * the root ! * @param editor ! * projects * @return the container for the package or null if it doesn't exist. */ ! public IContainer[] getWorkspaceFolderForPackage(String packageName, IProject project, List classPath) { if (packageName == null) --- 58,66 ---- * if packagename is empty or null, you will get all folders of * the root ! * @param project The containing project ! * @param classPathList The list of class paths to search * @return the container for the package or null if it doesn't exist. */ ! public IContainer[] getWorkspaceFolderForPackage(String packageName, IProject project, List classPathList) { if (packageName == null) *************** *** 70,75 **** // new Folderlist List folderList = new ArrayList(); // look in each sourcfolder for package ! for (Iterator iter = classPath.iterator(); iter.hasNext();) { // added support for "." path --- 70,76 ---- // new Folderlist List folderList = new ArrayList(); + // look in each sourcfolder for package ! for (Iterator iter = classPathList.iterator(); iter.hasNext();) { // added support for "." path *************** *** 87,90 **** --- 88,92 ---- currentFolder = classPathFolder; } + if (tokens.length > 0) { *************** *** 151,155 **** /** ! * Get name oft the files in the package * * @param packageName --- 153,157 ---- /** ! * Get name of the files in the package * * @param packageName *************** *** 158,162 **** * @param classPath * the classpathes ! * @return */ public String[] getFileNamesForPackage(String packageName, IProject project, List classPath) --- 160,164 ---- * @param classPath * the classpathes ! * @return array of file names within the package */ public String[] getFileNamesForPackage(String packageName, IProject project, List classPath) *************** *** 231,240 **** /** ! * checks if the package exist in the project within the spezific classPath * * @param project * @param packageName ! * @param sourcePath ! * @return */ public boolean packageExists(IProject project, String packageName, String classPath) --- 233,242 ---- /** ! * checks if the package exist in the project within the specific classPath * * @param project * @param packageName ! * @param classPath ! * @return existence of the package within the project and the supplied classpath */ public boolean packageExists(IProject project, String packageName, String classPath) Index: ClasspathManager.java =================================================================== RCS file: /cvsroot/aseclipseplugin/org.asdt.core/src/org/asdt/core/resources/ClasspathManager.java,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** ClasspathManager.java 24 Jun 2005 22:40:13 -0000 1.4 --- ClasspathManager.java 2 Sep 2005 15:59:13 -0000 1.5 *************** *** 51,54 **** --- 51,61 ---- private final static String CLASSPATH_FILE = ".classpath"; + /** + * NOTE : I have left the spelling of this one as 'classpathes' so as not + * to break any existing classpath files. Although it appears that + * the root element name is only ever used when writing the file + * and is ignored when reading, so it could probably be changed + * without any impact. + */ private final static String ROOT_ELEMENT_NAME = "AS2Classpathes"; private final static String CLASSPATH_ELEMENT_NAME= "AS2Classpath"; *************** *** 66,70 **** /** ! * returns the list of classpathes (core and source) defined for the project * * @param project --- 73,77 ---- /** ! * returns the list of classpaths (core and source) defined for the project * * @param project *************** *** 79,93 **** /** ! * returns the list of classpathes (core and source) defined for the project and referenced projects with full path * * @param project * @return List for Strings */ ! public List getProjectAllClasspathes(IProject project) { ! List classPathes = new ArrayList(); ! // Get current projet classpathes ! classPathes.addAll(convertRelativeToAbsolute(project, getProjectClasspath(project))); // Check referenced projects --- 86,100 ---- /** ! * returns the list of classpaths (core and source) defined for the project and referenced projects with full path * * @param project * @return List for Strings */ ! public List getProjectAllClasspaths(IProject project) { ! List classPaths = new ArrayList(); ! // Get current projet classpaths ! classPaths.addAll(convertRelativeToAbsolute(project, getProjectClasspath(project))); // Check referenced projects *************** *** 101,106 **** // Check if it's AS Nature if (referencedProject.hasNature(IASCoreConstants.AS_NATURE_ID)) { ! List referencedClassPathes = getSourceClasspath(referencedProject); ! classPathes.addAll(convertRelativeToAbsolute(referencedProject, referencedClassPathes)); } } --- 108,113 ---- // Check if it's AS Nature if (referencedProject.hasNature(IASCoreConstants.AS_NATURE_ID)) { ! List referencedClassPaths = getSourceClasspath(referencedProject); ! classPaths.addAll(convertRelativeToAbsolute(referencedProject, referencedClassPaths)); } } *************** *** 110,127 **** ! return classPathes; } /** ! * Convert relative classpathes to absolute classpathes * * @param project ! * @param classPathes ! * @return */ ! public List convertRelativeToAbsolute(IProject project, List classPathes) { ! List pathes = new ArrayList(); ! for (Iterator iter = classPathes.iterator(); iter.hasNext();) { String path = (String) iter.next(); IContainer container; --- 117,134 ---- ! return classPaths; } /** ! * Convert relative classpaths to absolute classpaths * * @param project ! * @param classPaths ! * @return list of absolute classpaths */ ! public List convertRelativeToAbsolute(IProject project, List classPaths) { ! List paths = new ArrayList(); ! for (Iterator iter = classPaths.iterator(); iter.hasNext();) { String path = (String) iter.next(); IContainer container; *************** *** 132,156 **** if (container.getLocation() != null) ! pathes.add(container.getLocation()); } ! return pathes; } /** ! * returns the list of classpathes (only source) defined for the project * @param project * @return List for Strings */ public List getSourceClasspath(IProject project) { ! return getClasspathesFromFile(project); } /** ! * returns the list of classpathes (only core) defined for the project * this will return a list with just 1 element, the "core classpath", to * use this method for classpath ! * @param project ! * @return List for Strings */ public List getCoreClasspath() { --- 139,162 ---- if (container.getLocation() != null) ! paths.add(container.getLocation()); } ! return paths; } /** ! * returns the list of classpaths (only source) defined for the project * @param project * @return List for Strings */ public List getSourceClasspath(IProject project) { ! return getClasspathsFromFile(project); } /** ! * returns the list of classpaths (only core) defined for the project * this will return a list with just 1 element, the "core classpath", to * use this method for classpath ! * @return List of Strings */ public List getCoreClasspath() { *************** *** 162,167 **** } ! public List getClasspathesFromFile(IProject project) { ! ArrayList classPathes = new ArrayList(); SAXBuilder builder = new SAXBuilder(); File file = project.getFile(CLASSPATH_FILE).getLocation().toFile(); --- 168,173 ---- } ! public List getClasspathsFromFile(IProject project) { ! ArrayList classPaths = new ArrayList(); SAXBuilder builder = new SAXBuilder(); File file = project.getFile(CLASSPATH_FILE).getLocation().toFile(); *************** *** 169,177 **** Document doc = builder.build(file); Element root = doc.getRootElement(); ! java.util.List xmlClasspathes = root.getChildren(CLASSPATH_ELEMENT_NAME); ! for (Iterator iter = xmlClasspathes.iterator(); iter.hasNext();) { Element element = (Element) iter.next(); if (element.getAttributeValue(CLASSPATH_ELEMENT_TYPE_ATTRIBUTE_NAME).equals(CLASSPATH_ELEMENT_TYPE_ATTRIBUTE_VALUE)) { ! classPathes.add(element.getTextNormalize()); } --- 175,183 ---- Document doc = builder.build(file); Element root = doc.getRootElement(); ! java.util.List xmlClasspaths = root.getChildren(CLASSPATH_ELEMENT_NAME); ! for (Iterator iter = xmlClasspaths.iterator(); iter.hasNext();) { Element element = (Element) iter.next(); if (element.getAttributeValue(CLASSPATH_ELEMENT_TYPE_ATTRIBUTE_NAME).equals(CLASSPATH_ELEMENT_TYPE_ATTRIBUTE_VALUE)) { ! classPaths.add(element.getTextNormalize()); } *************** *** 183,195 **** } ! return classPathes; } ! public void setClassPathesToFile(IProject project, List classpathes) { Document doc = new Document(); Element root = new Element(ROOT_ELEMENT_NAME); ! for (Iterator iter = classpathes.iterator(); iter.hasNext();) { Element classPath = new Element(CLASSPATH_ELEMENT_NAME); classPath.setAttribute(CLASSPATH_ELEMENT_TYPE_ATTRIBUTE_NAME, CLASSPATH_ELEMENT_TYPE_ATTRIBUTE_VALUE); --- 189,201 ---- } ! return classPaths; } ! public void setClassPathsToFile(IProject project, List classpaths) { Document doc = new Document(); Element root = new Element(ROOT_ELEMENT_NAME); ! for (Iterator iter = classpaths.iterator(); iter.hasNext();) { Element classPath = new Element(CLASSPATH_ELEMENT_NAME); classPath.setAttribute(CLASSPATH_ELEMENT_TYPE_ATTRIBUTE_NAME, CLASSPATH_ELEMENT_TYPE_ATTRIBUTE_VALUE); |
From: Martin W. <mar...@us...> - 2005-09-02 15:59:25
|
Update of /cvsroot/aseclipseplugin/org.asdt.core/src/org/asdt/core/internal/ui/actions In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv14673/src/org/asdt/core/internal/ui/actions Modified Files: WorkbenchRunnableAdapter.java Log Message: Cleaned up javadoc comments. Refactor word list classes. Standardised spelling of 'classpathes' to classpath. Index: WorkbenchRunnableAdapter.java =================================================================== RCS file: /cvsroot/aseclipseplugin/org.asdt.core/src/org/asdt/core/internal/ui/actions/WorkbenchRunnableAdapter.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** WorkbenchRunnableAdapter.java 8 Jun 2005 16:49:49 -0000 1.1 --- WorkbenchRunnableAdapter.java 2 Sep 2005 15:59:14 -0000 1.2 *************** *** 65,69 **** /** ! * {@inheritDoc} */ public void threadChange(Thread thread) { --- 65,69 ---- /** ! * */ public void threadChange(Thread thread) { |
From: Martin W. <mar...@us...> - 2005-09-02 15:59:25
|
Update of /cvsroot/aseclipseplugin/org.asdt.core/src/org/asdt/core/ui/dialog In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv14673/src/org/asdt/core/ui/dialog Modified Files: TypeSelectionDialog.java Log Message: Cleaned up javadoc comments. Refactor word list classes. Standardised spelling of 'classpathes' to classpath. Index: TypeSelectionDialog.java =================================================================== RCS file: /cvsroot/aseclipseplugin/org.asdt.core/src/org/asdt/core/ui/dialog/TypeSelectionDialog.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** TypeSelectionDialog.java 20 Jun 2005 20:39:21 -0000 1.1 --- TypeSelectionDialog.java 2 Sep 2005 15:59:13 -0000 1.2 *************** *** 405,409 **** * pattern string will be listed. To further filter the matching resources, * ! * @see #select(IResource). * * @param parentShell --- 405,409 ---- * pattern string will be listed. To further filter the matching resources, * ! * @see #select(IResource) * * @param parentShell |
From: Martin W. <mar...@us...> - 2005-09-02 15:57:57
|
Update of /cvsroot/aseclipseplugin/ProjectRelevant/ideas In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv14492/ideas Log Message: Directory /cvsroot/aseclipseplugin/ProjectRelevant/ideas added to the repository |
From: Martin S. <mb...@us...> - 2005-09-02 11:40:05
|
Update of /cvsroot/aseclipseplugin/org.asdt.editor/src/org/asdt/editor/internal In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv23938/src/org/asdt/editor/internal Modified Files: ASContentOutlineProvider.java Log Message: changed AS2TypeFactory access to singleton Index: ASContentOutlineProvider.java =================================================================== RCS file: /cvsroot/aseclipseplugin/org.asdt.editor/src/org/asdt/editor/internal/ASContentOutlineProvider.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** ASContentOutlineProvider.java 8 Jun 2005 16:52:32 -0000 1.1 --- ASContentOutlineProvider.java 2 Sep 2005 11:39:55 -0000 1.2 *************** *** 48,52 **** protected ASClass fContent; ! protected AS2TypeFactory fParser = new AS2TypeFactory(); protected Object fInput; protected ImportContainer importContainer; --- 48,52 ---- protected ASClass fContent; ! protected AS2TypeFactory fParser = AS2TypeFactory.getInstance(); protected Object fInput; protected ImportContainer importContainer; |
From: Martin S. <mb...@us...> - 2005-09-02 11:40:05
|
Update of /cvsroot/aseclipseplugin/org.asdt.editor/src/org/asdt/editor In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv23938/src/org/asdt/editor Modified Files: ActionScript2Editor.java Log Message: changed AS2TypeFactory access to singleton Index: ActionScript2Editor.java =================================================================== RCS file: /cvsroot/aseclipseplugin/org.asdt.editor/src/org/asdt/editor/ActionScript2Editor.java,v retrieving revision 1.16 retrieving revision 1.17 diff -C2 -d -r1.16 -r1.17 *** ActionScript2Editor.java 24 Aug 2005 19:02:09 -0000 1.16 --- ActionScript2Editor.java 2 Sep 2005 11:39:55 -0000 1.17 *************** *** 239,243 **** IDocument document = provider.getDocument(getEditorInput()); if (document != null) { ! ASClass type = new AS2TypeFactory().getAS2Type(document); if (type != null) { setCurrentType(type); --- 239,243 ---- IDocument document = provider.getDocument(getEditorInput()); if (document != null) { ! ASClass type = AS2TypeFactory.getInstance().getAS2Type(document); if (type != null) { setCurrentType(type); |
From: Boris B. <bbe...@us...> - 2005-08-25 10:12:59
|
Update of /cvsroot/aseclipseplugin/org.asdt.editor/src/org/asdt/editor/ui/actions In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv2120/src/org/asdt/editor/ui/actions Modified Files: ASGenerateGetterSetters.java Log Message: Commit just for syncmail test ;) Index: ASGenerateGetterSetters.java =================================================================== RCS file: /cvsroot/aseclipseplugin/org.asdt.editor/src/org/asdt/editor/ui/actions/ASGenerateGetterSetters.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** ASGenerateGetterSetters.java 8 Jun 2005 16:52:32 -0000 1.1 --- ASGenerateGetterSetters.java 25 Aug 2005 10:12:45 -0000 1.2 *************** *** 458,462 **** private boolean generateComments; private GetterSetterContentProvider contentProvider; - private Composite insertPositionComposite; --- 458,461 ---- |
From: Boris B. <bo...@an...> - 2005-08-25 10:07:50
|
From: Boris B. <bbe...@us...> - 2005-08-25 09:59:25
|
Update of /cvsroot/aseclipseplugin/org.asdt.editor/src/org/asdt/editor In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv31914/src/org/asdt/editor Modified Files: ASEditorPlugin.java Log Message: Commit just for syncmail test ;) Index: ASEditorPlugin.java =================================================================== RCS file: /cvsroot/aseclipseplugin/org.asdt.editor/src/org/asdt/editor/ASEditorPlugin.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** ASEditorPlugin.java 8 Jun 2005 16:52:32 -0000 1.1 --- ASEditorPlugin.java 25 Aug 2005 09:59:17 -0000 1.2 *************** *** 1,5 **** package org.asdt.editor; - import org.asdt.core.ASCorePlugin; import org.eclipse.jface.text.templates.ContextTypeRegistry; import org.eclipse.jface.text.templates.persistence.TemplateStore; --- 1,4 ---- |
From: Boris B. <bo...@an...> - 2005-08-25 09:48:18
|