org.tizen.uicustomizer_1.0.0.201311010051

16:50:30.398 INFO  jd.cli.Main - Decompiling org.tizen.uicustomizer_1.0.0.201311010051.jar
package org.tizen.uicustomizer;

import java.io.PrintWriter;
import org.eclipse.core.runtime.preferences.IEclipsePreferences;
import org.eclipse.core.runtime.preferences.IScopeContext;
import org.eclipse.core.runtime.preferences.InstanceScope;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.ui.forms.widgets.FormToolkit;
import org.eclipse.ui.intro.config.IIntroContentProviderSite;
import org.eclipse.ui.intro.config.IIntroXHTMLContentProvider;
import org.w3c.dom.Attr;
import org.w3c.dom.Document;
import org.w3c.dom.Element;
import org.w3c.dom.NamedNodeMap;
import org.w3c.dom.Node;

public class IntroXHTMLContentProvider
  implements IIntroXHTMLContentProvider
{
  public void init(IIntroContentProviderSite site) {}
  
  public void createContent(String id, PrintWriter out) {}
  
  public void dispose() {}
  
  public void createContent(String id, Element parent)
  {
    IEclipsePreferences pref = InstanceScope.INSTANCE
      .getNode("org.tizen.uicustomizer.utils");
    Document doc = parent.getOwnerDocument();
    Node div = doc.createElement("div");
    Attr idAttr = doc.createAttribute("id");
    idAttr.setValue("checkBox");
    div.getAttributes().setNamedItem(idAttr);
    
    Node checkBox = doc.createElement("input");
    
    Attr checkBoxidAttr = doc.createAttribute("id");
    checkBoxidAttr.setValue("alwaysWelcomeCheckBox");
    
    Attr checkBoxnameAttr = doc.createAttribute("name");
    checkBoxnameAttr.setValue("welcomeCheckBox");
    
    Attr checkBoxtypeAttr = doc.createAttribute("type");
    checkBoxtypeAttr.setValue("checkbox");
    
    Attr onclick = doc.createAttribute("onclick");
    onclick.setValue("showWelcome()");
    
    checkBox.getAttributes().setNamedItem(checkBoxidAttr);
    checkBox.getAttributes().setNamedItem(checkBoxnameAttr);
    checkBox.getAttributes().setNamedItem(checkBoxtypeAttr);
    checkBox.getAttributes().setNamedItem(onclick);
    
    Node label = doc.createElement("label");
    label.setTextContent("Always show this on open");
    Attr labelAttr = doc.createAttribute("id");
    labelAttr.setValue("checkBoxLabel");
    label.getAttributes().setNamedItem(labelAttr);
    if (pref.getBoolean("showThemeIntro", true))
    {
      Attr checked = doc.createAttribute("checked");
      checked.setValue("checked");
      checkBox.getAttributes().setNamedItem(checked);
    }
    div.appendChild(label);
    
    label.appendChild(checkBox);
    
    parent.appendChild(div);
  }
  
  public void createContent(String id, Composite parent, FormToolkit toolkit) {}
}

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

import org.eclipse.osgi.util.NLS;

public class Messages
  extends NLS
{
  private static final String BUNDLE_NAME = "org.tizen.uicustomizer.messages";
  public static String UICustomizerApplication_0;
  public static String UICustomizerApplication_1;
  public static String UICustomizerApplication_DialogMessage;
  public static String UICustomizerApplication_DialogTitle;
  public static String UICustomizerApplication_ShellTitle;
  public static String UICustomizerApplicationWorkbenchWindowAdvisor_0;
  public static String UICustomizerApplicationWorkbenchWindowAdvisor_1;
  public static String UICustomizerApplicationWorkbenchWindowAdvisor_2;
  public static String UICustomizerApplicationWorkbenchWindowAdvisor_3;
  public static String UICustomizerApplicationWorkbenchWindowAdvisor_4;
  public static String UICustomizerApplicationWorkbenchWindowAdvisor_Title;
  public static String UICustomizerApplicationWorkbenchWindowAdvisor_logSetWorkspaceLocation;
  public static String UICustomizerApplicationWorkbenchWindowAdvisor_logWorkspaceError;
  
  static
  {
    NLS.initializeMessages("org.tizen.uicustomizer.messages", Messages.class);
  }
}

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

