org.eclipse.mylyn.wikitext.ui_1.6.1.v20120425-0100

16:47:13.110 INFO  jd.cli.Main - Decompiling org.eclipse.mylyn.wikitext.ui_1.6.1.v20120425-0100.jar
package org.eclipse.mylyn.wikitext.ui.commands;

import java.util.Iterator;
import org.eclipse.core.commands.AbstractHandler;
import org.eclipse.core.commands.ExecutionEvent;
import org.eclipse.core.commands.ExecutionException;
import org.eclipse.core.resources.IFile;
import org.eclipse.core.runtime.IAdaptable;
import org.eclipse.jface.dialogs.MessageDialog;
import org.eclipse.jface.viewers.ISelection;
import org.eclipse.jface.viewers.IStructuredSelection;
import org.eclipse.mylyn.internal.wikitext.ui.editor.MarkupEditor;
import org.eclipse.mylyn.wikitext.core.WikiText;
import org.eclipse.mylyn.wikitext.core.parser.markup.MarkupLanguage;
import org.eclipse.osgi.util.NLS;
import org.eclipse.ui.IWorkbench;
import org.eclipse.ui.IWorkbenchPage;
import org.eclipse.ui.IWorkbenchWindow;
import org.eclipse.ui.PlatformUI;
import org.eclipse.ui.handlers.HandlerUtil;

public abstract class AbstractMarkupResourceHandler
  extends AbstractHandler
{
  protected MarkupLanguage markupLanguage;
  private IStructuredSelection selection;
  
  public Object execute(ExecutionEvent event)
    throws ExecutionException
  {
    ISelection currentSelection = selection;
    if (currentSelection == null) {
      try
      {
        currentSelection = computeSelection(event);
      }
      catch (Exception localException) {}
    }
    if ((currentSelection instanceof IStructuredSelection))
    {
      IStructuredSelection structuredSelection = (IStructuredSelection)currentSelection;
      Iterator<Object> it = structuredSelection.iterator();
      while (it.hasNext())
      {
        Object o = it.next();
        IFile file = null;
        if ((o instanceof IAdaptable)) {
          file = (IFile)((IAdaptable)o).getAdapter(IFile.class);
        }
        if (file != null)
        {
          String name = file.getName();
          int idxOfDot = name.lastIndexOf('.');
          if (idxOfDot != -1) {
            name = name.substring(0, idxOfDot);
          }
          MarkupLanguage prev = markupLanguage;
          try
          {
            if (markupLanguage == null)
            {
              markupLanguage = MarkupEditor.loadMarkupLanguagePreference(file);
              if (markupLanguage == null) {
                markupLanguage = WikiText.getMarkupLanguageForFilename(file.getName());
              }
              if (markupLanguage == null)
              {
                MessageDialog.openError(
                  PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), 
                  Messages.AbstractMarkupResourceHandler_unexpectedError, NLS.bind(
                  Messages.AbstractMarkupResourceHandler_markupLanguageMappingFailed, 
                  new Object[] { file.getName() }));
                return null;
              }
            }
            handleFile(file, name);
          }
          finally
          {
            markupLanguage = prev;
          }
          markupLanguage = prev;
        }
      }
    }
    return null;
  }
  
  protected ISelection computeSelection(ExecutionEvent event)
  {
    ISelection selection = HandlerUtil.getActiveMenuSelection(event);
    if (!(selection instanceof IStructuredSelection)) {
      selection = HandlerUtil.getActiveMenuEditorInput(event);
    }
    if (!(selection instanceof IStructuredSelection)) {
      selection = HandlerUtil.getCurrentSelection(event);
    }
    if (!(selection instanceof IStructuredSelection)) {
      selection = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage().getSelection();
    }
    return selection;
  }
  
  protected abstract void handleFile(IFile paramIFile, String paramString)
    throws ExecutionException;
  
  public MarkupLanguage getMarkupLanguage()
  {
    return markupLanguage;
  }
  
  public void setMarkupLanguage(MarkupLanguage markupLanguage)
  {
    this.markupLanguage = markupLanguage;
  }
  
  public IStructuredSelection getSelection()
  {
    return selection;
  }
  
  public void setSelection(IStructuredSelection selection)
  {
    this.selection = selection;
  }
}

/* Location:
 * Qualified Name:     org.eclipse.mylyn.wikitext.ui.commands.AbstractMarkupResourceHandler
 * Java Class Version: 5 (49.0)
 * JD-Core Version:    0.7.1
 */
package org.eclipse.mylyn.wikitext.ui.commands;

import java.io.ByteArrayInputStream;
import java.lang.reflect.InvocationTargetException;
import org.eclipse.core.resources.IFile;
import org.eclipse.core.runtime.IProgressMonitor;
import org.eclipse.jface.operation.IRunnableWithProgress;

class ConvertMarkupToHtml$2
  implements IRunnableWithProgress
{
  ConvertMarkupToHtml$2(ConvertMarkupToHtml paramConvertMarkupToHtml, IFile paramIFile, String paramString) {}
  
  public void run(IProgressMonitor monitor)
    throws InvocationTargetException, InterruptedException
  {
    try
    {
      if (val$newFile.exists()) {
        val$newFile.setContents(new ByteArrayInputStream(val$xhtmlContent.getBytes("utf-8")), false, true, 
          monitor);
      } else {
        val$newFile.create(new ByteArrayInputStream(val$xhtmlContent.getBytes("utf-8")), false, monitor);
      }
      val$newFile.setCharset("utf-8", monitor);
    }
    catch (Exception e)
    {
      throw new InvocationTargetException(e);
    }
  }
}

/* Location:
 * Qualified Name:     org.eclipse.mylyn.wikitext.ui.commands.ConvertMarkupToHtml.2
 * Java Class Version: 5 (49.0)
 * JD-Core Version:    0.7.1
 */
package org.eclipse.mylyn.wikitext.ui.commands;

