Rank: 3406 based on 41 downloads (last 30 days) and 3 files submitted
photo

Andreas J.

E-mail

Personal Profile:
Professional Interests:

 

Watch this Author's files

 

Files Posted by Andreas View all
Updated   File Tags Downloads
(last 30 days)
Comments Rating
02 Jul 2014 Screenshot extend Matlab Editors callback Extends the editor features. Closing brackets, Operator. Templates, Keyboard Shortcuts Author: Andreas J. matlab, editor, keytypedcallback, auto insert, script templates, keyboard shortcuts 28 8
23 Apr 2014 Screenshot Color Object Color Object, Accapets/Converts Hex, Java, Matlab, VB and RGB255 Author: Andreas J. color, colors 6 0
23 Oct 2013 Screenshot Translate Excel Formulas Between English and German (office 2007) Translates Excel formulas between English and Germna Author: Andreas J. excel formula transla... 7 0
Comments and Ratings by Andreas View all
Updated File Comments Rating
06 Jun 2014 extend Matlab Editors callback Extends the editor features. Closing brackets, Operator. Templates, Keyboard Shortcuts Author: Andreas J.

With the following code you can use CTRL + E instead of CTRL + D to opened selected functions, it automaticly extends the now opened editor also.

ctrlOnlyFlag = ctrlFlag && ~shiftFlag && ~altFlag;
%% CTRL + E
if ctrlOnlyFlag && evnt.getKeyCode == evnt.VK_E
% Überladenes CTRL + D von Matlab
str = daEdit.mEditor.SelectedText;
fprintf('Strg+D: "%s" in "%s"\n',str, char(daEdit.mJavaEditor.getShortName))
edit(str)
end

06 Jun 2014 extend Matlab Editors callback Extends the editor features. Closing brackets, Operator. Templates, Keyboard Shortcuts Author: Andreas J.

BugReport: If you have multiple editors opened (like 30+, depends on your computer) the extend editor function will take a while to finish. e.g. if you use the edit function it can take a while until the "Busy" label is removed from matlabs bottom bar..

This bug will be fixed in a future release.

21 May 2014 extend Matlab Editors callback Extends the editor features. Closing brackets, Operator. Templates, Keyboard Shortcuts Author: Andreas J.

I currently use a custom keyboard shortcut to delete the line i'm currently on quite a lot. If you want to use it also add following code in daEditor.DaEditorCallbacks:runShortcutKey

ctrlShiftFlag = ctrlFlag && shiftFlag && ~altFlag;
if ctrlShiftFlag && evnt.getKeyCode == evnt.VK_Y
% remove Current Line - multiple lines at once possible
linSize = numel(daEdit.getTextByLine(daEdit.selection(3)));
if linSize == 0
offS = -2;
offE = -1;
else
offS = -2;
offE = 0;
end
posS = daEdit.idx2pos(daEdit.selection(1),0)+offS;
posE = daEdit.idx2pos(daEdit.selection(3),linSize)+offE;

daEdit.repText('',posS,posE);
end

03 Apr 2014 Arrow3 Version 5 Draws lines with directional arrowheads. Author: Tom Davis

sorry i didn't want to submit the last voting. I didn't read the "relative to the PlotBox diagonal" at the time i was about to write a critic, but as i reread the description i closed the tab.

But i still think that this is an annoying feature, i would like it more if i could choose wether it should be relative or a fix size. I also don't like that it clears the axes. I know a workaround but it's still annoying me everytime i have to use arrow3. Just my opinion.

02 Apr 2014 Arrow3 Version 5 Draws lines with directional arrowheads. Author: Tom Davis

Comments and Ratings on Andreas' Files View all
Updated File Comment by Comments Rating
06 Jun 2014 extend Matlab Editors callback Extends the editor features. Closing brackets, Operator. Templates, Keyboard Shortcuts Author: Andreas J. J., Andreas

With the following code you can use CTRL + E instead of CTRL + D to opened selected functions, it automaticly extends the now opened editor also.

ctrlOnlyFlag = ctrlFlag && ~shiftFlag && ~altFlag;
%% CTRL + E
if ctrlOnlyFlag && evnt.getKeyCode == evnt.VK_E
% Überladenes CTRL + D von Matlab
str = daEdit.mEditor.SelectedText;
fprintf('Strg+D: "%s" in "%s"\n',str, char(daEdit.mJavaEditor.getShortName))
edit(str)
end

06 Jun 2014 extend Matlab Editors callback Extends the editor features. Closing brackets, Operator. Templates, Keyboard Shortcuts Author: Andreas J. J., Andreas

BugReport: If you have multiple editors opened (like 30+, depends on your computer) the extend editor function will take a while to finish. e.g. if you use the edit function it can take a while until the "Busy" label is removed from matlabs bottom bar..

This bug will be fixed in a future release.

21 May 2014 extend Matlab Editors callback Extends the editor features. Closing brackets, Operator. Templates, Keyboard Shortcuts Author: Andreas J. J., Andreas

I currently use a custom keyboard shortcut to delete the line i'm currently on quite a lot. If you want to use it also add following code in daEditor.DaEditorCallbacks:runShortcutKey

ctrlShiftFlag = ctrlFlag && shiftFlag && ~altFlag;
if ctrlShiftFlag && evnt.getKeyCode == evnt.VK_Y
% remove Current Line - multiple lines at once possible
linSize = numel(daEdit.getTextByLine(daEdit.selection(3)));
if linSize == 0
offS = -2;
offE = -1;
else
offS = -2;
offE = 0;
end
posS = daEdit.idx2pos(daEdit.selection(1),0)+offS;
posE = daEdit.idx2pos(daEdit.selection(3),linSize)+offE;

daEdit.repText('',posS,posE);
end

30 Sep 2013 extend Matlab Editors callback Extends the editor features. Closing brackets, Operator. Templates, Keyboard Shortcuts Author: Andreas J. J., Andreas

Thanks for your feedback Jonathan Sullivan. I'll look into it as soon as i have time for it!

27 Sep 2013 extend Matlab Editors callback Extends the editor features. Closing brackets, Operator. Templates, Keyboard Shortcuts Author: Andreas J. Sullivan, Jonathan

This is great. I like the idea. I have a few comments.

First off, there is a somewhat distracting flashing of the editor window when the "+=" type of substitution is occurring. Not a big deal, but it would be nice to fix it.

Secondly, the colorization of the breakpoint bar wasn't working. It couldn't find it by the .getComponent calls you hard coded in. I do have a solution that will dynamically find it. It is below. Notice the change in the number of arguments to the function colorizeBreakPointBar.

function colorizeBreakPointBar(jMainPane,color)
[names, access] = findAllComponents(jMainPane);
a = access(strcmpi(names,'BreakpointView$2'));
for jj = 1:length(a)
inds = a{jj};
this = jMainPane;
for ii = 1:length(inds)
this = this.getComponent(inds(ii));
end
this.set('background',color(1:3));
end

function [names, access] = findAllComponents(jMainPane,names,access,access_base)

cmps = jMainPane.getComponents;

if nargin == 1;
names = {};
access = {};
access_base = [];
end

for ii = 1:length(cmps)
c = regexp(char(cmps(ii).toString),'\.([^\[\.]+)\[','tokens');
names{end+1} = c{1}{1};
access{end+1} = [access_base ii-1];

[names, access] = findAllComponents(jMainPane.getComponent(ii-1),names,access,access{end});

end

names = names(:);
access = access(:);

Contact us