jEdit Community - Resources for users of the jEdit Text Editor
Eclipse + Plugin dev
Submitted by WarrickF on Thursday, 4 September, 2008 - 02:47
Hi Guys,

I've inherited a plug-in that was developed for internal use. According to the documentation the process for building \ debugging is as follows:

1. Open project in Eclipse
2. File > Export > JAR File
3. Export to C:\Program Files\jEdit\jars\Plugin.jar
4. Launch JEdit
5. Go to plugin manager and enable the plugin.

This seems to be a rather tedious and takes a long time to test even the simplest change.

Can someone suggest a better way please? Ideally I'd like to be able to add break points that are triggered while using the plugin through JEdit.

I apologize if this is a newbie type question.

Thanks
Warrick
New Menu Entry in VFSBrowser
Submitted by Chemluth H. on Thursday, 28 August, 2008 - 14:23
Hello,
is it possible to add a menu item to the VFSBrowser context-menu (where stuff like rename/delete etc. is located) ?

Greetings

Chemluth
Ftp plugin with broken pipe exception
Submitted by tony1016 on Wednesday, 27 August, 2008 - 01:49
My environment is Ubuntu 8.0.4+JDK6.0+Jedit 4.3 pre15.The ftp plugin always shows a broken pipe exception.So what is a broken pipe exception??
BufferTabs 1.1.0
Submitted by thewiglaf on Tuesday, 12 August, 2008 - 02:37
I installed jEdit 4.3pre15 and thus needed to install the latest BufferTabs plugin that was released today (0.8.3 will not load on 4.3pre10). Two things:

1. You can no longer change the position of individual tabs by dragging them. Now they'll just stay in whatever position they get loaded in.

2. The jEdit site says 0.8.3 works with 4.2final and up. Unless I need to do some extra leg work to get it loaded with 4.3pre15, that's wrong.

I've decided I want to keep 4.3pre15 with our without movable tabs. Is there a way to get these tabs to change position or do we all have to wait for another release if we want to use 4.3pre15?
Searching a temporary buffer
Submitted by dcox on Wednesday, 30 July, 2008 - 13:21
Is a search of a temporary buffer without actually physically opening the buffer onto the user's screen possible?
resizing and relocating Dockable Window
Submitted by md9119 on Friday, 18 July, 2008 - 07:51
Hello,

I am writing my first plugin. I need to resize and relocate my plugin window. How do I do this? Neither of these two below do what I want:
view.setLocation(x,y); // relocates main editor
view.getDockableWindowManager().getDockableWindow(SideViewPlugin.NAME).setLocation(x, y); // this moves the JPanel to x,y _within_ the Dockable Window.

What I want to do is to move and resize the whole plugin window. How do I accomplish that?

Thank you,
Maciej
Swing dialog - RAD tool available?
Submitted by PaulCollingwood on Friday, 27 June, 2008 - 08:34
I have been experimenting with writing macros that invoke dialogs for user interaction with some success.
I have found the process of contriving the UI components within a BSH script a bit cumbersome.

Does anyone know of a (Java) RAD tool that permits the 'wysiwyg' development of dialogs, which then produces java swing directives which can then be injected into a macro script?

Alternatively, does anyone know of a Java source that encapsulates a suite of useful dialog templates as classes, so that they can be invoked from a macro, in the same way as some basic dialog types are supplied within jEdit?
Making a plugin aware of a user saving
Submitted by ewiener on Monday, 23 June, 2008 - 22:00
Is it possible to let my plugin know when a user saves a file? My plugin is used to pull text files off a remote server, and then store them on the local machine for the user to edit them. In the end, I'd like for the user to just be able to hit save, and then the plugin would take care of updating the file on the server. Is there some sort of event that is triggered when a user saves that I could use to signal the plugin to upload the modified file? Any help will be appreciated immensely.
Opening a file into jEdit in the current view
Submitted by ewiener on Monday, 23 June, 2008 - 21:34
I am new to writing plugins (and java in general). I have made a program that pulls some text files off the web and saves them on my computer. I know the paths of the files, but I can't figure out how to open them. I know this must be incredibly simple, but I haven't been able to find a simple explanation of how to do this online, nor do I have a good enough grasp of plugin development to understand the source code to plugins on this site. If anyone can explain this to me, I would be extremely grateful.
Plugin compilation
Submitted by PaulCollingwood on Thursday, 19 June, 2008 - 09:21
Hi
I have the source to the ProjectViewer plugin within which I have made a trivial modification.
Could someone advice me on the tools and command directives I need to use to create a new version of the plugin .jar file?
If the existing jar file is over-written with a the newly build version, is it just a case of restarting jEdit to utilize the modified plugin?