import java.io.ByteArrayInputStream;
import java.lang.reflect.InvocationTargetException;
import org.eclipse.core.resources.IFile;
import org.eclipse.core.runtime.IProgressMonitor;
import org.eclipse.jface.operation.IRunnableWithProgress;

class ConvertMarkupToEclipseHelp$1
  implements IRunnableWithProgress
{
  ConvertMarkupToEclipseHelp$1(ConvertMarkupToEclipseHelp paramConvertMarkupToEclipseHelp, IFile paramIFile, String paramString) {}
  
  public void run(IProgressMonitor monitor)
    throws InvocationTargetException, InterruptedException
  {
    try
    {
      if (val$newFile.exists()) {
        val$newFile.setContents(new ByteArrayInputStream(val$tocXml.getBytes("utf-8")), false, true, 
          monitor);
      } else {
        val$newFile.create(new ByteArrayInputStream(val$tocXml.getBytes("utf-8")), false, monitor);
      }
      val$newFile.setCharset("utf-8", monitor);
    }
    catch (Exception e)
    {
      throw new InvocationTargetException(e);
    }
  }
}

/* Location:
 * Qualified Name:     org.eclipse.mylyn.wikitext.ui.commands.ConvertMarkupToEclipseHelp.1
 * Java Class Version: 5 (49.0)
 * JD-Core Version:    0.7.1
 */
package org.eclipse.mylyn.wikitext.ui.commands;

import java.io.ByteArrayInputStream;
import java.lang.reflect.InvocationTargetException;
import org.eclipse.core.resources.IFile;
import org.eclipse.core.runtime.IProgressMonitor;
import org.eclipse.jface.operation.IRunnableWithProgress;

class ConvertMarkupToDocbook$1
  implements IRunnableWithProgress
{
  ConvertMarkupToDocbook$1(ConvertMarkupToDocbook paramConvertMarkupToDocbook, IFile paramIFile, String paramString) {}
  
  public void run(IProgressMonitor monitor)
    throws InvocationTargetException, InterruptedException
  {
    try
    {
      if (val$newFile.exists()) {
        val$newFile.setContents(new ByteArrayInputStream(val$docbook.getBytes("utf-8")), false, true, 
          monitor);
      } else {
        val$newFile.create(new ByteArrayInputStream(val$docbook.getBytes("utf-8")), false, monitor);
      }
      val$newFile.setCharset("utf-8", monitor);
    }
    catch (Exception e)
    {
      throw new InvocationTargetException(e);
    }
  }
}

/* Location:
 * Qualified Name:     org.eclipse.mylyn.wikitext.ui.commands.ConvertMarkupToDocbook.1
 * Java Class Version: 5 (49.0)
 * JD-Core Version:    0.7.1
 */
package org.eclipse.mylyn.wikitext.ui.commands;

import java.io.ByteArrayInputStream;
import java.lang.reflect.InvocationTargetException;
import org.eclipse.core.resources.IFile;
import org.eclipse.core.runtime.IProgressMonitor;
import org.eclipse.jface.operation.IRunnableWithProgress;

