Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'jsf/plugins/org.eclipse.jst.jsf.ui/src/org/eclipse/jst/jsf/ui/internal/tagregistry')
-rw-r--r--jsf/plugins/org.eclipse.jst.jsf.ui/src/org/eclipse/jst/jsf/ui/internal/tagregistry/ComponentDetailSubForm.java73
-rw-r--r--jsf/plugins/org.eclipse.jst.jsf.ui/src/org/eclipse/jst/jsf/ui/internal/tagregistry/ConverterDetailsForm.java78
-rw-r--r--jsf/plugins/org.eclipse.jst.jsf.ui/src/org/eclipse/jst/jsf/ui/internal/tagregistry/GenerateMetadataAction.java100
-rw-r--r--jsf/plugins/org.eclipse.jst.jsf.ui/src/org/eclipse/jst/jsf/ui/internal/tagregistry/Messages.java106
-rw-r--r--jsf/plugins/org.eclipse.jst.jsf.ui/src/org/eclipse/jst/jsf/ui/internal/tagregistry/NamespaceDetailsForm.java68
-rw-r--r--jsf/plugins/org.eclipse.jst.jsf.ui/src/org/eclipse/jst/jsf/ui/internal/tagregistry/ProjectTracker.java208
-rw-r--r--jsf/plugins/org.eclipse.jst.jsf.ui/src/org/eclipse/jst/jsf/ui/internal/tagregistry/SetInputRunnable.java42
-rw-r--r--jsf/plugins/org.eclipse.jst.jsf.ui/src/org/eclipse/jst/jsf/ui/internal/tagregistry/TagRegistryDetailsForm.java93
-rw-r--r--jsf/plugins/org.eclipse.jst.jsf.ui/src/org/eclipse/jst/jsf/ui/internal/tagregistry/TagRegistryMasterDetailBlock.java99
-rw-r--r--jsf/plugins/org.eclipse.jst.jsf.ui/src/org/eclipse/jst/jsf/ui/internal/tagregistry/TagRegistryMasterForm.java506
-rw-r--r--jsf/plugins/org.eclipse.jst.jsf.ui/src/org/eclipse/jst/jsf/ui/internal/tagregistry/TagRegistryView.java97
-rw-r--r--jsf/plugins/org.eclipse.jst.jsf.ui/src/org/eclipse/jst/jsf/ui/internal/tagregistry/TaglibContentProvider.java455
-rw-r--r--jsf/plugins/org.eclipse.jst.jsf.ui/src/org/eclipse/jst/jsf/ui/internal/tagregistry/ValidatorDetailsForm.java71
-rw-r--r--jsf/plugins/org.eclipse.jst.jsf.ui/src/org/eclipse/jst/jsf/ui/internal/tagregistry/messages.properties20
14 files changed, 0 insertions, 2016 deletions
diff --git a/jsf/plugins/org.eclipse.jst.jsf.ui/src/org/eclipse/jst/jsf/ui/internal/tagregistry/ComponentDetailSubForm.java b/jsf/plugins/org.eclipse.jst.jsf.ui/src/org/eclipse/jst/jsf/ui/internal/tagregistry/ComponentDetailSubForm.java
deleted file mode 100644
index cc072c6ab..000000000
--- a/jsf/plugins/org.eclipse.jst.jsf.ui/src/org/eclipse/jst/jsf/ui/internal/tagregistry/ComponentDetailSubForm.java
+++ /dev/null
@@ -1,73 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2001, 2008 Oracle Corporation and others.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Oracle Corporation - initial API and implementation
- *******************************************************************************/
-package org.eclipse.jst.jsf.ui.internal.tagregistry;
-
-import java.util.Collections;
-import java.util.HashMap;
-import java.util.Map;
-import java.util.Set;
-
-import org.eclipse.jst.jsf.common.runtime.internal.model.component.ComponentTypeInfo;
-import org.eclipse.jst.jsf.common.runtime.internal.view.model.common.IComponentTagElement;
-import org.eclipse.jst.jsf.common.ui.internal.form.AbstractXMLSectionsDetailsForm;
-import org.eclipse.jst.jsf.ui.internal.common.ViewObjectPresenter;
-import org.eclipse.swt.widgets.Composite;
-
-/**
- * Details page for component details.
- *
- * @author cbateman
- *
- */
-public class ComponentDetailSubForm extends AbstractXMLSectionsDetailsForm
-{
- private final static String COMPONENT_TYPE_SECTION_KEY = "componentSection"; //$NON-NLS-1$
- private static final String INTERFACES_SECTION_KEY = "interfacesSection"; //$NON-NLS-1$
- private XMLTextSection _componentTypeSection;
- private XMLTextSection _interfacesSection;
-
- @Override
- protected Map<? extends Object, XMLTextSection> createXMLTextSections(Composite parent)
- {
- final Map<String, XMLTextSection> sections = new HashMap<String, XMLTextSection>();
- _componentTypeSection = new XMLTextSection(getToolkit(), parent, Messages.ComponentDetailSubForm_TypeInfo);
- sections.put(COMPONENT_TYPE_SECTION_KEY, _componentTypeSection);
-
- _interfacesSection = new XMLTextSection(getToolkit(), parent, Messages.ComponentDetailSubForm_InterfaceInfo);
- sections.put(INTERFACES_SECTION_KEY, _interfacesSection);
- return sections;
- }
-
-
- @Override
- protected Set<XMLTextSection> getInitiallyExpanded(
- Map<Object, XMLTextSection> sections)
- {
- return Collections.singleton(_componentTypeSection);
- }
-
-
- @Override
- protected void doUpdateSelection(final Object newSelection)
- {
- if (newSelection instanceof IComponentTagElement)
- {
- final IComponentTagElement curTagElement = (IComponentTagElement) newSelection;
- final ComponentTypeInfo typeInfo = curTagElement.getComponent();
- if (typeInfo != null)
- {
- _componentTypeSection.setText(ViewObjectPresenter.present(typeInfo), true, false);
- _interfacesSection.setText(ViewObjectPresenter.presentCompInterfaces(typeInfo, null), true, false);
- _componentTypeSection.refresh();
- }
- }
- }
-}
diff --git a/jsf/plugins/org.eclipse.jst.jsf.ui/src/org/eclipse/jst/jsf/ui/internal/tagregistry/ConverterDetailsForm.java b/jsf/plugins/org.eclipse.jst.jsf.ui/src/org/eclipse/jst/jsf/ui/internal/tagregistry/ConverterDetailsForm.java
deleted file mode 100644
index 6a97504c3..000000000
--- a/jsf/plugins/org.eclipse.jst.jsf.ui/src/org/eclipse/jst/jsf/ui/internal/tagregistry/ConverterDetailsForm.java
+++ /dev/null
@@ -1,78 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2001, 2008 Oracle Corporation and others.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Oracle Corporation - initial API and implementation
- *******************************************************************************/
-package org.eclipse.jst.jsf.ui.internal.tagregistry;
-
-import java.util.Collections;
-import java.util.HashMap;
-import java.util.Map;
-import java.util.Set;
-
-import org.eclipse.jst.jsf.common.runtime.internal.model.decorator.ConverterTypeInfo;
-import org.eclipse.jst.jsf.common.runtime.internal.view.model.common.IConverterTagElement;
-import org.eclipse.jst.jsf.common.ui.internal.form.AbstractXMLSectionsDetailsForm;
-import org.eclipse.osgi.util.NLS;
-import org.eclipse.swt.widgets.Composite;
-
-/**
- * Details form for a converter tag.
- *
- * @author cbateman
- *
- */
-public class ConverterDetailsForm extends AbstractXMLSectionsDetailsForm
-{
- private final static String CONVERTER_TYPE_SECTION_KEY = "converterSection"; //$NON-NLS-1$
- private XMLTextSection _converterTypeSection;
-
- @Override
- protected Map<? extends Object, XMLTextSection> createXMLTextSections(Composite parent)
- {
- final Map<String, XMLTextSection> sections = new HashMap<String, XMLTextSection>();
- _converterTypeSection = new XMLTextSection(getToolkit(), parent, Messages.ConverterDetailsForm_ConverterInfo);
- sections.put(CONVERTER_TYPE_SECTION_KEY, _converterTypeSection);
- return sections;
- }
-
-
- @Override
- protected Set<XMLTextSection> getInitiallyExpanded(
- Map<Object, XMLTextSection> sections)
- {
- return Collections.singleton(_converterTypeSection);
- }
-
- @Override
- protected void doUpdateSelection(Object newSelection)
- {
- if (newSelection instanceof IConverterTagElement)
- {
- IConverterTagElement converterTagElement = (IConverterTagElement) newSelection;
- final ConverterTypeInfo typeInfo = converterTagElement.getConverter();
-
- if (typeInfo != null)
- {
- final String className = typeInfo.getClassName();
- final String converterId = typeInfo.getConverterId();
-
- final String formatText = "<form><p><b>{0}</b> {1}</p> <p><b>{2}</b> {3}</p></form>"; //$NON-NLS-1$
- Object[] bindings = new String[4];
- bindings[0] = Messages.ConverterDetailsForm_Class;
- bindings[1] = className == null ? "" : className; //$NON-NLS-1$
- bindings[2] = Messages.ConverterDetailsForm_Converterid;
- bindings[3] = converterId == null ? "" : converterId; //$NON-NLS-1$
- String text = NLS.bind(formatText, bindings);
- _converterTypeSection.setText(text, true, false);
-
- _converterTypeSection.refresh();
- }
- }
- }
-}
diff --git a/jsf/plugins/org.eclipse.jst.jsf.ui/src/org/eclipse/jst/jsf/ui/internal/tagregistry/GenerateMetadataAction.java b/jsf/plugins/org.eclipse.jst.jsf.ui/src/org/eclipse/jst/jsf/ui/internal/tagregistry/GenerateMetadataAction.java
deleted file mode 100644
index 4374873e1..000000000
--- a/jsf/plugins/org.eclipse.jst.jsf.ui/src/org/eclipse/jst/jsf/ui/internal/tagregistry/GenerateMetadataAction.java
+++ /dev/null
@@ -1,100 +0,0 @@
-package org.eclipse.jst.jsf.ui.internal.tagregistry;
-
-import java.io.IOException;
-import java.util.Collection;
-
-import org.eclipse.jface.action.Action;
-import org.eclipse.jst.jsf.common.runtime.internal.model.types.ClassTypeInfo;
-import org.eclipse.jst.jsf.common.runtime.internal.view.model.common.IComponentTagElement;
-import org.eclipse.jst.jsf.common.runtime.internal.view.model.common.IConverterTagElement;
-import org.eclipse.jst.jsf.common.runtime.internal.view.model.common.ITagElement;
-import org.eclipse.jst.jsf.common.runtime.internal.view.model.common.IValidatorTagElement;
-import org.eclipse.jst.jsf.common.runtime.internal.view.model.common.Namespace;
-import org.eclipse.jst.jsf.designtime.internal.view.mapping.ViewMetadataGenerator;
-
-/**
- * @author cbateman
- *
- */
-class GenerateMetadataAction extends Action
-{
- private Namespace _ns;
-
- public GenerateMetadataAction()
- {
- super("Generate metadata"); //$NON-NLS-1$
- }
-
- public void setNamespace(final Namespace ns)
- {
- _ns = ns;
- }
-
- @Override
- public void run()
- {
- if (_ns != null)
- {
- // create resource set and resource
- final ViewMetadataGenerator generator = new ViewMetadataGenerator(_ns
- .getNSUri());
- for (final ITagElement element : (Collection<? extends ITagElement>) _ns
- .getViewElements())
- {
- final String tagName = element.getName();
- final ClassTypeInfo typeInfo = getTypeInfo(element);
- if (typeInfo != null)
- {
- generator.addTagToViewObjectMapping(tagName, typeInfo, null, null);
- }
- }
-
- try
- {
- generator.save(System.out);
- }
- catch (final IOException e)
- {
- // TODO Auto-generated catch block
- e.printStackTrace();
- }
- // final IProject project = (IProject) _viewer.getInput();
- // final ITaglibDomainMetaDataModelContext modelContext =
- // TaglibDomainMetaDataQueryHelper.createMetaDataModelContext(project,
- // "http://java.sun.com/jsf/html");
- // final Entity entity = TaglibDomainMetaDataQueryHelper.getEntity(
- // modelContext, "outputText");
- // if (entity != null)
- // {
- // final Trait trait = TaglibDomainMetaDataQueryHelper.getTrait(
- // entity, "viewElementMapping");
- // if (trait != null)
- // {
- // final TagToViewObjectMapping tagConstraint =
- // (TagToViewObjectMapping) trait.getValue();
- // System.err.println(tagConstraint.toString());
- // }
- // }
-
- }
- }
-
- private ClassTypeInfo getTypeInfo(final ITagElement element)
- {
- ClassTypeInfo typeInfo = null;
- if (element instanceof IComponentTagElement)
- {
- typeInfo = ((IComponentTagElement) element).getComponent();
- }
- else if (element instanceof IConverterTagElement)
- {
- typeInfo = ((IConverterTagElement) element).getConverter();
- }
- else if (element instanceof IValidatorTagElement)
- {
- typeInfo = ((IValidatorTagElement) element).getValidator();
- }
-
- return typeInfo;
- }
-}
diff --git a/jsf/plugins/org.eclipse.jst.jsf.ui/src/org/eclipse/jst/jsf/ui/internal/tagregistry/Messages.java b/jsf/plugins/org.eclipse.jst.jsf.ui/src/org/eclipse/jst/jsf/ui/internal/tagregistry/Messages.java
deleted file mode 100644
index 085209379..000000000
--- a/jsf/plugins/org.eclipse.jst.jsf.ui/src/org/eclipse/jst/jsf/ui/internal/tagregistry/Messages.java
+++ /dev/null
@@ -1,106 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2008 Oracle Corporation and others.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Oracle Corporation - initial API and implementation
- *******************************************************************************/
-package org.eclipse.jst.jsf.ui.internal.tagregistry;
-
-import org.eclipse.osgi.util.NLS;
-
-/**
- * String resource handler
- *
- */
-public class Messages extends NLS {
- private static final String BUNDLE_NAME = "org.eclipse.jst.jsf.ui.internal.tagregistry.messages"; //$NON-NLS-1$
- /**
- * see message.properties
- */
- public static String ComponentDetailSubForm_InterfaceInfo;
- /**
- * see message.properties
- */
- public static String ComponentDetailSubForm_TypeInfo;
- /**
- * see message.properties
- */
- public static String ConverterDetailsForm_Class;
- /**
- * see message.properties
- */
- public static String ConverterDetailsForm_Converterid;
- /**
- * see message.properties
- */
- public static String ConverterDetailsForm_ConverterInfo;
- /**
- * see message.properties
- */
- public static String NamespaceDetailsForm_SectionLabel;
- /**
- * see message.properties
- */
- public static String NamespaceDetailsForm_SectionText;
- /**
- * see message.properties
- */
- public static String TaglibContentProvider_Calculating;
- /**
- * see message.properties
- */
- public static String TaglibContentProvider_JobDesc;
- /**
- * see message.properties
- */
- public static String TaglibContentProvider_NamespaceErrorDescription;
- /**
- * see message.properties
- */
- public static String TaglibContentProvider_NamespaceErrorTitle;
- /**
- * see message.properties
- */
- public static String TaglibContentProvider_TagCalculatingWaitMessage;
- /**
- * see message.properties
- */
- public static String TagRegistryDetailsForm_SectionText;
- /**
- * see message.properties
- */
- public static String TagRegistryDetailsForm_Namespace;
- /**
- * see message.properties
- */
- public static String TagRegistryMasterForm_FlushCacheMessage;
- /**
- * see message.properties
- */
- public static String TagRegistryMasterForm_FlushCacheQuestion;
- /**
- * see message.properties
- */
- public static String TagRegistryMasterForm_Project;
- /**
- * see message.properties
- */
- public static String TagRegistryMasterForm_RefreshRegistry;
- /**
- * see message.properties
- */
- public static String ValidatorDetailsForm_SectionLabel;
- /**
- * see message.properties
- */
- public static String ValidatorDetailsForm_SectionText;
-
- static {
- // initialize resource bundle
- NLS.initializeMessages(BUNDLE_NAME, Messages.class);
- }
-}
diff --git a/jsf/plugins/org.eclipse.jst.jsf.ui/src/org/eclipse/jst/jsf/ui/internal/tagregistry/NamespaceDetailsForm.java b/jsf/plugins/org.eclipse.jst.jsf.ui/src/org/eclipse/jst/jsf/ui/internal/tagregistry/NamespaceDetailsForm.java
deleted file mode 100644
index a53b31c09..000000000
--- a/jsf/plugins/org.eclipse.jst.jsf.ui/src/org/eclipse/jst/jsf/ui/internal/tagregistry/NamespaceDetailsForm.java
+++ /dev/null
@@ -1,68 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2001, 2008 Oracle Corporation and others.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Oracle Corporation - initial API and implementation
- *******************************************************************************/
-package org.eclipse.jst.jsf.ui.internal.tagregistry;
-
-import java.util.Collections;
-import java.util.HashMap;
-import java.util.Map;
-import java.util.Set;
-
-import org.eclipse.jst.jsf.common.runtime.internal.view.model.common.Namespace;
-import org.eclipse.jst.jsf.common.ui.internal.form.AbstractXMLSectionsDetailsForm;
-import org.eclipse.osgi.util.NLS;
-import org.eclipse.swt.widgets.Composite;
-
-
-/**
- * Details form for a namespace
- *
- * @author cbateman
- *
- */
-public class NamespaceDetailsForm extends AbstractXMLSectionsDetailsForm
-{
- private final static String NAMESPACE_SECTION_KEY = "namespaceSection"; //$NON-NLS-1$
- private XMLTextSection _namespaceSection;
-
- @Override
- protected Map<? extends Object, XMLTextSection> createXMLTextSections(Composite parent)
- {
- final Map<String, XMLTextSection> sections = new HashMap<String, XMLTextSection>();
- _namespaceSection = new XMLTextSection(getToolkit(), parent, Messages.NamespaceDetailsForm_SectionLabel);
- sections.put(NAMESPACE_SECTION_KEY, _namespaceSection);
- return sections;
- }
-
- @Override
- protected Set<XMLTextSection> getInitiallyExpanded(
- Map<Object, XMLTextSection> sections)
- {
- return Collections.singleton(_namespaceSection);
- }
-
- @Override
- protected void doUpdateSelection(Object newSelection)
- {
- if (newSelection instanceof Namespace)
-
- {
- Namespace namespace = (Namespace) newSelection;
-
- final String displayName = namespace.getDisplayName();
- final String uri = namespace.getNSUri();
-
- String namespaceSectionText = NLS.bind(Messages.NamespaceDetailsForm_SectionText, displayName == null ? "" : displayName, uri == null ? "" : uri ); //$NON-NLS-1$ //$NON-NLS-2$
-
- _namespaceSection.setText(namespaceSectionText, true, false);
- _namespaceSection.refresh();
- }
- }
-}
diff --git a/jsf/plugins/org.eclipse.jst.jsf.ui/src/org/eclipse/jst/jsf/ui/internal/tagregistry/ProjectTracker.java b/jsf/plugins/org.eclipse.jst.jsf.ui/src/org/eclipse/jst/jsf/ui/internal/tagregistry/ProjectTracker.java
deleted file mode 100644
index 870fc8da7..000000000
--- a/jsf/plugins/org.eclipse.jst.jsf.ui/src/org/eclipse/jst/jsf/ui/internal/tagregistry/ProjectTracker.java
+++ /dev/null
@@ -1,208 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2001, 2008 Oracle Corporation and others.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Oracle Corporation - initial API and implementation
- *******************************************************************************/
-package org.eclipse.jst.jsf.ui.internal.tagregistry;
-
-import java.util.HashSet;
-import java.util.Set;
-import java.util.concurrent.CopyOnWriteArrayList;
-
-import org.eclipse.core.resources.IProject;
-import org.eclipse.core.resources.IResource;
-import org.eclipse.core.resources.IWorkspaceRoot;
-import org.eclipse.core.resources.ResourcesPlugin;
-import org.eclipse.jst.jsf.common.internal.resource.IResourceLifecycleListener;
-import org.eclipse.jst.jsf.common.internal.resource.LifecycleListener;
-import org.eclipse.jst.jsf.common.internal.resource.ResourceLifecycleEvent;
-import org.eclipse.jst.jsf.common.internal.resource.ResourceLifecycleEvent.EventType;
-import org.eclipse.jst.jsf.common.internal.resource.ResourceLifecycleEvent.ReasonType;
-import org.eclipse.jst.jsf.ui.internal.tagregistry.ProjectTracker.ProjectTrackingListener.Reason;
-
-/**
- * Tracks the active JSF projects in the workspace, maintaining a list of valid
- * projects and firing events when it changes
- *
- * @author cbateman
- *
- */
-class ProjectTracker
-{
- private final IWorkspaceRoot _root;
- private final LifecycleListener _lifecycleListener;
- private final CopyOnWriteArrayList<ProjectTrackingListener> _myListeners;
- private Set<IProject> _validProjects;
- private final ResourceChangeListener _resourceChangeListener;
- private ProjectAdvisor _projectAdvisor;
-
- public ProjectTracker(final IWorkspaceRoot root, final ProjectAdvisor projectAdvisor)
- {
- _root = root;
- _lifecycleListener = new LifecycleListener(ResourcesPlugin.getWorkspace());
- _resourceChangeListener = new ResourceChangeListener();
- _myListeners = new CopyOnWriteArrayList<ProjectTrackingListener>();
- if (projectAdvisor != null)
- {
- _projectAdvisor = projectAdvisor;
- }
- else
- {
- _projectAdvisor = DEFAULT_ADVISOR;
- }
- }
-
- public void startTracking()
- {
- _lifecycleListener.addResource(_root);
-
- _validProjects = new HashSet<IProject>();
-
- for (final IProject project : _root.getProjects())
- {
- if (_projectAdvisor.shouldTrack(project))
- {
- _validProjects.add(project);
- _lifecycleListener.addResource(project);
- }
- }
- // do this last, to ensure that any "simulataneous" events are handled
- // by our listener only after everything is initialized.
- _lifecycleListener.addListener(_resourceChangeListener);
- }
-
- public Set<IProject> getProjects()
- {
- final Set<IProject> projects = new HashSet<IProject>();
- synchronized (this)
- {
- projects.addAll(_validProjects);
- }
- return projects;
- }
-
- private synchronized void addProject(final IProject project)
- {
- if (_projectAdvisor.shouldTrack(project))
- {
- synchronized (this)
- {
- _validProjects.add(project);
- _lifecycleListener.addResource(project);
- }
- fireChangeEvent(project, Reason.ADDED);
- }
- }
-
- private void removeProject(final IProject project)
- {
- synchronized (this)
- {
- _validProjects.remove(project);
- _lifecycleListener.removeResource(project);
- }
- fireChangeEvent(project, Reason.REMOVED);
- }
-
- public void addListener(ProjectTrackingListener listener)
- {
- _myListeners.addIfAbsent(listener);
- }
-
- public void removeListener(ProjectTrackingListener listener)
- {
- _myListeners.remove(listener);
- }
-
- private void fireChangeEvent(final IProject project,
- ProjectTrackingListener.Reason reason)
- {
- for (final ProjectTrackingListener listener : _myListeners)
- {
- listener.projectsChanged(project, reason);
- }
- }
-
- public void dispose()
- {
- _lifecycleListener.dispose();
- _validProjects.clear();
- _myListeners.clear();
- }
-
- private class ResourceChangeListener implements IResourceLifecycleListener
- {
- public EventResult acceptEvent(final ResourceLifecycleEvent event)
- {
- final IResource res = event.getAffectedResource();
-
- // only interested if is affecting one of my resources
-
- // if the root is the source, check if a projected has been added
- // or opened
- // EventType eventType = event.getEventType();
- if (event.getEventType() == EventType.RESOURCE_ADDED
- && event.getReasonType() == ReasonType.PROJECT_OPENED
- && res instanceof IProject)
- {
- handleNewProject((IProject) res);
- }
- else if (_validProjects.contains(res)
- && event.getEventType() == EventType.RESOURCE_INACCESSIBLE)
- {
- handleProjectClosed((IProject) res);
- }
- return EventResult.getDefaultEventResult();
- }
-
- private void handleNewProject(final IProject project)
- {
- addProject(project);
- }
-
- private void handleProjectClosed(final IProject project)
- {
- removeProject(project);
- }
- }
-
- public static class ProjectTrackingListener
- {
- public enum Reason
- {
- /**
- * Reason for change is a project added
- */
- ADDED,
- /**
- * Reason for change is a project removed
- */
- REMOVED
- }
-
- protected void projectsChanged(final IProject project, Reason reason)
- {
- // do nothing by default
- }
- }
-
- private static final ProjectAdvisor DEFAULT_ADVISOR = new ProjectAdvisor()
- {
- @Override
- public boolean shouldTrack(
- IProject project)
- {
- return true;
- }
- };
-
- public abstract static class ProjectAdvisor
- {
- public abstract boolean shouldTrack(final IProject project);
- }
-}
diff --git a/jsf/plugins/org.eclipse.jst.jsf.ui/src/org/eclipse/jst/jsf/ui/internal/tagregistry/SetInputRunnable.java b/jsf/plugins/org.eclipse.jst.jsf.ui/src/org/eclipse/jst/jsf/ui/internal/tagregistry/SetInputRunnable.java
deleted file mode 100644
index 251e11e81..000000000
--- a/jsf/plugins/org.eclipse.jst.jsf.ui/src/org/eclipse/jst/jsf/ui/internal/tagregistry/SetInputRunnable.java
+++ /dev/null
@@ -1,42 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2001, 2008 Oracle Corporation and others.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Oracle Corporation - initial API and implementation
- *******************************************************************************/
-/**
- *
- */
-package org.eclipse.jst.jsf.ui.internal.tagregistry;
-
-import org.eclipse.core.resources.IProject;
-import org.eclipse.jface.viewers.Viewer;
-import org.eclipse.ui.PlatformUI;
-
-class SetInputRunnable implements Runnable
-{
- private final Viewer _viewer;
- private final IProject _project;
-
- public SetInputRunnable(IProject project, Viewer viewer)
- {
- super();
- _project = project;
- _viewer = viewer;
- }
-
- public void run()
- {
- PlatformUI.getWorkbench().getDisplay().asyncExec(new Runnable()
- {
- public void run()
- {
- _viewer.setInput(_project);
- }
- });
- }
-} \ No newline at end of file
diff --git a/jsf/plugins/org.eclipse.jst.jsf.ui/src/org/eclipse/jst/jsf/ui/internal/tagregistry/TagRegistryDetailsForm.java b/jsf/plugins/org.eclipse.jst.jsf.ui/src/org/eclipse/jst/jsf/ui/internal/tagregistry/TagRegistryDetailsForm.java
deleted file mode 100644
index 3dd6598c3..000000000
--- a/jsf/plugins/org.eclipse.jst.jsf.ui/src/org/eclipse/jst/jsf/ui/internal/tagregistry/TagRegistryDetailsForm.java
+++ /dev/null
@@ -1,93 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2001, 2008 Oracle Corporation and others.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Oracle Corporation - initial API and implementation
- *******************************************************************************/
-package org.eclipse.jst.jsf.ui.internal.tagregistry;
-
-import java.util.Collections;
-import java.util.HashMap;
-import java.util.Iterator;
-import java.util.Map;
-import java.util.Set;
-
-import org.eclipse.core.runtime.content.IContentType;
-import org.eclipse.jst.jsf.common.ui.internal.form.AbstractXMLSectionsDetailsForm;
-import org.eclipse.jst.jsf.core.internal.ITagRegistryFactoryInfo;
-import org.eclipse.jst.jsf.ui.internal.tagregistry.TaglibContentProvider.TagRegistryInstance;
-import org.eclipse.osgi.util.NLS;
-import org.eclipse.swt.widgets.Composite;
-
-/**
- * Details form for a tag registry
- *
- * @author cbateman
- *
- */
-public class TagRegistryDetailsForm extends AbstractXMLSectionsDetailsForm
-{
- private final static String TAGREGISTRY_SECTION_KEY = "tagRegistrySection"; //$NON-NLS-1$
- private XMLTextSection _tagRegistrySection;
-
- @Override
- protected Map<? extends Object, XMLTextSection> createXMLTextSections(
- final Composite parent)
- {
- final Map<String, XMLTextSection> sections = new HashMap<String, XMLTextSection>();
- _tagRegistrySection = new XMLTextSection(getToolkit(), parent,
- Messages.TagRegistryDetailsForm_Namespace);
- sections.put(TAGREGISTRY_SECTION_KEY, _tagRegistrySection);
- return sections;
- }
-
- @Override
- protected Set<XMLTextSection> getInitiallyExpanded(
- final Map<Object, XMLTextSection> sections)
- {
- return Collections.singleton(_tagRegistrySection);
- }
-
- @Override
- protected void doUpdateSelection(final Object newSelection)
- {
- if (newSelection instanceof TagRegistryInstance)
- {
- final TagRegistryInstance tagRegistry = (TagRegistryInstance) newSelection;
- final ITagRegistryFactoryInfo info = tagRegistry.getInfo();
-
- if (info != null)
- {
- final String description = info.getDescription();
- final String id = info.getId();
- final Set<IContentType> contentTypes = info.getContentTypes();
- String contentTypeLabel = ""; //$NON-NLS-1$
- final Iterator<IContentType> it = contentTypes.iterator();
- for (int i = 0; i < contentTypes.size() - 1 && it.hasNext(); i++)
- {
- final IContentType ctype = it.next();
- contentTypeLabel += ctype.getName() + ","; //$NON-NLS-1$
- }
-
- if (it.hasNext())
- {
- final IContentType ctype = it.next();
- contentTypeLabel += ctype.getName();
- }
-
- String[] bindings = new String[3];
- bindings[0] = description;
- bindings[1] = id;
- bindings[2] = contentTypeLabel;
- String text = NLS.bind(Messages.TagRegistryDetailsForm_SectionText, bindings);
- _tagRegistrySection.setText(text, true, false);
-
- _tagRegistrySection.refresh();
- }
- }
- }
-}
diff --git a/jsf/plugins/org.eclipse.jst.jsf.ui/src/org/eclipse/jst/jsf/ui/internal/tagregistry/TagRegistryMasterDetailBlock.java b/jsf/plugins/org.eclipse.jst.jsf.ui/src/org/eclipse/jst/jsf/ui/internal/tagregistry/TagRegistryMasterDetailBlock.java
deleted file mode 100644
index 3b91c75d9..000000000
--- a/jsf/plugins/org.eclipse.jst.jsf.ui/src/org/eclipse/jst/jsf/ui/internal/tagregistry/TagRegistryMasterDetailBlock.java
+++ /dev/null
@@ -1,99 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2001, 2008 Oracle Corporation and others.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Oracle Corporation - initial API and implementation
- *******************************************************************************/
-package org.eclipse.jst.jsf.ui.internal.tagregistry;
-
-import java.util.ArrayList;
-import java.util.List;
-
-import org.eclipse.jst.jsf.common.runtime.internal.view.model.common.IComponentTagElement;
-import org.eclipse.jst.jsf.common.runtime.internal.view.model.common.IConverterTagElement;
-import org.eclipse.jst.jsf.common.runtime.internal.view.model.common.IValidatorTagElement;
-import org.eclipse.jst.jsf.common.runtime.internal.view.model.common.Namespace;
-import org.eclipse.jst.jsf.common.ui.internal.form.AbstractDetailsForm;
-import org.eclipse.jst.jsf.common.ui.internal.form.AbstractMasterDetailBlock;
-import org.eclipse.jst.jsf.common.ui.internal.form.AbstractMasterForm;
-import org.eclipse.jst.jsf.common.ui.internal.form.AbstractXMLSectionsDetailsForm;
-import org.eclipse.jst.jsf.ui.internal.tagregistry.TaglibContentProvider.TagRegistryInstance;
-import org.eclipse.ui.forms.widgets.FormToolkit;
-
-/**
- * A master-detail block for selecting items in a tag registry and examining
- * their details.
- *
- * @author cbateman
- *
- */
-public class TagRegistryMasterDetailBlock extends AbstractMasterDetailBlock
-{
- ComponentDetailSubForm _componentDetails;
- TagRegistryDetailsForm _tagRegistryDetails;
- NamespaceDetailsForm _namespaceDetails;
- ConverterDetailsForm _converterDetails;
- ValidatorDetailsForm _validatorDetails;
-
-
- @Override
- protected AbstractMasterForm createMasterPart(final FormToolkit toolkit)
- {
- return new TagRegistryMasterForm(toolkit);
- }
-
-
- @Override
- protected final List<AbstractDetailsForm> createDetailPages()
- {
- final List<AbstractDetailsForm> detailForms = new ArrayList<AbstractDetailsForm>();
- _componentDetails = new ComponentDetailSubForm();
- detailForms.add(_componentDetails);
-
- _tagRegistryDetails = new TagRegistryDetailsForm();
- detailForms.add(_tagRegistryDetails);
-
- _namespaceDetails = new NamespaceDetailsForm();
- detailForms.add(_namespaceDetails);
-
- _converterDetails = new ConverterDetailsForm();
- detailForms.add(_converterDetails);
-
- _validatorDetails = new ValidatorDetailsForm();
- detailForms.add(_validatorDetails);
-
- return detailForms;
- }
-
-
- @Override
- protected AbstractXMLSectionsDetailsForm doSelectPage(final Object forModel)
- {
- if (forModel instanceof IComponentTagElement)
- {
- return _componentDetails;
- }
- else if (forModel instanceof IConverterTagElement)
- {
- return _converterDetails;
- }
- else if (forModel instanceof IValidatorTagElement)
- {
- return _validatorDetails;
- }
- else if (forModel instanceof TagRegistryInstance)
- {
- return _tagRegistryDetails;
- }
- else if (forModel instanceof Namespace)
- {
- return _namespaceDetails;
- }
- return null;
- }
-
-}
diff --git a/jsf/plugins/org.eclipse.jst.jsf.ui/src/org/eclipse/jst/jsf/ui/internal/tagregistry/TagRegistryMasterForm.java b/jsf/plugins/org.eclipse.jst.jsf.ui/src/org/eclipse/jst/jsf/ui/internal/tagregistry/TagRegistryMasterForm.java
deleted file mode 100644
index a43c7aa8b..000000000
--- a/jsf/plugins/org.eclipse.jst.jsf.ui/src/org/eclipse/jst/jsf/ui/internal/tagregistry/TagRegistryMasterForm.java
+++ /dev/null
@@ -1,506 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2001, 2008 Oracle Corporation and others.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Oracle Corporation - initial API and implementation
- *******************************************************************************/
-package org.eclipse.jst.jsf.ui.internal.tagregistry;
-
-import java.util.Set;
-
-import org.eclipse.core.resources.IProject;
-import org.eclipse.core.resources.ResourcesPlugin;
-import org.eclipse.jdt.ui.JavaUI;
-import org.eclipse.jface.action.Action;
-import org.eclipse.jface.action.IMenuListener;
-import org.eclipse.jface.action.IMenuManager;
-import org.eclipse.jface.action.IToolBarManager;
-import org.eclipse.jface.action.MenuManager;
-import org.eclipse.jface.dialogs.IDialogConstants;
-import org.eclipse.jface.dialogs.MessageDialog;
-import org.eclipse.jface.viewers.ComboViewer;
-import org.eclipse.jface.viewers.ISelection;
-import org.eclipse.jface.viewers.ISelectionChangedListener;
-import org.eclipse.jface.viewers.IStructuredSelection;
-import org.eclipse.jface.viewers.LabelProvider;
-import org.eclipse.jface.viewers.SelectionChangedEvent;
-import org.eclipse.jface.viewers.StructuredViewer;
-import org.eclipse.jface.viewers.TreeViewer;
-import org.eclipse.jface.viewers.ViewerSorter;
-import org.eclipse.jst.jsf.common.runtime.internal.view.model.common.IComponentTagElement;
-import org.eclipse.jst.jsf.common.runtime.internal.view.model.common.IConverterTagElement;
-import org.eclipse.jst.jsf.common.runtime.internal.view.model.common.ITagAttribute;
-import org.eclipse.jst.jsf.common.runtime.internal.view.model.common.ITagElement;
-import org.eclipse.jst.jsf.common.runtime.internal.view.model.common.IValidatorTagElement;
-import org.eclipse.jst.jsf.common.runtime.internal.view.model.common.Namespace;
-import org.eclipse.jst.jsf.common.ui.JSFUICommonPlugin;
-import org.eclipse.jst.jsf.common.ui.internal.form.AbstractMasterForm;
-import org.eclipse.jst.jsf.common.ui.internal.utils.JSFSharedImages;
-import org.eclipse.jst.jsf.core.jsfappconfig.JSFAppConfigUtils;
-import org.eclipse.jst.jsf.designtime.internal.view.model.ITagRegistry;
-import org.eclipse.jst.jsf.ui.internal.JSFUITraceOptions;
-import org.eclipse.jst.jsf.ui.internal.tagregistry.ProjectTracker.ProjectAdvisor;
-import org.eclipse.jst.jsf.ui.internal.tagregistry.ProjectTracker.ProjectTrackingListener;
-import org.eclipse.jst.jsf.ui.internal.tagregistry.TaglibContentProvider.TagRegistryInstance;
-import org.eclipse.jst.jsf.ui.internal.tagregistry.TaglibContentProvider.TreePlaceholder;
-import org.eclipse.swt.SWT;
-import org.eclipse.swt.graphics.Image;
-import org.eclipse.swt.layout.GridData;
-import org.eclipse.swt.widgets.Composite;
-import org.eclipse.swt.widgets.Control;
-import org.eclipse.swt.widgets.Label;
-import org.eclipse.swt.widgets.Menu;
-import org.eclipse.swt.widgets.Tree;
-import org.eclipse.ui.ISharedImages;
-import org.eclipse.ui.PlatformUI;
-import org.eclipse.ui.forms.widgets.FormToolkit;
-import org.eclipse.ui.model.BaseWorkbenchContentProvider;
-import org.eclipse.ui.model.IWorkbenchAdapter;
-import org.eclipse.ui.model.WorkbenchAdapter;
-import org.eclipse.ui.model.WorkbenchViewerComparator;
-
-/**
- * The master form in the master/detail block for tag registry. Used to display
- * a tree view of each tag registy on the currently selected project and its
- * contents.
- *
- * @author cbateman
- *
- */
-public class TagRegistryMasterForm extends AbstractMasterForm
-{
- private static final String REFRESH_NAV_IMAGE_FILE = "refresh_nav_16.gif"; //$NON-NLS-1$
-
- private TreeViewer _registryTreeViewer;
- // private Action _selectProjectAction;
- private Action _refreshAction;
-
- private final ProjectTracker _projectTracker;
- private final ProjectAdvisor _advisor;
- private GenerateMetadataAction _generateMetadataAction;
-
- /**
- * @param toolkit
- */
- public TagRegistryMasterForm(final FormToolkit toolkit)
- {
- super(toolkit);
- _advisor = new ProjectAdvisor()
- {
- @Override
- public boolean shouldTrack(final IProject project)
- {
- return JSFAppConfigUtils.isValidJSFProject(project);
- }
- };
-
- _projectTracker = new ProjectTracker(ResourcesPlugin.getWorkspace()
- .getRoot(), _advisor);
- }
-
- /**
- * @param parent
- * @return the contents main control
- */
- @Override
- public Control createClientArea(final Composite parent)
- {
- final Tree tree = getToolkit().createTree(parent,
- SWT.SINGLE | SWT.H_SCROLL | SWT.V_SCROLL);
-
- final GridData gridData = new GridData(SWT.FILL, SWT.CENTER, true, true);
- tree.setLayoutData(gridData);
- _registryTreeViewer = new TreeViewer(tree);
- // _drillDownAdapter = new DrillDownAdapter(_viewer);
- _registryTreeViewer.setContentProvider(new TaglibContentProvider());
- _registryTreeViewer.setLabelProvider(new CommonLabelProvider());
- _registryTreeViewer.setSorter(new NameSorter());
-
- PlatformUI.getWorkbench().getHelpSystem()
- .setHelp(_registryTreeViewer.getControl(),
- "ViewHandlerPrototype.viewer"); //$NON-NLS-1$
-
- _projectTracker.addListener(new ProjectTrackingListener()
- {
- @Override
- protected void projectsChanged(final IProject project,
- final Reason reason)
- {
- switch (reason)
- {
- case ADDED:
- {
- // nothing to do, since new project can't be selected
- // yet
- }
- case REMOVED:
- {
- // if the removed project is the one that is current
- // update the treeviewer
- if (project.equals(_registryTreeViewer.getInput()))
- {
- updateProjects();
- }
- }
- }
- }
- });
-
- _registryTreeViewer
- .addSelectionChangedListener(new ISelectionChangedListener()
- {
-
- public void selectionChanged(
- final SelectionChangedEvent event)
- {
- getListener().selectionChanged(event);
- updateActions(event.getSelection());
- }
- });
- makeActions();
- createContextMenuManager(_registryTreeViewer.getControl());
- return tree;
- }
-
- /**
- * dispose of the master form
- */
- @Override
- public void dispose()
- {
- _projectTracker.dispose();
- }
-
- private void updateProjects()
- {
- final Set<IProject> projects = _projectTracker.getProjects();
-
- for (final IProject project : projects)
- {
- new SetInputRunnable(project, _registryTreeViewer).run();
- break;
- }
- }
-
- @Override
- protected final void contributeActions(IToolBarManager formManager,
- IToolBarManager localManager)
- {
- // do nothing to the manager; we have our own toolbar
-
- // contribute to local tool bar
- localManager.add(_refreshAction);
- localManager.update(false);
- }
-
- /**
- */
- @Override
- protected void contributeToHeadArea(final FormToolkit toolkit,
- final Composite container)
- {
- final Label label = new Label(container, SWT.NONE);
- label.setText(Messages.TagRegistryMasterForm_Project);
- final ComboViewer combo = new ComboViewer(container, SWT.FLAT
- | SWT.READ_ONLY);
- getToolkit().adapt(combo.getControl(), true, false);
- combo.addSelectionChangedListener(new ISelectionChangedListener()
- {
- public void selectionChanged(SelectionChangedEvent event)
- {
- IStructuredSelection selection = (IStructuredSelection) event
- .getSelection();
-
- final IProject selectedProject = (IProject) selection
- .getFirstElement();
- _registryTreeViewer.setInput(selectedProject);
- }
- });
- combo.setLabelProvider(new CommonLabelProvider());
- combo.setContentProvider(new ProjectContentProvider());
- combo.setComparator(new WorkbenchViewerComparator());
- combo.setInput(_projectTracker);
- _projectTracker.addListener(new ProjectTrackingListener()
- {
- @Override
- protected void projectsChanged(IProject project, Reason reason)
- {
- combo.getControl().getDisplay().asyncExec(new Runnable()
- {
- public void run()
- {
- combo.refresh();
- }
- });
- }
- });
- }
-
- /**
- */
- @Override
- public void doInitialize()
- {
- _projectTracker.startTracking();
- }
-
- private void makeActions()
- {
- if (_registryTreeViewer == null)
- {
- throw new IllegalStateException(
- "_registryTreeViewer must be initialized before calling makeActions"); //$NON-NLS-1$
- }
- _refreshAction = new RefreshAction(_registryTreeViewer);
- _refreshAction.setText(Messages.TagRegistryMasterForm_RefreshRegistry);
- _refreshAction.setToolTipText(Messages.TagRegistryMasterForm_RefreshRegistry);
- _refreshAction.setImageDescriptor(JSFUICommonPlugin.getDefault()
- .getImageDescriptor(REFRESH_NAV_IMAGE_FILE));
-
- if (JSFUITraceOptions.TRACE_METADATAGEN)
- {
- _generateMetadataAction = new GenerateMetadataAction();
- }
- }
-
- private void createContextMenuManager(final Control control)
- {
- // Create menu manager.
- MenuManager menuMgr = new MenuManager();
- menuMgr.setRemoveAllWhenShown(true);
- menuMgr.addMenuListener(new IMenuListener() {
- public void menuAboutToShow(IMenuManager mgr) {
- fillContextMenu(mgr);
- }
- });
-
- // Create menu.
- Menu menu = menuMgr.createContextMenu(control);
- control.setMenu(menu);
-
- // Register menu for extension.
- //getSite().registerContextMenu(menuMgr, viewer);
- }
-
- private void fillContextMenu(IMenuManager mgr)
- {
- if (JSFUITraceOptions.TRACE_METADATAGEN)
- {
- mgr.add(_generateMetadataAction);
- }
- }
-
- private void updateActions(final ISelection selection)
- {
- if (JSFUITraceOptions.TRACE_METADATAGEN)
- {
- updateMetadataGenAction(selection);
- }
- }
-
- private void updateMetadataGenAction(final ISelection selection)
- {
- if (selection instanceof IStructuredSelection)
- {
- if (((IStructuredSelection)selection).getFirstElement() instanceof Namespace)
- {
- Namespace ns = (Namespace) ((IStructuredSelection)selection).getFirstElement();
- _generateMetadataAction.setNamespace(ns);
- _generateMetadataAction.setEnabled(true);
- return;
- }
- }
- _generateMetadataAction.setEnabled(false);
- }
-
- private static class RefreshAction extends Action
- {
- private final StructuredViewer _viewer;
-
- /**
- * @param viewer
- */
- private RefreshAction(final StructuredViewer viewer)
- {
- super();
- _viewer = viewer;
- setEnabled(false);
- _viewer.addSelectionChangedListener(new ISelectionChangedListener()
- {
- public void selectionChanged(SelectionChangedEvent event)
- {
- boolean enabled = false;
- final Object selectedObj = getSelected(event.getSelection());
- if (selectedObj instanceof TagRegistryInstance)
- {
- enabled = true;
- }
- setEnabled(enabled);
- }
- });
- }
-
- @Override
- public void run()
- {
- MessageDialog dialog = new MessageDialog(_viewer.getControl().getShell(), Messages.TagRegistryMasterForm_FlushCacheQuestion, null, // accept
- // the
- // default
- // window
- // icon
- Messages.TagRegistryMasterForm_FlushCacheMessage
- , MessageDialog.QUESTION, new String[] { IDialogConstants.YES_LABEL,
- IDialogConstants.NO_LABEL }, 1); // no is the
- // default
- final boolean flushCaches = (dialog.open() == 0);
- final Object selectedObj = getSelected(_viewer.getSelection());
-
- if (selectedObj instanceof TagRegistryInstance)
- {
- final TagRegistryInstance registryInstance = (TagRegistryInstance) selectedObj;
- final ITagRegistry registry = registryInstance.getRegistry();
- if (registry != null)
- {
- // need a non-null runnable so that refresh won't block,
- // but don't need to fire events, since the registry will
- // fire events on change.
- final Runnable nullRunnable = new Runnable()
- {
- public void run()
- {/* do nothing */
- }
- };
-
- registry.refresh(nullRunnable, flushCaches);
- }
- }
- }
-
- private Object getSelected(ISelection selection)
- {
- if (selection instanceof IStructuredSelection)
- {
- final IStructuredSelection structuredSel = (IStructuredSelection) selection;
- if (structuredSel.size() == 1)
- {
- return structuredSel.getFirstElement();
- }
- }
- return null;
- }
- }
-
- private static class ProjectContentProvider extends
- BaseWorkbenchContentProvider
- {
- @Override
- protected IWorkbenchAdapter getAdapter(final Object element)
- {
- return new WorkbenchAdapter()
- {
- @Override
- public Object[] getChildren(final Object object)
- {
- if (object instanceof ProjectTracker)
- {
- return ((ProjectTracker) object).getProjects()
- .toArray();
- }
- return new Object[0];
- }
- };
- }
- }
-
- private static class CommonLabelProvider extends LabelProvider
- {
- private static final String CONFIGS_IMAGE_FILE = "configs.gif"; //$NON-NLS-1$
-
- @Override
- public String getText(final Object obj)
- {
- if (obj instanceof TagRegistryInstance)
- {
- return ((TagRegistryInstance) obj).getInfo().getDescription();
- }
- else if (obj instanceof Namespace)
- {
- if (((Namespace) obj).getDisplayName() != null)
- {
- return ((Namespace) obj).getDisplayName();
- }
- return ((Namespace) obj).getNSUri();
- }
- else if (obj instanceof ITagElement)
- {
- return ((ITagElement) obj).getName();
- }
- else if (obj instanceof ITagAttribute)
- {
- return ((ITagAttribute)obj).getName();
- }
- else if (obj instanceof TreePlaceholder)
- {
- return ((TreePlaceholder) obj).getText();
- }
- else if (obj instanceof IProject)
- {
- return ((IProject) obj).getName();
- }
- return obj.toString();
- }
-
- @Override
- public Image getImage(final Object obj)
- {
- if (obj instanceof Namespace)
- {
- return JavaUI.getSharedImages().getImage(
- org.eclipse.jdt.ui.ISharedImages.IMG_OBJS_LIBRARY);
- }
- else if (obj instanceof TagRegistryInstance)
- {
- final String imageKey = ISharedImages.IMG_OBJ_FOLDER;
- return PlatformUI.getWorkbench().getSharedImages().getImage(
- imageKey);
- }
- else if (obj instanceof ITagElement)
- {
- if (obj instanceof IComponentTagElement)
- {
- return JSFUICommonPlugin.getDefault().getImage(
- JSFSharedImages.GENERIC_OBJECT_IMG);
- }
- else if (obj instanceof IConverterTagElement)
- {
- return JSFUICommonPlugin.getDefault().getImage(
- JSFSharedImages.GENERIC_CONVERTER_IMG);
- }
- else if (obj instanceof IValidatorTagElement)
- {
- return JSFUICommonPlugin.getDefault().getImage(
- JSFSharedImages.GENERIC_VALIDATOR_IMG);
- }
- return JSFUICommonPlugin.getDefault().getImage(
- JSFSharedImages.DEFAULT_PALETTE_TAG_IMG);
- }
- else if (obj instanceof TreePlaceholder)
- {
- return JSFUICommonPlugin.getDefault().getImage(CONFIGS_IMAGE_FILE);
- }
-
- final String imageKey = ISharedImages.IMG_OBJ_ELEMENT;
- return PlatformUI.getWorkbench().getSharedImages().getImage(
- imageKey);
- }
- }
-
- class NameSorter extends ViewerSorter
- {
- // do nothing
- }
-}
diff --git a/jsf/plugins/org.eclipse.jst.jsf.ui/src/org/eclipse/jst/jsf/ui/internal/tagregistry/TagRegistryView.java b/jsf/plugins/org.eclipse.jst.jsf.ui/src/org/eclipse/jst/jsf/ui/internal/tagregistry/TagRegistryView.java
deleted file mode 100644
index 83d733990..000000000
--- a/jsf/plugins/org.eclipse.jst.jsf.ui/src/org/eclipse/jst/jsf/ui/internal/tagregistry/TagRegistryView.java
+++ /dev/null
@@ -1,97 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2001, 2008 Oracle Corporation and others.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Oracle Corporation - initial API and implementation
- *******************************************************************************/
-package org.eclipse.jst.jsf.ui.internal.tagregistry;
-
-import org.eclipse.jst.jsf.ui.internal.JSFUiPlugin;
-import org.eclipse.swt.SWT;
-import org.eclipse.swt.layout.GridData;
-import org.eclipse.swt.widgets.Composite;
-import org.eclipse.ui.IViewSite;
-import org.eclipse.ui.PartInitException;
-import org.eclipse.ui.forms.widgets.Form;
-import org.eclipse.ui.forms.widgets.FormToolkit;
-import org.eclipse.ui.part.ViewPart;
-
-/**
- * This sample class demonstrates how to plug-in a new workbench view. The view
- * shows data obtained from the model. The sample creates a dummy model on the
- * fly, but a real implementation would connect to the model available either in
- * this or another plug-in (e.g. the workspace). The view is connected to the
- * model using a content provider.
- * <p>
- * The view uses a label provider to define how model objects should be
- * presented in the view. Each view can present the same model objects using
- * different labels and icons, if needed. Alternatively, a single label provider
- * can be shared between views in order to ensure that objects of the same type
- * are presented in the same way everywhere.
- * <p>
- */
-
-public class TagRegistryView extends ViewPart
-{
- private static final String LIBRARY_OBJ_IMAGE_FILE = "obj16/library_obj.gif"; //$NON-NLS-1$
- private FormToolkit _toolkit;
- private Form _form;
- private TagRegistryMasterDetailBlock _masterDetailBlock;
-
- /**
- * The constructor.
- */
- public TagRegistryView()
- {
- // do nothing
- }
-
- @Override
- public void init(IViewSite site) throws PartInitException
- {
- super.init(site);
- setTitleImage(JSFUiPlugin.getDefault().getImage(LIBRARY_OBJ_IMAGE_FILE));
- }
-
- /**
- * This is a callback that will allow us to create the viewer and initialize
- * it.
- */
- @Override
- public void createPartControl(final Composite parent)
- {
- _toolkit = new FormToolkit(parent.getDisplay());
-
- _form = _toolkit.createForm(parent);
- _form.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true,true));
- _masterDetailBlock =
- new TagRegistryMasterDetailBlock();
- _masterDetailBlock.createContent(_toolkit,_form);
- }
-
-
-
- @Override
- public void dispose()
- {
- if (_masterDetailBlock != null)
- {
- _masterDetailBlock.dispose();
- _masterDetailBlock = null;
- }
- super.dispose();
- }
-
- /**
- * Passing the focus request to the viewer's control.
- */
- @Override
- public void setFocus()
- {
- _form.setFocus();
- }
-} \ No newline at end of file
diff --git a/jsf/plugins/org.eclipse.jst.jsf.ui/src/org/eclipse/jst/jsf/ui/internal/tagregistry/TaglibContentProvider.java b/jsf/plugins/org.eclipse.jst.jsf.ui/src/org/eclipse/jst/jsf/ui/internal/tagregistry/TaglibContentProvider.java
deleted file mode 100644
index 3233462f8..000000000
--- a/jsf/plugins/org.eclipse.jst.jsf.ui/src/org/eclipse/jst/jsf/ui/internal/tagregistry/TaglibContentProvider.java
+++ /dev/null
@@ -1,455 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2001, 2008 Oracle Corporation and others.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Oracle Corporation - initial API and implementation
- *******************************************************************************/
-package org.eclipse.jst.jsf.ui.internal.tagregistry;
-
-import java.util.Collection;
-import java.util.HashMap;
-import java.util.List;
-import java.util.Map;
-import java.util.Set;
-import java.util.concurrent.ConcurrentHashMap;
-import java.util.concurrent.atomic.AtomicLong;
-
-import org.eclipse.core.resources.IProject;
-import org.eclipse.core.runtime.IProgressMonitor;
-import org.eclipse.core.runtime.IStatus;
-import org.eclipse.core.runtime.Status;
-import org.eclipse.core.runtime.jobs.Job;
-import org.eclipse.jface.dialogs.MessageDialog;
-import org.eclipse.jface.viewers.IStructuredContentProvider;
-import org.eclipse.jface.viewers.ITreeContentProvider;
-import org.eclipse.jface.viewers.StructuredViewer;
-import org.eclipse.jface.viewers.Viewer;
-import org.eclipse.jst.jsf.common.runtime.internal.view.model.common.ITagAttribute;
-import org.eclipse.jst.jsf.common.runtime.internal.view.model.common.ITagElement;
-import org.eclipse.jst.jsf.common.runtime.internal.view.model.common.Namespace;
-import org.eclipse.jst.jsf.core.internal.CompositeTagRegistryFactory;
-import org.eclipse.jst.jsf.core.internal.ITagRegistryFactoryInfo;
-import org.eclipse.jst.jsf.designtime.internal.view.model.ITagRegistry;
-import org.eclipse.jst.jsf.designtime.internal.view.model.ITagRegistry.TagRegistryChangeEvent;
-import org.eclipse.jst.jsf.designtime.internal.view.model.ITagRegistry.TagRegistryChangeEvent.EventType;
-import org.eclipse.jst.jsf.designtime.internal.view.model.TagRegistryFactory;
-import org.eclipse.jst.jsf.designtime.internal.view.model.TagRegistryFactory.TagRegistryFactoryException;
-import org.eclipse.jst.jsf.ui.internal.JSFUiPlugin;
-import org.eclipse.swt.graphics.Image;
-import org.eclipse.swt.widgets.Display;
-import org.eclipse.ui.PlatformUI;
-
-/**
- * Structured content provider for tag libraries.
- *
- * @author cbateman
- *
- */
-public class TaglibContentProvider implements IStructuredContentProvider,
- ITreeContentProvider, ITagRegistry.ITagRegistryListener
-{
- private final static Object[] NO_CHILDREN = new Object[0];
- private IProject _curInput;
- private Map<ITagRegistry, TagRegistryInstance> _curTagRegistries =
- new HashMap<ITagRegistry, TagRegistryInstance>();
- private Viewer _curViewer;
- private final AtomicLong _changeStamp = new AtomicLong(
- 0);
-
- public Object[] getElements(final Object inputElement)
- {
-
- if (inputElement instanceof IProject)
- {
- return _curTagRegistries.values().toArray();
- // return _rootNamespaces.values().toArray();
- }
-
- return NO_CHILDREN;
- }
-
- public void dispose()
- {
- // nothing to do
- }
-
- public void inputChanged(final Viewer viewer, final Object oldInput,
- final Object newInput)
- {
- // update our change stamp to invalid outstanding update tasks
- _changeStamp.incrementAndGet();
- _curViewer = viewer;
-
- if (oldInput instanceof IProject)
- {
- for (final TagRegistryInstance tagRegistry : _curTagRegistries.values())
- {
- tagRegistry.getRegistry().removeListener(this);
- }
- }
-
- if (newInput instanceof IProject)
- {
- _curInput = (IProject) newInput;
-
- final Set<ITagRegistryFactoryInfo> factories = CompositeTagRegistryFactory
- .getInstance().getAllTagRegistryFactories();
-
- _curTagRegistries.clear();
-
- for (ITagRegistryFactoryInfo factoryInfo : factories)
- {
- TagRegistryFactory factory = factoryInfo
- .getTagRegistryFactory();
- ITagRegistry registry;
- try
- {
- registry = factory.createTagRegistry(_curInput);
- if (registry != null)
- {
- final TagRegistryInstance registryInstance =
- new TagRegistryInstance(factoryInfo, registry);
- _curTagRegistries.put(registry, registryInstance);
- registry.addListener(this);
-
- new UpdateNamespacesListJob(_curInput, _changeStamp.get(),
- registryInstance).schedule();
- }
- }
- catch (TagRegistryFactoryException e)
- {
- JSFUiPlugin.log(IStatus.ERROR,
- "Problem getting tag registry", e); //$NON-NLS-1$
- }
- }
- }
- else
- {
- _curInput = null;
- _curTagRegistries.clear();
- }
- }
-
- public Object[] getChildren(final Object parentElement)
- {
- if (parentElement instanceof IProject)
- {
- return _curTagRegistries.values().toArray();
- }
- else if (parentElement instanceof TagRegistryInstance)
- {
- final TagRegistryInstance regInstance = (TagRegistryInstance) parentElement;
-
- if (!regInstance.isUpToDate())
- {
- return new Object[] {new TreePlaceholder(Messages.TaglibContentProvider_Calculating, null)};
- }
- return regInstance.getNamespaces().values().toArray();
- }
- else if (parentElement instanceof Namespace)
- {
- final Namespace ns = (Namespace) parentElement;
-
- // this could be very expensive if not initialized
- if (ns.isInitialized())
- {
- return ((Namespace) parentElement).getViewElements().toArray();
- }
-
- // fire up a job that ensures the namespace is initialized
- // and then fires refresh again on this element
- final Job updateNamespaceJob = new Job(Messages.TaglibContentProvider_JobDesc)
- {
- @Override
- protected IStatus run(final IProgressMonitor monitor)
- {
- ns.getViewElements();
- PlatformUI.getWorkbench().getDisplay().asyncExec(
- new Runnable()
- {
- public void run()
- {
- // avoid infinite recursion
- if (ns.isInitialized())
- {
- TaglibContentProvider.this
- .viewerRefresh(ns);
- }
- else
- {
- MessageDialog
- .openError(
- Display
- .getCurrent()
- .getActiveShell(),
- Messages.TaglibContentProvider_NamespaceErrorTitle,
- Messages.TaglibContentProvider_NamespaceErrorDescription);
- }
- }
- });
- return Status.OK_STATUS;
- }
- };
-
- updateNamespaceJob.schedule();
-
- return new Object[]
- { new TreePlaceholder(Messages.TaglibContentProvider_TagCalculatingWaitMessage, null) };
- }
- else if (parentElement instanceof ITagElement)
- {
- final Map<String, ? extends ITagAttribute> attributes = ((ITagElement)parentElement).getAttributes();
- if (attributes != null)
- {
- return attributes.values().toArray();
- }
- }
- return NO_CHILDREN;
- }
-
- public Object getParent(final Object element)
- {
- // no support for parent traversal right now
- return null;
- }
-
- public boolean hasChildren(final Object element)
- {
- // avoid an infinite refresh loop on the namespaces in the tag registry
- if (element instanceof TagRegistryInstance)
- {
- return true;
- }
- // finding all children of a namespace can be expensive
- else if (element instanceof Namespace)
- {
- return ((Namespace) element).hasViewElements();
- }
- return getChildren(element).length > 0;
- }
-
- public void registryChanged(final TagRegistryChangeEvent changeEvent)
- {
- if (_curViewer != null)
- {
- TagRegistryInstance registryInstance =
- _curTagRegistries.get(changeEvent.getSource());
-
- if (registryInstance != null)
- {
- _curViewer.getControl().getDisplay().asyncExec(
- new RegistryChangeTask(changeEvent.getType(), changeEvent
- .getAffectedObjects(), _changeStamp.get(),registryInstance));
- }
- }
- }
-
- private final class RegistryChangeTask implements Runnable
- {
- private final EventType _eventType;
- private final long _timestamp;
- private final List<? extends Namespace> _affectedObjects;
- private final TagRegistryInstance _registryInstance;
-
- RegistryChangeTask(final TagRegistryChangeEvent.EventType eventType,
- final List<? extends Namespace> affectedObjects,
- final long timestamp, final TagRegistryInstance registryInstance)
- {
- _eventType = eventType;
- _timestamp = timestamp;
- _affectedObjects = affectedObjects;
- _registryInstance = registryInstance;
- }
-
- public void run()
- {
- // if changes have been made since this task was queued, then abort
- // since we don't know if our data is still valid
- if (_timestamp != TaglibContentProvider.this._changeStamp.get())
- {
- return;
- }
-
- switch (_eventType)
- {
- case ADDED_NAMESPACE:
- case CHANGED_NAMESPACE:
- {
- for (final Namespace ns : _affectedObjects)
- {
- _registryInstance.getNamespaces().put(ns.getNSUri(), ns);
- }
-
- viewerRefresh(_curInput);
- }
- break;
-
- case REMOVED_NAMESPACE:
- {
- for (final Namespace ns : _affectedObjects)
- {
- _registryInstance.getNamespaces().remove(ns.getNSUri());
- }
- viewerRefresh(_curInput);
- }
- break;
-
- case REGISTRY_DISPOSED:
- {
- _registryInstance.getRegistry().removeListener(TaglibContentProvider.this);
- _curTagRegistries.remove(_registryInstance);
- viewerRefresh(_curInput);
- }
- }
- }
- }
-
- private void viewerRefresh(final Object parentElement)
- {
- if (_curViewer instanceof StructuredViewer)
- {
- final StructuredViewer viewer = (StructuredViewer) _curViewer;
- viewer.refresh(parentElement);
- }
- else
- {
- _curViewer.refresh();
- }
- }
-
- private class UpdateNamespacesListJob extends Job
- {
-
- private final long _timestamp;
- private final IProject _project;
- private final TagRegistryInstance _registry;
-
- public UpdateNamespacesListJob(final IProject project,
- final long timestamp, final TagRegistryInstance registry)
- {
- super("Updating available namespaces for project " //$NON-NLS-1$
- + project.getName());
- _project = project;
- _timestamp = timestamp;
- _registry = registry;
- }
-
- @Override
- protected IStatus run(final IProgressMonitor monitor)
- {
- if (!_project.isAccessible()
- || _registry.isUpToDate())
- {
- return new Status(IStatus.CANCEL, JSFUiPlugin.PLUGIN_ID, ""); //$NON-NLS-1$
- }
-
- final Collection<? extends Namespace> libs = _registry.getRegistry()
- .getAllTagLibraries();
- _registry.getNamespaces().clear();
-
- for (Namespace ns : libs)
- {
- if (ns.getNSUri() != null)
- {
- _registry.getNamespaces().put(ns.getNSUri(), ns);
-
- }
- }
-
- _registry.setUpToDate(true);
- PlatformUI.getWorkbench().getDisplay().asyncExec(new Runnable()
- {
- public void run()
- {
- // only bother if the provider hasn't changed asynchronously
- if (_timestamp == TaglibContentProvider.this._changeStamp
- .get())
- {
- viewerRefresh(_curInput);
- }
- }
- });
-
- return Status.OK_STATUS;
- }
- }
-
- static class TagRegistryInstance
- {
- private final ITagRegistryFactoryInfo _info;
- private final ITagRegistry _registry;
- private final Map<String, Namespace> _namespaces;
- private boolean _isUpToDate;
-
- public TagRegistryInstance(final ITagRegistryFactoryInfo info,
- ITagRegistry registry)
- {
- _info = info;
- _registry = registry;
- _namespaces = new ConcurrentHashMap<String, Namespace>();
- }
-
- public ITagRegistryFactoryInfo getInfo()
- {
- return _info;
- }
-
- public ITagRegistry getRegistry()
- {
- return _registry;
- }
-
- public Map<String, Namespace> getNamespaces()
- {
- return _namespaces;
- }
-
- public synchronized boolean isUpToDate()
- {
- return _isUpToDate;
- }
-
- public synchronized void setUpToDate(boolean isUpToDate)
- {
- _isUpToDate = isUpToDate;
- }
- }
-
- /**
- * Takes the place of a real tree model object while the real object is
- * being retrieved.
- *
- */
- public static class TreePlaceholder
- {
- private final String _text;
- private final Image _image;
-
- TreePlaceholder(final String text, final Image image)
- {
- _text = text;
- _image = image;
- }
-
- /**
- * @return the placeholder text or null if none
- */
- public String getText()
- {
- return _text;
- }
-
- /**
- * @return the image or null if none
- */
- public Image getImage()
- {
- return _image;
- }
-
- }
-}
diff --git a/jsf/plugins/org.eclipse.jst.jsf.ui/src/org/eclipse/jst/jsf/ui/internal/tagregistry/ValidatorDetailsForm.java b/jsf/plugins/org.eclipse.jst.jsf.ui/src/org/eclipse/jst/jsf/ui/internal/tagregistry/ValidatorDetailsForm.java
deleted file mode 100644
index f6d69aeb8..000000000
--- a/jsf/plugins/org.eclipse.jst.jsf.ui/src/org/eclipse/jst/jsf/ui/internal/tagregistry/ValidatorDetailsForm.java
+++ /dev/null
@@ -1,71 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2001, 2008 Oracle Corporation and others.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Oracle Corporation - initial API and implementation
- *******************************************************************************/
-package org.eclipse.jst.jsf.ui.internal.tagregistry;
-
-import java.util.Collections;
-import java.util.HashMap;
-import java.util.Map;
-import java.util.Set;
-
-import org.eclipse.jst.jsf.common.runtime.internal.model.decorator.ValidatorTypeInfo;
-import org.eclipse.jst.jsf.common.runtime.internal.view.model.common.IValidatorTagElement;
-import org.eclipse.jst.jsf.common.ui.internal.form.AbstractXMLSectionsDetailsForm;
-import org.eclipse.osgi.util.NLS;
-import org.eclipse.swt.widgets.Composite;
-
-/**
- * Details form for validator tags.
- * @author cbateman
- *
- */
-public class ValidatorDetailsForm extends AbstractXMLSectionsDetailsForm
-{
- private final static String VALIDATOR_TYPE_SECTION_KEY = "validatorSection"; //$NON-NLS-1$
- private XMLTextSection _validatorTypeSection;
-
- @Override
- protected Map<? extends Object, XMLTextSection> createXMLTextSections(Composite parent)
- {
- final Map<String, XMLTextSection> sections = new HashMap<String, XMLTextSection>();
- _validatorTypeSection = new XMLTextSection(getToolkit(), parent, Messages.ValidatorDetailsForm_SectionLabel);
- sections.put(VALIDATOR_TYPE_SECTION_KEY, _validatorTypeSection);
- return sections;
- }
-
-
- @Override
- protected Set<XMLTextSection> getInitiallyExpanded(
- Map<Object, XMLTextSection> sections)
- {
- return Collections.singleton(_validatorTypeSection);
- }
-
- @Override
- protected void doUpdateSelection(Object newSelection)
- {
- if (newSelection instanceof IValidatorTagElement)
- {
- IValidatorTagElement validatorTagElement = (IValidatorTagElement) newSelection;
- final ValidatorTypeInfo typeInfo = validatorTagElement.getValidator();
-
- if (typeInfo != null)
- {
- final String className = typeInfo.getClassName();
- final String validatorId = typeInfo.getValidatorId();
-
- String text = NLS.bind(Messages.ValidatorDetailsForm_SectionText, className == null ? "" : className, validatorId == null ? "" : validatorId); //$NON-NLS-1$ //$NON-NLS-2$
- _validatorTypeSection.setText(text, true, false);
-
- _validatorTypeSection.refresh();
- }
- }
- }
-}
diff --git a/jsf/plugins/org.eclipse.jst.jsf.ui/src/org/eclipse/jst/jsf/ui/internal/tagregistry/messages.properties b/jsf/plugins/org.eclipse.jst.jsf.ui/src/org/eclipse/jst/jsf/ui/internal/tagregistry/messages.properties
deleted file mode 100644
index 6ce15e2c4..000000000
--- a/jsf/plugins/org.eclipse.jst.jsf.ui/src/org/eclipse/jst/jsf/ui/internal/tagregistry/messages.properties
+++ /dev/null
@@ -1,20 +0,0 @@
-ComponentDetailSubForm_InterfaceInfo=Interface Information
-ComponentDetailSubForm_TypeInfo=Component Type Information
-ConverterDetailsForm_Class=Class:
-ConverterDetailsForm_Converterid=Converter Id:
-ConverterDetailsForm_ConverterInfo=Converter Type Information
-NamespaceDetailsForm_SectionLabel=Namespace
-NamespaceDetailsForm_SectionText=<form><p><b>Name: </b> {0}</p> <p><b>Uri: </b> {1}</p></form>
-TaglibContentProvider_Calculating=Calculating...
-TaglibContentProvider_JobDesc=Updating namespace
-TaglibContentProvider_NamespaceErrorDescription=There was a problem initializing the namespace
-TaglibContentProvider_NamespaceErrorTitle=Error updating namespace
-TaglibContentProvider_TagCalculatingWaitMessage=Calculating tags, please wait...
-TagRegistryDetailsForm_SectionText=<form><p><b>Description: </b> {0}</p> <p><b>Id: </b> {1}</p> <p><b>Content-Types:</b> {2}</p></form>
-TagRegistryDetailsForm_Namespace=Namespace
-TagRegistryMasterForm_FlushCacheMessage=Flushing cached data may cause some operations to slow until cached information is regenerated. If you answer no, the view will refresh but NOT flush cached data
-TagRegistryMasterForm_FlushCacheQuestion=Also flush cached data?
-TagRegistryMasterForm_Project=Project:
-TagRegistryMasterForm_RefreshRegistry=Refresh Registry
-ValidatorDetailsForm_SectionLabel=Validator Type Information
-ValidatorDetailsForm_SectionText=<form><p><b>Class: </b> {0}</p> <p><b>Validator Id: </b> {1}</p></form>

Back to the top