Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Loading ad hoc user modules added

  • Loading branch information...
commit 5cc5c7cd80327c1645383bdfbfd6a5c2a822cd4b 1 parent 4a93747
Aleksandra Lipiec alipiec authored
7 org.erlide.wrangler.core/.project
@@ -16,12 +16,17 @@
16 16 </arguments>
17 17 </buildCommand>
18 18 <buildCommand>
  19 + <name>org.erlide.core.internal.services.builder.DialyzerBuilder</name>
  20 + <arguments>
  21 + </arguments>
  22 + </buildCommand>
  23 + <buildCommand>
19 24 <name>org.erlide.core.erlbuilder</name>
20 25 <arguments>
21 26 </arguments>
22 27 </buildCommand>
23 28 <buildCommand>
24   - <name>org.erlide.core.internal.services.builder.DialyzerBuilder</name>
  29 + <name>org.erlide.core.builder.DialyzerBuilder</name>
25 30 <arguments>
26 31 </arguments>
27 32 </buildCommand>
17 org.erlide.wrangler.core/wrangler/src/wrangler_refacs.erl
@@ -125,7 +125,7 @@
125 125 inline_var_eclipse/5, inline_var_eclipse_1/6,
126 126 get_var_name_eclipse/5, get_fun_name_eclipse/5,
127 127 run_refac_eclipse/2, input_par_prompts_eclipse/1,
128   - apply_changes_eclipse/3
  128 + apply_changes_eclipse/3, load_callback_mod_eclipse/2
129 129 ]).
130 130
131 131 -export([try_refac/3, get_log_msg/0]).
@@ -133,7 +133,6 @@
133 133 -export([init_eclipse/0]).
134 134
135 135 -include("../include/wrangler_internal.hrl").
136   --include("../include/wrangler.hrl").
137 136
138 137 -type(context():: emacs | composite_emacs).
139 138
@@ -146,7 +145,7 @@ apply_changes_eclipse(Module, Args, CandsNotToChange) ->
146 145 gen_refac:apply_changes(Module, Args, CandsNotToChange).
147 146
148 147 -spec(run_refac_eclipse(Module::module()|string()|tuple(), Args::[term()])->
149   - {ok, string()} | {change_set, [{string(), string()}], module(), #args{}}|
  148 + {ok, string()} | {change_set, [{string(), string()}], module(), tuple()}|
150 149 {error, term()}).
151 150 run_refac_eclipse(ModName, Args) ->
152 151 gen_refac:run_refac(ModName,Args).
@@ -155,6 +154,18 @@ run_refac_eclipse(ModName, Args) ->
155 154 input_par_prompts_eclipse(CallBackMod) ->
156 155 gen_refac:input_par_prompts(CallBackMod).
157 156
  157 +-spec(load_callback_mod_eclipse(Module::module(), Path::string()) ->
  158 + ok | {error, Reason::term()}).
  159 +load_callback_mod_eclipse(Module, Path) ->
  160 + code:add_patha(Path),
  161 + code:purge(list_to_atom(Module)),
  162 + case code:load_file(list_to_atom(Module)) of
  163 + {module, Module} ->
  164 + ok;
  165 + Error ->
  166 + Error
  167 + end.
  168 +
158 169 %% ====================================================================================================
159 170 %% @doc Rename a variable.
160 171 %% <p> This refactoring has a local effect, i.e., it only affects the function clause in which the refactoring is initialized.

0 comments on commit 5cc5c7c

Please sign in to comment.
Something went wrong with that request. Please try again.