import org.eclipse.core.commands.AbstractHandler;
import org.eclipse.core.commands.ExecutionEvent;
import org.eclipse.core.commands.ExecutionException;
import org.eclipse.core.commands.IHandler;
import org.eclipse.core.runtime.ILog;
import org.eclipse.core.runtime.Status;
import org.eclipse.ui.IWorkbench;
import org.eclipse.ui.IWorkbenchPage;
import org.eclipse.ui.IWorkbenchWindow;
import org.eclipse.ui.PartInitException;
import org.eclipse.ui.PlatformUI;

public class OpenActivePreview
  extends AbstractHandler
  implements IHandler
{
  private String view_ID = "org.tizen.uicustomizer.ui.views.activePreview";
  
  public Object execute(ExecutionEvent event)
    throws ExecutionException
  {
    try
    {
      PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage().showView(view_ID);
    }
    catch (PartInitException e)
    {
      UICustomizerActivator.getDefault().getLog().log(new Status(4, "org.tizen.uicustomizer", e.getMessage(), e));
    }
    return null;
  }
}

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

import org.eclipse.core.commands.AbstractHandler;
import org.eclipse.core.commands.ExecutionEvent;
import org.eclipse.core.commands.ExecutionException;
import org.eclipse.core.commands.IHandler;
import org.eclipse.core.runtime.ILog;
import org.eclipse.core.runtime.Status;
import org.eclipse.ui.IWorkbench;
import org.eclipse.ui.IWorkbenchPage;
import org.eclipse.ui.IWorkbenchWindow;
import org.eclipse.ui.PartInitException;
import org.eclipse.ui.PlatformUI;

public class OpenExplorer
  extends AbstractHandler
  implements IHandler
{
  private String view_ID = "org.tizen.uicustomizer.ui.views.explorer";
  
  public Object execute(ExecutionEvent event)
    throws ExecutionException
  {
    try
    {
      PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage().showView(view_ID);
    }
    catch (PartInitException e)
    {
      UICustomizerActivator.getDefault().getLog().log(new Status(4, "org.tizen.uicustomizer", e.getMessage(), e));
    }
    return null;
  }
}

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

import org.eclipse.core.commands.AbstractHandler;
import org.eclipse.core.commands.ExecutionEvent;
import org.eclipse.core.commands.ExecutionException;
import org.eclipse.core.commands.IHandler;
import org.eclipse.core.runtime.ILog;
import org.eclipse.core.runtime.Status;
import org.eclipse.ui.IWorkbench;
import org.eclipse.ui.IWorkbenchPage;
import org.eclipse.ui.IWorkbenchWindow;
import org.eclipse.ui.PartInitException;
import org.eclipse.ui.PlatformUI;

public class OpenNavigator
  extends AbstractHandler
  implements IHandler
{
  private String view_ID = "org.tizen.uicustomizer.ui.views.navigator";
  
  public Object execute(ExecutionEvent event)
    throws ExecutionException
  {
    try
    {
      PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage().showView(view_ID);
    }
    catch (PartInitException e)
    {
      UICustomizerActivator.getDefault().getLog().log(new Status(4, "org.tizen.uicustomizer", e.getMessage(), e));
    }
    return null;
  }
}

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

import org.eclipse.core.commands.AbstractHandler;
import org.eclipse.core.commands.ExecutionEvent;
import org.eclipse.core.commands.ExecutionException;
import org.eclipse.core.commands.IHandler;
import org.eclipse.core.runtime.ILog;
import org.eclipse.core.runtime.Status;
import org.eclipse.ui.IWorkbench;
import org.eclipse.ui.IWorkbenchPage;
import org.eclipse.ui.IWorkbenchWindow;
import org.eclipse.ui.PartInitException;
import org.eclipse.ui.PlatformUI;

public class OpenPaletteWindow
  extends AbstractHandler
  implements IHandler
{
  private String view_ID = "org.tizen.uicustomizer.ui.views.paletteWindow";
  
  public Object execute(ExecutionEvent event)
    throws ExecutionException
  {
    try
    {
      PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage().showView(view_ID);
    }
    catch (PartInitException e)
    {
      UICustomizerActivator.getDefault().getLog().log(new Status(4, "org.tizen.uicustomizer", e.getMessage(), e));
    }
    return null;
  }
}

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

