diff options
Diffstat (limited to 'plugins/org.eclipse.emf.cdo/src/org/eclipse/emf/cdo/view/ManagedContainerViewProvider.java')
-rw-r--r-- | plugins/org.eclipse.emf.cdo/src/org/eclipse/emf/cdo/view/ManagedContainerViewProvider.java | 98 |
1 files changed, 49 insertions, 49 deletions
diff --git a/plugins/org.eclipse.emf.cdo/src/org/eclipse/emf/cdo/view/ManagedContainerViewProvider.java b/plugins/org.eclipse.emf.cdo/src/org/eclipse/emf/cdo/view/ManagedContainerViewProvider.java index 71bb6076cd..a91e6c4b8e 100644 --- a/plugins/org.eclipse.emf.cdo/src/org/eclipse/emf/cdo/view/ManagedContainerViewProvider.java +++ b/plugins/org.eclipse.emf.cdo/src/org/eclipse/emf/cdo/view/ManagedContainerViewProvider.java @@ -1,49 +1,49 @@ -/*
- * Copyright (c) 2004 - 2012 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:
- * Victor Roldan Betancort - initial API and implementation
- * Eike Stepper - maintenance
- */
-package org.eclipse.emf.cdo.view;
-
-import org.eclipse.net4j.util.container.IManagedContainer;
-import org.eclipse.net4j.util.om.OMPlatform;
-
-/**
- * Base class for <code>ManagedContainer</code> based <code>CDOViewProvider</code>
- *
- * @author Victor Roldan Betancort
- * @since 2.0
- * @apiviz.exclude
- */
-public abstract class ManagedContainerViewProvider extends AbstractCDOViewProvider
-{
- private IManagedContainer container;
-
- public ManagedContainerViewProvider(IManagedContainer container, String regex, int priority)
- {
- super(regex, priority);
- this.container = container;
- }
-
- protected IManagedContainer getContainer()
- {
- return container;
- }
-
- @Override
- public int getPriority()
- {
- if (!OMPlatform.INSTANCE.isOSGiRunning())
- {
- return Integer.MIN_VALUE;
- }
-
- return super.getPriority();
- }
-}
+/* + * Copyright (c) 2004 - 2012 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: + * Victor Roldan Betancort - initial API and implementation + * Eike Stepper - maintenance + */ +package org.eclipse.emf.cdo.view; + +import org.eclipse.net4j.util.container.IManagedContainer; +import org.eclipse.net4j.util.om.OMPlatform; + +/** + * Base class for <code>ManagedContainer</code> based <code>CDOViewProvider</code> + * + * @author Victor Roldan Betancort + * @since 2.0 + * @apiviz.exclude + */ +public abstract class ManagedContainerViewProvider extends AbstractCDOViewProvider +{ + private IManagedContainer container; + + public ManagedContainerViewProvider(IManagedContainer container, String regex, int priority) + { + super(regex, priority); + this.container = container; + } + + protected IManagedContainer getContainer() + { + return container; + } + + @Override + public int getPriority() + { + if (!OMPlatform.INSTANCE.isOSGiRunning()) + { + return Integer.MIN_VALUE; + } + + return super.getPriority(); + } +} |