Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEike Stepper2015-01-27 14:26:35 +0000
committerEike Stepper2015-01-27 14:26:35 +0000
commit4dc12f638545505831adcc63166feee8edffceec (patch)
tree25124b35386f0acbb419544bddd6062b0272dd2e /plugins/org.eclipse.emf.cdo.releng.workingsets/src/org/eclipse/emf/cdo/releng/workingsets/util
parent50b0ecc6c1f6065c443ee7365402df9688cca65b (diff)
downloadcdo-4dc12f638545505831adcc63166feee8edffceec.tar.gz
cdo-4dc12f638545505831adcc63166feee8edffceec.tar.xz
cdo-4dc12f638545505831adcc63166feee8edffceec.zip
[Releng] Remove projects that moved to Oomph
Diffstat (limited to 'plugins/org.eclipse.emf.cdo.releng.workingsets/src/org/eclipse/emf/cdo/releng/workingsets/util')
-rw-r--r--plugins/org.eclipse.emf.cdo.releng.workingsets/src/org/eclipse/emf/cdo/releng/workingsets/util/WorkingSetsAdapterFactory.java226
-rw-r--r--plugins/org.eclipse.emf.cdo.releng.workingsets/src/org/eclipse/emf/cdo/releng/workingsets/util/WorkingSetsSwitch.java237
-rw-r--r--plugins/org.eclipse.emf.cdo.releng.workingsets/src/org/eclipse/emf/cdo/releng/workingsets/util/WorkingSetsUtil.java63
-rw-r--r--plugins/org.eclipse.emf.cdo.releng.workingsets/src/org/eclipse/emf/cdo/releng/workingsets/util/package-info.java18
4 files changed, 0 insertions, 544 deletions
diff --git a/plugins/org.eclipse.emf.cdo.releng.workingsets/src/org/eclipse/emf/cdo/releng/workingsets/util/WorkingSetsAdapterFactory.java b/plugins/org.eclipse.emf.cdo.releng.workingsets/src/org/eclipse/emf/cdo/releng/workingsets/util/WorkingSetsAdapterFactory.java
deleted file mode 100644
index cd52129e0e..0000000000
--- a/plugins/org.eclipse.emf.cdo.releng.workingsets/src/org/eclipse/emf/cdo/releng/workingsets/util/WorkingSetsAdapterFactory.java
+++ /dev/null
@@ -1,226 +0,0 @@
-/*
- * Copyright (c) 2013, 2014 Eike Stepper (Berlin, Germany) 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:
- * Eike Stepper - initial API and implementation
- */
-package org.eclipse.emf.cdo.releng.workingsets.util;
-
-import org.eclipse.emf.cdo.releng.predicates.Predicate;
-import org.eclipse.emf.cdo.releng.workingsets.ExclusionPredicate;
-import org.eclipse.emf.cdo.releng.workingsets.InclusionPredicate;
-import org.eclipse.emf.cdo.releng.workingsets.WorkingSet;
-import org.eclipse.emf.cdo.releng.workingsets.WorkingSetGroup;
-import org.eclipse.emf.cdo.releng.workingsets.WorkingSetsPackage;
-
-import org.eclipse.emf.common.notify.Adapter;
-import org.eclipse.emf.common.notify.Notifier;
-import org.eclipse.emf.common.notify.impl.AdapterFactoryImpl;
-import org.eclipse.emf.ecore.EObject;
-
-/**
- * <!-- begin-user-doc -->
- * The <b>Adapter Factory</b> for the model.
- * It provides an adapter <code>createXXX</code> method for each class of the model.
- * <!-- end-user-doc -->
- * @see org.eclipse.emf.cdo.releng.workingsets.WorkingSetsPackage
- * @generated
- */
-public class WorkingSetsAdapterFactory extends AdapterFactoryImpl
-{
- /**
- * The cached model package.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected static WorkingSetsPackage modelPackage;
-
- /**
- * Creates an instance of the adapter factory.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public WorkingSetsAdapterFactory()
- {
- if (modelPackage == null)
- {
- modelPackage = WorkingSetsPackage.eINSTANCE;
- }
- }
-
- /**
- * Returns whether this factory is applicable for the type of the object.
- * <!-- begin-user-doc -->
- * This implementation returns <code>true</code> if the object is either the model's package or is an instance object of the model.
- * <!-- end-user-doc -->
- * @return whether this factory is applicable for the type of the object.
- * @generated
- */
- @Override
- public boolean isFactoryForType(Object object)
- {
- if (object == modelPackage)
- {
- return true;
- }
- if (object instanceof EObject)
- {
- return ((EObject)object).eClass().getEPackage() == modelPackage;
- }
- return false;
- }
-
- /**
- * The switch that delegates to the <code>createXXX</code> methods.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected WorkingSetsSwitch<Adapter> modelSwitch = new WorkingSetsSwitch<Adapter>()
- {
- @Override
- public Adapter caseWorkingSet(WorkingSet object)
- {
- return createWorkingSetAdapter();
- }
-
- @Override
- public Adapter caseWorkingSetGroup(WorkingSetGroup object)
- {
- return createWorkingSetGroupAdapter();
- }
-
- @Override
- public Adapter caseInclusionPredicate(InclusionPredicate object)
- {
- return createInclusionPredicateAdapter();
- }
-
- @Override
- public Adapter caseExclusionPredicate(ExclusionPredicate object)
- {
- return createExclusionPredicateAdapter();
- }
-
- @Override
- public Adapter casePredicate(Predicate object)
- {
- return createPredicateAdapter();
- }
-
- @Override
- public Adapter defaultCase(EObject object)
- {
- return createEObjectAdapter();
- }
- };
-
- /**
- * Creates an adapter for the <code>target</code>.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @param target the object to adapt.
- * @return the adapter for the <code>target</code>.
- * @generated
- */
- @Override
- public Adapter createAdapter(Notifier target)
- {
- return modelSwitch.doSwitch((EObject)target);
- }
-
- /**
- * Creates a new adapter for an object of class '{@link org.eclipse.emf.cdo.releng.workingsets.WorkingSet <em>Working Set</em>}'.
- * <!-- begin-user-doc -->
- * This default implementation returns null so that we can easily ignore cases;
- * it's useful to ignore a case when inheritance will catch all the cases anyway.
- * <!-- end-user-doc -->
- * @return the new adapter.
- * @see org.eclipse.emf.cdo.releng.workingsets.WorkingSet
- * @generated
- */
- public Adapter createWorkingSetAdapter()
- {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link org.eclipse.emf.cdo.releng.workingsets.WorkingSetGroup <em>Working Set Group</em>}'.
- * <!-- begin-user-doc -->
- * This default implementation returns null so that we can easily ignore cases;
- * it's useful to ignore a case when inheritance will catch all the cases anyway.
- * <!-- end-user-doc -->
- * @return the new adapter.
- * @see org.eclipse.emf.cdo.releng.workingsets.WorkingSetGroup
- * @generated
- */
- public Adapter createWorkingSetGroupAdapter()
- {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link org.eclipse.emf.cdo.releng.workingsets.ExclusionPredicate <em>Exclusion Predicate</em>}'.
- * <!-- begin-user-doc -->
- * This default implementation returns null so that we can easily ignore cases;
- * it's useful to ignore a case when inheritance will catch all the cases anyway.
- * <!-- end-user-doc -->
- * @return the new adapter.
- * @see org.eclipse.emf.cdo.releng.workingsets.ExclusionPredicate
- * @generated
- */
- public Adapter createExclusionPredicateAdapter()
- {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link org.eclipse.emf.cdo.releng.workingsets.InclusionPredicate <em>Inclusion Predicate</em>}'.
- * <!-- begin-user-doc -->
- * This default implementation returns null so that we can easily ignore cases;
- * it's useful to ignore a case when inheritance will catch all the cases anyway.
- * <!-- end-user-doc -->
- * @return the new adapter.
- * @see org.eclipse.emf.cdo.releng.workingsets.InclusionPredicate
- * @generated
- */
- public Adapter createInclusionPredicateAdapter()
- {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link org.eclipse.emf.cdo.releng.predicates.Predicate <em>Predicate</em>}'.
- * <!-- begin-user-doc -->
- * This default implementation returns null so that we can easily ignore cases;
- * it's useful to ignore a case when inheritance will catch all the cases anyway.
- * <!-- end-user-doc -->
- * @return the new adapter.
- * @see org.eclipse.emf.cdo.releng.predicates.Predicate
- * @generated
- */
- public Adapter createPredicateAdapter()
- {
- return null;
- }
-
- /**
- * Creates a new adapter for the default case.
- * <!-- begin-user-doc -->
- * This default implementation returns null.
- * <!-- end-user-doc -->
- * @return the new adapter.
- * @generated
- */
- public Adapter createEObjectAdapter()
- {
- return null;
- }
-
-} // WorkingSetsAdapterFactory
diff --git a/plugins/org.eclipse.emf.cdo.releng.workingsets/src/org/eclipse/emf/cdo/releng/workingsets/util/WorkingSetsSwitch.java b/plugins/org.eclipse.emf.cdo.releng.workingsets/src/org/eclipse/emf/cdo/releng/workingsets/util/WorkingSetsSwitch.java
deleted file mode 100644
index c8e9fadaa8..0000000000
--- a/plugins/org.eclipse.emf.cdo.releng.workingsets/src/org/eclipse/emf/cdo/releng/workingsets/util/WorkingSetsSwitch.java
+++ /dev/null
@@ -1,237 +0,0 @@
-/*
- * Copyright (c) 2013, 2014 Eike Stepper (Berlin, Germany) 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:
- * Eike Stepper - initial API and implementation
- */
-package org.eclipse.emf.cdo.releng.workingsets.util;
-
-import org.eclipse.emf.cdo.releng.predicates.Predicate;
-import org.eclipse.emf.cdo.releng.workingsets.ExclusionPredicate;
-import org.eclipse.emf.cdo.releng.workingsets.InclusionPredicate;
-import org.eclipse.emf.cdo.releng.workingsets.WorkingSet;
-import org.eclipse.emf.cdo.releng.workingsets.WorkingSetGroup;
-import org.eclipse.emf.cdo.releng.workingsets.WorkingSetsPackage;
-
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.emf.ecore.EPackage;
-import org.eclipse.emf.ecore.util.Switch;
-
-/**
- * <!-- begin-user-doc -->
- * The <b>Switch</b> for the model's inheritance hierarchy.
- * It supports the call {@link #doSwitch(EObject) doSwitch(object)}
- * to invoke the <code>caseXXX</code> method for each class of the model,
- * starting with the actual class of the object
- * and proceeding up the inheritance hierarchy
- * until a non-null result is returned,
- * which is the result of the switch.
- * <!-- end-user-doc -->
- * @see org.eclipse.emf.cdo.releng.workingsets.WorkingSetsPackage
- * @generated
- */
-public class WorkingSetsSwitch<T> extends Switch<T>
-{
- /**
- * The cached model package
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected static WorkingSetsPackage modelPackage;
-
- /**
- * Creates an instance of the switch.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public WorkingSetsSwitch()
- {
- if (modelPackage == null)
- {
- modelPackage = WorkingSetsPackage.eINSTANCE;
- }
- }
-
- /**
- * Checks whether this is a switch for the given package.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @parameter ePackage the package in question.
- * @return whether this is a switch for the given package.
- * @generated
- */
- @Override
- protected boolean isSwitchFor(EPackage ePackage)
- {
- return ePackage == modelPackage;
- }
-
- /**
- * Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the first non-null result returned by a <code>caseXXX</code> call.
- * @generated
- */
- @Override
- protected T doSwitch(int classifierID, EObject theEObject)
- {
- switch (classifierID)
- {
- case WorkingSetsPackage.WORKING_SET:
- {
- WorkingSet workingSet = (WorkingSet)theEObject;
- T result = caseWorkingSet(workingSet);
- if (result == null)
- {
- result = defaultCase(theEObject);
- }
- return result;
- }
- case WorkingSetsPackage.WORKING_SET_GROUP:
- {
- WorkingSetGroup workingSetGroup = (WorkingSetGroup)theEObject;
- T result = caseWorkingSetGroup(workingSetGroup);
- if (result == null)
- {
- result = defaultCase(theEObject);
- }
- return result;
- }
- case WorkingSetsPackage.INCLUSION_PREDICATE:
- {
- InclusionPredicate inclusionPredicate = (InclusionPredicate)theEObject;
- T result = caseInclusionPredicate(inclusionPredicate);
- if (result == null)
- {
- result = casePredicate(inclusionPredicate);
- }
- if (result == null)
- {
- result = defaultCase(theEObject);
- }
- return result;
- }
- case WorkingSetsPackage.EXCLUSION_PREDICATE:
- {
- ExclusionPredicate exclusionPredicate = (ExclusionPredicate)theEObject;
- T result = caseExclusionPredicate(exclusionPredicate);
- if (result == null)
- {
- result = casePredicate(exclusionPredicate);
- }
- if (result == null)
- {
- result = defaultCase(theEObject);
- }
- return result;
- }
- default:
- return defaultCase(theEObject);
- }
- }
-
- /**
- * Returns the result of interpreting the object as an instance of '<em>Working Set</em>'.
- * <!-- begin-user-doc -->
- * This implementation returns null;
- * returning a non-null result will terminate the switch.
- * <!-- end-user-doc -->
- * @param object the target of the switch.
- * @return the result of interpreting the object as an instance of '<em>Working Set</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public T caseWorkingSet(WorkingSet object)
- {
- return null;
- }
-
- /**
- * Returns the result of interpreting the object as an instance of '<em>Working Set Group</em>'.
- * <!-- begin-user-doc -->
- * This implementation returns null;
- * returning a non-null result will terminate the switch.
- * <!-- end-user-doc -->
- * @param object the target of the switch.
- * @return the result of interpreting the object as an instance of '<em>Working Set Group</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public T caseWorkingSetGroup(WorkingSetGroup object)
- {
- return null;
- }
-
- /**
- * Returns the result of interpreting the object as an instance of '<em>Exclusion Predicate</em>'.
- * <!-- begin-user-doc -->
- * This implementation returns null;
- * returning a non-null result will terminate the switch.
- * <!-- end-user-doc -->
- * @param object the target of the switch.
- * @return the result of interpreting the object as an instance of '<em>Exclusion Predicate</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public T caseExclusionPredicate(ExclusionPredicate object)
- {
- return null;
- }
-
- /**
- * Returns the result of interpreting the object as an instance of '<em>Inclusion Predicate</em>'.
- * <!-- begin-user-doc -->
- * This implementation returns null;
- * returning a non-null result will terminate the switch.
- * <!-- end-user-doc -->
- * @param object the target of the switch.
- * @return the result of interpreting the object as an instance of '<em>Inclusion Predicate</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public T caseInclusionPredicate(InclusionPredicate object)
- {
- return null;
- }
-
- /**
- * Returns the result of interpreting the object as an instance of '<em>Predicate</em>'.
- * <!-- begin-user-doc -->
- * This implementation returns null;
- * returning a non-null result will terminate the switch.
- * <!-- end-user-doc -->
- * @param object the target of the switch.
- * @return the result of interpreting the object as an instance of '<em>Predicate</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public T casePredicate(Predicate object)
- {
- return null;
- }
-
- /**
- * Returns the result of interpreting the object as an instance of '<em>EObject</em>'.
- * <!-- begin-user-doc -->
- * This implementation returns null;
- * returning a non-null result will terminate the switch, but this is the last case anyway.
- * <!-- end-user-doc -->
- * @param object the target of the switch.
- * @return the result of interpreting the object as an instance of '<em>EObject</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject)
- * @generated
- */
- @Override
- public T defaultCase(EObject object)
- {
- return null;
- }
-
-} // WorkingSetsSwitch
diff --git a/plugins/org.eclipse.emf.cdo.releng.workingsets/src/org/eclipse/emf/cdo/releng/workingsets/util/WorkingSetsUtil.java b/plugins/org.eclipse.emf.cdo.releng.workingsets/src/org/eclipse/emf/cdo/releng/workingsets/util/WorkingSetsUtil.java
deleted file mode 100644
index 273dbcdec8..0000000000
--- a/plugins/org.eclipse.emf.cdo.releng.workingsets/src/org/eclipse/emf/cdo/releng/workingsets/util/WorkingSetsUtil.java
+++ /dev/null
@@ -1,63 +0,0 @@
-/*
- * Copyright (c) 2013 Eike Stepper (Berlin, Germany) 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:
- * Eike Stepper - initial API and implementation
- */
-package org.eclipse.emf.cdo.releng.workingsets.util;
-
-import org.eclipse.emf.cdo.releng.workingsets.WorkingSetGroup;
-import org.eclipse.emf.cdo.releng.workingsets.impl.PreferencesURIHandlerImpl;
-
-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.ecore.resource.impl.ResourceSetImpl;
-
-import org.eclipse.core.runtime.Platform;
-import org.eclipse.core.runtime.preferences.IEclipsePreferences;
-
-/**
- * @author Eike Stepper
- */
-public final class WorkingSetsUtil
-{
- private static final String DEFAULT_WORKING_SET_GROUP_PREFERENCE_CONTENT = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<workingsets:WorkingSetGroup xmi:version=\"2.0\" xmlns:xmi=\"http://www.omg.org/XMI\" xmlns:workingsets=\"http://www.eclipse.org/CDO/releng/workingsets/1.0\"/>\n";
-
- public static final String WORKING_SET_GROUP_PREFERENCE_KEY = "working.set.group";
-
- public static final URI WORKING_SET_GROUP_PREFERENCE_URI = URI
- .createURI("preference:/instance/org.eclipse.emf.cdo.releng.workingsets/" + WORKING_SET_GROUP_PREFERENCE_KEY
- + "/");
-
- public static final URI WORKING_SET_GROUP_PREFERENCE_RESOURCE_URI = WORKING_SET_GROUP_PREFERENCE_URI.trimSegments(1)
- .appendSegment("Preferences.workingsets");
-
- public static final IEclipsePreferences WORKING_SET_GROUP_PREFERENCES;
-
- public static WorkingSetGroup getWorkingSetGroup()
- {
- ResourceSet resourceSet = new ResourceSetImpl();
- resourceSet.getURIConverter().getURIHandlers().add(0, new PreferencesURIHandlerImpl());
-
- Resource resource = resourceSet.getResource(WORKING_SET_GROUP_PREFERENCE_RESOURCE_URI, true);
- return (WorkingSetGroup)resource.getContents().get(0);
- }
-
- static
- {
- WORKING_SET_GROUP_PREFERENCES = (IEclipsePreferences)Platform.getPreferencesService().getRootNode()
- .node(WORKING_SET_GROUP_PREFERENCE_URI.segment(0)).node(WORKING_SET_GROUP_PREFERENCE_URI.segment(1));
-
- String value = WORKING_SET_GROUP_PREFERENCES.get(WorkingSetsUtil.WORKING_SET_GROUP_PREFERENCE_KEY, null);
- if (value == null)
- {
- WORKING_SET_GROUP_PREFERENCES.put(WorkingSetsUtil.WORKING_SET_GROUP_PREFERENCE_KEY,
- WorkingSetsUtil.DEFAULT_WORKING_SET_GROUP_PREFERENCE_CONTENT);
- }
- }
-}
diff --git a/plugins/org.eclipse.emf.cdo.releng.workingsets/src/org/eclipse/emf/cdo/releng/workingsets/util/package-info.java b/plugins/org.eclipse.emf.cdo.releng.workingsets/src/org/eclipse/emf/cdo/releng/workingsets/util/package-info.java
deleted file mode 100644
index 5b1a456171..0000000000
--- a/plugins/org.eclipse.emf.cdo.releng.workingsets/src/org/eclipse/emf/cdo/releng/workingsets/util/package-info.java
+++ /dev/null
@@ -1,18 +0,0 @@
-/*
- * Copyright (c) 2014 Eike Stepper (Berlin, Germany) 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:
- * Eike Stepper - initial API and implementation
- */
-
-/**
- * The generated EMF utilities of the dynamic working sets model.
- *
- * @apiviz.exclude .*
- */
-package org.eclipse.emf.cdo.releng.workingsets.util;
-

Back to the top