import org.eclipse.core.commands.AbstractHandler;
import org.eclipse.core.commands.ExecutionEvent;
import org.eclipse.core.commands.ExecutionException;
import org.eclipse.core.commands.IHandler;
import org.eclipse.core.runtime.ILog;
import org.eclipse.core.runtime.Status;
import org.eclipse.ui.IWorkbench;
import org.eclipse.ui.IWorkbenchPage;
import org.eclipse.ui.IWorkbenchWindow;
import org.eclipse.ui.PartInitException;
import org.eclipse.ui.PlatformUI;

public class OpenProperties
  extends AbstractHandler
  implements IHandler
{
  private String view_ID = "org.tizen.uicustomizer.ui.views.properties";
  
  public Object execute(ExecutionEvent event)
    throws ExecutionException
  {
    try
    {
      PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage().showView(view_ID);
    }
    catch (PartInitException e)
    {
      UICustomizerActivator.getDefault().getLog().log(new Status(4, "org.tizen.uicustomizer", e.getMessage(), e));
    }
    return null;
  }
}

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

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

public class UICustomizerActivator
  extends AbstractUIPlugin
{
  public static final String PLUGIN_ID = "org.tizen.uicustomizer";
  private static UICustomizerActivator plugin;
  
  public void start(BundleContext context)
    throws Exception
  {
    super.start(context);
    plugin = this;
    String qualifier = context.getBundle().getVersion().getQualifier();
    if ((qualifier != null) && (qualifier.length() > 8)) {
      qualifier = String.format("%s-%s", new Object[] { qualifier.substring(0, 8), qualifier.substring(8) });
    }
    if (qualifier != null) {
      System.setProperty("tizen.uicustomizer.buildid", qualifier);
    }
  }
  
  public void stop(BundleContext context)
    throws Exception
  {
    plugin = null;
    super.stop(context);
  }
  
  public static UICustomizerActivator getDefault()
  {
    return plugin;
  }
  
  public static ImageDescriptor getImageDescriptor(String path)
  {
    return imageDescriptorFromPlugin("org.tizen.uicustomizer", path);
  }
}

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

import org.eclipse.swt.widgets.Display;
import org.eclipse.ui.IWorkbench;

class UICustomizerApplication$1
  implements Runnable
{
  UICustomizerApplication$1(UICustomizerApplication paramUICustomizerApplication, Display paramDisplay, IWorkbench paramIWorkbench) {}
  
  public void run()
  {
    if (!val$display.isDisposed()) {
      val$workbench.close();
    }
  }
}

/* Location:
 * Qualified Name:     org.tizen.uicustomizer.UICustomizerApplication.1
 * Java Class Version: 6 (50.0)
 * JD-Core Version:    0.7.1
 */
package org.tizen.uicustomizer;

import java.io.File;
import java.io.IOException;
import java.net.MalformedURLException;
import java.net.URI;
import java.net.URL;
import org.eclipse.core.runtime.Platform;
import org.eclipse.core.runtime.preferences.ConfigurationScope;
import org.eclipse.core.runtime.preferences.IEclipsePreferences;
import org.eclipse.core.runtime.preferences.IScopeContext;
import org.eclipse.equinox.app.IApplication;
import org.eclipse.equinox.app.IApplicationContext;
import org.eclipse.jface.dialogs.MessageDialog;
import org.eclipse.osgi.service.datalocation.Location;
import org.eclipse.swt.widgets.Display;
import org.eclipse.swt.widgets.Shell;
import org.eclipse.ui.IWorkbench;
import org.eclipse.ui.PlatformUI;
import org.eclipse.ui.internal.ide.ChooseWorkspaceData;
import org.eclipse.ui.internal.ide.ChooseWorkspaceDialog;