public class ConvertMarkupToDocbook
  extends AbstractMarkupResourceHandler
{
  /* Error */
  protected void handleFile(IFile file, String name)
  {
    // Byte code:
    //   0: aload_1
    //   1: invokeinterface 219 1 0
    //   6: new 94	org/eclipse/core/runtime/Path
    //   9: dup
    //   10: new 89	java/lang/StringBuilder
    //   13: dup
    //   14: aload_2
    //   15: invokestatic 197	java/lang/String:valueOf	(Ljava/lang/Object;)Ljava/lang/String;
    //   18: invokespecial 199	java/lang/StringBuilder:<init>	(Ljava/lang/String;)V
    //   21: ldc 1
    //   23: invokevirtual 200	java/lang/StringBuilder:append	(Ljava/lang/String;)Ljava/lang/StringBuilder;
    //   26: invokevirtual 198	java/lang/StringBuilder:toString	()Ljava/lang/String;
    //   29: invokespecial 204	org/eclipse/core/runtime/Path:<init>	(Ljava/lang/String;)V
    //   32: invokeinterface 215 2 0
    //   37: astore_3
    //   38: aload_3
    //   39: invokeinterface 216 1 0
    //   44: ifeq +45 -> 89
    //   47: invokestatic 214	org/eclipse/ui/PlatformUI:getWorkbench	()Lorg/eclipse/ui/IWorkbench;
    //   50: invokeinterface 221 1 0
    //   55: invokeinterface 223 1 0
    //   60: getstatic 186	org/eclipse/mylyn/wikitext/ui/commands/Messages:ConvertMarkupToDocbook_overwrite	Ljava/lang/String;
    //   63: getstatic 185	org/eclipse/mylyn/wikitext/ui/commands/Messages:ConvertMarkupToDocbook_fileExistsOverwrite	Ljava/lang/String;
    //   66: iconst_1
    //   67: anewarray 87	java/lang/Object
    //   70: dup
    //   71: iconst_0
    //   72: aload_3
    //   73: invokeinterface 220 1 0
    //   78: aastore
    //   79: invokestatic 213	org/eclipse/osgi/util/NLS:bind	(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
    //   82: invokestatic 206	org/eclipse/jface/dialogs/MessageDialog:openQuestion	(Lorg/eclipse/swt/widgets/Shell;Ljava/lang/String;Ljava/lang/String;)Z
    //   85: ifne +4 -> 89
    //   88: return
    //   89: new 96	org/eclipse/mylyn/wikitext/core/parser/util/MarkupToDocbook
    //   92: dup
    //   93: invokespecial 207	org/eclipse/mylyn/wikitext/core/parser/util/MarkupToDocbook:<init>	()V
    //   96: astore 4
    //   98: aload 4
    //   100: aload_0
    //   101: getfield 181	org/eclipse/mylyn/wikitext/ui/commands/ConvertMarkupToDocbook:markupLanguage	Lorg/eclipse/mylyn/wikitext/core/parser/markup/MarkupLanguage;
    //   104: invokevirtual 209	org/eclipse/mylyn/wikitext/core/parser/util/MarkupToDocbook:setMarkupLanguage	(Lorg/eclipse/mylyn/wikitext/core/parser/markup/MarkupLanguage;)V
    //   107: aload 4
    //   109: aload_2
    //   110: invokevirtual 208	org/eclipse/mylyn/wikitext/core/parser/util/MarkupToDocbook:setBookTitle	(Ljava/lang/String;)V
    //   113: new 85	java/io/StringWriter
    //   116: dup
    //   117: invokespecial 194	java/io/StringWriter:<init>	()V
    //   120: astore 5
    //   122: new 82	java/io/InputStreamReader
    //   125: dup
    //   126: new 81	java/io/BufferedInputStream
    //   129: dup
    //   130: aload_1
    //   131: invokeinterface 217 1 0
    //   136: invokespecial 187	java/io/BufferedInputStream:<init>	(Ljava/io/InputStream;)V
    //   139: aload_1
    //   140: invokeinterface 218 1 0
    //   145: invokespecial 188	java/io/InputStreamReader:<init>	(Ljava/io/InputStream;Ljava/lang/String;)V
    //   148: astore 6
    //   150: goto +11 -> 161
    //   153: aload 5
    //   155: iload 7
    //   157: i2c
    //   158: invokevirtual 195	java/io/StringWriter:write	(I)V
    //   161: aload 6
    //   163: invokevirtual 192	java/io/Reader:read	()I
    //   166: dup
    //   167: istore 7
    //   169: iconst_m1
    //   170: if_icmpne -17 -> 153
    //   173: goto +13 -> 186
    //   176: astore 8
    //   178: aload 6
    //   180: invokevirtual 193	java/io/Reader:close	()V
    //   183: aload 8
    //   185: athrow
    //   186: aload 6
    //   188: invokevirtual 193	java/io/Reader:close	()V
    //   191: aload 4
    //   193: aload 5
    //   195: invokevirtual 196	java/io/StringWriter:toString	()Ljava/lang/String;
    //   198: invokevirtual 210	org/eclipse/mylyn/wikitext/core/parser/util/MarkupToDocbook:parse	(Ljava/lang/String;)Ljava/lang/String;
    //   201: astore 7
    //   203: new 99	org/eclipse/mylyn/wikitext/ui/commands/ConvertMarkupToDocbook$1
    //   206: dup
    //   207: aload_0
    //   208: aload_3
    //   209: aload 7
    //   211: invokespecial 212	org/eclipse/mylyn/wikitext/ui/commands/ConvertMarkupToDocbook$1:<init>	(Lorg/eclipse/mylyn/wikitext/ui/commands/ConvertMarkupToDocbook;Lorg/eclipse/core/resources/IFile;Ljava/lang/String;)V
    //   214: astore 8
    //   216: invokestatic 214	org/eclipse/ui/PlatformUI:getWorkbench	()Lorg/eclipse/ui/IWorkbench;
    //   219: invokeinterface 222 1 0
    //   224: aload 8
    //   226: invokeinterface 224 2 0
    //   231: goto +108 -> 339
    //   234: pop
    //   235: return
    //   236: astore 9
    //   238: aload 9
    //   240: invokevirtual 203	java/lang/reflect/InvocationTargetException:getCause	()Ljava/lang/Throwable;
    //   243: athrow
    //   244: astore 5
    //   246: new 85	java/io/StringWriter
    //   249: dup
    //   250: invokespecial 194	java/io/StringWriter:<init>	()V
    //   253: astore 6
    //   255: new 83	java/io/PrintWriter
    //   258: dup
    //   259: aload 6
    //   261: invokespecial 190	java/io/PrintWriter:<init>	(Ljava/io/Writer;)V
    //   264: astore 7
    //   266: aload 7
    //   268: new 89	java/lang/StringBuilder
    //   271: dup
    //   272: getstatic 183	org/eclipse/mylyn/wikitext/ui/commands/Messages:ConvertMarkupToDocbook_cannotConvert	Ljava/lang/String;
    //   275: invokestatic 197	java/lang/String:valueOf	(Ljava/lang/Object;)Ljava/lang/String;
    //   278: invokespecial 199	java/lang/StringBuilder:<init>	(Ljava/lang/String;)V
    //   281: aload 5
    //   283: invokevirtual 202	java/lang/Throwable:getMessage	()Ljava/lang/String;
    //   286: invokevirtual 200	java/lang/StringBuilder:append	(Ljava/lang/String;)Ljava/lang/StringBuilder;
    //   289: invokevirtual 198	java/lang/StringBuilder:toString	()Ljava/lang/String;
    //   292: invokevirtual 191	java/io/PrintWriter:println	(Ljava/lang/String;)V
    //   295: aload 7
    //   297: getstatic 184	org/eclipse/mylyn/wikitext/ui/commands/Messages:ConvertMarkupToDocbook_detailsFollow	Ljava/lang/String;
    //   300: invokevirtual 191	java/io/PrintWriter:println	(Ljava/lang/String;)V
    //   303: aload 5
    //   305: aload 7
    //   307: invokevirtual 201	java/lang/Throwable:printStackTrace	(Ljava/io/PrintWriter;)V
    //   310: aload 7
    //   312: invokevirtual 189	java/io/PrintWriter:close	()V
    //   315: invokestatic 214	org/eclipse/ui/PlatformUI:getWorkbench	()Lorg/eclipse/ui/IWorkbench;
    //   318: invokeinterface 221 1 0
    //   323: invokeinterface 223 1 0
    //   328: getstatic 182	org/eclipse/mylyn/wikitext/ui/commands/Messages:ConvertMarkupToDocbook_cannotCompleteOperation	Ljava/lang/String;
    //   331: aload 6
    //   333: invokevirtual 196	java/io/StringWriter:toString	()Ljava/lang/String;
    //   336: invokestatic 205	org/eclipse/jface/dialogs/MessageDialog:openError	(Lorg/eclipse/swt/widgets/Shell;Ljava/lang/String;Ljava/lang/String;)V
    //   339: return
    // Line number table:
    //   Java source line #38	-> byte code offset #0
    //   Java source line #39	-> byte code offset #38
    //   Java source line #40	-> byte code offset #47
    //   Java source line #41	-> byte code offset #60
    //   Java source line #42	-> byte code offset #63
    //   Java source line #43	-> byte code offset #66
    //   Java source line #42	-> byte code offset #79
    //   Java source line #40	-> byte code offset #82
    //   Java source line #44	-> byte code offset #88
    //   Java source line #48	-> byte code offset #89
    //   Java source line #49	-> byte code offset #98
    //   Java source line #50	-> byte code offset #107
    //   Java source line #53	-> byte code offset #113
    //   Java source line #54	-> byte code offset #122
    //   Java source line #57	-> byte code offset #150
    //   Java source line #58	-> byte code offset #153
    //   Java source line #57	-> byte code offset #161
    //   Java source line #60	-> byte code offset #176
    //   Java source line #61	-> byte code offset #178
    //   Java source line #62	-> byte code offset #183
    //   Java source line #61	-> byte code offset #186
    //   Java source line #64	-> byte code offset #191
    //   Java source line #66	-> byte code offset #203
    //   Java source line #82	-> byte code offset #216
    //   Java source line #83	-> byte code offset #234
    //   Java source line #84	-> byte code offset #235
    //   Java source line #85	-> byte code offset #236
    //   Java source line #86	-> byte code offset #238
    //   Java source line #88	-> byte code offset #244
    //   Java source line #89	-> byte code offset #246
    //   Java source line #90	-> byte code offset #255
    //   Java source line #91	-> byte code offset #266
    //   Java source line #92	-> byte code offset #295
    //   Java source line #93	-> byte code offset #303
    //   Java source line #94	-> byte code offset #310
    //   Java source line #96	-> byte code offset #315
    //   Java source line #97	-> byte code offset #328
    //   Java source line #96	-> byte code offset #336
    //   Java source line #99	-> byte code offset #339
    // Local variable table:
    //   start	length	slot	name	signature
    //   0	340	0	this	ConvertMarkupToDocbook
    //   0	340	1	file	IFile
    //   0	340	2	name	String
    //   37	172	3	newFile	IFile
    //   96	96	4	markupToDocbook	org.eclipse.mylyn.wikitext.core.parser.util.MarkupToDocbook
    //   120	74	5	w	java.io.StringWriter
    //   244	60	5	e	Throwable
    //   148	39	6	r	java.io.Reader
    //   253	79	6	message	java.io.StringWriter
    //   153	3	7	i	int
    //   167	3	7	i	int
    //   201	9	7	docbook	String
    //   264	47	7	out	java.io.PrintWriter
    //   176	8	8	localObject1	Object
    //   214	11	8	runnable	Object
    //   236	3	9	e	InvocationTargetException
    //   234	1	16	localInterruptedException	InterruptedException
    // Exception table:
    //   from	to	target	type
    //   150	176	176	finally
    //   216	231	234	java/lang/InterruptedException
    //   216	231	236	java/lang/reflect/InvocationTargetException
    //   113	235	244	java/lang/Throwable
    //   236	244	244	java/lang/Throwable
  }
}

