org.tizen.web.editor.configuration_2.0.0.201311011708

16:50:38.716 INFO  jd.cli.Main - Decompiling org.tizen.web.editor.configuration_2.0.0.201311011708.jar
package org.tizen.web.editor.configuration;

import org.eclipse.jface.preference.IPreferenceStore;
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.configuration";
  public static final String DONT_SHOW_MALFORMED_DIALOG = "org.tizen.web.editor.configuration.SHOW_MALFORMED_DIALOG";
  private static Activator plugin;
  
  public void start(BundleContext context)
    throws Exception
  {
    super.start(context);
    plugin = this;
    
    setInitialPreferences();
  }
  
  public void stop(BundleContext context)
    throws Exception
  {
    plugin = null;
    super.stop(context);
  }
  
  public static Activator getDefault()
  {
    return plugin;
  }
  
  private void setInitialPreferences()
  {
    IPreferenceStore editStore = getDefault().getPreferenceStore();
    editStore.setDefault("org.tizen.web.editor.configuration.SHOW_MALFORMED_DIALOG", false);
  }
  
  public static ImageDescriptor getImageDescriptor(String path)
  {
    return imageDescriptorFromPlugin("org.tizen.web.editor.configuration", path);
  }
}

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

import org.eclipse.jface.dialogs.MessageDialogWithToggle;
import org.eclipse.jface.preference.IPreferenceStore;
import org.eclipse.swt.widgets.Display;
import org.eclipse.ui.IEditorPart;
import org.slf4j.Logger;
import org.tizen.web.editor.configuration.support.IConfigurationDependent;

class ConfigurationEditor$1
  implements Runnable
{
  ConfigurationEditor$1(ConfigurationEditor paramConfigurationEditor) {}
  
  public void run()
  {
    try
    {
      ConfigurationEditor.access$1(this$0, ConfigurationEditor.access$0(this$0));
    }
    catch (Exception e)
    {
      this$0.logger.error(e.getMessage(), e);
    }
    boolean dontShowDialog;
    if (ConfigurationEditor.access$2(this$0) == null)
    {
      IPreferenceStore preferenceStore = Activator.getDefault().getPreferenceStore();
      dontShowDialog = preferenceStore.getBoolean("org.tizen.web.editor.configuration.SHOW_MALFORMED_DIALOG");
      if (!dontShowDialog)
      {
        MessageDialogWithToggle dialog = MessageDialogWithToggle.open(
          1, 
          Display.getCurrent().getActiveShell(), 
          Messages.ConfigurationEditor_MessageDialogWithToggle_Title, 
          Messages.ConfigurationEditor_MessageDialogWithToggle_Message, 
          Messages.ConfigurationEditor_MessageDialogWithToggle_ToggleMessage, 
          false, 
          preferenceStore, 
          "org.tizen.web.editor.configuration.SHOW_MALFORMED_DIALOG", 
          0);
        preferenceStore.setValue("org.tizen.web.editor.configuration.SHOW_MALFORMED_DIALOG", dialog.getToggleState());
      }
    }
    else
    {
      for (IEditorPart formPage : ConfigurationEditor.access$3(this$0))
      {
        IConfigurationDependent cd = (IConfigurationDependent)formPage;
        cd.loadStatus(ConfigurationEditor.access$2(this$0));
      }
    }
  }
}

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

import org.eclipse.ui.IWorkbenchPage;
import org.eclipse.ui.IWorkbenchPartSite;
import org.eclipse.ui.IWorkbenchWindow;

class ConfigurationEditor$2$1
  implements Runnable
{
  ConfigurationEditor$2$1(ConfigurationEditor.2 param2) {}
  
  public void run()
  {
    ConfigurationEditor editor = ConfigurationEditor.2.access$0(this$1);
    editor.getSite().getWorkbenchWindow().getActivePage().closeEditor(editor, false);
  }
}

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

import org.eclipse.core.resources.IFile;
import org.eclipse.core.resources.IResource;
import org.eclipse.core.resources.IResourceDelta;
import org.eclipse.core.resources.IResourceDeltaVisitor;
import org.eclipse.core.runtime.CoreException;
import org.eclipse.swt.widgets.Display;
import org.eclipse.ui.IEditorInput;
import org.eclipse.ui.IWorkbenchPage;
import org.eclipse.ui.IWorkbenchPartSite;
import org.eclipse.ui.IWorkbenchWindow;

class ConfigurationEditor$2
  implements IResourceDeltaVisitor
{
  ConfigurationEditor$2(ConfigurationEditor paramConfigurationEditor) {}
  
  public boolean visit(IResourceDelta delta)
    throws CoreException
  {
    IResource res = delta.getResource();
    if ((delta.getKind() & 0x2) != 0)
    {
      IFile input = (IFile)this$0.getEditorInput().getAdapter(IFile.class);
      if (input.equals(res)) {
        Display.getDefault().asyncExec(new Runnable()
        {
          public void run()
          {
            ConfigurationEditor editor = this$0;
            editor.getSite().getWorkbenchWindow().getActivePage().closeEditor(editor, false);
          }
        });
      }
    }
    return true;
  }
}

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

