|
From: David C. <dc...@us...> - 2005-10-19 00:33:26
|
Update of /cvsroot/rubyeclipse/org.rubypeople.eclipse.shams/src/org/rubypeople/eclipse/shams/resources In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv24824/src/org/rubypeople/eclipse/shams/resources Modified Files: ShamResource.java ShamProject.java Log Message: Update SymbolIndex when a new project is opened. Index: ShamProject.java =================================================================== RCS file: /cvsroot/rubyeclipse/org.rubypeople.eclipse.shams/src/org/rubypeople/eclipse/shams/resources/ShamProject.java,v retrieving revision 1.11 retrieving revision 1.12 diff -C2 -d -r1.11 -r1.12 *** ShamProject.java 16 Oct 2005 17:29:26 -0000 1.11 --- ShamProject.java 19 Oct 2005 00:33:17 -0000 1.12 *************** *** 1,4 **** /* ! * Author: David Corbin * * Copyright (c) 2005 RubyPeople. --- 1,4 ---- /* ! * Author: * * Copyright (c) 2005 RubyPeople. *************** *** 39,43 **** public ShamProject(String theProjectName) { ! this(new Path("undefined by sham creator"), theProjectName); } --- 39,43 ---- public ShamProject(String theProjectName) { ! this(new Path("path to " + theProjectName), theProjectName); } *************** *** 154,160 **** } - public Object getAdapter(Class adapter) { - throw new RuntimeException("Unimplemented method in sham"); - } public void accept(IResourceVisitor visitor) throws CoreException {} --- 154,157 ---- Index: ShamResource.java =================================================================== RCS file: /cvsroot/rubyeclipse/org.rubypeople.eclipse.shams/src/org/rubypeople/eclipse/shams/resources/ShamResource.java,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** ShamResource.java 16 Oct 2005 17:29:26 -0000 1.8 --- ShamResource.java 19 Oct 2005 00:33:17 -0000 1.9 *************** *** 1,4 **** /* ! * Author: David Corbin * * Copyright (c) 2005 RubyPeople. --- 1,4 ---- /* ! * Author: * * Copyright (c) 2005 RubyPeople. *************** *** 232,236 **** public Object getAdapter(Class adapter) { ! throw new RuntimeException("Need to implement on sham."); } --- 232,238 ---- public Object getAdapter(Class adapter) { ! if (adapter.isAssignableFrom(getClass())) ! return this; ! return null; } |