/* Location:
 * Qualified Name:     org.eclipse.mylyn.wikitext.ui.commands.ConvertMarkupToDocbook
 * Java Class Version: 5 (49.0)
 * JD-Core Version:    0.7.1
 */
package org.eclipse.mylyn.wikitext.ui.commands;

import java.io.ByteArrayInputStream;
import java.io.Writer;
import java.lang.reflect.InvocationTargetException;
import org.eclipse.core.resources.IFile;
import org.eclipse.core.runtime.IProgressMonitor;
import org.eclipse.jface.operation.IRunnableWithProgress;
import org.eclipse.mylyn.wikitext.core.parser.builder.HtmlDocumentBuilder;
import org.eclipse.mylyn.wikitext.core.util.XmlStreamWriter;

public class ConvertMarkupToHtml
  extends AbstractMarkupResourceHandler
{
  /* Error */
  protected void handleFile(IFile file, String name)
  {
    // Byte code:
    //   0: aload_1
    //   1: invokeinterface 233 1 0
    //   6: new 100	org/eclipse/core/runtime/Path
    //   9: dup
    //   10: new 95	java/lang/StringBuilder
    //   13: dup
    //   14: aload_2
    //   15: invokestatic 209	java/lang/String:valueOf	(Ljava/lang/Object;)Ljava/lang/String;
    //   18: invokespecial 211	java/lang/StringBuilder:<init>	(Ljava/lang/String;)V
    //   21: ldc 1
    //   23: invokevirtual 212	java/lang/StringBuilder:append	(Ljava/lang/String;)Ljava/lang/StringBuilder;
    //   26: invokevirtual 210	java/lang/StringBuilder:toString	()Ljava/lang/String;
    //   29: invokespecial 216	org/eclipse/core/runtime/Path:<init>	(Ljava/lang/String;)V
    //   32: invokeinterface 229 2 0
    //   37: astore_3
    //   38: aload_3
    //   39: invokeinterface 230 1 0
    //   44: ifeq +45 -> 89
    //   47: invokestatic 228	org/eclipse/ui/PlatformUI:getWorkbench	()Lorg/eclipse/ui/IWorkbench;
    //   50: invokeinterface 235 1 0
    //   55: invokeinterface 237 1 0
    //   60: getstatic 198	org/eclipse/mylyn/wikitext/ui/commands/Messages:ConvertMarkupToHtml_overwrite	Ljava/lang/String;
    //   63: getstatic 197	org/eclipse/mylyn/wikitext/ui/commands/Messages:ConvertMarkupToHtml_fileExistsOverwrite	Ljava/lang/String;
    //   66: iconst_1
    //   67: anewarray 93	java/lang/Object
    //   70: dup
    //   71: iconst_0
    //   72: aload_3
    //   73: invokeinterface 234 1 0
    //   78: aastore
    //   79: invokestatic 227	org/eclipse/osgi/util/NLS:bind	(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
    //   82: invokestatic 218	org/eclipse/jface/dialogs/MessageDialog:openQuestion	(Lorg/eclipse/swt/widgets/Shell;Ljava/lang/String;Ljava/lang/String;)Z
    //   85: ifne +4 -> 89
    //   88: return
    //   89: new 91	java/io/StringWriter
    //   92: dup
    //   93: invokespecial 206	java/io/StringWriter:<init>	()V
    //   96: astore 4
    //   98: new 106	org/eclipse/mylyn/wikitext/ui/commands/ConvertMarkupToHtml$1
    //   101: dup
    //   102: aload_0
    //   103: aload 4
    //   105: invokespecial 225	org/eclipse/mylyn/wikitext/ui/commands/ConvertMarkupToHtml$1:<init>	(Lorg/eclipse/mylyn/wikitext/ui/commands/ConvertMarkupToHtml;Ljava/io/Writer;)V
    //   108: astore 5
    //   110: new 102	org/eclipse/mylyn/wikitext/core/parser/MarkupParser
    //   113: dup
    //   114: invokespecial 219	org/eclipse/mylyn/wikitext/core/parser/MarkupParser:<init>	()V
    //   117: astore 6
    //   119: aload 6
    //   121: aload_0
    //   122: getfield 193	org/eclipse/mylyn/wikitext/ui/commands/ConvertMarkupToHtml:markupLanguage	Lorg/eclipse/mylyn/wikitext/core/parser/markup/MarkupLanguage;
    //   125: invokevirtual 222	org/eclipse/mylyn/wikitext/core/parser/MarkupParser:setMarkupLanguage	(Lorg/eclipse/mylyn/wikitext/core/parser/markup/MarkupLanguage;)V
    //   128: aload 6
    //   130: aload 5
    //   132: invokevirtual 221	org/eclipse/mylyn/wikitext/core/parser/MarkupParser:setBuilder	(Lorg/eclipse/mylyn/wikitext/core/parser/DocumentBuilder;)V
    //   135: aload 5
    //   137: iconst_1
    //   138: invokevirtual 223	org/eclipse/mylyn/wikitext/core/parser/builder/HtmlDocumentBuilder:setEmitDtd	(Z)V
    //   141: new 91	java/io/StringWriter
    //   144: dup
    //   145: invokespecial 206	java/io/StringWriter:<init>	()V
    //   148: astore 7
    //   150: new 88	java/io/InputStreamReader
    //   153: dup
    //   154: new 87	java/io/BufferedInputStream
    //   157: dup
    //   158: aload_1
    //   159: invokeinterface 231 1 0
    //   164: invokespecial 199	java/io/BufferedInputStream:<init>	(Ljava/io/InputStream;)V
    //   167: aload_1
    //   168: invokeinterface 232 1 0
    //   173: invokespecial 200	java/io/InputStreamReader:<init>	(Ljava/io/InputStream;Ljava/lang/String;)V
    //   176: astore 8
    //   178: goto +11 -> 189
    //   181: aload 7
    //   183: iload 9
    //   185: i2c
    //   186: invokevirtual 207	java/io/StringWriter:write	(I)V
    //   189: aload 8
    //   191: invokevirtual 204	java/io/Reader:read	()I
    //   194: dup
    //   195: istore 9
    //   197: iconst_m1
    //   198: if_icmpne -17 -> 181
    //   201: goto +13 -> 214
    //   204: astore 10
    //   206: aload 8
    //   208: invokevirtual 205	java/io/Reader:close	()V
    //   211: aload 10
    //   213: athrow
    //   214: aload 8
    //   216: invokevirtual 205	java/io/Reader:close	()V
    //   219: aload 6
    //   221: aload 7
    //   223: invokevirtual 208	java/io/StringWriter:toString	()Ljava/lang/String;
    //   226: invokevirtual 220	org/eclipse/mylyn/wikitext/core/parser/MarkupParser:parse	(Ljava/lang/String;)V
    //   229: aload 4
    //   231: invokevirtual 208	java/io/StringWriter:toString	()Ljava/lang/String;
    //   234: astore 9
    //   236: new 107	org/eclipse/mylyn/wikitext/ui/commands/ConvertMarkupToHtml$2
    //   239: dup
    //   240: aload_0
    //   241: aload_3
    //   242: aload 9
    //   244: invokespecial 226	org/eclipse/mylyn/wikitext/ui/commands/ConvertMarkupToHtml$2:<init>	(Lorg/eclipse/mylyn/wikitext/ui/commands/ConvertMarkupToHtml;Lorg/eclipse/core/resources/IFile;Ljava/lang/String;)V
    //   247: astore 10
    //   249: invokestatic 228	org/eclipse/ui/PlatformUI:getWorkbench	()Lorg/eclipse/ui/IWorkbench;
    //   252: invokeinterface 236 1 0
    //   257: aload 10
    //   259: invokeinterface 238 2 0
    //   264: goto +108 -> 372
    //   267: pop
    //   268: return
    //   269: astore 11
    //   271: aload 11
    //   273: invokevirtual 215	java/lang/reflect/InvocationTargetException:getCause	()Ljava/lang/Throwable;
    //   276: athrow
    //   277: astore 7
    //   279: new 91	java/io/StringWriter
    //   282: dup
    //   283: invokespecial 206	java/io/StringWriter:<init>	()V
    //   286: astore 8
    //   288: new 89	java/io/PrintWriter
    //   291: dup
    //   292: aload 8
    //   294: invokespecial 202	java/io/PrintWriter:<init>	(Ljava/io/Writer;)V
    //   297: astore 9
    //   299: aload 9
    //   301: new 95	java/lang/StringBuilder
    //   304: dup
    //   305: getstatic 195	org/eclipse/mylyn/wikitext/ui/commands/Messages:ConvertMarkupToHtml_cannotConvert	Ljava/lang/String;
    //   308: invokestatic 209	java/lang/String:valueOf	(Ljava/lang/Object;)Ljava/lang/String;
    //   311: invokespecial 211	java/lang/StringBuilder:<init>	(Ljava/lang/String;)V
    //   314: aload 7
    //   316: invokevirtual 214	java/lang/Throwable:getMessage	()Ljava/lang/String;
    //   319: invokevirtual 212	java/lang/StringBuilder:append	(Ljava/lang/String;)Ljava/lang/StringBuilder;
    //   322: invokevirtual 210	java/lang/StringBuilder:toString	()Ljava/lang/String;
    //   325: invokevirtual 203	java/io/PrintWriter:println	(Ljava/lang/String;)V
    //   328: aload 9
    //   330: getstatic 196	org/eclipse/mylyn/wikitext/ui/commands/Messages:ConvertMarkupToHtml_detailsFollow	Ljava/lang/String;
    //   333: invokevirtual 203	java/io/PrintWriter:println	(Ljava/lang/String;)V
    //   336: aload 7
    //   338: aload 9
    //   340: invokevirtual 213	java/lang/Throwable:printStackTrace	(Ljava/io/PrintWriter;)V
    //   343: aload 9
    //   345: invokevirtual 201	java/io/PrintWriter:close	()V
    //   348: invokestatic 228	org/eclipse/ui/PlatformUI:getWorkbench	()Lorg/eclipse/ui/IWorkbench;
    //   351: invokeinterface 235 1 0
    //   356: invokeinterface 237 1 0
    //   361: getstatic 194	org/eclipse/mylyn/wikitext/ui/commands/Messages:ConvertMarkupToHtml_cannotCompleteOperation	Ljava/lang/String;
    //   364: aload 8
    //   366: invokevirtual 208	java/io/StringWriter:toString	()Ljava/lang/String;
    //   369: invokestatic 217	org/eclipse/jface/dialogs/MessageDialog:openError	(Lorg/eclipse/swt/widgets/Shell;Ljava/lang/String;Ljava/lang/String;)V
    //   372: return
    // Line number table:
    //   Java source line #41	-> byte code offset #0
    //   Java source line #42	-> byte code offset #38
    //   Java source line #43	-> byte code offset #47
    //   Java source line #44	-> byte code offset #60
    //   Java source line #45	-> byte code offset #63
    //   Java source line #43	-> byte code offset #82
    //   Java source line #46	-> byte code offset #88
    //   Java source line #50	-> byte code offset #89
    //   Java source line #51	-> byte code offset #98
    //   Java source line #57	-> byte code offset #110
    //   Java source line #58	-> byte code offset #119
    //   Java source line #59	-> byte code offset #128
    //   Java source line #60	-> byte code offset #135
    //   Java source line #63	-> byte code offset #141
    //   Java source line #64	-> byte code offset #150
    //   Java source line #67	-> byte code offset #178
    //   Java source line #68	-> byte code offset #181
    //   Java source line #67	-> byte code offset #189
    //   Java source line #70	-> byte code offset #204
    //   Java source line #71	-> byte code offset #206
    //   Java source line #72	-> byte code offset #211
    //   Java source line #71	-> byte code offset #214
    //   Java source line #74	-> byte code offset #219
    //   Java source line #75	-> byte code offset #229
    //   Java source line #77	-> byte code offset #236
    //   Java source line #93	-> byte code offset #249
    //   Java source line #94	-> byte code offset #267
    //   Java source line #95	-> byte code offset #268
    //   Java source line #96	-> byte code offset #269
    //   Java source line #97	-> byte code offset #271
    //   Java source line #99	-> byte code offset #277
    //   Java source line #100	-> byte code offset #279
    //   Java source line #101	-> byte code offset #288
    //   Java source line #102	-> byte code offset #299
    //   Java source line #103	-> byte code offset #328
    //   Java source line #104	-> byte code offset #336
    //   Java source line #105	-> byte code offset #343
    //   Java source line #107	-> byte code offset #348
    //   Java source line #108	-> byte code offset #361
    //   Java source line #107	-> byte code offset #369
    //   Java source line #110	-> byte code offset #372
    // Local variable table:
    //   start	length	slot	name	signature
    //   0	373	0	this	ConvertMarkupToHtml
    //   0	373	1	file	IFile
    //   0	373	2	name	String
    //   37	205	3	newFile	IFile
    //   96	134	4	writer	java.io.StringWriter
    //   108	28	5	builder	HtmlDocumentBuilder
    //   117	103	6	parser	org.eclipse.mylyn.wikitext.core.parser.MarkupParser
    //   148	74	7	w	java.io.StringWriter
    //   277	60	7	e	Throwable
    //   176	39	8	r	java.io.Reader
    //   286	79	8	message	java.io.StringWriter
    //   181	3	9	i	int
    //   195	3	9	i	int
    //   234	9	9	xhtmlContent	String
    //   297	47	9	out	java.io.PrintWriter
    //   204	8	10	localObject1	Object
    //   247	11	10	runnable	Object
    //   269	3	11	e	InvocationTargetException
    //   267	1	18	localInterruptedException	InterruptedException
    // Exception table:
    //   from	to	target	type
    //   178	204	204	finally
    //   249	264	267	java/lang/InterruptedException
    //   249	264	269	java/lang/reflect/InvocationTargetException
    //   141	268	277	java/lang/Throwable
    //   269	277	277	java/lang/Throwable
  }
}

