[prev in list] [next in list] [prev in thread] [next in thread] 

List:       jedit-cvs
Subject:    [ jEdit-CVS ] plugins/HtmlSideKick/src/sidekick/html HtmlParser.java,1.2,1.3 HtmlSideKickPlugin.java
From:       Dale Anson <daleanson () users ! sourceforge ! net>
Date:       2006-04-24 15:32:43
Message-ID: E1FY33L-0007BW-Vd () mail ! sourceforge ! net
[Download RAW message or body]

Update of /cvsroot/jedit/plugins/HtmlSideKick/src/sidekick/html
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv22531/src/sidekick/html

Modified Files:
	HtmlParser.java HtmlSideKickPlugin.java 
Log Message:
updated for SideKick 0.5 dependency



Index: HtmlSideKickPlugin.java
===================================================================
RCS file: /cvsroot/jedit/plugins/HtmlSideKick/src/sidekick/html/HtmlSideKickPlugin.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- HtmlSideKickPlugin.java	20 Apr 2006 04:35:47 -0000	1.2
+++ HtmlSideKickPlugin.java	24 Apr 2006 15:32:41 -0000	1.3
@@ -36,43 +36,5 @@
 public class HtmlSideKickPlugin extends EditPlugin {
 	public final static String NAME = "sidekick.html";
     
-    public static final String INIT_DONE = "sidekick.HtmlParser.initDone";
-    private static HashMap parserRegister = new HashMap();
-    
-    public static void registerParser(View view, HtmlParser parser) {
-        parserRegister.put(view, parser); 
-        initPopup(view);
-    }
-    
-    public static void unregisterParser(View view) {
-        parserRegister.remove(view);  
-    }
-    
-    private static void initPopup(View view) {
-        Boolean init_done = (Boolean)view.getRootPane().getClientProperty(INIT_DONE);
-        if (init_done != null && init_done.booleanValue()){
-            return;
-        }
-        
-        // add popup menu items
-		DockableWindowManager wm = view.getDockableWindowManager();
-		SourceTree tree = (SourceTree) (wm.getDockable("sidekick-tree"));
-		if (tree != null) {
-            tree.addPopupEntry("htmlsidekick-showall", "Show All");
-            view.getRootPane().putClientProperty(INIT_DONE, Boolean.TRUE);
-		}
-        else {
-            view.getRootPane().putClientProperty(INIT_DONE, Boolean.FALSE);   
-        }
-    }
-    
-    public static void toggleShowAll(View view) {
-        HtmlParser parser = (HtmlParser)parserRegister.get(view);
-        if (parser != null) {
-            parser.toggleShowAll();
-            parser.parse();
-        }
-    }
-    
 }
 

Index: HtmlParser.java
===================================================================
RCS file: /cvsroot/jedit/plugins/HtmlSideKick/src/sidekick/html/HtmlParser.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- HtmlParser.java	20 Apr 2006 04:35:47 -0000	1.2
+++ HtmlParser.java	24 Apr 2006 15:32:41 -0000	1.3
@@ -45,7 +45,7 @@
 import errorlist.*;
 
 
-public class HtmlParser extends SideKickParser implements EBComponent {
+public class HtmlParser extends SideKickParser {
     private View currentView = null;
     public static boolean showAll = false;
 
@@ -54,33 +54,6 @@
     }
     
     
-    /**
-     * This method is called when a buffer using this parser is selected
-     * in the specified view.
-     * @param editPane The edit pane
-     * @since SideKick 0.3.1
-     */
-    public void activate( EditPane editPane ) {
-        super.activate( editPane );
-        currentView = editPane.getView();
-        EditBus.addToBus( this );
-        HtmlSideKickPlugin.registerParser(currentView, this);
-    }
-
-    public void deactivate( EditPane editPane ) {
-        super.deactivate( editPane );
-        EditBus.removeFromBus( this );
-        HtmlSideKickPlugin.unregisterParser(currentView);
-    }
-
-    
-    protected void toggleShowAll() {
-        showAll = !showAll;   
-    }
-    
-    public void handleMessage( EBMessage msg ) {
-    }
-    
     public void parse() {
         if ( currentView != null ) {
             parse( currentView.getBuffer(), null );



-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
jEdit-CVS mailing list
jEdit-CVS@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jedit-cvs
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic