org.eclipse.jst.jsf.facesconfig.ui_1.2.2.v201103292152

16:45:53.976 INFO  jd.cli.Main - Decompiling org.eclipse.jst.jsf.facesconfig.ui_1.2.2.v201103292152.jar
package org.eclipse.jst.jsf.facesconfig.ui;

import org.eclipse.osgi.util.NLS;

public final class EditorMessages
  extends NLS
{
  private static final String BUNDLE_NAME = "org.eclipse.jst.jsf.facesconfig.ui.EditorMessages";
  public static String AddEditManagedPropertyDialog_Add;
  public static String AddEditManagedPropertyDialog_Edit;
  public static String AddEditMapEntryDialog_NullValue;
  public static String FacesConfigEditor_ErrorHandlingUndoConflicts_DialogMessage;
  public static String FacesConfigEditor_ErrorHandlingUndoConflicts_DialogTitle;
  public static String FacesConfigEditor_WaitForLoad_EditorTabTitle;
  public static String UI_Button_Add;
  public static String UI_Button_Edit;
  public static String UI_Button_Remove;
  public static String UI_Button_Add_more;
  public static String UI_Button_Edit_more;
  public static String Remove_Title;
  public static String Remove_Msg;
  public static String FindType;
  public static String FindType_Filter;
  public static String FindType_Error_CannotFindType;
  public static String FacesConfigEditor_Introduction_TabName;
  public static String FacesConfigEditor_Overview_TabName;
  public static String FacesConfigEditor_Pageflow_TabName;
  public static String FacesConfigEditor_ManagedBeans_TabName;
  public static String FacesConfigEditor_Components_TabName;
  public static String FacesConfigEditor_Others_TabName;
  public static String FacesConfigEditor_Source_TabName;
  public static String editor_pageflow_page_intro_name;
  public static String editor_pageflow_page_intro_title;
  public static String editor_pageflow_page_intro_help_HelpContextID;
  public static String editor_pageflow_page_intro_help_HelpToolTip;
  public static String ManagedBeanPage_Title;
  public static String ManagedBeanMasterSection_Name;
  public static String ManagedBeanMasterSection_Description;
  public static String ManagedBeanGeneralSection_Name;
  public static String ManagedBeanGeneralSection_Desc;
  public static String ManagedBeanGeneralSection_ManagedBeanName;
  public static String ManagedBeanGeneralSection_ManagedBeanClass;
  public static String ManagedBeanGeneralSection_ManagedBeanScope;
  public static String InitializationSection_Name;
  public static String InitializationSection_Description;
  public static String ManagedBeanPropertyEditDialog_Title_NewPropertyEntry;
  public static String ManagedBeanPropertyEditDialog_Title_ExistingPropertyEntry;
  public static String ManagedBeanPropertyEditDialog_PropertyName;
  public static String ManagedBeanPropertyEditDialog_PropertyClass;
  public static String ManagedBeanPropertyEditDialog_PropertyClass_Browse;
  public static String ManagedBeanPropertyEditDialog_ValueType;
  public static String ManagedBeanProeprtyEditPage_Description;
  public static String ManagedBeanPropertyEditDialog_Value;
  public static String ManagedBeanPropertyEditWizard_Title;
  public static String ManagedBeanProeprtyEditPage_Title;
  public static String ManagedBeanPropertyEditDialog_Value_Change;
  public static String ManagedBeanPropertyEditDialog_FindType;
  public static String ManagedBeanPropertyEditDialog_FindType_Filter;
  public static String InitializationSection_ClassType;
  public static String InitializationSection_ClassType_General;
  public static String InitializationSection_ClassType_Map;
  public static String InitializationSection_ClassType_List;
  public static String InitializationSection_PropertyTable_Name;
  public static String InitializationSection_PropertyTable_Class;
  public static String InitializationSection_PropertyTable_Value;
  public static String InitializationSection_MapType_KeyClass;
  public static String InitializationSection_MapType_ValueClass;
  public static String InitializationSection_MapTable_Title;
  public static String InitializationSection_MapTable_Key;
  public static String InitializationSection_MapTable_Value;
  public static String InitializationSection_ListType_ValueClass;
  public static String InitializationSection_ListTable_Title;
  public static String InitializationSection_ListTable_Value;
  public static String ListEntriesEditPage_Title;
  public static String ListEntriesWizard_Title;
  public static String ListEntriesEditPage_Description;
  public static String OverviewPage_page_name;
  public static String OverviewPage_page_id;
  public static String OverviewPage_page_title;
  public static String OverviewPage_PageflowOverview_summary;
  public static String OverviewPage_EditorSection_name;
  public static String OverviewPage_EditorSection_description;
  public static String OverviewPage_EditorSection_noplugin;
  public static String OverviewPage_EditorSection_nooverview;
  public static String OverviewPage_GeneralSection_name;
  public static String OverviewPage_GeneralSection_description;
  public static String OverviewPage_GeneralSection_label_name;
  public static String OverviewPage_GeneralSection_label_version;
  public static String OverviewPage_NavigationSection_name;
  public static String OverviewPage_NavigationSection_description;
  public static String OverviewPage_NavigationSection_table_col1;
  public static String OverviewPage_NavigationSection_table_col2;
  public static String OverviewPage_NavigationSection_table_col3;
  public static String OverviewPage_NavigationSection_pageflowPageID;
  public static String OverviewPage_ManagedBeanSection_name;
  public static String OverviewPage_ManagedBeanSection_description;
  public static String OverviewPage_ManagedBeanSection_table_namecol;
  public static String OverviewPage_ManagedBeanSection_table_scopecol;
  public static String OverviewPage_ManagedBeanSection_table_classcol;
  public static String OverviewPage_ManagedBeanSection_managedbeanPageID;
  public static String OverviewPage_ComponentsSection_name;
  public static String OverviewPage_ComponentsSection_description;
  public static String OverviewPage_ComponentsSection_table_typecol;
  public static String OverviewPage_ComponentsSection_table_namecol;
  public static String OverviewPage_ComponentsSection_componentsPageID;
  public static String OverviewPage_OthersSection_name;
  public static String OverviewPage_OthersSection_description;
  public static String OverviewPage_OthersSection_table_typecol;
  public static String OverviewPage_OthersSection_table_namecol;
  public static String OverviewPage_OthersSection_table_valuecol;
  public static String OverviewPage_OthersSection_othersPageID;
  public static String ManagedBeanPropertyGroup_error_EmptyName;
  public static String ManagedBeanPropertyGroup_error_EmptyClass;
  public static String MapEntriesEditGroup_Edit;
  public static String MapEntriesEditPage_Title;
  public static String MapEntriesWizard_Title;
  public static String MapEntryEditGroup_Key;
  public static String MapEntryEditGroup_error_EmptyKey;
  public static String MapEntryEditGroup_error_DuplicateKey;
  public static String MapEntryEditPage_Title;
  public static String MapEntryEditWizard_Title;
  public static String MapEntriesEditPage_Description;
  public static String MapEntryEditPage_Description;
  public static String ValueEditDialog_Title;
  public static String ValueEditWizard_Title;
  public static String ValueEditPage_Description;
  public static String ValueEditGroup_Value;
  public static String ValueEditPage_Title;
  public static String ComponentsPage_Title;
  public static String ComponentMasterSection_Name;
  public static String ComponentMasterSection_Description;
  public static String ComponentGeneralSection_Name;
  public static String ComponentGeneralSection_Description;
  public static String ComponentGeneralSection_Label_DisplayName;
  public static String ComponentGeneralSection_Label_Description;
  public static String ComponentGeneralSection_Label_ComponentType;
  public static String ComponentGeneralSection_Label_ComponentClass;
  public static String RenderKitMasterSection_Name;
  public static String RenderKitMasterSection_Description;
  public static String RenderKitGeneralSection_Name;
  public static String RenderKitGeneralSection_Description;
  public static String RenderKitGeneralSection_Label_DisplayName;
  public static String RenderKitGeneralSection_Label_Description;
  public static String RenderKitGeneralSection_Label_RenderKitID;
  public static String RenderKitGeneralSection_Label_RenderKitClass;
  public static String RendererSection_Name;
  public static String RendererSection_Description;
  public static String RendererSection_Table_NameColumn;
  public static String RendererSection_Table_ComponentFamilyColumn;
  public static String RendererSection_Table_TypeColumn;
  public static String RendererSection_Table_ClassColumn;
  public static String RendererSection_Dialog_Title_Add;
  public static String RendererSection_Dialog_Title_Edit;
  public static String RendererSection_Dialog_Tab_General;
  public static String RendererSection_Dialog_DisplayName;
  public static String RendererSection_Dialog_ComponentFamilyValue;
  public static String RendererSection_Dialog_TypeValue;
  public static String RendererSection_Dialog_RendererClass;
  public static String RendererSection_Dialog_Error_ComponentFamilyEmpty;
  public static String RendererSection_Dialog_Error_RendererTypeEmpty;
  public static String RendererSection_Dialog_Error_RendererClassEmpty;
  public static String RendererSection_Dialog_SelectComponentFamilyDialog_Title;
  public static String RendererSection_Dialog_ComponentFamilyCaption;
  public static String RendererSection_Dialog_ComponentFamilyLabel;
  public static String ConverterMasterSection_Name;
  public static String ConverterMasterSection_Description;
  public static String ConverterGeneralSection_Name;
  public static String ConverterGeneralSection_Description;
  public static String ConverterGeneralSection_Label_DisplayName;
  public static String ConverterGeneralSection_Label_Description;
  public static String ConverterGeneralSection_Label_ConverterID;
  public static String ConverterGeneralSection_Label_ConverterForClass;
  public static String ConverterGeneralSection_Label_ConverterClass;
  public static String ValidatorMasterSection_Name;
  public static String ValidatorMasterSection_Description;
  public static String ValidatorGeneralSection_Name;
  public static String ValidatorGeneralSection_Description;
  public static String ValidatorGeneralSection_Label_DisplayName;
  public static String ValidatorGeneralSection_Label_Description;
  public static String ValidatorGeneralSection_Label_ValidatorID;
  public static String ValidatorGeneralSection_Label_ValidatorClass;
  public static String AttributeSection_Name;
  public static String AttributeSection_Description;
  public static String AttributeSection_Table_NameColumn;
  public static String AttributeSection_Table_ClassColumn;
  public static String AttributeSection_Table_DefaultValueColumn;
  public static String AttributeSection_Table_SuggestedValueColumn;
  public static String AttributeSection_Dialog_Title_Add;
  public static String AttributeSection_Dialog_Title_Edit;
  public static String AttributeSection_Dialog_Tab_General;
  public static String AttributeSection_Dialog_AttributeName;
  public static String AttributeSection_Dialog_AttributeClass;
  public static String AttributeSection_Dialog_DefaultValue;
  public static String AttributeSection_Dialog_SuggestedValue;
  public static String AttributeSection_Dialog_Error_NameEmpty;
  public static String AttributeSection_Dialog_Error_ClassEmpty;
  public static String PropertySection_Name;
  public static String PropertySection_Description;
  public static String PropertySection_Table_NameColumn;
  public static String PropertySection_Table_ClassColumn;
  public static String PropertySection_Table_DefaultValueColumn;
  public static String PropertySection_Table_SuggestedValueColumn;
  public static String PropertySection_Dialog_Title_Add;
  public static String PropertySection_Dialog_Title_Edit;
  public static String PropertySection_Dialog_Tab_General;
  public static String PropertySection_Dialog_PropertyName;
  public static String PropertySection_Dialog_PropertyClass;
  public static String PropertySection_Dialog_DefaultValue;
  public static String PropertySection_Dialog_SuggestedValue;
  public static String PropertySection_Dialog_Error_NameEmpty;
  public static String PropertySection_Dialog_Error_ClassEmpty;
  public static String FacetSection_Name;
  public static String FacetSection_Description;
  public static String FacetSection_Table_DisplayNameColumn;
  public static String FacetSection_Table_FacetNameColumn;
  public static String FacetSection_Table_DescriptionColumn;
  public static String FacetSection_Dialog_Title_Add;
  public static String FacetSection_Dialog_Title_Edit;
  public static String FacetSection_Dialog_Tab_General;
  public static String FacetSection_Dialog_FacetName;
  public static String FacetSection_Dialog_DisplayName;
  public static String FacetSection_Dialog_Description;
  public static String FacetSection_Dialog_Error_NameEmpty;
  public static String OthersPage_Title;
  public static String ActionListenerSection_Name;
  public static String ActionListenerSection_Description;
  public static String MessageBundleSection_Name;
  public static String MessageBundleSection_Description;
  public static String MessageBundleSection_Dialog_Title;
  public static String MessageBundleSection_Dialog_Message_SelectPropertyFile;
  public static String MessageBundleSection_Dialog_Message_AlreadyExists;
  public static String LocaleConfigSection_Name;
  public static String LocaleConfigSection_Description;
  public static String LocaleConfigSection_Wizard_WindowTitle;
  public static String LocaleConfigSection_Wizard_Page_Name;
  public static String LocaleConfigSection_Wizard_Page_Title;
  public static String LocaleConfigSection_Wizard_Page_Description;
  public static String LocaleConfigSection_Wizard_Page_LabelText;
  public static String LocaleConfigSection_Wizard_Page_AlreadyExistsError;
  public static String DefaultRenderKitIDSection_Name;
  public static String DefaultRenderKitIDSection_Description;
  public static String DefaultRenderKitIDSection_Wizard_WindowTitle;
  public static String DefaultRenderKitIDSection_Wizard_Page_Name;
  public static String DefaultRenderKitIDSection_Wizard_Page_Title;
  public static String DefaultRenderKitIDSection_Wizard_Page_Description;
  public static String DefaultRenderKitIDSection_Wizard_Page_LabelText;
  public static String DefaultRenderKitIDSection_Wizard_Page_AlreadyExistsError;
  public static String NavigationHandlerSection_Name;
  public static String NavigationHandlerSection_Description;
  public static String ViewHandlerSection_Name;
  public static String ViewHandlerSection_Description;
  public static String StateManagerSection_Name;
  public static String StateManagerSection_Description;
  public static String PropertyResolverSection_Name;
  public static String PropertyResolverSection_Description;
  public static String VariableResolverSection_Name;
  public static String VariableResolverSection_Description;
  public static String ApplicationFactorySection_Name;
  public static String ApplicationFactorySection_Description;
  public static String FacesContextFactorySection_Name;
  public static String FacesContextFactorySection_Description;
  public static String LifecycleFactorySection_Name;
  public static String LifecycleFactorySection_Description;
  public static String RenderKitFactorySection_Name;
  public static String RenderKitFactorySection_Description;
  public static String PhaseListenerSection_Name;
  public static String PhaseListenerSection_Description;
  public static String MultiPageEditorOutlinePage_noOutline;
  public static String FacesConfigEditor_Error_OpenModel_Title;
  public static String FacesConfigEditor_Error_OpenModel;
  public static String FacesConfigEditor_WaitForLoadPage_Title;
  public static String ModelLoader_LoadingModelJobName;
  public static String AlignmentAction_AlignBottomAction_Label;
  public static String AlignmentAction_AlignBottomAction_Tooltip;
  public static String AlignmentAction_AlignCenterAction_Label;
  public static String AlignmentAction_AlignCenterAction_Tooltip;
  public static String AlignmentAction_AlignLeftAction_Label;
  public static String AlignmentAction_AlignLeftAction_Tooltip;
  public static String AlignmentAction_AlignMiddleAction_Label;
  public static String AlignmentAction_AlignMiddleAction_Tooltip;
  public static String AlignmentAction_AlignRightAction_Label;
  public static String AlignmentAction_AlignRightAction_Tooltip;
  public static String AlignmentAction_AlignTopAction_Label;
  public static String AlignmentAction_AlignTopAction_Tooltip;
  public static String EditListEntriesDialog_EditingListEntries;
  public static String EditMapEntriesDialog_EditingMapEntries;
  public static String editor_pageflow_page_intro_NoIntroPage;
  
  static
  {
    NLS.initializeMessages("org.eclipse.jst.jsf.facesconfig.ui.EditorMessages", EditorMessages.class);
  }
}

