Changeset 1117


Ignore:
Timestamp:
Jun 28, 2011, 9:01:57 PM (6 years ago)
Author:
stefan
Message:

some more templates

Location:
trunk
Files:
2 added
5 edited
1 moved

Legend:

Unmodified
Added
Removed
  • trunk/data/codehelper/liveTemplates.xml

    r1116 r1117  
    5858    <argument name="title"/>
    5959  </command>
    60   <command name="it" usage="\textit{@text@}@|@" hint="italic">
     60  <!-- Font styles -->
     61  <command name="bf" usage="\textbf{@text@}@|@" hint="bold font">
    6162    <argument name="text"/>
    6263  </command>
    63   <command name="bf" usage="\textbf{@text@}@|@" hint="bold">
     64  <command name="it" usage="\textit{@text@}@|@" hint="italic font">
    6465    <argument name="text"/>
    6566  </command>
    66   <command name="tt" usage="\texttt{@text@}@|@" hint="type writer">
     67  <command name="rm" usage="\textrm{@text@}@|@" hint="roman font">
     68    <argument name="text"/>
     69  </command>
     70  <command name="sc" usage="\textsc{@text@}@|@" hint="small caps">
     71    <argument name="text"/>
     72  </command>
     73  <command name="sf" usage="\textsf{@text@}@|@" hint="sans serif font">
     74    <argument name="text"/>
     75  </command>
     76  <command name="sl" usage="\textsl{@text@}@|@" hint="slanted font">
     77    <argument name="text"/>
     78  </command>
     79  <command name="tt" usage="\texttt{@text@}@|@" hint="type writer font">
    6780    <argument name="text"/>
    6881  </command>
  • trunk/scripts/liveTemplatesToHtml.scala

    r902 r1117  
    11import scala.xml.XML
    22
    3 val xml = XML.loadFile("../data/codehelper/tabCompletion.xml")
     3val xml = XML.loadFile("data/codehelper/liveTemplates.xml")
    44
    55val commands = xml \ "command"
  • trunk/src/jlatexeditor/SCEManager.java

    r1112 r1117  
    3434  private static BackgroundParser backgroundParser = null;
    3535  private static StaticCommandsReader latexCommands = new StaticCommandsReader("data/codehelper/commands.xml");
    36   private static StaticCommandsReader tabCompletions = new StaticCommandsReader("data/codehelper/tabCompletion.xml");
     36  private static StaticCommandsReader tabCompletions = new StaticCommandsReader("data/codehelper/liveTemplates.xml");
    3737
    3838  public static SCEManagerInteraction getInstance() {
  • trunk/src/jlatexeditor/performance/Performance.java

    r969 r1117  
    2929public class Performance {
    3030  private static StaticCommandsReader latexCommands = new StaticCommandsReader("data/codehelper/commands.xml");
    31   private static StaticCommandsReader tabCompletions = new StaticCommandsReader("data/codehelper/tabCompletion.xml");
     31  private static StaticCommandsReader tabCompletions = new StaticCommandsReader("data/codehelper/liveTemplates.xml");
    3232  private static BackgroundParser backgroundParser = null;
    3333
  • trunk/src/jlatexeditor/quickhelp/LatexQuickHelp.java

    r744 r1117  
    11package jlatexeditor.quickhelp;
    22
     3import de.endrullis.utils.CollectionUtils;
     4import jlatexeditor.PackagesExtractor;
    35import sce.component.SCEDocument;
    46import sce.quickhelp.QuickHelp;
     7import util.Function1;
    58import util.StreamUtils;
    69
    7 import java.io.BufferedReader;
    8 import java.io.FileNotFoundException;
    9 import java.io.IOException;
    10 import java.io.InputStreamReader;
     10import java.io.*;
     11import java.net.MalformedURLException;
    1112import java.net.URL;
    12 import java.util.Enumeration;
    13 import java.util.Hashtable;
     13import java.net.URLStreamHandler;
     14import java.net.URLStreamHandlerFactory;
     15import java.util.*;
    1416import java.util.logging.Level;
    1517import java.util.logging.Logger;
     
    5961    this.directory = directory;
    6062
    61     // Open the table of contents
     63    HelpUrlHandler.register();
     64
     65    System.out.println(1);
     66    try {
     67      new URL("help:asd//test").getContent();
     68    } catch (IOException e) {
     69      e.printStackTrace();
     70    }
     71
     72    // Open the table of contents
    6273    String toc_file = directory + "ltx-2.html";
    6374
     
    123134    if (url == null) return null;
    124135
    125     return url.toString();
     136    return "help:" + url.toString();
    126137  }
    127138
     
    131142  }
    132143
    133   public void setDocument(SCEDocument document) {
     144  public void setDocument(SCEDocument document) {
    134145    this.document = document;
    135146  }
  • trunk/src/sce/quickhelp/QuickHelpPane.java

    r1050 r1117  
    1515import java.beans.PropertyChangeListener;
    1616import java.io.IOException;
     17import java.net.URL;
     18import java.net.URLConnection;
     19import java.net.URLStreamHandler;
    1720
    1821/**
     
    134137        }
    135138      } catch (IOException e1) {
    136         System.out.println("SCEPaneUI: " + e1);
     139        System.err.println("SCEPaneUI: " + e1);
    137140      }
    138141      e.consume();
Note: See TracChangeset for help on using the changeset viewer.