public class UICustomizerApplication
  implements IApplication
{
  private static final String UICUSTOMIZER_WORKSPACE = "UICustomizer_workspace";
  private static final String USER_HOME = "user.home";
  
  public Object start(IApplicationContext context)
    throws Exception
  {
    Display display = PlatformUI.createDisplay();
    Location instanceLocation = Platform.getInstanceLocation();
    URL url = new File(System.getProperty("user.home"), "UICustomizer_workspace").toURI().toURL();
    ChooseWorkspaceData workspaceData = new ChooseWorkspaceData(url);
    workspaceData.readPersistedData();
    IEclipsePreferences node = ConfigurationScope.INSTANCE.getNode("org.eclipse.ui.ide");
    boolean showDialog = node.getBoolean("SHOW_WORKSPACE_SELECTION_DIALOG", true);
    if (showDialog)
    {
      if (!showDialog(display, instanceLocation, workspaceData, false)) {
        return IApplication.EXIT_OK;
      }
    }
    else if ((!instanceLocation.set(new File(workspaceData.getRecentWorkspaces()[0]).toURI().toURL(), true)) && 
      (!showDialog(display, instanceLocation, workspaceData, true))) {
      return IApplication.EXIT_OK;
    }
    try
    {
      int returnCode = PlatformUI.createAndRunWorkbench(display, new UICustomizerApplicationWorkbenchAdvisor());
      Integer localInteger;
      if (returnCode == 1) {
        return IApplication.EXIT_RESTART;
      }
      return IApplication.EXIT_OK;
    }
    finally
    {
      display.dispose();
    }
  }
  
  private boolean showDialog(Display display, Location instanceLocation, ChooseWorkspaceData workspaceData, boolean force)
    throws IOException, MalformedURLException
  {
    Shell parentShell = new Shell(display);
    ChooseWorkspaceDialog dialog = new ChooseWorkspaceDialog(parentShell, workspaceData, false, true);
    dialog.prompt(force);
    if (workspaceData.getSelection() == null) {
      return false;
    }
    if (!instanceLocation.set(new File(workspaceData.getSelection()).toURI().toURL(), true))
    {
      MessageDialog.openError(null, Messages.UICustomizerApplication_0, Messages.UICustomizerApplication_1);
      return showDialog(display, instanceLocation, workspaceData, force);
    }
    workspaceData.writePersistedData();
    return true;
  }
  
  public void stop()
  {
    if (!PlatformUI.isWorkbenchRunning()) {
      return;
    }
    final IWorkbench workbench = PlatformUI.getWorkbench();
    final Display display = workbench.getDisplay();
    display.syncExec(new Runnable()
    {
      public void run()
      {
        if (!display.isDisposed()) {
          workbench.close();
        }
      }
    });
  }
}

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

import org.eclipse.ui.application.IWorkbenchConfigurer;
import org.eclipse.ui.application.IWorkbenchWindowConfigurer;
import org.eclipse.ui.application.WorkbenchAdvisor;
import org.eclipse.ui.application.WorkbenchWindowAdvisor;

public class UICustomizerApplicationWorkbenchAdvisor
  extends WorkbenchAdvisor
{
  private static final String PERSPECTIVE_ID = "org.tizen.uicustomizer.perspective";
  
  public WorkbenchWindowAdvisor createWorkbenchWindowAdvisor(IWorkbenchWindowConfigurer configurer)
  {
    return new UICustomizerApplicationWorkbenchWindowAdvisor(configurer);
  }
  
  public String getInitialWindowPerspectiveId()
  {
    return "org.tizen.uicustomizer.perspective";
  }
  
  public void initialize(IWorkbenchConfigurer configurer)
  {
    super.initialize(configurer);
    configurer.setSaveAndRestore(true);
  }
}

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

import org.eclipse.ui.IWorkbench;
import org.eclipse.ui.IWorkbenchListener;
import org.eclipse.ui.IWorkbenchPage;
import org.eclipse.ui.IWorkbenchWindow;
import org.eclipse.ui.PlatformUI;
import org.tizen.uicustomizer.utils.ModelSynchronizer;

class UICustomizerApplicationWorkbenchWindowAdvisor$1
  implements IWorkbenchListener
{
  UICustomizerApplicationWorkbenchWindowAdvisor$1(UICustomizerApplicationWorkbenchWindowAdvisor paramUICustomizerApplicationWorkbenchWindowAdvisor) {}
  
  public boolean preShutdown(IWorkbench workbench, boolean forced)
  {
    IWorkbenchPage activePage = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage();
    activePage.closeEditors(activePage.getEditorReferences(), true);
    return ModelSynchronizer.getInstance().closeProjectAfterDirtyCheck();
  }
  
  public void postShutdown(IWorkbench workbench) {}
}

