]>
git.uio.no Git - ifi-stolz-refaktor.git/log
Erlend Kristiansen [Wed, 29 Jan 2014 13:53:03 +0000 (14:53 +0100)]
Adding test and implementation for ProjectWideSearchBasedExtractAndMoveMethodChanger.
Erlend Kristiansen [Wed, 29 Jan 2014 13:48:01 +0000 (14:48 +0100)]
Adding assert with message to SimpleRefactoringPerformer.
The purpose is to assert that the refactoring has in fact been
performed.
Erlend Kristiansen [Wed, 29 Jan 2014 13:05:51 +0000 (14:05 +0100)]
Refactoring PackageWideSearchBasedExtractAndMoveMethodChanger.
Erlend Kristiansen [Wed, 29 Jan 2014 12:51:19 +0000 (13:51 +0100)]
Adding test and code for analyzing and changing a package.
Erlend Kristiansen [Wed, 29 Jan 2014 12:18:07 +0000 (13:18 +0100)]
Adding some functionality to RefaktorDebug class.
Erlend Kristiansen [Tue, 28 Jan 2014 18:07:51 +0000 (19:07 +0100)]
Catching exception in the method testing fro project errors in ExampleCodeManager.
Erlend Kristiansen [Tue, 28 Jan 2014 14:06:54 +0000 (15:06 +0100)]
Refactoring ExampleCodeManager.
Erlend Kristiansen [Tue, 28 Jan 2014 13:47:15 +0000 (14:47 +0100)]
Adding tests for the ExampleCodeManager.
Removing redundant test in SearchBasedExtractAndMoveMethodAnalyzerTest.
Erlend Kristiansen [Tue, 28 Jan 2014 13:20:06 +0000 (14:20 +0100)]
Changing signature of utility method.
Erlend Kristiansen [Mon, 27 Jan 2014 16:04:35 +0000 (17:04 +0100)]
Adding assert to SearchBasedExtractAndMoveMethodChangerTest.
Asserts that the source is not the same after a change as it was before.
Erlend Kristiansen [Mon, 27 Jan 2014 15:59:17 +0000 (16:59 +0100)]
Filling in SearchBasedExtractAndMoveMethodChanger.
Erlend Kristiansen [Sun, 26 Jan 2014 11:14:46 +0000 (12:14 +0100)]
Making the benchmark deep import project to analyze.
Creating ProjectImporter to facilitate this.
Erlend Kristiansen [Fri, 24 Jan 2014 14:49:34 +0000 (15:49 +0100)]
Benchmark: Delegating project creation to a new ProjectCreator.
Erlend Kristiansen [Fri, 24 Jan 2014 13:46:56 +0000 (14:46 +0100)]
Changing some path handling in benchmark.
Making use of the capabilities of java.io.File
Erlend Kristiansen [Fri, 24 Jan 2014 11:59:39 +0000 (12:59 +0100)]
Extracting superclass from a lot of search based handlers.
Erlend Kristiansen [Fri, 24 Jan 2014 10:53:14 +0000 (11:53 +0100)]
PackageFragmentRootWideSearchBasedExtractAndMoveMethodAnalysisHandler gets a new analyzer.
Erlend Kristiansen [Fri, 24 Jan 2014 10:31:56 +0000 (11:31 +0100)]
Extracting superclass from ProjectWideSearchBasedExtractAndMoveMethodAnalyzer.
Erlend Kristiansen [Fri, 24 Jan 2014 10:00:35 +0000 (11:00 +0100)]
Adding command + handler for analyzing package roots.
Adding menu item in popup menu for running an analyzer on an
IPackageFragmentRoot element in the tree view.
Erlend Kristiansen [Fri, 24 Jan 2014 09:38:54 +0000 (10:38 +0100)]
Changing the output of some info.
Erlend Kristiansen [Fri, 24 Jan 2014 09:30:26 +0000 (10:30 +0100)]
Refactoring example project to make it more comprehensible.
Erlend Kristiansen [Thu, 23 Jan 2014 18:58:39 +0000 (19:58 +0100)]
AnalysisStatistics now gives time in milliseconds
if duration is less than on second.
Erlend Kristiansen [Thu, 23 Jan 2014 16:40:26 +0000 (17:40 +0100)]
Fixing bug with benchmark not showing results properly.
Erlend Kristiansen [Thu, 23 Jan 2014 16:28:25 +0000 (17:28 +0100)]
Fixing "bug" leading to all packages in the classpath being "analyzed".
Apparently IJavaProject.getPackageFragments() returns fragments for all
packages in the classpath. The analyzed packages is now restricted to
the fragments having kind == IPackageFragmentRoot.K_SOURCE and having
children. The potential bug didn't seem to have any impact, probably
because none of the package fragments without source code have any
compilation units.
Erlend Kristiansen [Thu, 23 Jan 2014 15:07:12 +0000 (16:07 +0100)]
Adding command + handler for analyzing projects.
Adding menu item in popup menu for running a
ProjectWideSearchBasedExtractAndMoveMethodAnalyzer on an
Iproject element in the tree view.
Erlend Kristiansen [Thu, 23 Jan 2014 14:46:58 +0000 (15:46 +0100)]
Adding command + handler for analyzing packages.
Adding menu item in popup menu for running a
PackageWideSearchBasedExtractAndMoveMethodAnalyzer on an
IPackageFragment element in the tree view.
Erlend Kristiansen [Thu, 23 Jan 2014 14:15:38 +0000 (15:15 +0100)]
Adding command + handler for analyzing ICompilationUnits.
Adding menu item in popup menu for running a
CompilationUnitWideSearchBasedExtractAndMoveMethodAnalyzer on an
ICompilationUnit element in the tree view.
Erlend Kristiansen [Thu, 23 Jan 2014 12:22:35 +0000 (13:22 +0100)]
Adding command + handler for analyzing ITypes.
Adding menu item in popup menu for running a
TypeWideSearchBasedExtractAndMoveMethodAnalyzer on an IType element in
the tree view.
Erlend Kristiansen [Thu, 23 Jan 2014 11:53:47 +0000 (12:53 +0100)]
Moving some functionality from ProjectWideSearchBasedExtractAndMoveMethodAnalyzer
and into SearchBasedExtractAndMoveMethodAnalysisBenchmark.
Moving some functionality to make the
ProjectWideSearchBasedExtractAndMoveMethodAnalyzer more reusable.
Erlend Kristiansen [Thu, 23 Jan 2014 11:22:33 +0000 (12:22 +0100)]
Refactoring the ProjectWideSearchBasedExtractAndMoveMethodAnalyzer.
Refactoring the ProjectWideSearchBasedExtractAndMoveMethodAnalyzer into
smaller components for analyzing packages, compilation units and types.
(Methods are already covered.) This is to facilitate analyzing these
elements separately.
Erlend Kristiansen [Thu, 23 Jan 2014 10:22:20 +0000 (11:22 +0100)]
Moving debug statements to SearchBasedExtractAndMoveMethodAnalyzer.
Erlend Kristiansen [Thu, 23 Jan 2014 09:53:10 +0000 (10:53 +0100)]
Adding class to keep track of analysis statistics.
An instance of the class is intended to be passed
into analyzers that supply the statistics
(and can use it in for instance debug statements).
Erlend Kristiansen [Thu, 23 Jan 2014 09:30:35 +0000 (10:30 +0100)]
Inlining and removing method that is not used elsewhere.
Also writing some Javadoc.
Erlend Kristiansen [Wed, 22 Jan 2014 19:35:07 +0000 (20:35 +0100)]
Adding command + handler instead of SearchBasedExtractAndMoveMethodAnalysisAction.
This includes creating a TreeSelectionPropertyTester with the property
'elementType' that can be used in visibleWhen-tests in menus.
Erlend Kristiansen [Wed, 22 Jan 2014 15:20:28 +0000 (16:20 +0100)]
Adding tree selection information command.
Adding command, handler and popup menu item for showing information
about tree selections.
Erlend Kristiansen [Tue, 21 Jan 2014 13:50:52 +0000 (14:50 +0100)]
Organizing imports.
Erlend Kristiansen [Tue, 21 Jan 2014 13:45:49 +0000 (14:45 +0100)]
Now using a hash map to back the PrefixSet, instead of a hash set.
Volker Stolz [Mon, 20 Jan 2014 13:08:37 +0000 (14:08 +0100)]
Let's see what the CI is up to...
Erlend Kristiansen [Sun, 19 Jan 2014 22:11:41 +0000 (23:11 +0100)]
Adding backend parameter to loading of biblatex package in thesis.
Erlend Kristiansen [Sun, 19 Jan 2014 18:55:32 +0000 (19:55 +0100)]
Adding some latex resources needed for building the thesis.
Erlend Kristiansen [Fri, 17 Jan 2014 11:17:07 +0000 (12:17 +0100)]
Adding debug method to log throwables.
Erlend Kristiansen [Fri, 17 Jan 2014 10:57:48 +0000 (11:57 +0100)]
Removing redundant information from log call.
Erlend Kristiansen [Fri, 17 Jan 2014 10:13:07 +0000 (11:13 +0100)]
Moving assert statement in PrefixSet into add method instead of register method.
Erlend Kristiansen [Fri, 17 Jan 2014 06:47:04 +0000 (07:47 +0100)]
Adding stacktrace to the log output for ProjectWideSearchBasedExtractAndMoveMethodAnalyzer
when catching an AssertionError.
Erlend Kristiansen [Fri, 17 Jan 2014 06:36:21 +0000 (07:36 +0100)]
Asserting that a prefix set cannot "register" a null prefix.
Erlend Kristiansen [Thu, 16 Jan 2014 21:16:49 +0000 (22:16 +0100)]
Adding system parameter for directory for log files.
refaktor.logs
Erlend Kristiansen [Thu, 16 Jan 2014 16:02:26 +0000 (17:02 +0100)]
Logging assertion errors in analysis instead of letting them through
and stop the analysis.
Volker Stolz [Thu, 16 Jan 2014 11:25:31 +0000 (12:25 +0100)]
Nope, didn't work; let's split em.
Volker Stolz [Thu, 16 Jan 2014 11:13:45 +0000 (12:13 +0100)]
Tentatively future-proof target definition by including Kepler. The rmap
must still choose a specific one, but I'll add another Jenkins build
which will try Kepler specifically.
Erlend Kristiansen [Thu, 16 Jan 2014 10:59:08 +0000 (11:59 +0100)]
Removing SafeVarArgs annotations.
Erlend Kristiansen [Thu, 16 Jan 2014 10:55:30 +0000 (11:55 +0100)]
Have (hopefully) resolved the incompatibilities between the Hamcrest
libraries supplied with Juno and Kepler.
Erlend Kristiansen [Thu, 16 Jan 2014 10:08:44 +0000 (11:08 +0100)]
Fixing incompatibilities between the Hamcrest libraries shipped with
Eclipse Juno and Kepler.
Erlend Kristiansen [Wed, 15 Jan 2014 14:41:16 +0000 (15:41 +0100)]
Adding tests to extend the definition of an unfix to also include
variables with types that is not possible to modify. This includes
types with bindings that is not resolved from source, including
primitives, and interface types.
Erlend Kristiansen [Wed, 15 Jan 2014 14:40:50 +0000 (15:40 +0100)]
Organizing imports.
Erlend Kristiansen [Wed, 15 Jan 2014 13:59:28 +0000 (14:59 +0100)]
Refactoring to facilitate the addition of a new testcase in UnfixesCollectorTest.
Erlend Kristiansen [Wed, 15 Jan 2014 13:54:15 +0000 (14:54 +0100)]
Making use of the Hamcrest hasItem matcher in UnfixesCollectorTest.
Erlend Kristiansen [Wed, 15 Jan 2014 13:40:49 +0000 (14:40 +0100)]
Adding test to define a simple name as a prefix if it is not a
declaration and its binding is a variable binding.
Writing code to pass the test for the extended definition of a prefix.
Erlend Kristiansen [Wed, 15 Jan 2014 12:59:10 +0000 (13:59 +0100)]
Adding tests for PrefixesCollector.
Erlend Kristiansen [Tue, 14 Jan 2014 20:33:05 +0000 (21:33 +0100)]
Adding information about declaring type of method in
ExtractAndMoveMethodAnalysisResult.toString.
Erlend Kristiansen [Tue, 14 Jan 2014 20:14:38 +0000 (21:14 +0100)]
Making the ExtractAndMoveMethodAnalysisResult lightweight enough for it
to be stored in a collection when analyzing a large codebase. This is
achieved by giving the ExtractAndMoveMethodAnalysisResult memento-like
behavior for handling the variable binding. (Storing its key and
restoring the binding again when needed.)
Erlend Kristiansen [Tue, 14 Jan 2014 14:54:27 +0000 (15:54 +0100)]
Making some print statements use RefaktorDebug.
Erlend Kristiansen [Tue, 14 Jan 2014 14:45:26 +0000 (15:45 +0100)]
Adding some more data to ExtractAndMoveMethodAnalysisResult.
Extracting the statements creation from SearchBasedExtractAndMoveMethodAnalyzer
into a new class StatementsCreator.
Erlend Kristiansen [Tue, 14 Jan 2014 11:57:26 +0000 (12:57 +0100)]
Removing Perfidix-related comments from
SearchBasedExtractAndMoveMethodAnalysisBenchmark.
Erlend Kristiansen [Tue, 14 Jan 2014 11:54:39 +0000 (12:54 +0100)]
Removing redundant "by-component"-section from refaktor.rmap.
Erlend Kristiansen [Tue, 14 Jan 2014 11:47:21 +0000 (12:47 +0100)]
Removing unneeded suppression of restriction warning.
Erlend Kristiansen [Tue, 14 Jan 2014 11:33:20 +0000 (12:33 +0100)]
Updating the refaktor.rmap to reflect the renaming of no.uio.refaktor.benchmark
to no.uio.ifi.refaktor.benchmark.
Erlend Kristiansen [Tue, 14 Jan 2014 11:26:26 +0000 (12:26 +0100)]
Suppressing restriction on ASTNodeSearchUtil in SearchBasedExtractAndMoveMethodAnalyzer
Erlend Kristiansen [Tue, 14 Jan 2014 11:25:22 +0000 (12:25 +0100)]
Submodule eclipse_source_code/eclipse.jdt.ui is now on branch R3_8_maintenance
Erlend Kristiansen [Tue, 14 Jan 2014 11:08:46 +0000 (12:08 +0100)]
Renaming no.uio.refaktor.benchmark to no.uio.ifi.refaktor.benchmark
Erlend Kristiansen [Tue, 14 Jan 2014 11:06:30 +0000 (12:06 +0100)]
Adding system property refaktor.debug instead of using a program
argument. Default value is true.
Erlend Kristiansen [Tue, 14 Jan 2014 10:51:46 +0000 (11:51 +0100)]
Changing default for system property refaktor.delay from 30 to 0.
Volker Stolz [Mon, 13 Jan 2014 17:54:30 +0000 (18:54 +0100)]
Revert intermediate tests, the culprit seems to be @BeforeClass not
getting logged properly. Drop some further dependencies while here.
Volker Stolz [Mon, 13 Jan 2014 17:23:16 +0000 (18:23 +0100)]
Collect output in CI
Volker Stolz [Mon, 13 Jan 2014 17:20:08 +0000 (18:20 +0100)]
Testing dependencies for CI
Volker Stolz [Mon, 13 Jan 2014 17:07:19 +0000 (18:07 +0100)]
Merge branch 'master' of gitolite@git.uio.no:ifi-stolz-refaktor
Volker Stolz [Mon, 13 Jan 2014 17:04:18 +0000 (18:04 +0100)]
Show intermediate output from tests.
Erlend Kristiansen [Mon, 13 Jan 2014 16:32:24 +0000 (17:32 +0100)]
Merge branch 'master' of git.uio.no:ifi-stolz-refaktor
Volker Stolz [Mon, 13 Jan 2014 15:53:42 +0000 (16:53 +0100)]
Drop unused dependency.
Volker Stolz [Mon, 13 Jan 2014 15:38:30 +0000 (16:38 +0100)]
Maybe ordering of entries is relevant?
Volker Stolz [Mon, 13 Jan 2014 15:33:26 +0000 (16:33 +0100)]
Chase Erlend's typo.
Volker Stolz [Mon, 13 Jan 2014 15:20:27 +0000 (16:20 +0100)]
CI for JDT analysis, mildly tested (though not on the actual CI).
Erlend Kristiansen [Mon, 13 Jan 2014 14:40:48 +0000 (15:40 +0100)]
Making Prefix.toString lazy with the help of an anonymous class.
Volker Stolz [Mon, 13 Jan 2014 13:39:36 +0000 (14:39 +0100)]
Drop version restriction
Erlend Kristiansen [Sat, 11 Jan 2014 11:33:34 +0000 (12:33 +0100)]
Removing a debug statement to eliminate a call to the expensive Prefix.toString.
Erlend Kristiansen [Sat, 11 Jan 2014 11:25:40 +0000 (12:25 +0100)]
Changing the hashCode implementation of Prefix, making it independent of ParseUtils.getNodeText.
Then only toString depends on ParseUtils.getNodeText, so the computation of the node text can be deferred
to the invocation of toString, making the analysis of org.eclipse.jdt.ui 20 times more effective.
Erlend Kristiansen [Fri, 10 Jan 2014 13:32:29 +0000 (14:32 +0100)]
Adding test to capture bug regarding overloaded methods.
Erlend Kristiansen [Wed, 8 Jan 2014 22:21:20 +0000 (23:21 +0100)]
Adding some logging capabilities to RefaktorDebug.
Enabling logging for all Throwables in the (possibly time consuming)
analysis in SearchBasedExtractAndMoveMethodAnalysisBenchmark.
Erlend Kristiansen [Wed, 8 Jan 2014 14:19:43 +0000 (15:19 +0100)]
Adding a CompilationUnitRecentlyUsedCache to be used instead of the
CompilationUnitHashCache in the ProjectWideSearchBasedExtractAndMoveMethodAnalyzer,
to lower its memory consumption.
Adding some info to the debug print-out for the
ProjectWideSearchBasedExtractAndMoveMethodAnalyzer.
Erlend Kristiansen [Tue, 7 Jan 2014 14:16:15 +0000 (15:16 +0100)]
Removing some Java assert statements in favor of assertThat statements
with Hamcrest matchers. Also doing the same with some eclipse Assert.*
statements.
Erlend Kristiansen [Tue, 7 Jan 2014 13:14:44 +0000 (14:14 +0100)]
Changing to CompilationUnitTextSelection to be created without the
precence of the underlying document. Overriding some methods to provide
the resulting missing behavior. These methods can be used with some
additional overhead, but they are seldom used. This gives the
CompilationUnitTextSelection a smaller memory footprint.
Erlend Kristiansen [Mon, 6 Jan 2014 19:09:53 +0000 (20:09 +0100)]
Adding seconds since analysis start to the debug print-out for the
simulation.
Erlend Kristiansen [Mon, 6 Jan 2014 18:41:39 +0000 (19:41 +0100)]
Fixing bug that made the SearchBasedExtractAndMoveMethodAnalyzer unable
to find the MethodDeclaration node from an IMethod handle if the method
has Javadoc attached and there is a single line comment above the
Javadoc. (It is the org.eclipse.jdt.core.dom.NodeFinder that fails in
this matter. How sick is that?!)
Erlend Kristiansen [Mon, 6 Jan 2014 17:13:11 +0000 (18:13 +0100)]
Making the RefaktorAssert.assertThat depend on
org.junit.Assert.assertThat instead of the
org.hamcrest.MathcerAssert.assertThat.
(Hopefully this will make the RefaktorAssert.assertThat work on both
Eclipse Juno and Kepler compatible environments.)
Erlend Kristiansen [Mon, 6 Jan 2014 16:56:52 +0000 (17:56 +0100)]
Replacing the calls to org.hamcrest.MatcherAssert.assertThat with calls
to RefaktorAssert.assertThat. Thus adapting the interface of
MatcherAssert and making it possible to swap the adaptee for another
implementation.
Erlend Kristiansen [Mon, 6 Jan 2014 15:19:13 +0000 (16:19 +0100)]
Removing the version constraint on the org.hamcrest dependency.
Erlend Kristiansen [Sun, 5 Jan 2014 21:45:57 +0000 (22:45 +0100)]
Adding some more info to debug print-out.
Erlend Kristiansen [Sun, 5 Jan 2014 11:12:15 +0000 (12:12 +0100)]
Fixing some classpath issues.
Erlend Kristiansen [Sun, 5 Jan 2014 10:58:01 +0000 (11:58 +0100)]
Adding test to UnfixesCollectorTest.
Erlend Kristiansen [Sun, 5 Jan 2014 10:44:18 +0000 (11:44 +0100)]
Fixing bug with unfixesCollector that made it crash on a FieldAccess in
an Assignment. (Occurs when the 'this' keyword is used.)
Adding test for UnfixesCollector.
Erlend Kristiansen [Sun, 5 Jan 2014 08:14:55 +0000 (09:14 +0100)]
Reverting back to the version of the manifest with the Hamcrest
dependency.
Erlend Kristiansen [Sat, 4 Jan 2014 13:25:02 +0000 (14:25 +0100)]
Adding junit to the no.uio.ifi.refaktor dependencies instead of
hamcrest. This is only to please Jenkins for now.