/* Location:
 * Qualified Name:     org.eclipse.jst.jsf.facesconfig.ui.EditorMessages
 * Java Class Version: 5 (49.0)
 * JD-Core Version:    0.7.1
 */
package org.eclipse.jst.jsf.facesconfig.ui;

import java.net.MalformedURLException;
import java.net.URL;
import java.util.MissingResourceException;
import java.util.ResourceBundle;
import org.eclipse.core.runtime.CoreException;
import org.eclipse.core.runtime.Status;
import org.eclipse.jface.resource.ImageDescriptor;
import org.eclipse.jface.resource.ImageRegistry;
import org.eclipse.jst.jsf.common.ui.internal.guiutils.Alerts;
import org.eclipse.jst.jsf.common.ui.internal.logging.Logger;
import org.eclipse.jst.jsf.facesconfig.ui.preference.GEMPreferences;
import org.eclipse.swt.graphics.Image;
import org.eclipse.swt.widgets.Display;
import org.eclipse.swt.widgets.Shell;
import org.eclipse.ui.IWorkbench;
import org.eclipse.ui.IWorkbenchWindow;
import org.eclipse.ui.plugin.AbstractUIPlugin;
import org.osgi.framework.Bundle;
import org.osgi.framework.BundleContext;

public class EditorPlugin
  extends AbstractUIPlugin
{
  private static EditorPlugin plugin;
  private Logger log;
  private ResourceBundle resourceBundle;
  private static Alerts alerts;
  private URL pluginBase;
  
  public EditorPlugin()
  {
    plugin = this;
  }
  
  public void start(BundleContext context)
    throws Exception
  {
    super.start(context);
    try
    {
      resourceBundle = 
        ResourceBundle.getBundle("org.eclipse.jst.jsf.facesconfig.ui.EditorPluginResources");
      alerts = new Alerts(this, resourceBundle);
      pluginBase = getBundle().getEntry("/");
      
      log = new Logger(getBundle(), resourceBundle);
    }
    catch (Exception ee)
    {
      if (log != null) {
        log.error("log.msg", 
          "Problems starting plug-in Faces Config Editor.", ee);
      }
      throw new CoreException(new Status(4, getBundle()
        .getSymbolicName(), 0, 
        "Problems starting plug-in Faces Config Editor", ee));
    }
  }
  
  public void stop(BundleContext context)
    throws Exception
  {
    super.stop(context);
    plugin = null;
  }
  
  public static EditorPlugin getDefault()
  {
    return plugin;
  }
  
  public static Alerts getAlerts()
  {
    return alerts;
  }
  
  public static Logger getLogger(Class theClass)
  {
    return getDefault().getRootLogger();
  }
  
  public Logger getRootLogger()
  {
    return log;
  }
  
  public ResourceBundle getResourceBundle()
  {
    return resourceBundle;
  }
  
  public static String getResourceString(String key)
  {
    ResourceBundle bundle = getDefault().getResourceBundle();
    try
    {
      return bundle != null ? bundle.getString(key) : key;
    }
    catch (MissingResourceException localMissingResourceException) {}
    return key;
  }
  
  public static Display getStandardDisplay()
  {
    Display display = Display.getCurrent();
    if (display == null) {
      display = Display.getDefault();
    }
    return display;
  }
  
  public static IWorkbenchWindow getActiveWorkbenchWindow()
  {
    if (getDefault().getWorkbench() == null) {
      return null;
    }
    return getDefault().getWorkbench().getActiveWorkbenchWindow();
  }
  
  public static Shell getActiveShell()
  {
    Shell shell = null;
    IWorkbenchWindow workbenchWindow = getActiveWorkbenchWindow();
    if (workbenchWindow.getShell() != null) {
      shell = workbenchWindow.getShell();
    } else {
      shell = new Shell();
    }
    return shell;
  }
  
  public Image getImage(String name)
  {
    if (name == null) {
      return null;
    }
    ImageRegistry images = getImageRegistry();
    Image image = images.get(name);
    if (image == null) {
      try
      {
        ImageDescriptor id = ImageDescriptor.createFromURL(new URL(
          pluginBase, "icons/" + name));
        images.put(name, id);
        
        image = images.get(name);
      }
      catch (MalformedURLException ee)
      {
        log.error("log.msg", "log.EditorPlugin.image.error", name, ee);
      }
    }
    return image;
  }
  
  public ImageDescriptor getImageDescriptor(String path)
  {
    if (path == null) {
      return null;
    }
    ImageRegistry images = getImageRegistry();
    ImageDescriptor id = images.getDescriptor(path);
    if (id == null) {
      try
      {
        id = ImageDescriptor.createFromURL(new URL(pluginBase, "icons/" + 
          path));
        images.put(path, id);
      }
      catch (MalformedURLException ee)
      {
        log.error("log.msg", "log.EditorPlugin.image.error", path, ee);
      }
    }
    return id;
  }
  
  public static String getPluginId()
  {
    return getDefault().getBundle().getSymbolicName();
  }
  
  protected void initializeDefaultPluginPreferences() {}
}