/* Location:
 * Qualified Name:     org.tizen.uicustomizer.UICustomizerApplicationWorkbenchWindowAdvisor.1
 * Java Class Version: 6 (50.0)
 * JD-Core Version:    0.7.1
 */
package org.tizen.uicustomizer;

import java.util.ArrayList;
import java.util.List;
import org.eclipse.jface.action.IContributionItem;
import org.eclipse.jface.action.ICoolBarManager;
import org.eclipse.jface.action.IMenuManager;
import org.eclipse.jface.action.IToolBarManager;
import org.eclipse.jface.action.MenuManager;
import org.eclipse.jface.action.ToolBarContributionItem;
import org.eclipse.jface.preference.IPreferenceNode;
import org.eclipse.jface.preference.PreferenceManager;
import org.eclipse.swt.graphics.Point;
import org.eclipse.swt.graphics.Rectangle;
import org.eclipse.swt.widgets.Display;
import org.eclipse.swt.widgets.Monitor;
import org.eclipse.swt.widgets.Shell;
import org.eclipse.ui.IWorkbench;
import org.eclipse.ui.IWorkbenchListener;
import org.eclipse.ui.IWorkbenchPage;
import org.eclipse.ui.IWorkbenchWindow;
import org.eclipse.ui.PlatformUI;
import org.eclipse.ui.actions.ActionFactory;
import org.eclipse.ui.actions.ActionFactory.IWorkbenchAction;
import org.eclipse.ui.application.IActionBarConfigurer;
import org.eclipse.ui.application.IWorkbenchWindowConfigurer;
import org.eclipse.ui.application.WorkbenchWindowAdvisor;
import org.eclipse.ui.ide.IDEActionFactory;
import org.eclipse.ui.themes.IThemeManager;
import org.tizen.uicustomizer.model.IColorConstant;
import org.tizen.uicustomizer.utils.ModelSynchronizer;