import java.io.IOException;
import java.util.Iterator;
import java.util.LinkedList;
import java.util.List;
import org.eclipse.core.resources.IFile;
import org.eclipse.core.resources.IMarker;
import org.eclipse.core.resources.IProject;
import org.eclipse.core.resources.IResource;
import org.eclipse.core.resources.IResourceChangeEvent;
import org.eclipse.core.resources.IResourceChangeListener;
import org.eclipse.core.resources.IResourceDelta;
import org.eclipse.core.resources.IResourceDeltaVisitor;
import org.eclipse.core.resources.IWorkspace;
import org.eclipse.core.resources.ResourcesPlugin;
import org.eclipse.core.runtime.CoreException;
import org.eclipse.core.runtime.IProgressMonitor;
import org.eclipse.core.runtime.IStatus;
import org.eclipse.core.runtime.Status;
import org.eclipse.jface.dialogs.MessageDialog;
import org.eclipse.jface.dialogs.MessageDialogWithToggle;
import org.eclipse.jface.preference.IPreferenceStore;
import org.eclipse.swt.widgets.Display;
import org.eclipse.ui.IEditorInput;
import org.eclipse.ui.IEditorPart;
import org.eclipse.ui.IEditorSite;
import org.eclipse.ui.IFileEditorInput;
import org.eclipse.ui.IWorkbench;
import org.eclipse.ui.IWorkbenchPage;
import org.eclipse.ui.IWorkbenchPartSite;
import org.eclipse.ui.IWorkbenchWindow;
import org.eclipse.ui.PartInitException;
import org.eclipse.ui.PlatformUI;
import org.eclipse.ui.forms.editor.FormEditor;
import org.eclipse.ui.forms.editor.FormPage;
import org.eclipse.ui.ide.IDE;
import org.eclipse.wst.sse.ui.StructuredTextEditor;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.tizen.web.editor.configuration.page.FeaturePage;
import org.tizen.web.editor.configuration.page.LocalizationPage;
import org.tizen.web.editor.configuration.page.OverviewPage;
import org.tizen.web.editor.configuration.page.PolicyPage;
import org.tizen.web.editor.configuration.page.PreferencePage;
import org.tizen.web.editor.configuration.page.PrivilegePage;
import org.tizen.web.editor.configuration.page.TizenPage;
import org.tizen.web.editor.configuration.page.WidgetPage;
import org.tizen.web.editor.configuration.support.IConfigurationDependent;
import org.tizen.web.project.configuration.ConfigurationException;
import org.tizen.web.project.configuration.WidgetConfigurator;