/* Location:
 * Qualified Name:     org.eclipse.jst.jsf.facesconfig.ui.EditorPlugin
 * Java Class Version: 5 (49.0)
 * JD-Core Version:    0.7.1
 */
package org.eclipse.jst.jsf.facesconfig.ui;

import org.eclipse.emf.edit.ui.action.EditingDomainActionBarContributor;
import org.eclipse.jface.action.ICoolBarManager;
import org.eclipse.jface.action.IMenuManager;
import org.eclipse.jface.action.IStatusLineManager;
import org.eclipse.jface.action.IToolBarManager;
import org.eclipse.jst.jsf.facesconfig.ui.pageflow.PageflowActionBarContributor;
import org.eclipse.jst.jsf.facesconfig.ui.pageflow.PageflowEditor;
import org.eclipse.ui.IActionBars;
import org.eclipse.ui.IEditorPart;
import org.eclipse.ui.IWorkbenchPage;
import org.eclipse.ui.part.EditorActionBarContributor;
import org.eclipse.ui.part.MultiPageEditorActionBarContributor;
import org.eclipse.wst.sse.ui.StructuredTextEditor;
import org.eclipse.wst.xml.ui.internal.tabletree.SourcePageActionContributor;

public class FacesConfigActionBarContributor
  extends MultiPageEditorActionBarContributor
{
  private SourcePageActionContributor sourceActionContributor = null;
  private PageflowActionBarContributor pageflowActionContributor = null;
  private EditingDomainActionBarContributor formbasedPageActionContributor = null;
  private IEditorPart activeNestedEditor;
  
  public void setActivePage(IEditorPart activeEditor)
  {
    if (activeEditor != activeNestedEditor)
    {
      if (getActionContributor(activeNestedEditor) != null) {
        getActionContributor(activeNestedEditor).setActiveEditor(
          activeEditor);
      }
      activeNestedEditor = activeEditor;
      EditorActionBarContributor activeContributor = getActionContributor(activeEditor);
      if (activeContributor != null) {
        activeContributor.setActiveEditor(activeEditor);
      } else {
        super.setActiveEditor(activeEditor);
      }
      updateActionBars();
    }
  }
  
  public void contributeToCoolBar(ICoolBarManager coolBarManager)
  {
    EditorActionBarContributor activeContributor = getActionContributor(activeNestedEditor);
    if (activeContributor != null) {
      activeContributor.contributeToCoolBar(coolBarManager);
    }
  }
  
  public void contributeToMenu(IMenuManager menuManager)
  {
    EditorActionBarContributor activeContributor = getActionContributor(activeNestedEditor);
    if (activeContributor != null) {
      activeContributor.contributeToMenu(menuManager);
    }
  }
  
  public void contributeToStatusLine(IStatusLineManager statusLineManager)
  {
    EditorActionBarContributor activeContributor = getActionContributor(activeNestedEditor);
    if (activeContributor != null) {
      activeContributor.contributeToStatusLine(statusLineManager);
    }
  }
  
  public void contributeToToolBar(IToolBarManager toolBarManager)
  {
    EditorActionBarContributor activeContributor = getActionContributor(activeNestedEditor);
    if (activeContributor != null) {
      activeContributor.contributeToToolBar(toolBarManager);
    }
  }
  
  public void dispose()
  {
    getFormbasedPageActionContributor().dispose();
    getPageflowActionContributor().dispose();
    getSourceActionContributor().dispose();
  }
  
  public IActionBars getActionBars()
  {
    EditorActionBarContributor activeContributor = getActionContributor(activeNestedEditor);
    if (activeContributor != null) {
      return activeContributor.getActionBars();
    }
    return super.getActionBars();
  }
  
  public IWorkbenchPage getPage()
  {
    return super.getPage();
  }
  
  public void init(IActionBars bars, IWorkbenchPage page)
  {
    getPageflowActionContributor().init(bars, page);
    getSourceActionContributor().init(bars, page);
    getFormbasedPageActionContributor().init(bars, page);
    super.init(bars, page);
  }
  
  private EditorActionBarContributor getActionContributor(IEditorPart activeNestedEditor_)
  {
    EditorActionBarContributor activeContributor = null;
    if ((activeNestedEditor_ instanceof PageflowEditor)) {
      activeContributor = getPageflowActionContributor();
    } else if ((activeNestedEditor_ instanceof StructuredTextEditor)) {
      activeContributor = getSourceActionContributor();
    } else if (activeNestedEditor_ != null) {
      activeContributor = getFormbasedPageActionContributor();
    }
    return activeContributor;
  }
  
  private SourcePageActionContributor getSourceActionContributor()
  {
    if (sourceActionContributor == null) {
      sourceActionContributor = new SourcePageActionContributor();
    }
    return sourceActionContributor;
  }
  
  private EditingDomainActionBarContributor getFormbasedPageActionContributor()
  {
    if (formbasedPageActionContributor == null) {
      formbasedPageActionContributor = new MyEditingDomainActionContributor();
    }
    return formbasedPageActionContributor;
  }
  
  private PageflowActionBarContributor getPageflowActionContributor()
  {
    if (pageflowActionContributor == null) {
      pageflowActionContributor = new PageflowActionBarContributor();
    }
    return pageflowActionContributor;
  }
  
  public void updateActionBars()
  {
    EditorActionBarContributor activeContributor = getActionContributor(activeNestedEditor);
    if ((activeContributor instanceof INestedActionContributor)) {
      ((INestedActionContributor)activeContributor).update();
    }
    getActionBars().updateActionBars();
  }
}