many thanks,
Paul
WebDAV Plugin?
Submitted by dmac on Thursday, 5 June, 2008 - 23:08
When I first started using jEdit, there was a WebDAV plugin available...but I don't see much about it any more. I don't know much about its history. Is it in need of a developer to maintain it? If so, I might be interested. It would really be useful for me.

Thanks,
Dylan
VFS.copy() ?
Submitted by Langman on Tuesday, 3 June, 2008 - 20:14
I am having problems using the VFS.copy() API to copy a file from the FTP-VFS to the local-VFS. I get a NPE before anything is copied. Is this API designed to allow coping from one VFS to another?
Should I build a Python/Django plugin?
Submitted by Ristretto on Monday, 26 May, 2008 - 00:15
I'm moving from Java to Python, and Seam to Django. I'm also ditching Eclipse. I used to use Jedit for Java dev. I'm back. I would like to have a few features available that would make learning and using Python and Django a bit easier. I'm guessing the features are already there, and I just need find them or download plugins.

I've read in the forums that using 'spaces' for tabs, and setting 'deep indent' is wise, so I've done that.
I notice that there is a django edit mode, and then I set the django type in SideKick to parsed by 'xml', so now the XML plugin show the structure of the template, and the edit mode bolds the django template language keywords. This is so totally cool as a start. Big thank yous!! to the people who put this support together.

For Python, I would love these three things. Is this available somehow? Perhaps an existing plugin can be configured do it?
- code completion for imports and methods.
- method param lookups which typing
- documentation lookups (doc strings)

If nothing exists to do this, perhaps that for good reason: It isn't needed. I've heard that Python is so well designed that a programmer can keep most of the key bits of knowledge in his/her head. I'm not there yet, and I really do like handy look ups to get info and save time.

If nothing like this exists, and you think it would be valuable, would anyone want to give me tips and pointers to writing a plugin or set of macros, or ??. I would be happy to implement a solution and commit back to the project. (At this point, I know more Java than Python.)

cheers
XPath tool is confused with namespaces
Submitted by eiku on Tuesday, 20 May, 2008 - 07:04
Hi

Is there a trivial solution for the XPath tool to recoginze and operate correctly with namespaces? For example, I have a XML document(WSDL file, I omit all the namespace declarations for better reading):

<?xml version="1.0" encoding="UTF-8"?>
  <wsdl:definitions ... >
    <wsdl:types>
      <xsd:schema ... > ... </xsd:schema>
    <wsdl:types>
  </wsdl:definitions>
If I try to execute XPath expression //types or //wsdl:types then an empty resutl is returned? As much as I know of XPath (and also experience from othe XML editors) there should be a single node as result. Is it just the the plugin is not usable or am I missing some other plugins or some knowhow (how to use jEdit).

Thanks for input,
Heiko

Usage of GUIUtilities.loadIcon
Submitted by Hamza on Saturday, 17 May, 2008 - 14:13
Hi folks,

I am trying to modify the QuickNotepad sources to add an extra button to the tool panel (QuickNotepadToolPanel.java) but whatever I do I can't seem to load a PNG file as the button icon.

I've added the following bit to QuickNotepadToolPanel.java to add the actual button:

add(makeCustomButton("msp430.foo", new ActionListener() {
public void actionPerformed(ActionEvent evt) {
QuickNotepadToolPanel.this.pad.foo();
}
}));

..and I have specified the icon files in the props file as:

QuickNotepad.foo.icon=foo.png
QuickNotepad.foo.label=Foo

the icon foo.png resides in the same folder as the java sources and the code compiles just fine but the icon is not loaded when I load the plugin and the button is just the size of a tiny dot.

If I specify an absolute path the code compiles but jEdit chokes on startup and I have to kill it.

Do I need to somehow specify the icon location in the build.xml file? Can I manually add the files to the jar itself?


Quite an easy question I guess but it has been driving me crazy so any comments/help much appreciated.