public class ConfigurationEditor
  extends FormEditor
  implements IResourceChangeListener
{
  protected final Logger logger = LoggerFactory.getLogger(getClass());
  public static final String ConfigurationEditorID = "org.tizen.web.editor.configuration.ConfigurationEditor";
  private WidgetConfigurator widgetConfig;
  private List<IEditorPart> sourceEditors;
  private StructuredTextEditor sourceEditor;
  public int overviewPageIndex;
  public int widgetPageIndex;
  public int featurePageIndex;
  public int privilegePageIndex;
  public int policyPageIndex;
  public int localizationPageIndex;
  public int preferencesPageIndex;
  public int tizenPageIndex;
  public int sourceIndex;
  
  public ConfigurationEditor()
  {
    ResourcesPlugin.getWorkspace().addResourceChangeListener(this);
    sourceEditors = new LinkedList();
  }
  
  protected void addPages()
  {
    try
    {
      OverviewPage overviewPage = new OverviewPage(this);
      overviewPageIndex = addPage(overviewPage);
      setActivePage(overviewPageIndex);
      sourceEditors.add(overviewPage);
      
      WidgetPage widgetPage = new WidgetPage(this);
      widgetPageIndex = addPage(widgetPage);
      setActivePage(widgetPageIndex);
      sourceEditors.add(widgetPage);
      
      FeaturePage featurePage = new FeaturePage(this);
      featurePageIndex = addPage(featurePage);
      setActivePage(featurePageIndex);
      sourceEditors.add(featurePage);
      
      PrivilegePage privilegePage = new PrivilegePage(this);
      privilegePageIndex = addPage(privilegePage);
      setActivePage(privilegePageIndex);
      sourceEditors.add(privilegePage);
      
      PolicyPage policyPage = new PolicyPage(this);
      policyPageIndex = addPage(policyPage);
      setActivePage(policyPageIndex);
      sourceEditors.add(policyPage);
      
      LocalizationPage localizationPage = new LocalizationPage(this);
      localizationPageIndex = addPage(localizationPage);
      setActivePage(localizationPageIndex);
      sourceEditors.add(localizationPage);
      
      PreferencePage preferencePage = new PreferencePage(this);
      preferencesPageIndex = addPage(preferencePage);
      setActivePage(preferencesPageIndex);
      sourceEditors.add(preferencePage);
      
      TizenPage tizenPage = new TizenPage(this);
      tizenPageIndex = addPage(tizenPage);
      setActivePage(tizenPageIndex);
      sourceEditors.add(tizenPage);
      
      sourceEditor = new StructuredTextEditor();
      sourceIndex = addPage(sourceEditor, getEditorInput());
      setPageText(sourceIndex, Messages.SourcePage_ID);
      
      setActivePage(overviewPageIndex);
      setFocus();
    }
    catch (PartInitException e)
    {
      MessageDialog.open(1, PlatformUI.getWorkbench().getDisplay().getActiveShell(), Messages.ConfigurationEditor_MessageDialog_CreatePageError, e.getMessage(), 0);
    }
    refresh();
  }
  
  public void dispose()
  {
    ResourcesPlugin.getWorkspace().removeResourceChangeListener(this);
    super.dispose();
  }
  
  public IProject getProject()
  {
    return widgetConfig.getProject();
  }
  
  public WidgetConfigurator getConfig()
  {
    return widgetConfig;
  }
  
  public void doSave(IProgressMonitor monitor)
  {
    try
    {
      IEditorPart formPage;
      if (sourceEditor.isDirty())
      {
        sourceEditor.doSave(monitor);
        boolean bSubEditorDirty = false;
        for (IEditorPart formPage : sourceEditors) {
          if (formPage.isDirty()) {
            bSubEditorDirty = true;
          }
        }
        if (!bSubEditorDirty)
        {
          refresh();
        }
        else
        {
          widgetConfig = getWidgetConfigurator();
          for (??? = sourceEditors.iterator(); ???.hasNext();)
          {
            formPage = (IEditorPart)???.next();
            if (formPage.isDirty())
            {
              IConfigurationDependent cd = (IConfigurationDependent)formPage;
              cd.saveStatus(widgetConfig);
              cd.loadStatus(widgetConfig);
              formPage.doSave(monitor);
            }
          }
          widgetConfig.doSave();
          sourceEditor.setInput(getEditorInput());
        }
      }
      else
      {
        for (IEditorPart formPage : sourceEditors) {
          if (formPage.isDirty()) {
            formPage.doSave(monitor);
          }
        }
        if (widgetConfig == null) {
          throw new ConfigurationException(Messages.ConfigurationEditor_MessageDialogWithToggle_Message);
        }
        widgetConfig.doSave();
        
        reloadPage(overviewPageIndex);
      }
    }
    catch (IOException e)
    {
      MessageDialog.open(1, getSite().getShell(), Messages.ConfigurationEditor_MessageDialog_SaveError, e.getMessage(), 0);
    }
    catch (ConfigurationException e)
    {
      MessageDialog.open(1, getSite().getShell(), Messages.ConfigurationEditor_MessageDialog_ReloadError, e.getMessage(), 0);
    }
  }
  
  public void reloadPage(int pageIndex)
  {
    IConfigurationDependent page = (IConfigurationDependent)sourceEditors.get(pageIndex);
    page.loadStatus(widgetConfig);
  }
  
  private void refresh()
  {
    Display.getDefault().syncExec(new Runnable()
    {
      public void run()
      {
        try
        {
          widgetConfig = ConfigurationEditor.this.getWidgetConfigurator();
        }
        catch (Exception e)
        {
          logger.error(e.getMessage(), e);
        }
        boolean dontShowDialog;
        if (widgetConfig == null)
        {
          IPreferenceStore preferenceStore = Activator.getDefault().getPreferenceStore();
          dontShowDialog = preferenceStore.getBoolean("org.tizen.web.editor.configuration.SHOW_MALFORMED_DIALOG");
          if (!dontShowDialog)
          {
            MessageDialogWithToggle dialog = MessageDialogWithToggle.open(
              1, 
              Display.getCurrent().getActiveShell(), 
              Messages.ConfigurationEditor_MessageDialogWithToggle_Title, 
              Messages.ConfigurationEditor_MessageDialogWithToggle_Message, 
              Messages.ConfigurationEditor_MessageDialogWithToggle_ToggleMessage, 
              false, 
              preferenceStore, 
              "org.tizen.web.editor.configuration.SHOW_MALFORMED_DIALOG", 
              0);
            preferenceStore.setValue("org.tizen.web.editor.configuration.SHOW_MALFORMED_DIALOG", dialog.getToggleState());
          }
        }
        else
        {
          for (IEditorPart formPage : sourceEditors)
          {
            IConfigurationDependent cd = (IConfigurationDependent)formPage;
            cd.loadStatus(widgetConfig);
          }
        }
      }
    });
  }
  
  public void doSaveAs() {}
  
  public void gotoMarker(IMarker marker)
  {
    setActivePage(0);
    IDE.gotoMarker(getEditor(0), marker);
  }
  
  public void init(IEditorSite site, IEditorInput editorInput)
    throws PartInitException
  {
    if (!(editorInput instanceof IFileEditorInput))
    {
      IStatus status = new Status(4, "org.tizen.web.editor.configuration", Messages.ConfigurationEditor_InputError);
      throw new PartInitException(status);
    }
    super.init(site, editorInput);
  }
  
  private WidgetConfigurator getWidgetConfigurator()
  {
    WidgetConfigurator ret = null;
    try
    {
      IFile file = (IFile)getEditorInput().getAdapter(IFile.class);
      if (file != null) {
        ret = new WidgetConfigurator(file.getProject());
      }
    }
    catch (ConfigurationException e)
    {
      logger.error(e.getMessage(), e);
    }
    return ret;
  }
  
  public boolean isSaveAsAllowed()
  {
    return true;
  }
  
  public void resourceChanged(IResourceChangeEvent event)
  {
    if (event.getType() != 1) {
      return;
    }
    try
    {
      event.getDelta().accept(new IResourceDeltaVisitor()
      {
        public boolean visit(IResourceDelta delta)
          throws CoreException
        {
          IResource res = delta.getResource();
          if ((delta.getKind() & 0x2) != 0)
          {
            IFile input = (IFile)getEditorInput().getAdapter(IFile.class);
            if (input.equals(res)) {
              Display.getDefault().asyncExec(new Runnable()
              {
                public void run()
                {
                  ConfigurationEditor editor = ConfigurationEditor.this;
                  editor.getSite().getWorkbenchWindow().getActivePage().closeEditor(editor, false);
                }
              });
            }
          }
          return true;
        }
      });
    }
    catch (CoreException e)
    {
      logger.error(e.getMessage(), e);
    }
  }
  
  protected void setInput(IEditorInput input)
  {
    super.setInput(input);
    setPartName(input.getName());
  }
  
  public void setFocus()
  {
    FormPage selectedPage = (FormPage)getSelectedPage();
    if (selectedPage != null) {
      selectedPage.setFocus();
    }
  }
}

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