/* Location:
 * Qualified Name:     org.eclipse.jst.jsf.facesconfig.ui.FacesConfigActionBarContributor
 * Java Class Version: 5 (49.0)
 * JD-Core Version:    0.7.1
 */
package org.eclipse.jst.jsf.facesconfig.ui;

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

class FacesConfigEditor$1$1
  implements Runnable
{
  FacesConfigEditor$1$1(FacesConfigEditor.1 param1) {}
  
  public void run()
  {
    FacesConfigEditor.1.access$0(this$1).getSite().getPage().closeEditor(
      FacesConfigEditor.1.access$0(this$1), 
      false);
    FacesConfigEditor.1.access$0(this$1).dispose();
  }
}

/* Location:
 * Qualified Name:     org.eclipse.jst.jsf.facesconfig.ui.FacesConfigEditor.1.1
 * Java Class Version: 5 (49.0)
 * JD-Core Version:    0.7.1
 */
package org.eclipse.jst.jsf.facesconfig.ui;

import java.util.ArrayList;
import java.util.Collection;
import org.eclipse.core.resources.IResource;
import org.eclipse.core.resources.IResourceDelta;
import org.eclipse.core.resources.IResourceDeltaVisitor;
import org.eclipse.core.runtime.IPath;
import org.eclipse.emf.common.util.URI;
import org.eclipse.emf.ecore.resource.Resource;
import org.eclipse.emf.ecore.resource.ResourceSet;
import org.eclipse.emf.edit.domain.AdapterFactoryEditingDomain;