Cheers,
Hamza.
Need Tag List as found in UltraEdit
Submitted by tj_sony on Thursday, 15 May, 2008 - 11:55
Could anyone please tell me if I can use the option "Tag List" as found in "UltraEdit".
File to open automatically in buffertab mode
Submitted by tj_sony on Wednesday, 9 April, 2008 - 05:52
I have a file opened in buffertab mode - C:\temp\123.aaa.

Through some internal processing, when I click on C:\temp\123.aaa, an empty file - C:\temp\123.bbb gets created in the folder C:\temp\.

But what I need is, the empty file 123.bbb which gets created in the folder C:\temp\ should open automatically in buffertab mode instead of me doing it manually.

Could someone please help me with this.
HOWTO: Integrate RSpec on Rails with Jedit
Submitted by dpdnolan on Sunday, 30 March, 2008 - 11:20
Hi, I've hacked together a setup to load an RSpec backtrace into jEdit (in
other words, you'll be able to click the relevant failed behaviour or error
to go straight the relevant file and line).

More info here:
http://textgoeshere.org.uk/articles/2008/03/howto-integrate-rspec-on-rails-with-jedit/

Cheers,
Dave

--
Dave Nolan
http://textgoeshere.org.uk
When i try to use the jcompiler plugin i get this error
Submitted by fractal00 on Tuesday, 25 March, 2008 - 13:32
When i try to use the jjcompiler plugin i get this error:
Cannot start jcompiler.JCompilerPlyugin$ToolsJarNotFoundException: Could not find library tools.jar!
Make XML plugin play better with Beauty plugin
Submitted by xhq on Friday, 29 February, 2008 - 14:25
Hi,

I installed XML plugin and it automatically installed Beauty plugin. I tried to use beauty to use XML:XMLIntender to format an XML file but just found they can not work well together. Here is the mail I sent the other day. I post it here in hope some one can notice it.

The problem:

When invoked from Beauty plugin, incorrect IndentAmount could be used. For example, in the buffer optios, I set "Tab width" to 8 and "Indent width" to 8 and uncheck "Soft (emulated with spaces) tabs", the result IndentAmount would be 8 tabs!

I checked the code of both Beaty and XML. It seems the XML code needs to be improved. Here is the details:

In XML/xml//indent/XmlBeautifier.java, the main line reads:

return XmlIndenterPlugin.indent(text, getIndentWidth(), !getUseSoftTabs());

But the same indent() api is used in the following way, in XML/xml/indent/XmlIndenterPlugin.java, public static void indentXml( View view ):

String resultString = XmlIndenterPlugin.indent( inputString, indentAmount, indentWithTabs );

where indentAmount is calculated using:

private static int getIndentAmount( boolean indentWithTabs, Buffer buffer ) {
if ( indentWithTabs ) {
return buffer.getIndentSize() / buffer.getTabSize();
}
else {
return buffer.getIndentSize();
}
}

So, I think the same logic used in getIndentAmount() should be applied in XmlBeautifier. It might be worth adding a new static method to XmlIndenterPlugin:

public static int getIndentAmount(int indentSize, int tabSize, boolean indentWithTabs) {
if ( indentWithTabs ) {
return indentSize/ tabSize;
}
else {
return indentSize;
}
}

and refactor the original one as:

private static int getIndentAmount( boolean indentWithTabs, Buffer buffer ) {
return getIndentAmount(buffer.getIndentSize(), buffer.getTabSize(), indentWithTabs);
}

Then the line in XmlBeautifier will be:

int indentAmount = XmlIndenterPlugin.getIndentAmount(getIndentWidth(), getTabWidth(), !getUseSoftTabs());
return XmlIndenterPlugin.indent(text, indentAmount , !getUseSoftTabs());

I think this will work, but have not test it though.
User login
Browse archives
« May 2024  
MoTuWeThFrSaSu
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
 
Poll
Are you interested in language packs for jEdit?
Yes, and I could help maintain translations
26%
Yes, I'd like to have translations
32%
Indifferent
35%
No, that'd be bad (please comment)
7%
Total votes: 1093
Syndication
file   ver   dls
German Localization light   4.4.2.1   83283
Context Free Art (*.cfdg)   0.31   46056
BBEdit scheme   1.0   18596
JBuilder scheme   .001   18496
ColdFusion scheme   1.0   18025
R Edit Mode - extensive version   0.1   17474
Advanced HTML edit mode   1.0   16207
Matlab Edit Mode   1.0   16069
jEdit XP icons   1.0   15230
XP icons for jEdit   1.1   14294