SourceForge.net | 1 Apr 2012 06:19
Picon

[ jedit-Plugin Feature Requests-3481157 ] ErrorList + SmartOpen/FastOpen + Console

Plugin Feature Requests item #3481157, was opened at 2012-01-28 18:16
Message generated for change (Comment added) made by ezust
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=997936&aid=3481157&group_id=588

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Alan Ezust (ezust)
>Assigned to: Alan Ezust (ezust)
Summary: ErrorList + SmartOpen/FastOpen + Console

Initial Comment:
When I build something with ant that has a bunch of subfolders ,and there is an error in one of the files, the
error message does not contain the full path of the file, just the filename.

compile:
    [javac] Compiling 1 source file to /home/ezust/workspace/jedit/trunk/build/classes/core
    [javac] MemoryStatusWidgetFactory.java:215: ';' expected
    [javac]                             height)
    [javac]                                    ^
    [javac] 1 error

BUILD FAILED
(Continue reading)

SourceForge.net | 1 Apr 2012 08:30
Picon

[ jedit-Plugin Central Submission-3512483 ] Console 4.5

Plugin Central Submission item #3512483, was opened at 2012-03-28 10:49
Message generated for change (Comment added) made by ezust
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=625093&aid=3512483&group_id=588

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
>Status: Pending
Resolution: None
Priority: 5
Private: No
Submitted By: Alan Ezust (ezust)
Assigned to: Townsfolk (elberry)
Summary: Console 4.5