class FacesConfigEditor$1$1ResourceDeltaVisitor
  implements IResourceDeltaVisitor
{
  protected ResourceSet resourceSet;
  protected Collection changedResources;
  protected Collection removedResources;
  
  FacesConfigEditor$1$1ResourceDeltaVisitor(FacesConfigEditor.1 param1)
  {
    resourceSet = FacesConfigEditor.access$0(FacesConfigEditor.1.access$0(param1)).getResourceSet();
    
    changedResources = new ArrayList();
    
    removedResources = new ArrayList();
  }
  
  public boolean visit(IResourceDelta delta_)
  {
    if ((delta_.getFlags() != 131072) && 
      (delta_.getResource().getType() == 1) && 
      ((delta_.getKind() & 0x6) != 0))
    {
      Resource resource = resourceSet
        .getResource(URI.createURI(delta_
        .getFullPath().toString()), 
        false);
      if (resource != null) {
        if ((delta_.getKind() & 0x2) != 0) {
          removedResources.add(resource);
        } else {
          changedResources.add(resource);
        }
      }
    }
    return true;
  }
  
  public Collection getChangedResources()
  {
    return changedResources;
  }
  
  public Collection getRemovedResources()
  {
    return removedResources;
  }
}

/* Location:
 * Qualified Name:     org.eclipse.jst.jsf.facesconfig.ui.FacesConfigEditor.1.1ResourceDeltaVisitor
 * Java Class Version: 5 (49.0)
 * JD-Core Version:    0.7.1
 */