public class UICustomizerApplicationWorkbenchWindowAdvisor
  extends WorkbenchWindowAdvisor
{
  private static final int WIDTH = 1024;
  private static final int HEIGHT = 768;
  private static final String RESTART_WORKBENCH_ID = "org.eclipse.ui.file.restartWorkbench";
  private static final String FILE_MENU_ID = "org.tizen.uicustomizer.fileMenu";
  private static final String UI_CUSTOMIZER_TOOLBAR_ID = "org.tizen.uicustomizer.toolbar";
  private static IContributionItem[] toolbarItems = null;
  
  public UICustomizerApplicationWorkbenchWindowAdvisor(IWorkbenchWindowConfigurer configurer)
  {
    super(configurer);
  }
  
  public void preWindowOpen()
  {
    PlatformUI.getWorkbench().getThemeManager().setCurrentTheme("org.tizen.uicustomizer.theme");
    IWorkbenchWindowConfigurer configurer = getWindowConfigurer();
    Rectangle monitorBounds = Display.getDefault().getPrimaryMonitor().getBounds();
    if ((width < 1024) || (height < 768)) {
      configurer.setInitialSize(new Point(width, height));
    } else {
      configurer.setInitialSize(new Point(1024, 768));
    }
    configurer.setShowFastViewBars(false);
    configurer.setShowCoolBar(true);
    configurer.setShowStatusLine(true);
    configurer.setTitle(Messages.UICustomizerApplicationWorkbenchWindowAdvisor_Title);
    configurer.setShowPerspectiveBar(false);
    PlatformUI.getWorkbench().addWorkbenchListener(new IWorkbenchListener()
    {
      public boolean preShutdown(IWorkbench workbench, boolean forced)
      {
        IWorkbenchPage activePage = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage();
        activePage.closeEditors(activePage.getEditorReferences(), true);
        return ModelSynchronizer.getInstance().closeProjectAfterDirtyCheck();
      }
      
      public void postShutdown(IWorkbench workbench) {}
    });
  }
  
  public void postWindowOpen()
  {
    List<IContributionItem> removalList = new ArrayList();
    
    ICoolBarManager coolBarManager = getWindowConfigurer().getActionBarConfigurer().getCoolBarManager();
    IContributionItem[] arrayOfIContributionItem1;
    int j = (arrayOfIContributionItem1 = coolBarManager.getItems()).length;
    for (int i = 0; i < j; i++)
    {
      IContributionItem item = arrayOfIContributionItem1[i];
      if (!"org.tizen.uicustomizer.toolbar".equals(item.getId())) {
        removalList.add(item);
      }
    }
    for (IContributionItem item : removalList) {
      coolBarManager.remove(item);
    }
    ActionFactory.IWorkbenchAction openWorkspaceAction = IDEActionFactory.OPEN_WORKSPACE.create(getWindowConfigurer().getWindow());
    
    IMenuManager menuManager = getWindowConfigurer().getActionBarConfigurer().getMenuManager();
    IContributionItem[] arrayOfIContributionItem2;
    int m = (arrayOfIContributionItem2 = menuManager.getItems()).length;
    for (int k = 0; k < m; k++)
    {
      IContributionItem item = arrayOfIContributionItem2[k];
      if (("org.tizen.uicustomizer.fileMenu".equals(item.getId())) && ((item instanceof MenuManager)))
      {
        ((MenuManager)item).insertBefore("org.eclipse.ui.file.restartWorkbench", openWorkspaceAction);
        break;
      }
    }
    m = (arrayOfIContributionItem2 = coolBarManager.getItems()).length;
    ToolBarContributionItem toolItem;
    for (k = 0; k < m; k++)
    {
      IContributionItem item = arrayOfIContributionItem2[k];
      if ((item instanceof ToolBarContributionItem))
      {
        toolItem = (ToolBarContributionItem)item;
        toolbarItems = toolItem.getToolBarManager().getItems();
      }
    }
    coolBarManager.update(true);
    getWindowConfigurer().getWindow().getShell().setBackgroundMode(2);
    
    getWindowConfigurer().getWindow().getShell().setBackground(IColorConstant.colorEditorBackground);
    
    PreferenceManager preferenceManager = PlatformUI.getWorkbench().getPreferenceManager();
    for (Object elem : preferenceManager.getElements(0)) {
      if ((elem instanceof IPreferenceNode))
      {
        IPreferenceNode[] arrayOfIPreferenceNode;
        if (((IPreferenceNode)elem).getId().equals("org.eclipse.ui.preferencePages.Workbench"))
        {
          ToolBarContributionItem localToolBarContributionItem1 = (arrayOfIPreferenceNode = ((IPreferenceNode)elem).getSubNodes()).length;
          for (toolItem = 0; toolItem < localToolBarContributionItem1; toolItem++)
          {
            Object node = arrayOfIPreferenceNode[toolItem];
            if (((IPreferenceNode)node).getId().equals("org.eclipse.ui.preferencePages.Views")) {
              ((IPreferenceNode)elem).remove((IPreferenceNode)node);
            }
          }
        }
        if (((IPreferenceNode)elem).getId().equals("org.eclipse.help.ui.browsersPreferencePage"))
        {
          ToolBarContributionItem localToolBarContributionItem2 = (arrayOfIPreferenceNode = ((IPreferenceNode)elem).getSubNodes()).length;
          for (toolItem = 0; toolItem < localToolBarContributionItem2; toolItem++)
          {
            Object node = arrayOfIPreferenceNode[toolItem];
            ((IPreferenceNode)elem).remove((IPreferenceNode)node);
          }
        }
      }
    }
  }
  
  public static IContributionItem[] getToolbaritems()
  {
    return toolbarItems;
  }
}

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

import org.eclipse.ui.IPageLayout;
import org.eclipse.ui.IPerspectiveFactory;

