-
Notifications
You must be signed in to change notification settings - Fork 85
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[2032] Enhancements to decorator label providers
* Decorators can be specified for common superclasses * Registers decorator factories for datatype/datavalue packages Change-Id: I2875449ca4a91dd4f1b51c7bbec3283ca5a215f9 Signed-off-by: Felix Dorner <felix.dorner@gmail.com>
- Loading branch information
Showing
4 changed files
with
150 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
27 changes: 27 additions & 0 deletions
27
.../core/data/information/datatype/provider/DatatypeItemProviderDecoratorAdapterFactory.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
/******************************************************************************* | ||
* Copyright (c) 2018 THALES GLOBAL SERVICES. | ||
* 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: | ||
* Thales - initial API and implementation | ||
*******************************************************************************/ | ||
package org.polarsys.capella.core.data.information.datatype.provider; | ||
|
||
import org.eclipse.emf.edit.provider.DecoratorAdapterFactory; | ||
import org.eclipse.emf.edit.provider.IItemProviderDecorator; | ||
import org.polarsys.capella.core.data.gen.edit.decorators.ForwardingItemProviderAdapterDecorator; | ||
|
||
public class DatatypeItemProviderDecoratorAdapterFactory extends DecoratorAdapterFactory { | ||
|
||
public DatatypeItemProviderDecoratorAdapterFactory() { | ||
super(new DatatypeItemProviderAdapterFactory()); | ||
} | ||
|
||
@Override | ||
protected IItemProviderDecorator createItemProviderDecorator(Object target, Object Type) { | ||
return new ForwardingItemProviderAdapterDecorator(this); | ||
} | ||
} |
27 changes: 27 additions & 0 deletions
27
...ore/data/information/datavalue/provider/DatavalueItemProviderDecoratorAdapterFactory.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
/******************************************************************************* | ||
* Copyright (c) 2018 THALES GLOBAL SERVICES. | ||
* 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: | ||
* Thales - initial API and implementation | ||
*******************************************************************************/ | ||
package org.polarsys.capella.core.data.information.datavalue.provider; | ||
|
||
import org.eclipse.emf.edit.provider.DecoratorAdapterFactory; | ||
import org.eclipse.emf.edit.provider.IItemProviderDecorator; | ||
import org.polarsys.capella.core.data.gen.edit.decorators.ForwardingItemProviderAdapterDecorator; | ||
|
||
public class DatavalueItemProviderDecoratorAdapterFactory extends DecoratorAdapterFactory { | ||
|
||
public DatavalueItemProviderDecoratorAdapterFactory() { | ||
super(new DatavalueItemProviderAdapterFactory()); | ||
} | ||
|
||
@Override | ||
protected IItemProviderDecorator createItemProviderDecorator(Object target, Object Type) { | ||
return new ForwardingItemProviderAdapterDecorator(this); | ||
} | ||
} |