package org.eclipse.jst.jsf.facesconfig.ui;

import java.util.ArrayList;
import java.util.Collection;
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.runtime.CoreException;
import org.eclipse.core.runtime.ILog;
import org.eclipse.core.runtime.IPath;
import org.eclipse.core.runtime.Status;
import org.eclipse.emf.common.util.URI;
import org.eclipse.emf.ecore.resource.Resource;
import org.eclipse.emf.ecore.resource.ResourceSet;
import org.eclipse.emf.edit.domain.AdapterFactoryEditingDomain;
import org.eclipse.swt.widgets.Display;
import org.eclipse.swt.widgets.Shell;
import org.eclipse.ui.IWorkbenchPage;
import org.eclipse.ui.IWorkbenchPartSite;

class FacesConfigEditor$1
  implements IResourceChangeListener
{
  FacesConfigEditor$1(FacesConfigEditor paramFacesConfigEditor) {}
  
  public void resourceChanged(IResourceChangeEvent event)
  {
    IResourceDelta delta = event.getDelta();
    try
    {
      IResourceDeltaVisitor visitor = new IResourceDeltaVisitor()
      {
        protected ResourceSet resourceSet = FacesConfigEditor.access$0(this$0)
          .getResourceSet();
        protected Collection changedResources = new ArrayList();
        protected Collection removedResources = new ArrayList();
        
        public boolean visit(IResourceDelta delta_)
        {
          if ((delta_.getFlags() != 131072) && 
            (delta_.getResource().getType() == 1) && 
            ((delta_.getKind() & 0x6) != 0))
          {
            Resource resource = resourceSet
              .getResource(URI.createURI(delta_
              .getFullPath().toString()), 
              false);
            if (resource != null) {
              if ((delta_.getKind() & 0x2) != 0) {
                removedResources.add(resource);
              } else {
                changedResources.add(resource);
              }
            }
          }
          return true;
        }
        
        public Collection getChangedResources()
        {
          return changedResources;
        }
        
        public Collection getRemovedResources()
        {
          return removedResources;
        }
      };
      delta.accept(visitor);
      if (!visitor.getRemovedResources().isEmpty())
      {
        this$0.removedResources.addAll(visitor.getRemovedResources());
        if (!this$0.isDirty()) {
          this$0.getSite().getShell().getDisplay().asyncExec(
            new Runnable()
            {
              public void run()
              {
                this$0.getSite().getPage().closeEditor(
                  this$0, 
                  false);
                this$0.dispose();
              }
            });
        }
      }
      if (!visitor.getChangedResources().isEmpty()) {
        this$0.changedResources.addAll(visitor.getChangedResources());
      }
    }
    catch (CoreException exception)
    {
      EditorPlugin.getDefault().getLog().log(
        new Status(4, 
        EditorPlugin.getPluginId(), 0, exception
        .getMessage() == null ? "" : exception
        .getMessage(), exception));
    }
  }
}