import org.eclipse.osgi.util.NLS;

public class Messages
  extends NLS
{
  private static final String BUNDLE_NAME = "org.tizen.web.editor.configuration.messages";
  public static String OverviewPage_ID;
  public static String WidgetPage_ID;
  public static String PrivilegePage_ID;
  public static String FeaturePage_ID;
  public static String PolicyPage_ID;
  public static String LocalizationPage_ID;
  public static String PreferencePage_ID;
  public static String TizenPage_ID;
  public static String SourcePage_ID;
  public static String Asterisk;
  public static String Invalid_Email;
  public static String Invalid_URL;
  public static String Invalid_IRI;
  public static String AddButtonLabel;
  public static String RemoveButtonLabel;
  public static String AddBtnLabel2;
  public static String RemoveBtnLabel2;
  public static String OverviewPage_GeneralSectionLabel;
  public static String OverviewPage_GeneralSectionDescription;
  public static String OverviewPage_WidgetLinkSectionLabel;
  public static String OverviewPage_WidgetLinkSectionDescription;
  public static String OverviewPage_TizenLinkSectionLabel;
  public static String OverviewPage_TizenLinkSectionDescription;
  public static String OverviewPage_IdTextLabel;
  public static String OverviewPage_IdTextTooltip;
  public static String OverviewPage_IdTextValidEmpty;
  public static String OverviewPage_VersionTextLabel;
  public static String OverviewPage_VersionTextTooltip;
  public static String OverviewPage_VersionTextValidEmpty;
  public static String OverviewPage_NameTextLabel;
  public static String OverviewPage_NameTextTooltip;
  public static String OverviewPage_ContentTextLabel;
  public static String OverviewPage_ContentTextTooltip;
  public static String OverviewPage_ContentTextValidEmpty;
  public static String OverviewPage_IconTextLabel;
  public static String OverviewPage_IconTextTooltip;
  public static String OverviewPage_IconPreviewLabel;
  public static String OverviewPage_BrowserButtonLabel;
  public static String OverviewPage_DialogOpenLabel;
  public static String WidgetPage_SectionLabel;
  public static String WidgetPage_SectionDescription;
  public static String WidgetPage_UISectionLabel;
  public static String WidgetPage_UISectionDescription;
  public static String WidgetPage_AuthorGroupLabel;
  public static String WidgetPage_AuthorTextLabel;
  public static String WidgetPage_AuthorTextTooltip;
  public static String WidgetPage_AuthorEmailTextLabel;
  public static String WidgetPage_AuthorEmailTextTooltip;
  public static String WidgetPage_AuthorHrefTextLabel;
  public static String WidgetPage_AuthorHrefTextTooltip;
  public static String WidgetPage_LicenseGroupLabel;
  public static String WidgetPage_LicenseTextLabel;
  public static String WidgetPage_LicenseTextTooltip;
  public static String WidgetPage_LicenseHrefTextLabel;
  public static String WidgetPage_LicenseHrefTextTooltip;
  public static String WidgetPage_DescriptionTextLabel;
  public static String WidgetPage_DescriptionTextTooltip;
  public static String WidgetPage_UITextLabel;
  public static String WidgetPage_UITextTooltip;
  public static String WidgetPage_WidthTextLabel;
  public static String WidgetPage_WidthTextTooltip;
  public static String WidgetPage_HeightTextLabel;
  public static String WidgetPage_HeightTextTooltip;
  public static String WidgetPage_ViewmodeComboLabel;
  public static String WidgetPage_ViewmodeComboTooltip;
  public static String AddFeatureWizard_Title;
  public static String AddFeatureWizard_PageTitle;
  public static String AddFeatureWizard_PageDescription;
  public static String PrivilegePage_FormLabel;
  public static String PrivilegePage_SectionLabel;
  public static String PrivilegePage_SectionDescription;
  public static String PrivilegePage_TreeviewerPrivilegeNameColumn;
  public static String PrivilegePage_TreeviewerPrivilegeNameColumnTooltip;
  public static String AddPrivilegeWizard_Title;
  public static String AddPrivilegeWizard_PageTitle;
  public static String AddPrivilegeWizard_PageDescription;
  public static String AddPrivilegeWizard_FinshError;
  public static String AddPrivilegePage_InternalCheckboxLabel;
  public static String AddPrivilegePage_PrivilegeNameTextLabel;
  public static String AddPrivilegePage_PrivilegeNameTextInvalid;
  public static String AddPrivilegePage_PrivilegeNameTextConflict;
  public static String AddPrivilegePage_PrivilegeNameTextPredefined;
  public static String AddPrivilegePage_FileTextLabel;
  public static String AddPrivilegePage_FileDialogTitle;
  public static String AddPrivilegePage_FileDialogInvalid;
  public static String AddPrivilegePage_FileDialogPreImported;
  public static String FeaturePage_FormLabel;
  public static String FeaturePage_SectionLabel;
  public static String FeaturePage_SectionDescription;
  public static String FeaturePage_TreeviewerFeatureNameColumn;
  public static String FeaturePage_TreeviewerFeatureNameColumnTooltip;
  public static String AddFeatureWizard_WarningAllScreenSize;
  public static String AddFeatureWizard_WarningNormalScreenSize;
  public static String PolicyPage_FormLabel;
  public static String PolicyPage_SectionLabel;
  public static String PolicyPage_SectionDescription;
  public static String PolicyPage_ContentSecurityPolicyTextLabel;
  public static String PolicyPage_ContentSecurityPolicyTextTooltip;
  public static String PolicyPage_ContentSecurityPolicyReportOnlyTextLabel;
  public static String PolicyPage_ContentSecurityPolicyReportOnlyTextTooltip;
  public static String PolicyPage_AllowNavigationTextLabel;
  public static String PolicyPage_AllowNavigationTextTooltip;
  public static String PolicyPage_AccessGroupLabel;
  public static String PolicyPage_AccessGroupTooltip;
  public static String PolicyPage_URLColumnLabel;
  public static String PolicyPage_URLColumnTooltip;
  public static String PolicyPage_SubDomainColumnLabel;
  public static String PolicyPage_SubDomainColumnTooltip;
  public static String LocalizationPage_FormLabel;
  public static String LocalizationPage_SectionLabel;
  public static String LocalizationPage_SectionDescription;
  public static String LocalizationPage_LanguageLabel;
  public static String LocalizationPage_LanguageTooltip;
  public static String LocalizationPage_NameLabel;
  public static String LocalizationPage_NameTooltip;
  public static String LocalizationPage_DescriptionLabel;
  public static String LocalizationPage_DescrlptionTooltip;
  public static String LocalizationPage_LicenseLabel;
  public static String LocalizationPage_LicenseTooltip;
  public static String LocalizationPage_LicenseURLLabel;
  public static String LocalizationPage_LicenseURLTooltip;
  public static String LocalizationPage_NameGroupLabel;
  public static String LocalizationPage_NameGroupTooltip;
  public static String LocalizationPage_DescriptionGroupLabel;
  public static String LocalizationPage_DescriptionGroupTooltip;
  public static String LocalizationPage_LicenseGroupLabel;
  public static String LocalizationPage_LicenseGroupTooltip;
  public static String LocalizationPage_LicenseDialog_LicenseLabel;
  public static String LocalizationPage_LicenseDialog_LicenseURLLabel;
  public static String LocalizationPage_LicenseDialog_LicenseLangError;
  public static String LocalizationPage_LicenseDialog_LicenseContentError;
  public static String PreferencePage_FormLabel;
  public static String PreferencePage_SectionLabel;
  public static String PreferencePage_SectionDescription;
  public static String PreferencePage_NameColumnLabel;
  public static String PreferencePage_NameColumnTooltip;
  public static String PreferencePage_ValueColumnLabel;
  public static String PreferencePage_ValueColumnTooltip;
  public static String PreferencePage_ReadOnlyColumnLabel;
  public static String PreferencePage_ReadOnlyColumnTooltip;
  public static String TizenPage_SectionLabel;
  public static String TizenPage_SectionDescription;
  public static String TizenPage_AppIDChangedDialog;
  public static String TizenPage_ApplicationLabel;
  public static String TizenPage_ApplicationTooltip;
  public static String TizenPage_ApplicationIdTextLabel;
  public static String TizenPage_ApplicationIdTextTooltip;
  public static String TizenPage_ApplicationIdButtonLabel;
  public static String TizenPage_ApplicationRequiredVersionComboLabel;
  public static String TizenPage_ApplicationRequiredVersionComboTooltip;
  public static String TizenPage_ContentLabel;
  public static String TizenPage_ContentTooltip;
  public static String TizenPage_ContentSrcTextLabel;
  public static String TizenPage_ContentSrcTextTooltip;
  public static String TizenPage_SettingLabel;
  public static String TizenPage_SettingTooltip;
  public static String TizenPage_SettingScreenOrientationTextLabel;
  public static String TizenPage_SettingScreenOrientationTextTooltip;
  public static String TizenPage_SettingContextMenuTextLabel;
  public static String TizenPage_SettingContextMenuTextTooltip;
  public static String TizenPage_SettingBackgroundSupportTextLabel;
  public static String TizenPage_SettingBackgroundSupportTextTooltip;
  public static String TizenPage_SettingEncryptionComboTextLabel;
  public static String TizenPage_SettingEncryptionComboTextTooltip;
  public static String TizenPage_SettingInstallLocationComboTextLabel;
  public static String TizenPage_SettingInstallLocationComboTextTooltip;
  public static String TizenPage_SettingHWkeyEventComboTextLabel;
  public static String TizenPage_SettingHWkeyEventComboTextTooltip;
  public static String TizenPage_AppControlLabel;
  public static String TizenPage_AppControlTooltip;
  public static String TizenPage_AppControlSrcTextLabel;
  public static String TizenPage_AppControlSrcTextTooltip;
  public static String TizenPage_AppControlSrcTextValidEmpty;
  public static String TizenPage_AppControlOperationTextLabel;
  public static String TizenPage_AppControlOperationTextTooltip;
  public static String TizenPage_AppControlOperationTextValidEmpty;
  public static String TizenPage_AppControlUriTextLabel;
  public static String TizenPage_AppControlUriTextTooltip;
  public static String TizenPage_AppControlUriTextValidEmpty;
  public static String TizenPage_AppControlMimeLabel;
  public static String TizenPage_AppControlMimeTooltip;
  public static String TizenPage_AppControlMimeTextValidEmpty;
  public static String TizenPage_DialogTitle;
  public static String TizenPage_DynamicBoxLabel;
  public static String TizenPage_DynamicBoxTooltip;
  public static String TizenPage_DynamicBoxIdTextLabel;
  public static String TizenPage_DynamicBoxIdTextTooltip;
  public static String TizenPage_DynamicBoxBoxLabelTextLabel;
  public static String TizenPage_DynamicBoxBoxLabelTextTooltip;
  public static String TizenPage_DynamicBoxPrimaryTextLabel;
  public static String TizenPage_DynamicBoxPrimaryTextTooltip;
  public static String TizenPage_DynamicBoxLaunchTextLabel;
  public static String TizenPage_DynamicBoxLaunchTextTooltip;
  public static String TizenPage_DynamicBoxPeriodTextLabel;
  public static String TizenPage_DynamicBoxPeriodTextTooltip;
  public static String TizenPage_DynamicBoxIconTextLabel;
  public static String TizenPage_DynamicBoxIconTextTooltip;
  public static String TizenPage_DynamicBoxContentTextLabel;
  public static String TizenPage_DynamicBoxContentTextTooltip;
  public static String TizenPage_DynamicBoxMouseEventComboTextLabel;
  public static String TizenPage_DynamicBoxMouseEventComboTextTooltip;
  public static String TizenPage_DynamicBoxTouchEffectComboTextLabel;
  public static String TizenPage_DynamicBoxTouchEffectComboTextTooltip;
  public static String TizenPage_DynamicBoxBoxSizeTextLabel;
  public static String TizenPage_DynamicBoxBoxSizeTextTooltip;
  public static String TizenPage_DynamicBoxSize1x1CheckboxLabel;
  public static String TizenPage_DynamicBoxSize2x1CheckboxLabel;
  public static String TizenPage_DynamicBoxSize2x2CheckboxLabel;
  public static String TizenPage_DynamicBoxSize4x2CheckboxLabel;
  public static String TizenPage_DynamicBoxSize4x4CheckboxLabel;
  public static String TizenPage_DynamicBoxBoxSizeUseDecorationTextLabel;
  public static String TizenPage_DynamicBoxBoxSizeUseDecorationTextTooltip;
  public static String TizenPage_DynamicBoxPdTextLabel;
  public static String TizenPage_DynamicBoxPdTextTooltip;
  public static String TizenPage_DynamicBoxPdSrcTextLabel;
  public static String TizenPage_DynamicBoxPdSrcTextTooltip;
  public static String TizenPage_DynamicBoxPdWidthTextLabel;
  public static String TizenPage_DynamicBoxPdWidthTextTooltip;
  public static String TizenPage_DynamicBoxPdHeightTextLabel;
  public static String TizenPage_DynamicBoxPdHeightTextTooltip;
  public static String TizenPage_AccountLabel;
  public static String TizenPage_AccountTooltip;
  public static String TizenPage_Account_DisplayNameColumnLabel;
  public static String TizenPage_Account_DisplayNameColumnTooltip;
  public static String TizenPage_Account_MultipleAccountSupportColumnLabel;
  public static String TizenPage_Account_MultipleAccountSupportColumnTooltip;
  public static String TizenPage_Account_IconColumnLabel;
  public static String TizenPage_Account_IconColumnTooltip;
  public static String TizenPage_Account_SmallIconColumnLabel;
  public static String TizenPage_Account_SmallIconColumnTooltip;
  public static String TizenPage_MetadataLabel;
  public static String TizenPage_MetadataTooltip;
  public static String TizenPage_Metadata_KeyLabel;
  public static String TizenPage_Metadata_KeyTooltip;
  public static String TizenPage_Metadata_ValueLabel;
  public static String TizenPage_Metadata_ValueTooltip;
  public static String AddDynamicBoxWizard_Title;
  public static String AddDynamicBoxWizard_PageTitle;
  public static String AddDynamicBoxWizard_PageDescription;
  public static String AddDynamicBoxPage_DynamicBoxIdErrorMessage;
  public static String AddDynamicBoxPage_DynamicBoxIdDuplicationErrorMessage;
  public static String AddDynamicBoxPage_DynamicBoxBoxLabelErrorMessage;
  public static String AddDynamicBoxPage_DynamicBoxBoxContentErrorMessage;
  public static String AddDynamicBoxPage_DynamicBoxBoxSizePreviewErrorMessage;
  public static String AddDynamicBoxPage_DynamicBoxPdSrcErrorMessage;
  public static String AddDynamicBoxPage_DynamicBoxPdHeightErrorMessage;
  public static String AddAccountWizard_Title;
  public static String AddAccountWizard_PageTitle;
  public static String AddAccountWizard_PageDescription;
  public static String AddAccountPage_DisplayName_LangLabel;
  public static String AddAccountPage_DisplayName_LangTooltip;
  public static String AddAccountPage_DisplayName_NameLabel;
  public static String AddAccountPage_DisplayName_NameTooltip;
  public static String AddAccountPage_Capability_Label;
  public static String AddAccountPage_Capability_Tooltip;
  public static String AddAccountPage_Capability_ContentLabel;
  public static String AddAccountPage_Capability_ContentTooltip;
  public static String AddAccountPage_DisplayNameElement_ErrorMessage;
  public static String AddAccountPage_DisplayLangValue_ErrorMessage;
  public static String AddAccountPage_DisplayNameValue_ErrorMessage;
  public static String ConfigurationEditor_InputError;
  public static String ConfigurationEditor_MessageDialog_ReloadError;
  public static String ConfigurationEditor_MessageDialog_SaveError;
  public static String ConfigurationEditor_MessageDialog_CreatePageError;
  public static String ConfigurationEditor_MessageDialogWithToggle_Title;
  public static String ConfigurationEditor_MessageDialogWithToggle_Message;
  public static String ConfigurationEditor_MessageDialogWithToggle_ToggleMessage;
  public static String ConfigurationEditorPreferencePage_SynTaxErrorLabel;
  public static String ConfigurationEditorPreferencePage_SynTaxErrorCheckBoxLabel;
  public static String IconErrorMessage;
  
  static
  {
    NLS.initializeMessages("org.tizen.web.editor.configuration.messages", Messages.class);
  }
}

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