/* Location:
 * Qualified Name:     org.eclipse.mylyn.wikitext.ui.commands.ConvertMarkupToHtml
 * Java Class Version: 5 (49.0)
 * JD-Core Version:    0.7.1
 */
package org.eclipse.mylyn.wikitext.ui.commands;

import java.io.Writer;
import org.eclipse.mylyn.wikitext.core.parser.builder.HtmlDocumentBuilder;
import org.eclipse.mylyn.wikitext.core.util.XmlStreamWriter;

class ConvertMarkupToHtml$1
  extends HtmlDocumentBuilder
{
  ConvertMarkupToHtml$1(ConvertMarkupToHtml paramConvertMarkupToHtml, Writer $anonymous0)
  {
    super($anonymous0);
  }
  
  protected XmlStreamWriter createXmlStreamWriter(Writer out)
  {
    return HtmlDocumentBuilder.createFormattingXmlStreamWriter(out);
  }
}

/* Location:
 * Qualified Name:     org.eclipse.mylyn.wikitext.ui.commands.ConvertMarkupToHtml.1
 * Java Class Version: 5 (49.0)
 * JD-Core Version:    0.7.1
 */
package org.eclipse.mylyn.wikitext.ui.commands;

import java.io.ByteArrayInputStream;
import java.lang.reflect.InvocationTargetException;
import org.eclipse.core.resources.IFile;
import org.eclipse.core.runtime.IProgressMonitor;
import org.eclipse.jface.operation.IRunnableWithProgress;