/* Location:
 * Qualified Name:     org.eclipse.jst.jsf.facesconfig.ui.FacesConfigEditor.1
 * Java Class Version: 5 (49.0)
 * JD-Core Version:    0.7.1
 */
package org.eclipse.jst.jsf.facesconfig.ui;

class FacesConfigEditor$2$1
  implements Runnable
{
  FacesConfigEditor$2$1(FacesConfigEditor.2 param2) {}
  
  public void run()
  {
    FacesConfigEditor.2.access$0(this$1).editorDirtyStateChanged();
    FacesConfigEditor.2.access$0(this$1).getActionBarContributor()
      .updateActionBars();
  }
}

/* Location:
 * Qualified Name:     org.eclipse.jst.jsf.facesconfig.ui.FacesConfigEditor.2.1
 * Java Class Version: 5 (49.0)
 * JD-Core Version:    0.7.1
 */
package org.eclipse.jst.jsf.facesconfig.ui;

import java.util.EventObject;
import org.eclipse.emf.common.command.CommandStackListener;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.Display;
import org.eclipse.swt.widgets.Shell;

class FacesConfigEditor$2
  implements CommandStackListener
{
  FacesConfigEditor$2(FacesConfigEditor paramFacesConfigEditor) {}
  
  public void commandStackChanged(EventObject event)
  {
    FacesConfigEditor.access$13(this$0).getShell().getDisplay().asyncExec(
      new Runnable()
      {
        public void run()
        {
          this$0.editorDirtyStateChanged();
          this$0.getActionBarContributor()
            .updateActionBars();
        }
      });
  }
}

/* Location:
 * Qualified Name:     org.eclipse.jst.jsf.facesconfig.ui.FacesConfigEditor.2
 * Java Class Version: 5 (49.0)
 * JD-Core Version:    0.7.1
 */
package org.eclipse.jst.jsf.facesconfig.ui;

import java.util.Collections;
import org.eclipse.core.resources.IFile;
import org.eclipse.core.runtime.ILog;
import org.eclipse.core.runtime.IProgressMonitor;
import org.eclipse.core.runtime.Status;
import org.eclipse.emf.ecore.resource.Resource;
import org.eclipse.jst.jsf.facesconfig.ui.pageflow.PageflowEditor;
import org.eclipse.jst.jsf.facesconfig.util.FacesConfigArtifactEdit;
import org.eclipse.ui.IFileEditorInput;
import org.eclipse.ui.actions.WorkspaceModifyOperation;
import org.eclipse.wst.sse.ui.StructuredTextEditor;