public class UICustomizerPerspective
  implements IPerspectiveFactory
{
  private static final String PROPERTIES_VIEW_ID = "org.tizen.uicustomizer.ui.views.properties";
  private static final String PALETTE_WINDOW_ID = "org.tizen.uicustomizer.ui.views.paletteWindow";
  private static final String NAVIGATOR_VIEW_ID = "org.tizen.uicustomizer.ui.views.navigator";
  private static final String EXPLORER_VIEW_ID = "org.tizen.uicustomizer.ui.views.explorer";
  
  public void createInitialLayout(IPageLayout layout)
  {
    layout.addView("org.tizen.uicustomizer.ui.views.navigator", 1, 0.2F, "org.eclipse.ui.editorss");
    layout.addView("org.tizen.uicustomizer.ui.views.explorer", 4, 0.7F, "org.tizen.uicustomizer.ui.views.navigator");
    layout.addView("org.tizen.uicustomizer.ui.views.paletteWindow", 2, 0.75F, "org.eclipse.ui.editorss");
    
    layout.addView("org.tizen.uicustomizer.ui.views.properties", 4, 0.7F, "org.eclipse.ui.editorss");
    layout.addShowViewShortcut("org.tizen.uicustomizer.ui.views.properties");
    layout.addShowViewShortcut("org.tizen.uicustomizer.ui.views.paletteWindow");
    layout.addShowViewShortcut("org.tizen.uicustomizer.ui.views.navigator");
    layout.addShowViewShortcut("org.tizen.uicustomizer.ui.views.explorer");
  }
}

/* Location:
 * Qualified Name:     org.tizen.uicustomizer.UICustomizerPerspective
 * Java Class Version: 6 (50.0)
 * JD-Core Version:    0.7.1
 */
package org.tizen.uicustomizer.actions;

import java.net.MalformedURLException;
import java.net.URL;
import org.eclipse.core.runtime.ILog;
import org.eclipse.core.runtime.Status;
import org.eclipse.jface.action.Action;
import org.eclipse.ui.IWorkbench;
import org.eclipse.ui.PartInitException;
import org.eclipse.ui.PlatformUI;
import org.eclipse.ui.browser.IWebBrowser;
import org.eclipse.ui.browser.IWorkbenchBrowserSupport;
import org.tizen.uicustomizer.UICustomizerActivator;

public class OpenExternalBrowserAction
  extends Action
{
  public void openExternalBrowser()
  {
    try
    {
      PlatformUI.getWorkbench().getBrowserSupport().getExternalBrowser().openURL(new URL("https://www.tizen.org/"));
    }
    catch (PartInitException e)
    {
      UICustomizerActivator.getDefault().getLog().log(new Status(4, "org.tizen.uicustomizer", e.getMessage(), e));
    }
    catch (MalformedURLException e)
    {
      UICustomizerActivator.getDefault().getLog().log(new Status(4, "org.tizen.uicustomizer", e.getMessage(), e));
    }
  }
  
  public void run()
  {
    super.run();
    openExternalBrowser();
  }
}

/* Location:
 * Qualified Name:     org.tizen.uicustomizer.actions.OpenExternalBrowserAction
 * Java Class Version: 6 (50.0)
 * JD-Core Version:    0.7.1
 */
package org.tizen.uicustomizer.actions;

import org.eclipse.ui.IWorkbench;
import org.eclipse.ui.PlatformUI;
import org.eclipse.ui.internal.about.AboutAction;

public class ShowAboutAction
  extends AboutAction
{
  public ShowAboutAction()
  {
    super(PlatformUI.getWorkbench().getActiveWorkbenchWindow());
  }
}

/* Location:
 * Qualified Name:     org.tizen.uicustomizer.actions.ShowAboutAction
 * Java Class Version: 6 (50.0)
 * JD-Core Version:    0.7.1
 */
package org.tizen.uicustomizer.actions;

import org.eclipse.core.runtime.preferences.IEclipsePreferences;
import org.eclipse.core.runtime.preferences.IScopeContext;
import org.eclipse.core.runtime.preferences.InstanceScope;
import org.eclipse.jface.action.Action;

public class ShowWelcomeAction
  extends Action
{
  public void showWelcome()
  {
    IEclipsePreferences pref = InstanceScope.INSTANCE
      .getNode("org.tizen.uicustomizer.utils");
    boolean flag = pref.getBoolean("showThemeIntro", true);
    pref.putBoolean(
      "showThemeIntro", !flag);
  }
  
  public void run()
  {
    showWelcome();
  }
}

/* Location:
 * Qualified Name:     org.tizen.uicustomizer.actions.ShowWelcomeAction
 * 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