Initial Comment:
{{{ Console 4.5
    Source: Source code is in SVN in plugins/Console/tags/Console-4.5
    Announcement:
      [Alan Ezust]
        Fixed layout issue in Errors Option Pane where the NOTE: was too wide.
        Fixed bug in how Console.fgColor was set introduced in 4.4.4
        #3479436: New option: Clear console before commando/build/run.
        #2940948: Add variable ($l) for current TextArea's cursors's line number
        #3481158: Add variable ($p) for current project root dir.
        #3471524: Project option pane enhancements
        #1542700: Console crashes Swing with hyperthreaded or dualcore systems
(Continue reading)

SourceForge.net | 1 Apr 2012 09:01
Picon

[ jedit-Plugin Central Submission-3512483 ] Console 4.5

Plugin Central Submission item #3512483, was opened at 2012-03-28 10:49
Message generated for change (Comment added) made by ezust
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=625093&aid=3512483&group_id=588

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
>Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Alan Ezust (ezust)
Assigned to: Townsfolk (elberry)
Summary: Console 4.5

Initial Comment:
{{{ Console 4.5
    Source: Source code is in SVN in plugins/Console/tags/Console-4.5
    Announcement:
      [Alan Ezust]
        Fixed layout issue in Errors Option Pane where the NOTE: was too wide.
        Fixed bug in how Console.fgColor was set introduced in 4.4.4
        #3479436: New option: Clear console before commando/build/run.
        #2940948: Add variable ($l) for current TextArea's cursors's line number
        #3481158: Add variable ($p) for current project root dir.
        #3471524: Project option pane enhancements
        #1542700: Console crashes Swing with hyperthreaded or dualcore systems
(Continue reading)

SourceForge.net | 1 Apr 2012 09:02
Picon

[ jedit-Plugin Feature Requests-3481157 ] ErrorList + SmartOpen/FastOpen + Console

Plugin Feature Requests item #3481157, was opened at 2012-01-28 18:16
Message generated for change (Comment added) made by ezust
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=997936&aid=3481157&group_id=588

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
>Status: Closed
>Resolution: Fixed
Priority: 5
Private: No
Submitted By: Alan Ezust (ezust)
Assigned to: Alan Ezust (ezust)
Summary: ErrorList + SmartOpen/FastOpen + Console

Initial Comment:
When I build something with ant that has a bunch of subfolders ,and there is an error in one of the files, the
error message does not contain the full path of the file, just the filename.

compile:
    [javac] Compiling 1 source file to /home/ezust/workspace/jedit/trunk/build/classes/core
    [javac] MemoryStatusWidgetFactory.java:215: ';' expected
    [javac]                             height)
    [javac]                                    ^
    [javac] 1 error

BUILD FAILED
(Continue reading)

SourceForge.net | 1 Apr 2012 10:08
Picon

[ jedit-Bugs-3501020 ] EncodingsOptionPane: can't dnd between pingponglists

Bugs item #3501020, was opened at 2012-03-09 23:19
Message generated for change (Settings changed) made by jarekczek
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=100588&aid=3501020&group_id=588

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: normal bug
Status: Open
Resolution: None
>Priority: 6
Private: No
Submitted By: Alan Ezust (ezust)
Assigned to: Matthieu Casanova (kpouer)
Summary: EncodingsOptionPane: can't dnd between pingponglists

Initial Comment:
I can't seem to drag and drop between available and selected encodings.
It never turns into a rectangle, it is always a red circle with a diagonal line over it.
This is new to 5.0pre1 - I can not reproduce this in 4.5.

----------------------------------------------------------------------

Comment By: Alan Ezust (ezust)
Date: 2012-03-13 08:54

Message:
If the first pane to show up when you go to global options is the encoding
(Continue reading)

Jarek Czekalski | 1 Apr 2012 10:22
Picon
Favicon
Gravatar

service manager javadoc - new service

Alan, I guess a new service should be mentioned in ServiceManager javadoc.

But I write mainly to find out how does one set the preferred service, 
as used in your new service:

         // See if user set a preferred service
         if (finders.length > 1)
             myFinder = jEdit.getProperty("fileopener.service", myFinder);

Jarek

------------------------------------------------------------------------------
This SF email is sponsosred by:
Try Windows Azure free for 90 days Click Here 
http://p.sf.net/sfu/sfd2d-msazure
--

-- 
-----------------------------------------------
jEdit Developers' List
jEdit-devel <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jedit-devel

Matthieu Casanova | 1 Apr 2012 12:02
Picon

Coding style: Use of static import in jEdit's sources

Hi,

I wanted to have your opinion about the use of static import in jEdit:

For example instead of using

jEdit.getProperty("something");

We do first

import static org.gjt.sp.jedit.jEdit.getProperty;

then only call
getProperty("something");


I don't line this new syntax because it may be confusing about where the method comes from.
So in your opinion should we use this syntax or not ? (if not, there are a few places where it is 
already used and should be removed.

Matthieu
------------------------------------------------------------------------------
This SF email is sponsosred by:
Try Windows Azure free for 90 days Click Here 
http://p.sf.net/sfu/sfd2d-msazure
--

-- 
-----------------------------------------------
jEdit Developers' List
jEdit-devel <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jedit-devel
SourceForge.net | 1 Apr 2012 12:11
Picon

[ jedit-Bugs-3501020 ] EncodingsOptionPane: can't dnd between pingponglists

Bugs item #3501020, was opened at 2012-03-09 23:19
Message generated for change (Comment added) made by kpouer
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=100588&aid=3501020&group_id=588

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: normal bug
Status: Open
Resolution: None
Priority: 6
Private: No
Submitted By: Alan Ezust (ezust)
Assigned to: Matthieu Casanova (kpouer)
Summary: EncodingsOptionPane: can't dnd between pingponglists

Initial Comment:
I can't seem to drag and drop between available and selected encodings.
It never turns into a rectangle, it is always a red circle with a diagonal line over it.
This is new to 5.0pre1 - I can not reproduce this in 4.5.

----------------------------------------------------------------------

>Comment By: Matthieu Casanova (kpouer)
Date: 2012-04-01 03:11

Message:
If you have any hint about this but, I'm interested.
I can reproduce it but have no idea of the reason.
I debugged, the canImport(JComponent comp, DataFlavor[] transferFlavors)
method of my TransferHandler is not called when the bug happens,
but my TransferHandler is  initialized and declared as transfer handler for
the two lists.
When switching from and to the EncodingOptionPane the init() method has
already been called so I don't see the difference.
Maybe the removeNotify() or something like that is called somewhere but I
didn't found it.

----------------------------------------------------------------------

Comment By: Alan Ezust (ezust)
Date: 2012-03-13 08:54

Message:
If the first pane to show up when you go to global options is the encoding
option pane, something is not initialized properly. Drag works, drop fails.

If you switch optionpanes before trying your first drag between
pingponglists, then it works.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=100588&aid=3501020&group_id=588

------------------------------------------------------------------------------
This SF email is sponsosred by:
Try Windows Azure free for 90 days Click Here 
http://p.sf.net/sfu/sfd2d-msazure
--

-- 
-----------------------------------------------
jEdit Developers' List
jEdit-devel <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jedit-devel

Matthieu Casanova | 1 Apr 2012 13:26
Picon

Re: [ jEdit-commits ] SF.net SVN: jedit:[21524] jEdit/trunk/org/jedit/core

Hi Alan, what is the purpose of that service ?

Is it an abstraction level to provide other ways to open a file than opening it in a textarea (it could be opened in a browser or something like that ?)

2012/4/1 <ezust <at> users.sourceforge.net>
Revision: 21524
         http://jedit.svn.sourceforge.net/jedit/?rev=21524&view=rev
Author:   ezust
Date:     2012-04-01 04:49:02 +0000 (Sun, 01 Apr 2012)
Log Message:
-----------
Added a new service called "FileFinder".

Modified Paths:
--------------
   jEdit/trunk/org/jedit/core/MigrationService.java

Added Paths:
-----------
   jEdit/trunk/org/jedit/core/FileOpenerService.java

Added: jEdit/trunk/org/jedit/core/FileOpenerService.java
===================================================================
--- jEdit/trunk/org/jedit/core/FileOpenerService.java                           (rev 0)
+++ jEdit/trunk/org/jedit/core/FileOpenerService.java   2012-04-01 04:49:02 UTC (rev 21524)
<at> <at> -0,0 +1,73 <at> <at>
+/* FileOpenerService.java
+ * :tabSize=8:indentSize=8:noTabs=false:
+ * :folding=explicit:collapseFolds=1:
+ *
+ * Copyright © 2012 Alan Ezust
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or any later version.
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
+ */
+
+package org.jedit.core;
+
+import org.gjt.sp.jedit.ServiceManager;
+import org.gjt.sp.jedit.View;
+import org.gjt.sp.jedit.jEdit;
+import org.gjt.sp.util.Log;
+
+/**  File Opener Service.
+  *
+  *  Plugins such as FastOpen or SmartOpen can offer
+  *  this as a service to other plugins such as ErrorList that can use
+  *  it to open files when, for example, the error message only provides
+  *  a filename and not an absolute path.
+  *
+  *  A response to SF.net ticket #3481157
+  *
+  *   <at> since jEdit 5.0pre1
+  *   <at> author Alan Ezust
+  */
+abstract public class FileOpenerService
+{
+       /** Opens a file with an absolute path that has the given filename.
+         *   Can cause a dialog to popup asking the user for a choice.
+         *   <at> param fileName the file name to match on
+         *   <at> param view the parent View
+        */
+       abstract public void openFile(String fileName, View view);
+
+       /** Searches available FileOpenerServices and uses the
+       *   preferred one based on properties to find a file.
+        */
+       static public void open(String fileName, View view)
+       {
+               String[] finders = ServiceManager.getServiceNames(FileOpenerService.class);
+
+               // No installed finders, do nothing
+               if (finders.length == 0) return;
+
+               String myFinder = finders[0];
+               // See if user set a preferred service
+               if (finders.length > 1)
+                       myFinder = jEdit.getProperty("fileopener.service", myFinder);
+
+               // try to get the service
+               Object obj = ServiceManager.getService(FileOpenerService.class, myFinder);
+
+               // Preferred service is not found, use the only one available instead
+               if ((obj == null) && (myFinder != finders[0]))
+                       obj = ServiceManager.getService(FileOpenerService.class, finders[0]);
+               // Open the file!
+               ((FileOpenerService)obj).openFile(fileName, view);
+       }
+}

Modified: jEdit/trunk/org/jedit/core/MigrationService.java
===================================================================
--- jEdit/trunk/org/jedit/core/MigrationService.java    2012-03-31 19:25:39 UTC (rev 21523)
+++ jEdit/trunk/org/jedit/core/MigrationService.java    2012-04-01 04:49:02 UTC (rev 21524)
<at> <at> -1,5 +1,4 <at> <at>
-/*
- * jEdit - Programmer's Text Editor
+/* MigrationService.java
 * :tabSize=8:indentSize=8:noTabs=false:
 * :folding=explicit:collapseFolds=1:
 *
<at> <at> -23,16 +22,16 <at> <at>

 /** A Migration service.
 * There is currently only one concrete implementation of this interface and no
- * general way to add new MigrationServices yet.
- *
+ * general way to add new MigrationServices yet.
+ * <br />
 * The goal of migration is usually to replace old properties or data files
- * with a new set, located elsewhere. The fact is that depending on where
+ * with a new set, located elsewhere. The fact is that depending on where
 * the data needs to be updated, the migration may need to be done at
-*  different places during jEdit's startup.
+*  different places during jEdit's startup. <br />
 * There is no specific time that all migration services are called currently.
- * The service and interface exists primarily you don't need to add a compilation
- * dependency in the org.gjt.sp.jEdit class of your MigrationService class.
- *
+ * The service and interface exists primarily so you don't need to add a compilation
+ * dependency of the org.gjt.sp.jEdit class to your MigrationService class. <br />
+ * <br />
 * Concrete instances need to gurantee that the migration itself is only done
 * once.
 *

This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.


------------------------------------------------------------------------------
This SF email is sponsosred by:
Try Windows Azure free for 90 days Click Here
http://p.sf.net/sfu/sfd2d-msazure
_______________________________________________
jEdit-CVS mailing list
jEdit-CVS <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jedit-cvs

------------------------------------------------------------------------------
This SF email is sponsosred by:
Try Windows Azure free for 90 days Click Here 
http://p.sf.net/sfu/sfd2d-msazure
--

-- 
-----------------------------------------------
jEdit Developers' List
jEdit-devel <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jedit-devel
SourceForge.net | 1 Apr 2012 13:39
Picon

[ jedit-Feature Requests-3478916 ] Registers window: close floating on paste

Feature Requests item #3478916, was opened at 2012-01-24 08:04
Message generated for change (Comment added) made by jarekczek
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=350588&aid=3478916&group_id=588

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
>Status: Closed
>Resolution: Accepted
Priority: 5
Private: No
Submitted By: Jarek Czekalski (jarekczek)
>Assigned to: Jarek Czekalski (jarekczek)
Summary: Registers window: close floating on paste

Initial Comment:
No objections to the registers window when it is docked. But if it is not yet activated and I open it, then
after a paste there is a problem. I am unable to close it quickly because the focus went to an editpane. So I
suggest one of the following:

1. Don't transfer the focus to an editpane if the registers window is in floating state.
2. Transfer, but close also.
3. A more sophisticated, configurable behaviour.

Simplest to do is 1 which would resemble the behaviour before last changes to this window, for fr #3437779.
https://sourceforge.net/tracker/index.php?func=detail&aid=3437779&group_id=588&atid=350588

----------------------------------------------------------------------

>Comment By: Jarek Czekalski (jarekczek)
Date: 2012-04-01 04:39

Message:
Implemented version 2 in r21539.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=350588&aid=3478916&group_id=588

------------------------------------------------------------------------------
This SF email is sponsosred by:
Try Windows Azure free for 90 days Click Here 
http://p.sf.net/sfu/sfd2d-msazure
--

-- 
-----------------------------------------------
jEdit Developers' List
jEdit-devel <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jedit-devel


Gmane