public class ConvertMarkupToEclipseHelp
  extends ConvertMarkupToHtml
{
  /* Error */
  protected void handleFile(IFile file, String name)
  {
    // Byte code:
    //   0: aload_0
    //   1: aload_1
    //   2: aload_2
    //   3: invokespecial 237	org/eclipse/mylyn/wikitext/ui/commands/ConvertMarkupToHtml:handleFile	(Lorg/eclipse/core/resources/IFile;Ljava/lang/String;)V
    //   6: aload_1
    //   7: invokeinterface 245 1 0
    //   12: new 108	org/eclipse/core/runtime/Path
    //   15: dup
    //   16: new 102	java/lang/StringBuilder
    //   19: dup
    //   20: aload_2
    //   21: invokestatic 220	java/lang/String:valueOf	(Ljava/lang/Object;)Ljava/lang/String;
    //   24: invokespecial 222	java/lang/StringBuilder:<init>	(Ljava/lang/String;)V
    //   27: ldc 1
    //   29: invokevirtual 223	java/lang/StringBuilder:append	(Ljava/lang/String;)Ljava/lang/StringBuilder;
    //   32: invokevirtual 221	java/lang/StringBuilder:toString	()Ljava/lang/String;
    //   35: invokespecial 227	org/eclipse/core/runtime/Path:<init>	(Ljava/lang/String;)V
    //   38: invokeinterface 241 2 0
    //   43: astore_3
    //   44: aload_3
    //   45: invokeinterface 242 1 0
    //   50: ifeq +45 -> 95
    //   53: invokestatic 239	org/eclipse/ui/PlatformUI:getWorkbench	()Lorg/eclipse/ui/IWorkbench;
    //   56: invokeinterface 250 1 0
    //   61: invokeinterface 252 1 0
    //   66: getstatic 208	org/eclipse/mylyn/wikitext/ui/commands/Messages:ConvertMarkupToEclipseHelp_overwrite	Ljava/lang/String;
    //   69: getstatic 207	org/eclipse/mylyn/wikitext/ui/commands/Messages:ConvertMarkupToEclipseHelp_fileExistsOverwrite	Ljava/lang/String;
    //   72: iconst_1
    //   73: anewarray 100	java/lang/Object
    //   76: dup
    //   77: iconst_0
    //   78: aload_3
    //   79: invokeinterface 246 1 0
    //   84: aastore
    //   85: invokestatic 238	org/eclipse/osgi/util/NLS:bind	(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
    //   88: invokestatic 229	org/eclipse/jface/dialogs/MessageDialog:openQuestion	(Lorg/eclipse/swt/widgets/Shell;Ljava/lang/String;Ljava/lang/String;)Z
    //   91: ifne +4 -> 95
    //   94: return
    //   95: aload_1
    //   96: invokeinterface 245 1 0
    //   101: invokeinterface 240 1 0
    //   106: astore 4
    //   108: aload 4
    //   110: iconst_1
    //   111: invokeinterface 249 2 0
    //   116: astore 5
    //   118: new 110	org/eclipse/mylyn/wikitext/core/parser/util/MarkupToEclipseToc
    //   121: dup
    //   122: invokespecial 230	org/eclipse/mylyn/wikitext/core/parser/util/MarkupToEclipseToc:<init>	()V
    //   125: astore 6
    //   127: aload 6
    //   129: aload_0
    //   130: getfield 203	org/eclipse/mylyn/wikitext/ui/commands/ConvertMarkupToEclipseHelp:markupLanguage	Lorg/eclipse/mylyn/wikitext/core/parser/markup/MarkupLanguage;
    //   133: invokevirtual 233	org/eclipse/mylyn/wikitext/core/parser/util/MarkupToEclipseToc:setMarkupLanguage	(Lorg/eclipse/mylyn/wikitext/core/parser/markup/MarkupLanguage;)V
    //   136: aload 6
    //   138: aload_2
    //   139: invokevirtual 231	org/eclipse/mylyn/wikitext/core/parser/util/MarkupToEclipseToc:setBookTitle	(Ljava/lang/String;)V
    //   142: new 102	java/lang/StringBuilder
    //   145: dup
    //   146: aload_2
    //   147: invokestatic 220	java/lang/String:valueOf	(Ljava/lang/Object;)Ljava/lang/String;
    //   150: invokespecial 222	java/lang/StringBuilder:<init>	(Ljava/lang/String;)V
    //   153: ldc 2
    //   155: invokevirtual 223	java/lang/StringBuilder:append	(Ljava/lang/String;)Ljava/lang/StringBuilder;
    //   158: invokevirtual 221	java/lang/StringBuilder:toString	()Ljava/lang/String;
    //   161: astore 7
    //   163: aload 5
    //   165: invokeinterface 247 1 0
    //   170: ifle +66 -> 236
    //   173: aload 5
    //   175: invokeinterface 248 1 0
    //   180: astore 8
    //   182: aload 8
    //   184: ldc 3
    //   186: invokevirtual 219	java/lang/String:endsWith	(Ljava/lang/String;)Z
    //   189: ifne +25 -> 214
    //   192: new 102	java/lang/StringBuilder
    //   195: dup
    //   196: aload 8
    //   198: invokestatic 220	java/lang/String:valueOf	(Ljava/lang/Object;)Ljava/lang/String;
    //   201: invokespecial 222	java/lang/StringBuilder:<init>	(Ljava/lang/String;)V
    //   204: ldc 3
    //   206: invokevirtual 223	java/lang/StringBuilder:append	(Ljava/lang/String;)Ljava/lang/StringBuilder;
    //   209: invokevirtual 221	java/lang/StringBuilder:toString	()Ljava/lang/String;
    //   212: astore 8
    //   214: new 102	java/lang/StringBuilder
    //   217: dup
    //   218: aload 8
    //   220: invokestatic 220	java/lang/String:valueOf	(Ljava/lang/Object;)Ljava/lang/String;
    //   223: invokespecial 222	java/lang/StringBuilder:<init>	(Ljava/lang/String;)V
    //   226: aload 7
    //   228: invokevirtual 223	java/lang/StringBuilder:append	(Ljava/lang/String;)Ljava/lang/StringBuilder;
    //   231: invokevirtual 221	java/lang/StringBuilder:toString	()Ljava/lang/String;
    //   234: astore 7
    //   236: aload 6
    //   238: aload 7
    //   240: invokevirtual 232	org/eclipse/mylyn/wikitext/core/parser/util/MarkupToEclipseToc:setHtmlFile	(Ljava/lang/String;)V
    //   243: new 98	java/io/StringWriter
    //   246: dup
    //   247: invokespecial 216	java/io/StringWriter:<init>	()V
    //   250: astore 8
    //   252: new 95	java/io/InputStreamReader
    //   255: dup
    //   256: new 94	java/io/BufferedInputStream
    //   259: dup
    //   260: aload_1
    //   261: invokeinterface 243 1 0
    //   266: invokespecial 209	java/io/BufferedInputStream:<init>	(Ljava/io/InputStream;)V
    //   269: aload_1
    //   270: invokeinterface 244 1 0
    //   275: invokespecial 210	java/io/InputStreamReader:<init>	(Ljava/io/InputStream;Ljava/lang/String;)V
    //   278: astore 9
    //   280: goto +11 -> 291
    //   283: aload 8
    //   285: iload 10
    //   287: i2c
    //   288: invokevirtual 217	java/io/StringWriter:write	(I)V
    //   291: aload 9
    //   293: invokevirtual 214	java/io/Reader:read	()I
    //   296: dup
    //   297: istore 10
    //   299: iconst_m1
    //   300: if_icmpne -17 -> 283
    //   303: goto +13 -> 316
    //   306: astore 11
    //   308: aload 9
    //   310: invokevirtual 215	java/io/Reader:close	()V
    //   313: aload 11
    //   315: athrow
    //   316: aload 9
    //   318: invokevirtual 215	java/io/Reader:close	()V
    //   321: aload 6
    //   323: aload 8
    //   325: invokevirtual 218	java/io/StringWriter:toString	()Ljava/lang/String;
    //   328: invokevirtual 234	org/eclipse/mylyn/wikitext/core/parser/util/MarkupToEclipseToc:parse	(Ljava/lang/String;)Ljava/lang/String;
    //   331: astore 10
    //   333: new 112	org/eclipse/mylyn/wikitext/ui/commands/ConvertMarkupToEclipseHelp$1
    //   336: dup
    //   337: aload_0
    //   338: aload_3
    //   339: aload 10
    //   341: invokespecial 235	org/eclipse/mylyn/wikitext/ui/commands/ConvertMarkupToEclipseHelp$1:<init>	(Lorg/eclipse/mylyn/wikitext/ui/commands/ConvertMarkupToEclipseHelp;Lorg/eclipse/core/resources/IFile;Ljava/lang/String;)V
    //   344: astore 11
    //   346: invokestatic 239	org/eclipse/ui/PlatformUI:getWorkbench	()Lorg/eclipse/ui/IWorkbench;
    //   349: invokeinterface 251 1 0
    //   354: aload 11
    //   356: invokeinterface 253 2 0
    //   361: goto +108 -> 469
    //   364: pop
    //   365: return
    //   366: astore 12
    //   368: aload 12
    //   370: invokevirtual 226	java/lang/reflect/InvocationTargetException:getCause	()Ljava/lang/Throwable;
    //   373: athrow
    //   374: astore 8
    //   376: new 98	java/io/StringWriter
    //   379: dup
    //   380: invokespecial 216	java/io/StringWriter:<init>	()V
    //   383: astore 9
    //   385: new 96	java/io/PrintWriter
    //   388: dup
    //   389: aload 9
    //   391: invokespecial 212	java/io/PrintWriter:<init>	(Ljava/io/Writer;)V
    //   394: astore 10
    //   396: aload 10
    //   398: new 102	java/lang/StringBuilder
    //   401: dup
    //   402: getstatic 205	org/eclipse/mylyn/wikitext/ui/commands/Messages:ConvertMarkupToEclipseHelp_cannotConvert	Ljava/lang/String;
    //   405: invokestatic 220	java/lang/String:valueOf	(Ljava/la
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20

Further reading...

For more information on Java 1.5 Tiger, you may find Java 1.5 Tiger, A developer's Notebook by D. Flanagan and B. McLaughlin from O'Reilly of interest.

New!JAR listings


Copyright 2006-2017. Infinite Loop Ltd