org.tizen.common.ui_2.0.0.201311012034

16:49:55.758 INFO  jd.cli.Main - Decompiling org.tizen.common.ui_2.0.0.201311012034.jar
package org.tizen.common.ui;

import org.eclipse.ui.plugin.AbstractUIPlugin;
import org.osgi.framework.BundleContext;

public class Activator
  extends AbstractUIPlugin
{
  public static final String PLUGIN_ID = "org.tizen.common.ui";
  private static Activator plugin;
  
  public void start(BundleContext context)
    throws Exception
  {
    super.start(context);
    plugin = this;
  }
  
  public void stop(BundleContext context)
    throws Exception
  {
    plugin = null;
    super.stop(context);
  }
  
  public static Activator getDefault()
  {
    return plugin;
  }
}

/* Location:
 * Qualified Name:     org.tizen.common.ui.Activator
 * Java Class Version: 6 (50.0)
 * JD-Core Version:    0.7.1
 */
package org.tizen.common.ui;

import org.eclipse.ui.IStartup;
import org.slf4j.LoggerFactory;
import org.tizen.common.core.application.InstallPathConfig;

public class Startup
  implements IStartup
{
  private static final org.slf4j.Logger logger = LoggerFactory.getLogger(Startup.class);
  
  public void earlyStartup()
  {
    String info = String.format("SDK Information: Path [%s], Data Path [%s], Platform Path [%s]", new Object[] { InstallPathConfig.getSDKPath(), InstallPathConfig.getUserDataPath(), InstallPathConfig.getPlatformVersionPath() });
    logger.info(info);
    
    org.tizen.common.util.log.Logger.info(info, new Object[0]);
  }
}

/* Location:
 * Qualified Name:     org.tizen.common.ui.Startup
 * Java Class Version: 6 (50.0)
 * JD-Core Version:    0.7.1
 */
package org.tizen.common.ui.commands;

import java.awt.Desktop;
import java.io.File;
import java.io.IOException;
import org.eclipse.core.commands.AbstractHandler;
import org.eclipse.core.commands.ExecutionEvent;
import org.eclipse.core.commands.ExecutionException;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.tizen.common.core.application.InstallPathConfig;

public class DownloadCardCommandHandler
  extends AbstractHandler
{
  final Logger logger = LoggerFactory.getLogger(DownloadCardCommandHandler.class);
  final String pdfFileName = "shortcuts.pdf";
  final String pdfFilePath = InstallPathConfig.getDocumentsPath() + File.separator + "shortcuts.pdf";
  
  public Object execute(ExecutionEvent event)
    throws ExecutionException
  {
    File pdfFile = new File(pdfFilePath);
    try
    {
      Desktop.getDesktop().open(pdfFile);
    }
    catch (IOException e)
    {
      logger.error("Failed to open a file " + pdfFile, e);
    }
    return null;
  }
}

/* Location:
 * Qualified Name:     org.tizen.common.ui.commands.DownloadCardCommandHandler
 * Java Class Version: 6 (50.0)
 * JD-Core Version:    0.7.1
 */
package org.tizen.common.ui.commands;

import java.net.MalformedURLException;
import java.net.URL;
import org.eclipse.core.commands.AbstractHandler;
import org.eclipse.core.commands.ExecutionEvent;
import org.eclipse.core.commands.ExecutionException;
import org.eclipse.swt.widgets.Display;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.tizen.common.util.OpenBrowserUtil;
import org.tizen.common.util.SWTUtil;

public class TizenWebCommandHandler
  extends AbstractHandler
{
  final Logger logger = LoggerFactory.getLogger(TizenWebCommandHandler.class);
  final String tizenWebAddress = "https://www.tizen.org";
  
  public Object execute(ExecutionEvent event)
    throws ExecutionException
  {
    Display display = SWTUtil.getDisplay();
    try
    {
      URL url = new URL("https://www.tizen.org");
      OpenBrowserUtil.open(url, display);
    }
    catch (MalformedURLException e)
    {
      logger.error("A malformed URL was used", e);
    }
    return null;
  }
}

/* Location:
 * Qualified Name:     org.tizen.common.ui.commands.TizenWebCommandHandler
 * Java Class Version: 6 (50.0)
 * JD-Core Version:    0.7.1
 */
1

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