org.tizen.web.editor_2.0.0.201311011708

16:50:40.957 INFO  jd.cli.Main - Decompiling org.tizen.web.editor_2.0.0.201311011708.jar
package org.tizen.web.editor;

import org.eclipse.jface.resource.ImageDescriptor;
import org.eclipse.ui.plugin.AbstractUIPlugin;
import org.osgi.framework.BundleContext;

public class Activator
  extends AbstractUIPlugin
{
  public static final String PLUGIN_ID = "org.tizen.web.editor";
  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;
  }
  
  public static ImageDescriptor getImageDescriptor(String path)
  {
    return imageDescriptorFromPlugin("org.tizen.web.editor", path);
  }
}

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

import org.eclipse.osgi.util.NLS;

public class Messages
  extends NLS
{
  private static final String BUNDLE_NAME = "org.tizen.web.editor.messages";
  public static String EditorPreferencePropertiesPageBody;
  
  static
  {
    NLS.initializeMessages("org.tizen.web.editor.messages", Messages.class);
  }
}

/* Location:
 * Qualified Name:     org.tizen.web.editor.Messages
 * Java Class Version: 6 (50.0)
 * JD-Core Version:    0.7.1
 */
package org.tizen.web.editor.decorator;

import java.io.IOException;
import java.net.URL;
import org.eclipse.core.runtime.FileLocator;
import org.eclipse.core.runtime.Platform;
import org.eclipse.jface.viewers.ILabelDecorator;
import org.eclipse.jface.viewers.ILabelProviderListener;
import org.eclipse.swt.graphics.Image;
import org.osgi.framework.Bundle;

public class PNGFileDecorator
  implements ILabelDecorator
{
  public static final String PNG_FILE_PATH = "icons/png_file.png";
  
  public Image decorateImage(Image image, Object arg1)
  {
    Bundle bundle = Platform.getBundle("org.tizen.web.editor");
    URL icon = bundle.getEntry("icons/png_file.png");
    try
    {
      return new Image(image.getDevice(), FileLocator.toFileURL(icon).getPath());
    }
    catch (IOException localIOException) {}
    return image;
  }
  
  public String decorateText(String arg0, Object arg1)
  {
    return null;
  }
  
  public void addListener(ILabelProviderListener arg0) {}
  
  public void dispose() {}
  
  public boolean isLabelProperty(Object arg0, String arg1)
  {
    return false;
  }
  
  public void removeListener(ILabelProviderListener arg0) {}
}

/* Location:
 * Qualified Name:     org.tizen.web.editor.decorator.PNGFileDecorator
 * Java Class Version: 6 (50.0)
 * JD-Core Version:    0.7.1
 */
package org.tizen.web.editor.preference;

import org.eclipse.jface.preference.PreferencePage;
import org.eclipse.swt.layout.GridData;
import org.eclipse.swt.layout.GridLayout;
import org.eclipse.swt.widgets.Button;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.Control;
import org.eclipse.swt.widgets.Label;
import org.eclipse.ui.IWorkbench;
import org.eclipse.ui.IWorkbenchPreferencePage;
import org.tizen.web.editor.Messages;

public class EditorPreferencePage
  extends PreferencePage
  implements IWorkbenchPreferencePage
{
  public void init(IWorkbench workbench) {}
  
  protected Control createContents(Composite parent)
  {
    Composite result = new Composite(parent, 0);
    result.setFont(parent.getFont());
    
    GridLayout layout = new GridLayout();
    
    numColumns = 1;
    result.setLayout(layout);
    
    GridData data = new GridData(4);
    horizontalIndent = 0;
    verticalAlignment = 4;
    horizontalAlignment = 4;
    result.setLayoutData(data);
    
    Label label = new Label(result, 16384);
    label.setText(getPageText());
    label.setLayoutData(new GridData(768));
    return null;
  }
  
  public void createControl(Composite parent)
  {
    super.createControl(parent);
    
    getDefaultsButton().setVisible(false);
    getApplyButton().setVisible(false);
  }
  
  protected String getPageText()
  {
    return Messages.EditorPreferencePropertiesPageBody;
  }
}

/* Location:
 * Qualified Name:     org.tizen.web.editor.preference.EditorPreferencePage
 * 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