<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent posts to Discussion</title><link>https://sourceforge.net/p/practicalmacro/discussion/</link><description>Recent posts to Discussion</description><atom:link href="https://sourceforge.net/p/practicalmacro/discussion/feed.rss" rel="self"/><language>en</language><lastBuildDate>Wed, 22 Feb 2017 21:31:30 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/practicalmacro/discussion/feed.rss" rel="self" type="application/rss+xml"/><item><title>Java exception error</title><link>https://sourceforge.net/p/practicalmacro/discussion/878739/thread/511304ec/?limit=25#dbc6</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Following errors shows up in Consolse upon playing a simple macro which adds comments to the .c file. Running Eclipse Mars 4.5.2 on a Windows 7 64-bit machine.&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span class="x"&gt;java.lang.NullPointerException&lt;/span&gt;
&lt;span class="x"&gt;    at practicallymacro.util.Utilities&lt;/span&gt;&lt;span class="p"&gt;$&lt;/span&gt;&lt;span class="nv"&gt;StyledTextHandler&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nv"&gt;execute&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="err"&gt;Utilities.java:&lt;/span&gt;&lt;span class="m"&gt;403&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="x"&gt;&lt;/span&gt;
&lt;span class="x"&gt;    at org.eclipse.core.commands.Command.executeWithChecks(Command.java:493)&lt;/span&gt;
&lt;span class="x"&gt;    at org.eclipse.core.commands.ParameterizedCommand.executeWithChecks(ParameterizedCommand.java:486)&lt;/span&gt;
&lt;span class="x"&gt;    at org.eclipse.e4.core.commands.internal.HandlerServiceImpl.executeHandler(HandlerServiceImpl.java:210)&lt;/span&gt;
&lt;span class="x"&gt;    at org.eclipse.ui.internal.handlers.LegacyHandlerService.executeCommand(LegacyHandlerService.java:343)&lt;/span&gt;
&lt;span class="x"&gt;    at org.eclipse.ui.internal.handlers.LegacyHandlerService.executeCommand(LegacyHandlerService.java:330)&lt;/span&gt;
&lt;span class="x"&gt;    at practicallymacro.commands.EclipseCommand.execute(EclipseCommand.java:49)&lt;/span&gt;
&lt;span class="x"&gt;    at practicallymacro.model.EditorMacro.run(EditorMacro.java:204)&lt;/span&gt;
&lt;span class="x"&gt;    at practicallymacro.commands.MacroHandler.execute(MacroHandler.java:36)&lt;/span&gt;
&lt;span class="x"&gt;    at org.eclipse.core.commands.Command.executeWithChecks(Command.java:493)&lt;/span&gt;
&lt;span class="x"&gt;    at org.eclipse.core.commands.ParameterizedCommand.executeWithChecks(ParameterizedCommand.java:486)&lt;/span&gt;
&lt;span class="x"&gt;    at org.eclipse.e4.core.commands.internal.HandlerServiceImpl.executeHandler(HandlerServiceImpl.java:210)&lt;/span&gt;
&lt;span class="x"&gt;    at org.eclipse.e4.ui.bindings.keys.KeyBindingDispatcher.executeCommand(KeyBindingDispatcher.java:286)&lt;/span&gt;
&lt;span class="x"&gt;    at org.eclipse.e4.ui.bindings.keys.KeyBindingDispatcher.press(KeyBindingDispatcher.java:507)&lt;/span&gt;
&lt;span class="x"&gt;    at org.eclipse.e4.ui.bindings.keys.KeyBindingDispatcher.processKeyEvent(KeyBindingDispatcher.java:558)&lt;/span&gt;
&lt;span class="x"&gt;    at org.eclipse.e4.ui.bindings.keys.KeyBindingDispatcher.filterKeySequenceBindings(KeyBindingDispatcher.java:378)&lt;/span&gt;
&lt;span class="x"&gt;    at org.eclipse.e4.ui.bindings.keys.KeyBindingDispatcher.access&lt;/span&gt;&lt;span class="p"&gt;$&lt;/span&gt;&lt;span class="x"&gt;0(KeyBindingDispatcher.java:324)&lt;/span&gt;
&lt;span class="x"&gt;    at org.eclipse.e4.ui.bindings.keys.KeyBindingDispatcher&lt;/span&gt;&lt;span class="p"&gt;$&lt;/span&gt;&lt;span class="nv"&gt;KeyDownFilter&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nv"&gt;handleEvent&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="err"&gt;KeyBindingDispatcher.java:&lt;/span&gt;&lt;span class="m"&gt;86&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="x"&gt;&lt;/span&gt;
&lt;span class="x"&gt;    at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)&lt;/span&gt;
&lt;span class="x"&gt;    at org.eclipse.swt.widgets.Display.filterEvent(Display.java:1266)&lt;/span&gt;
&lt;span class="x"&gt;    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1112)&lt;/span&gt;
&lt;span class="x"&gt;    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1137)&lt;/span&gt;
&lt;span class="x"&gt;    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1122)&lt;/span&gt;
&lt;span class="x"&gt;    at org.eclipse.swt.widgets.Widget.sendKeyEvent(Widget.java:1164)&lt;/span&gt;
&lt;span class="x"&gt;    at org.eclipse.swt.widgets.Widget.sendKeyEvent(Widget.java:1160)&lt;/span&gt;
&lt;span class="x"&gt;    at org.eclipse.swt.widgets.Widget.wmChar(Widget.java:1581)&lt;/span&gt;
&lt;span class="x"&gt;    at org.eclipse.swt.widgets.Control.WM_CHAR(Control.java:4795)&lt;/span&gt;
&lt;span class="x"&gt;    at org.eclipse.swt.widgets.Canvas.WM_CHAR(Canvas.java:343)&lt;/span&gt;
&lt;span class="x"&gt;    at org.eclipse.swt.widgets.Control.windowProc(Control.java:4676)&lt;/span&gt;
&lt;span class="x"&gt;    at org.eclipse.swt.widgets.Canvas.windowProc(Canvas.java:339)&lt;/span&gt;
&lt;span class="x"&gt;    at org.eclipse.swt.widgets.Display.windowProc(Display.java:5050)&lt;/span&gt;
&lt;span class="x"&gt;    at org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native Method)&lt;/span&gt;
&lt;span class="x"&gt;    at org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java:2549)&lt;/span&gt;
&lt;span class="x"&gt;    at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3767)&lt;/span&gt;
&lt;span class="x"&gt;    at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine&lt;/span&gt;&lt;span class="p"&gt;$&lt;/span&gt;&lt;span class="x"&gt;4.run(PartRenderingEngine.java:1127)&lt;/span&gt;
&lt;span class="x"&gt;    at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:337)&lt;/span&gt;
&lt;span class="x"&gt;    at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1018)&lt;/span&gt;
&lt;span class="x"&gt;    at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:156)&lt;/span&gt;
&lt;span class="x"&gt;    at org.eclipse.ui.internal.Workbench&lt;/span&gt;&lt;span class="p"&gt;$&lt;/span&gt;&lt;span class="x"&gt;5.run(Workbench.java:694)&lt;/span&gt;
&lt;span class="x"&gt;    at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:337)&lt;/span&gt;
&lt;span class="x"&gt;    at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:606)&lt;/span&gt;
&lt;span class="x"&gt;    at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:150)&lt;/span&gt;
&lt;span class="x"&gt;    at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:139)&lt;/span&gt;
&lt;span class="x"&gt;    at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)&lt;/span&gt;
&lt;span class="x"&gt;    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:134)&lt;/span&gt;
&lt;span class="x"&gt;    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104)&lt;/span&gt;
&lt;span class="x"&gt;    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:380)&lt;/span&gt;
&lt;span class="x"&gt;    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:235)&lt;/span&gt;
&lt;span class="x"&gt;    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)&lt;/span&gt;
&lt;span class="x"&gt;    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)&lt;/span&gt;
&lt;span class="x"&gt;    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)&lt;/span&gt;
&lt;span class="x"&gt;    at java.lang.reflect.Method.invoke(Unknown Source)&lt;/span&gt;
&lt;span class="x"&gt;    at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:669)&lt;/span&gt;
&lt;span class="x"&gt;    at org.eclipse.equinox.launcher.Main.basicRun(Main.java:608)&lt;/span&gt;
&lt;span class="x"&gt;    at org.eclipse.equinox.launcher.Main.run(Main.java:1515)&lt;/span&gt;
&lt;span class="x"&gt;    at org.eclipse.equinox.launcher.Main.main(Main.java:1488)&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;