import java.util.List;
import org.eclipse.jface.viewers.IStructuredContentProvider;
import org.eclipse.jface.viewers.Viewer;
import org.tizen.web.project.configuration.WidgetConfigurator;

public class FeatureContentProvider
  implements IStructuredContentProvider
{
  public void dispose() {}
  
  public void inputChanged(Viewer viewer, Object oldInput, Object newInput) {}
  
  public Object[] getElements(Object inputElement)
  {
    if ((inputElement instanceof WidgetConfigurator))
    {
      WidgetConfigurator config = (WidgetConfigurator)inputElement;
      return config.getFeatures().toArray();
    }
    return null;
  }
}

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

import org.eclipse.jface.viewers.CellEditor;
import org.eclipse.jface.viewers.ColumnViewer;
import org.eclipse.jface.viewers.EditingSupport;
import org.eclipse.jface.viewers.TableViewer;
import org.eclipse.jface.viewers.TextCellEditor;
import org.tizen.web.config.schema.model.Feature;
import org.tizen.web.editor.configuration.support.AbstractChangeListener;

public class FeatureEditingSupport
  extends EditingSupport
{
  private int column;
  private CellEditor editor;
  private AbstractChangeListener listener;
  
  public FeatureEditingSupport(ColumnViewer viewer, int column)
  {
    super(viewer);
    
    this.column = column;
    switch (column)
    {
    case 0: 
      if ((viewer instanceof TableViewer)) {
        editor = new TextCellEditor(((TableViewer)viewer).getTable());
      }
      break;
    }
  }
  
  protected CellEditor getCellEditor(Object element)
  {
    return editor;
  }
  
  protected boolean canEdit(Object element)
  {
    switch (column)
    {
    case 0: 
      return false;
    }
    return false;
  }
  
  protected Object getValue(Object element)
  {
    if (!(element instanceof Feature)) {
      return null;
    }
    Feature feature = (Feature)element;
    switch (column)
    {
    case 0: 
      String src = feature.getName();
      if (src != null) {
        return src;
      }
      return "";
    }
    return null;
  }
  
  protected void setValue(Object element, Object value)
  {
    if (!(element instanceof Feature)) {
      return;
    }
    Feature feature = (Feature)element;
    switch (column)
    {
    case 0: 
      feature.setName((String)value);
      break;
    }
    getViewer().update(element, null);
    if (getListener() != null) {
      getListener().notifyChange();
    }
  }
  
  public void setListener(AbstractChangeListener listener)
  {
    this.listener = listener;
  }
  
  public void unsetListener()
  {
    listener = null;
  }
  
  public AbstractChangeListener getListener()
  {
    return listener;
  }
}

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

