]>
git.uio.no Git - ifi-stolz-refaktor.git/log
Erlend Kristiansen [Fri, 8 Nov 2013 07:37:20 +0000 (08:37 +0100)]
Changing test to get a higher degree of code coverage.
Erlend Kristiansen [Thu, 7 Nov 2013 20:07:20 +0000 (21:07 +0100)]
Adding some outlines to the thesis.
Erlend Kristiansen [Thu, 7 Nov 2013 19:18:37 +0000 (20:18 +0100)]
Adding some JavaDoc and cleaning up a bit.
Erlend Kristiansen [Thu, 7 Nov 2013 15:20:50 +0000 (16:20 +0100)]
Moving ExtractAndMoveMethodPrefixesExtractor to
no.uio.ifi.refaktor.extractors package.
Erlend Kristiansen [Thu, 7 Nov 2013 14:43:20 +0000 (15:43 +0100)]
Some small improvement changes.
Erlend Kristiansen [Thu, 7 Nov 2013 14:31:36 +0000 (15:31 +0100)]
Fixing logical flaw in Prefix.shadows().
REFA-5
Erlend Kristiansen [Thu, 7 Nov 2013 13:39:29 +0000 (14:39 +0100)]
Sub-prefixes of a prefix is now returned as a PrefixSet.
REFA-5
Erlend Kristiansen [Thu, 7 Nov 2013 13:18:41 +0000 (14:18 +0100)]
Removing a lot of package files.
Erlend Kristiansen [Wed, 6 Nov 2013 13:52:12 +0000 (14:52 +0100)]
Some small refactoring.
Erlend Kristiansen [Wed, 6 Nov 2013 13:48:34 +0000 (14:48 +0100)]
Moving functionality from ExtractAndMoveMethodPrefixesExtractor to Prefix and PrefixSet
REFA-5
Erlend Kristiansen [Wed, 6 Nov 2013 12:43:21 +0000 (13:43 +0100)]
Moving some functionality from UnionOfLongestCommonPrefixesExtractor to PrefixSet.
REFA-5
Erlend Kristiansen [Tue, 5 Nov 2013 15:31:57 +0000 (16:31 +0100)]
Now using custom PrefixSet instead of Set<Prefix> in extractors.
REFA-5
Erlend Kristiansen [Tue, 5 Nov 2013 14:49:16 +0000 (15:49 +0100)]
Now using Set instead of Map for prefixes in extractors.
REFA-5
Erlend Kristiansen [Mon, 4 Nov 2013 19:39:25 +0000 (20:39 +0100)]
ExtractAndMoveMethodPrefixesExtractor filters out those prefixes that
starts with a simpleName that is assigned to within the selection.
REFA-9
Erlend Kristiansen [Fri, 1 Nov 2013 15:33:27 +0000 (16:33 +0100)]
Adding ObjectAid class diagram of some refator classes.
Erlend Kristiansen [Fri, 1 Nov 2013 15:29:43 +0000 (16:29 +0100)]
Adding failing test for ExtractAndMoveMethodChanger that is supposed
to catch cases where a parameter is assigned.
Erlend Kristiansen [Wed, 30 Oct 2013 15:19:23 +0000 (16:19 +0100)]
Code example for submitted bug regarding the Move Method refactoring:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=420726
Erlend Kristiansen [Fri, 25 Oct 2013 14:24:26 +0000 (16:24 +0200)]
Made the retrieval of the extracted IMethod, for use with the move
refactoring, more robust.
Erlend Kristiansen [Thu, 24 Oct 2013 13:38:58 +0000 (15:38 +0200)]
ExtractAndMoveMethodHandler: Adding the possibility for the user to change the name of the extracted method.
Erlend Kristiansen [Thu, 24 Oct 2013 12:14:21 +0000 (14:14 +0200)]
Fixed ASimpleExampleExtractTempTest
Erlend Kristiansen [Thu, 24 Oct 2013 09:48:31 +0000 (11:48 +0200)]
Doing some small refactorings.
Erlend Kristiansen [Thu, 24 Oct 2013 09:47:22 +0000 (11:47 +0200)]
Fixing bug that made handlers reuse the last changer instead of creating
a new one when executed multiple times.
Erlend Kristiansen [Thu, 24 Oct 2013 09:46:28 +0000 (11:46 +0200)]
Adding test.
Erlend Kristiansen [Wed, 23 Oct 2013 18:36:26 +0000 (20:36 +0200)]
Adding test for ExtractAndMoveMethodChanger.
Currently it does not expose any bugs.
Erlend Kristiansen [Wed, 23 Oct 2013 16:17:07 +0000 (18:17 +0200)]
Making the abstraction of a RefaktorChanger that can be used to make
changes to the workspace, by handlers and others.
Unit tests should use instances of this class directly instead of calling handlers.
Volker Stolz [Thu, 26 Sep 2013 18:00:47 +0000 (20:00 +0200)]
You wouldn't believe this...
Volker Stolz [Thu, 26 Sep 2013 17:36:40 +0000 (19:36 +0200)]
Merge branch 'master' of gitolite@git.uio.no:ifi-stolz-refaktor
Volker Stolz [Thu, 26 Sep 2013 17:35:26 +0000 (19:35 +0200)]
Lalalala...
Volker Stolz [Thu, 26 Sep 2013 16:59:03 +0000 (18:59 +0200)]
Buckminster, again.
Erlend Kristiansen [Thu, 26 Sep 2013 13:53:42 +0000 (15:53 +0200)]
Merge branch 'master' of git.uio.no:ifi-stolz-refaktor
Conflicts:
software/no.uio.ifi.refaktor/META-INF/MANIFEST.MF
software/no.uio.ifi.refaktor/src/no/uio/ifi/refaktor/handlers/ExtractAndMoveMethodHandler.java
Erlend Kristiansen [Thu, 26 Sep 2013 13:50:56 +0000 (15:50 +0200)]
Minor changes. Changing/adding some debug statements.
Volker Stolz [Thu, 26 Sep 2013 10:39:59 +0000 (12:39 +0200)]
Buckminster #3 (and final try)
Volker Stolz [Thu, 26 Sep 2013 10:16:12 +0000 (12:16 +0200)]
Buckminster #2
Volker Stolz [Thu, 26 Sep 2013 09:48:14 +0000 (11:48 +0200)]
Experimental fix for Buckminster -- annotations are from Juno, not
Indigo.
Volker Stolz [Thu, 26 Sep 2013 09:40:44 +0000 (11:40 +0200)]
wibbles whlie thinking about REFA-8.
Volker Stolz [Thu, 26 Sep 2013 08:27:52 +0000 (10:27 +0200)]
Just skip unknown AST nodes for now (instead of crashing). Also
introduce annotation.
Erlend Kristiansen [Tue, 24 Sep 2013 11:08:19 +0000 (13:08 +0200)]
Removing call to System.lineSeparator() to comply with Java 6.
Erlend Kristiansen [Tue, 24 Sep 2013 10:43:32 +0000 (12:43 +0200)]
Merge
Erlend Kristiansen [Tue, 24 Sep 2013 10:18:17 +0000 (12:18 +0200)]
In ExtractAndMoveMethodHandler a method is now found on only by name,
and not by whole signature. Do better?
Volker Stolz [Tue, 24 Sep 2013 10:03:20 +0000 (12:03 +0200)]
merge?
Volker Stolz [Tue, 24 Sep 2013 10:01:54 +0000 (12:01 +0200)]
Merge branch 'master' of gitolite@git.uio.no:ifi-stolz-refaktor
Volker Stolz [Tue, 24 Sep 2013 09:52:07 +0000 (11:52 +0200)]
Tidy (for my definition of "tidy" -- e.g. less static things).
Volker Stolz [Tue, 24 Sep 2013 08:46:24 +0000 (10:46 +0200)]
No idea what this line was doing there -- it's the reason the UI behaved
erratic.
Erlend Kristiansen [Fri, 20 Sep 2013 12:24:47 +0000 (14:24 +0200)]
Adding print(Object) methods to RefaktorDebug.
Erlend Kristiansen [Fri, 20 Sep 2013 12:16:49 +0000 (14:16 +0200)]
Renaming Debug to RefaktorDebug to avoid confusion
with org.eclipse.osgi.framework.debug.Debug
Erlend Kristiansen [Fri, 20 Sep 2013 12:04:42 +0000 (14:04 +0200)]
Renaming RefaktorDebugUtils to Debug and adding print methods.
Debug prints can be activated with the -refaktordebug command line
argument.
Erlend Kristiansen [Thu, 19 Sep 2013 13:02:52 +0000 (15:02 +0200)]
Merge branch 'master' of git.uio.no:ifi-stolz-refaktor
Volker Stolz [Thu, 19 Sep 2013 12:58:22 +0000 (14:58 +0200)]
Quick and dirty (but working) view which shows LongestPrefix from
current selection.
Must be opened with Show->View->Prefix->Prefix through the menu.
Erlend Kristiansen [Thu, 19 Sep 2013 11:36:51 +0000 (13:36 +0200)]
ExtractAndMoveMethodHandler now moves the method to the first name in a
prefix/expression, and not the last.
Erlend Kristiansen [Thu, 19 Sep 2013 10:39:56 +0000 (12:39 +0200)]
First attempt on using move method in Extract and Move Method
handler.
Messy, buggy and flawed in so many ways!
Erlend Kristiansen [Tue, 17 Sep 2013 13:43:03 +0000 (15:43 +0200)]
First attempt on using extract method in Extract and Move Method handler.
Erlend Kristiansen [Mon, 16 Sep 2013 13:34:48 +0000 (15:34 +0200)]
Moving some methods from handlers to SelectionUtils.
Erlend Kristiansen [Mon, 16 Sep 2013 13:14:05 +0000 (15:14 +0200)]
Moving refactorings, descriptors and contributions to different packages.
Erlend Kristiansen [Mon, 16 Sep 2013 13:05:19 +0000 (15:05 +0200)]
Adding skeleton for a future "Extract and Move Method" refactoring.
Erlend Kristiansen [Mon, 16 Sep 2013 13:02:49 +0000 (15:02 +0200)]
Adding "Extract and Move Method" command to the selection menu.
Erlend Kristiansen [Mon, 16 Sep 2013 13:00:55 +0000 (15:00 +0200)]
Refactoring some handlers.
Erlend Kristiansen [Fri, 13 Sep 2013 11:15:31 +0000 (13:15 +0200)]
Adding test of UnionOfLongestCommonPrefixesExtractor.
Erlend Kristiansen [Fri, 13 Sep 2013 10:29:11 +0000 (12:29 +0200)]
Doing some refactoring and adding some javadoc.
Erlend Kristiansen [Fri, 6 Sep 2013 17:53:06 +0000 (19:53 +0200)]
Working on the AST instead of strings for finding prefixes.
Erlend Kristiansen [Fri, 6 Sep 2013 13:37:59 +0000 (15:37 +0200)]
First try on extracting a union of common prefixes.
Erlend Kristiansen [Mon, 2 Sep 2013 13:44:46 +0000 (15:44 +0200)]
Adding tests for LongestCommonPrefixExtractor.
At the same time removing PropertyExtractorExecutor.
LongestCommonPrefixExtractor now works on ExpressionStatements only, and
when the expression is a MethodInvocation.
Erlend Kristiansen [Thu, 22 Aug 2013 09:53:59 +0000 (11:53 +0200)]
Adding test for PropertyExtractorExecutor.
Erlend Kristiansen [Tue, 20 Aug 2013 13:51:12 +0000 (15:51 +0200)]
Adding information about covering and covered node in
TextSelectionInformationHandler.
Erlend Kristiansen [Tue, 20 Aug 2013 12:56:51 +0000 (14:56 +0200)]
Making the property type independent of the general PropertyExtractor.
Erlend Kristiansen [Tue, 20 Aug 2013 12:31:07 +0000 (14:31 +0200)]
PropertyExtractor is now responsible for deciding whether a selection is
valid or not.
Erlend Kristiansen [Fri, 16 Aug 2013 11:53:14 +0000 (13:53 +0200)]
Renaming AttributeExtractor to PropertyExtractor.
Erlend Kristiansen [Thu, 15 Aug 2013 10:32:53 +0000 (12:32 +0200)]
First attempt on making a framework for extracting attributes from
selected text. This is in form of an AttributeExtractorExecutor that
works with AttributeExtractors. An AttributeExtractor is an ASTVisitor
that is also aware of the current text selection (a SmartTextSelection
that is a modified TextSelection made for easy access to the underlying
document).
This also includes an attempt on an AttributeExtractor for finding the
longest common prefix within a selection. The LongestCommonPrefixExtractor
is currently only working on plain text.
(The LongestCommonPrefixExtractor can be tested with the 'Test Attribute
Extractor' option in the 'IFI Refaktor Selection' editor context menu.)
Erlend Kristiansen [Wed, 7 Aug 2013 18:03:31 +0000 (20:03 +0200)]
Changing the name of the 'Text Selection Information' menu to 'Refaktor Selection'.
Erlend Kristiansen [Tue, 6 Aug 2013 16:30:08 +0000 (18:30 +0200)]
Removing version number from org.eclipse.jface.text dependency.
Erlend Kristiansen [Tue, 6 Aug 2013 15:01:15 +0000 (17:01 +0200)]
Adding Text Selection Information command to context menu when text is selected.
Volker Stolz [Fri, 2 Aug 2013 09:22:23 +0000 (11:22 +0200)]
Review
Volker Stolz [Tue, 30 Jul 2013 11:45:19 +0000 (13:45 +0200)]
Merge branch 'master' of gitolite@git.uio.no:ifi-stolz-refaktor
Volker Stolz [Tue, 30 Jul 2013 11:08:41 +0000 (13:08 +0200)]
Add target spec for CI builds. Hudson was using the ABS-target, and I'd
like to keep it separate now.
Erlend Kristiansen [Thu, 25 Jul 2013 06:43:24 +0000 (08:43 +0200)]
Fixing some exception handling.
Erlend Kristiansen [Thu, 25 Jul 2013 06:24:11 +0000 (08:24 +0200)]
Adding Cyclomatic Complexity Action to IMethod context menu. (Together
with Safer Action.)
Erlend Kristiansen [Thu, 25 Jul 2013 05:44:07 +0000 (07:44 +0200)]
Adding metrics library from http://eclipse-metrics.sourceforge.net/
Creates package no.uio.ifi.refaktor.metrics.
Making it possible to compute Cyclomatic Complexity for an IMethod.
Erlend Kristiansen [Wed, 17 Jul 2013 14:02:27 +0000 (16:02 +0200)]
SaferRefactoring/TestRefactoring: Using constructors instead of
contribution/descriptor for creating the refactoring.
Volker Stolz [Wed, 17 Jul 2013 09:49:09 +0000 (11:49 +0200)]
Check status, otherwise it may NPE later.
Erlend Kristiansen [Tue, 14 May 2013 14:32:12 +0000 (16:32 +0200)]
SaferRefactoring is one step closer to be general.
Inserting assert statements between every statement in moved procedure.
REFA-3
Volker Stolz [Thu, 11 Apr 2013 09:44:02 +0000 (11:44 +0200)]
- Exception handling: add static helper
- "this.foo" is considered bad style in Java
Erlend Kristiansen [Wed, 10 Apr 2013 19:00:52 +0000 (21:00 +0200)]
SaferAction now works for 'aSimpleExample.C.f'.
Some work need to be done to make it more general.
REFA-3
Volker Stolz [Wed, 10 Apr 2013 14:55:59 +0000 (16:55 +0200)]
Add context menu on Java methods.
TODO: make existing code use new constructor.
REFA-3
Volker Stolz [Wed, 10 Apr 2013 09:11:39 +0000 (11:11 +0200)]
CI: drop version restriction.
Volker Stolz [Wed, 10 Apr 2013 09:08:17 +0000 (11:08 +0200)]
Me too.
Volker Stolz [Wed, 10 Apr 2013 08:58:30 +0000 (10:58 +0200)]
Use plugin, not package.
Volker Stolz [Wed, 10 Apr 2013 08:53:10 +0000 (10:53 +0200)]
CI: Do I want a bundle or a feature? I don't know...
Volker Stolz [Wed, 10 Apr 2013 08:41:15 +0000 (10:41 +0200)]
Preliminary continuous integration-files for Buckminster.
Erlend Kristiansen [Mon, 8 Apr 2013 20:02:16 +0000 (22:02 +0200)]
SaferRefactoring is now working for 'a simple example',
but it is still an ad hoc implementation. It is just made to work
for this specific example.
REFA-5
Erlend Kristiansen [Mon, 8 Apr 2013 19:36:42 +0000 (21:36 +0200)]
SaferRefactoring with assert statement working on 'a simple example',
but still contains a lot of debug output.
Erlend Kristiansen [Mon, 8 Apr 2013 16:54:00 +0000 (18:54 +0200)]
Changing the name of the example project from 'InNeedOfRefactoring' to
'examples'.
Found a way to manipulate changes.
Erlend Kristiansen [Fri, 5 Apr 2013 19:29:58 +0000 (21:29 +0200)]
SaferRefactoring is a mess, but is a first try on doing something with
the TextEdits in the generated Change object.
The test with ExtractTempRefactoring is moved to it's own test.
Volker Stolz [Fri, 22 Mar 2013 18:12:59 +0000 (19:12 +0100)]
Fix imports.
Erlend Kristiansen [Fri, 22 Mar 2013 17:06:41 +0000 (18:06 +0100)]
Merging conflicts.
Erlend Kristiansen [Fri, 22 Mar 2013 17:00:41 +0000 (18:00 +0100)]
Trying to discover how the Change in the Move Instance Method Refactoring is built up. Leaving SaferRefactoring.createChange in a bit of a mess.
Volker Stolz [Fri, 22 Mar 2013 15:22:09 +0000 (16:22 +0100)]
MacOS garbage
Volker Stolz [Fri, 22 Mar 2013 15:20:46 +0000 (16:20 +0100)]
Run the "Extract temp" refactoring. Requires a running workbench, so
update launch-config as well (for now, maybe there's a way around it).
REFA-4
Erlend Kristiansen [Fri, 22 Mar 2013 13:46:21 +0000 (14:46 +0100)]
Minor changes in refactoring constructors.
Erlend Kristiansen [Fri, 22 Mar 2013 12:06:33 +0000 (13:06 +0100)]
Fixing some bugs introduced when refactoring the refactorings.
Erlend Kristiansen [Wed, 20 Mar 2013 11:48:59 +0000 (12:48 +0100)]
Refactoring TestRefactoring and SaferRefactoring to extend RefaktorRefactoring. :-)
Erlend Kristiansen [Tue, 19 Mar 2013 15:27:58 +0000 (16:27 +0100)]
Refactoring the handlers to extend the abstract RefaktorHandler.