class FacesConfigEditor$3
  extends WorkspaceModifyOperation
{
  FacesConfigEditor$3(FacesConfigEditor paramFacesConfigEditor) {}
  
  public void execute(IProgressMonitor monitor_)
  {
    try
    {
      if ((FacesConfigEditor.access$2(this$0)) && 
        (FacesConfigEditor.access$14(this$0).getEdit() != null))
      {
        Resource deploymentDescriptorResource = FacesConfigEditor.access$14(this$0).getEdit()
          .getDeploymentDescriptorResource();
        if (deploymentDescriptorResource != null) {
          deploymentDescriptorResource.save(
            Collections.EMPTY_MAP);
        }
        IFile file = ((IFileEditorInput)this$0.getEditorInput())
          .getFile();
        FacesConfigEditor.access$15(this$0).doSave(file, monitor_);
      }
      FacesConfigEditor.access$7(this$0).doSave(monitor_);
      this$0.getMultiPageCommandStackListener().markSaveLocations();
    }
    catch (Exception e)
    {
      EditorPlugin.getDefault().getLog().log(
        new Status(4, 
        EditorPlugin.getPluginId(), 0, 
        e.getMessage() == null ? "" : e
        .getMessage(), e));
    }
  }
}

/* Location:
 * Qualified Name:     org.eclipse.jst.jsf.facesconfig.ui.FacesConfigEditor.3
 * Java Class Version: 5 (49.0)
 * JD-Core Version:    0.7.1
 */
package org.eclipse.jst.jsf.facesconfig.ui;

import org.eclipse.ui.views.properties.tabbed.ITabbedPropertySheetPageContributor;

class FacesConfigEditor$4
  implements ITabbedPropertySheetPageContributor
{
  FacesConfigEditor$4(FacesConfigEditor paramFacesConfigEditor) {}
  
  public String getContributorId()
  {
    return "org.eclipse.jst.jsf.facesconfig.ui.FacesConfigEditor";
  }
}

/* Location:
 * Qualified Name:     org.eclipse.jst.jsf.facesconfig.ui.FacesConfigEditor.4
 * Java Class Version: 5 (49.0)
 * JD-Core Version:    0.7.1
 */
package org.eclipse.jst.jsf.facesconfig.ui;

import org.eclipse.emf.edit.domain.EditingDomain;
import org.eclipse.emf.edit.domain.IEditingDomainProvider;

class FacesConfigEditor$5
  implements IEditingDomainProvider
{
  FacesConfigEditor$5(FacesConfigEditor paramFacesConfigEditor) {}
  
  public EditingDomain getEditingDomain()
  {
    return FacesConfigEditor.access$0(this$0);
  }
}

/* Location:
 * Qualified Name:     org.eclipse.jst.jsf.facesconfig.ui.FacesConfigEditor.5
 * Java Class Version: 5 (49.0)
 * JD-Core Version:    0.7.1
 */
package org.eclipse.jst.jsf.facesconfig.ui;

import org.eclipse.core.resources.IMarker;

class FacesConfigEditor$6$1
  implements Runnable
{
  FacesConfigEditor$6$1(FacesConfigEditor.6 param6, IMarker paramIMarker) {}
  
  public void run()
  {
    FacesConfigEditor.access$17(FacesConfigEditor.6.access$0(this$1), val$marker);
  }
}

/* Location:
 * Qualified Name:     org.eclipse.jst.jsf.facesconfig.ui.FacesConfigEditor.6.1
 * Java Class Version: 5 (49.0)
 * JD-Core Version:    0.7.1
 */
package org.eclipse.jst.jsf.facesconfig.ui;

import org.eclipse.core.resources.IMarker;
import org.eclipse.ui.ide.IGotoMarker;

class FacesConfigEditor$6
  implements IGotoMarker
{
  FacesConfigEditor$6(FacesConfigEditor paramFacesConfigEditor) {}
  
  public void gotoMarker(final IMarker marker)
  {
    FacesConfigEditor.access$16(this$0).pageSafeExecute(new Runnable()
    {
      public void run()
      {
        FacesConfigEditor.access$17(this$0, marker);
      }
    });
  }
}

/* Location:
 * Qualified Name:     org.eclipse.jst.jsf.facesconfig.ui.FacesConfigEditor.6
 * Java Class Version: 5 (49.0)
 * JD-Core Version:    0.7.1
 */
package org.eclipse.jst.jsf.facesconfig.ui;

import org.eclipse.jst.jsf.common.ui.internal.actions.IOpenPage;

class FacesConfigEditor$7
  implements IOpenPage
{
  FacesConfigEditor$7(FacesConfigEditor paramFacesConfigEditor) {}
  
  public void setActiveEditorPage(String pageID)
  {
    this$0.setActiveEditorPage(pageID);
  }
}

/* Location:
 * Qualified Name:     org.eclipse.jst.jsf.facesconfig.ui.FacesConfigEditor.7
 * Java Class Version: 5 (49.0)
 * JD-Core Version:    0.7.1
 */
package org.eclipse.jst.jsf.facesconfig.ui;

import java.util.ArrayList;
import java.util.List;
import java.util.concurrent.atomic.AtomicBoolean;
import org.eclipse.core.runtime.ILog;
import org.eclipse.core.runtime.Status;
import org.eclipse.jst.jsf.facesconfig.ui.page.ComponentsPage;
import org.eclipse.jst.jsf.facesconfig.ui.page.IntroductionPage;
import org.eclipse.jst.jsf.facesconfig.ui.page.ManagedBeanPage;
import org.eclipse.jst.jsf.facesconfig.ui.page.OthersPage;
import org.eclipse.jst.jsf.facesconfig.ui.page.OverviewPage;
import org.eclipse.jst.jsf.faces
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40

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