import org.eclipse.jface.viewers.ITableLabelProvider;
import org.eclipse.jface.viewers.LabelProvider;
import org.eclipse.swt.graphics.Image;
import org.tizen.common.util.ImageUtil;
import org.tizen.web.config.schema.model.Feature;
import org.tizen.web.editor.configuration.Activator;

public class FeatureLabelProvider
  extends LabelProvider
  implements ITableLabelProvider
{
  public static final String FOREIGN_PRIVILEGE_ICON_PATH = "icons/foreign_feature.png";
  private Image featureIcon;
  
  public FeatureLabelProvider()
  {
    featureIcon = ImageUtil.getImage(Activator.getDefault(), "icons/foreign_feature.png");
  }
  
  public Image getColumnImage(Object element, int columnIndex)
  {
    return featureIcon;
  }
  
  public String getColumnText(Object element, int columnIndex)
  {
    if (!(element instanceof Feature)) {
      return null;
    }
    Feature feature = (Feature)element;
    switch (columnIndex)
    {
    case 0: 
      return feature.getName();
    }
    return null;
  }
  
  public void dispose()
  {
    featureIcon.dispose();
  }
}

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

import org.eclipse.jface.viewers.Viewer;
import org.eclipse.jface.viewers.ViewerSorter;
import org.tizen.web.config.schema.model.Feature;