&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">bisherbas</dc:creator><pubDate>Wed, 22 Feb 2017 21:31:30 -0000</pubDate><guid>https://sourceforge.netadd18912b67404efa0cac9ee97a1140ef3b4dfd0</guid></item><item><title>'Editor Macro script (Beanshell Scripting)' command gone after upgrading to Eclipse Neon2</title><link>https://sourceforge.net/p/practicalmacro/discussion/878739/thread/bad663c6/?limit=25#3869</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Thanks a lot, it works like a charm!&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Christian Reuschling</dc:creator><pubDate>Thu, 16 Feb 2017 09:31:14 -0000</pubDate><guid>https://sourceforge.net114e2f023957816a3576766dd586c0e9b55303b5</guid></item><item><title>'Editor Macro script (Beanshell Scripting)' command gone after upgrading to Eclipse Neon2</title><link>https://sourceforge.net/p/practicalmacro/discussion/878739/thread/bad663c6/?limit=25#846c</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Sorry, it's been a while since I touched this.  I think you need to also copy the beanshell jar to the same directory.   You should already have it (if you were working before), but if not, I think this is the latest version: &lt;a href="https://sourceforge.net/projects/practicalmacro/files/PracticallyMacro_beanshell/0.1.6/"&gt;https://sourceforge.net/projects/practicalmacro/files/PracticallyMacro_beanshell/0.1.6/&lt;/a&gt;&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Ernest</dc:creator><pubDate>Wed, 15 Feb 2017 12:48:25 -0000</pubDate><guid>https://sourceforge.net93c16f653799283b02196d9e4c95a1d9124f8b9f</guid></item><item><title>'Editor Macro script (Beanshell Scripting)' command gone after upgrading to Eclipse Neon2</title><link>https://sourceforge.net/p/practicalmacro/discussion/878739/thread/bad663c6/?limit=25#2361</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;I updated to a new eclipse version today, from Luna to Neon2. I installed the newest version of practically macro by copying the PracticallyMacro_0.4.9.jar into the plugins dir. The plugin is available in eclipse. Nevertheless, my macros realized with the 'Editor Macro script (Beanshell scripting)' stopped working, the according command is not available in the list of commands anymore. Any idea what I can do?&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Christian Reuschling</dc:creator><pubDate>Wed, 15 Feb 2017 11:05:10 -0000</pubDate><guid>https://sourceforge.net8d5a10e8e32c4be451ad818336d7f051c4f0fe22</guid></item><item><title>Repeat macron on selected lines</title><link>https://sourceforge.net/p/practicalmacro/discussion/878739/thread/3734e811/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Yes Ive already insert go to next line at the end of the marco&lt;br/&gt;
Thank for this reply. At least the sortcut will be better than click/click.&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Florian HENRY</dc:creator><pubDate>Thu, 03 Mar 2016 11:59:23 -0000</pubDate><guid>https://sourceforge.netb571943b23af6db8b09f77bdb1967b4191644d17</guid></item><item><title>Repeat macron on selected lines</title><link>https://sourceforge.net/p/practicalmacro/discussion/878739/thread/3734e811/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;It does not look like this exists.  I never put anything in to treat lines (or selected lines) specially.  I think the only simple solutions are to make the macro move to the next line as part of the macro (and then keep running it with ctrl+alt+P.&lt;/p&gt;
&lt;p&gt;I don't think beanshell will help much here without having to write the whole macro in it.  It's more intended to work at the level of the individual macro execution.&lt;/p&gt;
&lt;p&gt;I haven't touched the code in some time, but I suspect the right place to build this in would be on the "Play Command..." dialog (where it currently lets you specify a number of times to execute the macro).&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Ernest</dc:creator><pubDate>Wed, 02 Mar 2016 22:23:55 -0000</pubDate><guid>https://sourceforge.netadd4ac41f8bc965719f514753c727e565296ab0c</guid></item><item><title>Repeat macron on selected lines</title><link>https://sourceforge.net/p/practicalmacro/discussion/878739/thread/3734e811/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Basically I would like to create a macro that transform SQL request into correct php&lt;/p&gt;
&lt;p&gt;SELECT test&lt;br/&gt;
FROM mytable &lt;br/&gt;
WHERE id=&lt;/p&gt;
&lt;p&gt;into&lt;/p&gt;
&lt;p&gt;$sql .=' SELECT test ';&lt;br/&gt;
$sql .=' FROM mytable ';&lt;br/&gt;
$sql .=' WHERE id= ';&lt;/p&gt;
&lt;p&gt;I've done the macro for one line, But I would like to apply it direct by selecting SQL request lines into code editor and play macro on all selected lines.&lt;/p&gt;
&lt;p&gt;Is there a way to do that ? May be using BeanShell ?&lt;/p&gt;
&lt;p&gt;Thank for your help,&lt;/p&gt;
&lt;p&gt;If this feature requere a donation I'll be happy to do it, let me know.&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Florian HENRY</dc:creator><pubDate>Wed, 02 Mar 2016 21:13:23 -0000</pubDate><guid>https://sourceforge.net237b32b2733089009d86f0ce61b62bb8880a41da</guid></item><item><title>Flex formatter issue</title><link>https://sourceforge.net/p/practicalmacro/discussion/878738/thread/35229647/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Hmm...what version of Eclipse or FlashBuilder are you using?&lt;/p&gt;
&lt;p&gt;The update site looks like it's still up  (&lt;br /&gt;
&lt;a href="http://flexformatter.googlecode.com/svn/trunk/FlexFormatter/FlexPrettyPrintCommandUpdateSite" rel="nofollow"&gt;http://flexformatter.googlecode.com/svn/trunk/FlexFormatter/FlexPrettyPrintCommandUpdateSite&lt;/a&gt;)&lt;br /&gt;
but I guess it's possible that it doesn't work with some new version of&lt;br /&gt;
Eclipse.&lt;/p&gt;
&lt;p&gt;The source code in the project is actually in CVS, not SVN (&lt;br /&gt;
&lt;a href="http://flexformatter.cvs.sourceforge.net/viewvc/flexformatter"&gt;http://flexformatter.cvs.sourceforge.net/viewvc/flexformatter/&lt;/a&gt;)&lt;/p&gt;
&lt;p&gt;Still, the update site it your best bet.  Occasionally there are problems&lt;br /&gt;
where the software doesn't install from an update site properly.  Usually&lt;br /&gt;
the fix is to uninstall and try again.  There might be errors in the log&lt;br /&gt;
file that I think is located in the .metadata directory.&lt;/p&gt;
&lt;p&gt;On Fri, Jan 30, 2015 at 2:55 AM, phil.fang &lt;a href="mailto:fangphil@users.sf.net"&gt;fangphil@users.sf.net&lt;/a&gt; wrote:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;Hi, Ernestpasour&lt;/p&gt;
&lt;p&gt;I keep using the formatter for couple years. My coding speed drop down so&lt;br /&gt;
much without the formatter.&lt;/p&gt;
&lt;p&gt;yesterday after i re-install the system, i found the update site not work&lt;br /&gt;
any more.&lt;/p&gt;
&lt;p&gt;i try the zip file and nothing happened whatever fold i unzip into,&lt;br /&gt;
/plugins, /dropins even the /features/&lt;/p&gt;
&lt;p&gt;I tried to copy your site but the svn is dead also..., the&lt;br /&gt;
FlexPrettyPrintCommandFeature_0.9.0.jar is missed.&lt;/p&gt;
&lt;p&gt;can you send me the whole site files or tell me how to get them .&lt;/p&gt;
&lt;p&gt;I know it's not forum for Flex Formatter but it's so important to me and&lt;br /&gt;
here is the only place i might connect you.&lt;/p&gt;
&lt;p&gt;please see the letter.&lt;/p&gt;
&lt;p&gt;thanks sincerely&lt;/p&gt;
&lt;p&gt;Phil Fang&lt;/p&gt;
&lt;h2 id="my-email-phil_geminiqqcom"&gt;my email: phil_gemini@qq.com&lt;/h2&gt;
&lt;p&gt;Flex formatter issue&lt;br /&gt;
&lt;a href="https://sourceforge.net/p/practicalmacro/discussion/878738/thread/35229647/?limit=25#4138"&gt;https://sourceforge.net/p/practicalmacro/discussion/878738/thread/35229647/?limit=25#4138&lt;/a&gt;&lt;/p&gt;
&lt;hr /&gt;
&lt;p&gt;Sent from sourceforge.net because pasourpalace@gmail.com is subscribed to&lt;br /&gt;
&lt;a href="https://sourceforge.net/p/practicalmacro/discussion/878738"&gt;https://sourceforge.net/p/practicalmacro/discussion/878738/&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;To unsubscribe from further messages, a project admin can change settings&lt;br /&gt;
at &lt;a href="https://sourceforge.net/p/practicalmacro/admin/discussion/forums."&gt;https://sourceforge.net/p/practicalmacro/admin/discussion/forums.&lt;/a&gt; Or,&lt;br /&gt;
if this is a mailing list, you can unsubscribe from the mailing list.&lt;/p&gt;
&lt;/blockquote&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Ernest</dc:creator><pubDate>Sat, 31 Jan 2015 00:57:34 -0000</pubDate><guid>https://sourceforge.nete889db970a6e8a439882d641435950f25fb4dbe0</guid></item><item><title>Abount the Flex formatter</title><link>https://sourceforge.net/p/practicalmacro/discussion/878738/thread/86ebea0f/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Hi,Ernest,&lt;/p&gt;
&lt;p&gt;I keep using flex format for couples years. Yesterday i found the update link is not available any more as I re-install the system. I try to update the svn and it's dead also.&lt;/p&gt;
&lt;p&gt;Basic i can not work without you plugins, which is so greet one.&lt;/p&gt;
&lt;p&gt;I create one site base on you update-site structure it should works but the last step cause error, the FlexPrettyPrintCommandFeature_0.9.0.jar missed.&lt;/p&gt;
&lt;p&gt;I really need the plugin keep works, so can you send me whole package, or tell me how i can get the whole site files.&lt;/p&gt;
&lt;p&gt;I can download the zip file and unzip three files into the eclips/plugins or dropins, nothing happen.&lt;/p&gt;
&lt;p&gt;so what i can do.&lt;/p&gt;
&lt;p&gt;I know it's not the forum for FFormat but it's the only place I can find you...&lt;/p&gt;
&lt;p&gt;thinks&lt;/p&gt;
&lt;p&gt;Phil Fang &lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Ernest</dc:creator><pubDate>Fri, 30 Jan 2015 07:38:34 -0000</pubDate><guid>https://sourceforge.net866db739c1fa198566b63d308fa1d8a105b6c606</guid></item><item><title>Examples</title><link>https://sourceforge.net/p/practicalmacro/discussion/878738/thread/d5f4a795/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Hi. Are there some examples on macros you could use for ideas?&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Ernest</dc:creator><pubDate>Thu, 13 Mar 2014 11:43:53 -0000</pubDate><guid>https://sourceforge.net2b18d7412696b4ee41f380f1c6238068e25b2972</guid></item></channel></rss>