public class FeatureSorter
  extends ViewerSorter
{
  public int compare(Viewer viewer, Object e1, Object e2)
  {
    if (((e1 instanceof Feature)) && ((e2 instanceof Feature)))
    {
      Feature f1 = (Feature)e1;
      Feature f2 = (Feature)e2;
      return f1.getName().compareTo(f2.getName());
    }
    return super.compare(viewer, e1, e2);
  }
}

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

import org.eclipse.swt.events.ModifyEvent;
import org.eclipse.swt.events.ModifyListener;
import org.eclipse.swt.widgets.List;
import org.eclipse.swt.widgets.Text;

class AddFeaturePage$1
  implements ModifyListener
{
  AddFeaturePage$1(AddFeaturePage paramAddFeaturePage) {}
  
  public void modifyText(ModifyEvent e)
  {
    AddFeaturePage.access$0(this$0).removeAll();
    String strfilter = AddFeaturePage.access$1(this$0).getText().trim();
    if (strfilter.isEmpty())
    {
      AddFeaturePage.access$0(this$0).setItems(AddFeaturePage.access$2(this$0)); return;
    }
    String[] arrayOfString;
    int j = (arrayOfString = AddFeaturePage.access$2(this$0)).length;
    for (int i = 0; i < j; i++)
    {
      String featureName = arrayOfString[i];
      if (featureName.contains(strfilter)) {
        AddFeaturePage.access$0(this$0).add(featureName);
      }
    }
  }
}

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

import java.util.Arrays;
import java.util.Collection;
import java.util.HashSet;
import org.eclipse.jface.dialogs.Dialog;
import org.eclipse.jface.wizard.WizardPage;
import org.eclipse.swt.events.ModifyEvent;
import org.eclipse.swt.events.ModifyListener;
import org.eclipse.swt.layout.GridData;
import org.eclipse.swt.layout.GridLayout;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.List;
import org.eclipse.swt.widgets.Text;
import org.tizen.web.config.schema.model.Feature;
import org.tizen.web.project.configuration.WidgetConfigurator;

public class AddFeaturePage
  extends WizardPage
{
  private WidgetConfigurator configurator;
  priva
1 2 3 4 5 6 7 8 9 10 11 12

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