-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
40 changed files
with
2,258 additions
and
118 deletions.
There are no files selected for viewing
Binary file added
BIN
+223 Bytes
...del.edit/icons/full/ctool16/CreateResourcePkg_resources_BoardConstantBuffer.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+223 Bytes
...odel.edit/icons/full/ctool16/CreateResourcePkg_resources_DrawConstantBuffer.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+223 Bytes
...del.edit/icons/full/ctool16/CreateResourcePkg_resources_PixelConstantBuffer.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+129 Bytes
org.sheepy.vsand.model.edit/icons/full/obj16/BoardConstantBuffer.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+129 Bytes
org.sheepy.vsand.model.edit/icons/full/obj16/DrawConstantBuffer.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+129 Bytes
org.sheepy.vsand.model.edit/icons/full/obj16/PixelConstantBuffer.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
158 changes: 158 additions & 0 deletions
158
...t/src/generated/java/org/sheepy/vsand/model/provider/BoardConstantBufferItemProvider.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,158 @@ | ||
/** | ||
*/ | ||
package org.sheepy.vsand.model.provider; | ||
|
||
|
||
import java.util.Collection; | ||
import java.util.List; | ||
|
||
import org.eclipse.emf.common.notify.AdapterFactory; | ||
import org.eclipse.emf.common.notify.Notification; | ||
|
||
import org.eclipse.emf.common.util.ResourceLocator; | ||
|
||
import org.eclipse.emf.edit.provider.ComposeableAdapterFactory; | ||
import org.eclipse.emf.edit.provider.IItemPropertyDescriptor; | ||
import org.eclipse.emf.edit.provider.ItemPropertyDescriptor; | ||
import org.eclipse.emf.edit.provider.ViewerNotification; | ||
|
||
import org.sheepy.lily.vulkan.model.resource.provider.ConstantBufferItemProvider; | ||
|
||
import org.sheepy.vsand.model.BoardConstantBuffer; | ||
import org.sheepy.vsand.model.VSandPackage; | ||
|
||
/** | ||
* This is the item provider adapter for a {@link org.sheepy.vsand.model.BoardConstantBuffer} object. | ||
* <!-- begin-user-doc --> | ||
* <!-- end-user-doc --> | ||
* @generated | ||
*/ | ||
public class BoardConstantBufferItemProvider extends ConstantBufferItemProvider | ||
{ | ||
/** | ||
* This constructs an instance from a factory and a notifier. | ||
* <!-- begin-user-doc --> | ||
* <!-- end-user-doc --> | ||
* @generated | ||
*/ | ||
public BoardConstantBufferItemProvider(AdapterFactory adapterFactory) | ||
{ | ||
super(adapterFactory); | ||
} | ||
|
||
/** | ||
* This returns the property descriptors for the adapted class. | ||
* <!-- begin-user-doc --> | ||
* <!-- end-user-doc --> | ||
* @generated | ||
*/ | ||
@Override | ||
public List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) | ||
{ | ||
if (itemPropertyDescriptors == null) | ||
{ | ||
super.getPropertyDescriptors(object); | ||
|
||
addCurrentBoardBufferPropertyDescriptor(object); | ||
} | ||
return itemPropertyDescriptors; | ||
} | ||
|
||
/** | ||
* This adds a property descriptor for the Current Board Buffer feature. | ||
* <!-- begin-user-doc --> | ||
* <!-- end-user-doc --> | ||
* @generated | ||
*/ | ||
protected void addCurrentBoardBufferPropertyDescriptor(Object object) | ||
{ | ||
itemPropertyDescriptors.add | ||
(createItemPropertyDescriptor | ||
(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), | ||
getResourceLocator(), | ||
getString("_UI_BoardConstantBuffer_currentBoardBuffer_feature"), | ||
getString("_UI_PropertyDescriptor_description", "_UI_BoardConstantBuffer_currentBoardBuffer_feature", "_UI_BoardConstantBuffer_type"), | ||
VSandPackage.Literals.BOARD_CONSTANT_BUFFER__CURRENT_BOARD_BUFFER, | ||
true, | ||
false, | ||
false, | ||
ItemPropertyDescriptor.INTEGRAL_VALUE_IMAGE, | ||
null, | ||
null)); | ||
} | ||
|
||
/** | ||
* This returns BoardConstantBuffer.gif. | ||
* <!-- begin-user-doc --> | ||
* <!-- end-user-doc --> | ||
* @generated | ||
*/ | ||
@Override | ||
public Object getImage(Object object) | ||
{ | ||
return overlayImage(object, getResourceLocator().getImage("full/obj16/BoardConstantBuffer")); | ||
} | ||
|
||
/** | ||
* This returns the label text for the adapted class. | ||
* <!-- begin-user-doc --> | ||
* <!-- end-user-doc --> | ||
* @generated | ||
*/ | ||
@Override | ||
public String getText(Object object) | ||
{ | ||
String label = ((BoardConstantBuffer)object).getName(); | ||
return label == null || label.length() == 0 ? | ||
getString("_UI_BoardConstantBuffer_type") : | ||
getString("_UI_BoardConstantBuffer_type") + " " + label; | ||
} | ||
|
||
|
||
/** | ||
* This handles model notifications by calling {@link #updateChildren} to update any cached | ||
* children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}. | ||
* <!-- begin-user-doc --> | ||
* <!-- end-user-doc --> | ||
* @generated | ||
*/ | ||
@Override | ||
public void notifyChanged(Notification notification) | ||
{ | ||
updateChildren(notification); | ||
|
||
switch (notification.getFeatureID(BoardConstantBuffer.class)) | ||
{ | ||
case VSandPackage.BOARD_CONSTANT_BUFFER__CURRENT_BOARD_BUFFER: | ||
fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true)); | ||
return; | ||
} | ||
super.notifyChanged(notification); | ||
} | ||
|
||
/** | ||
* This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children | ||
* that can be created under this object. | ||
* <!-- begin-user-doc --> | ||
* <!-- end-user-doc --> | ||
* @generated | ||
*/ | ||
@Override | ||
protected void collectNewChildDescriptors(Collection<Object> newChildDescriptors, Object object) | ||
{ | ||
super.collectNewChildDescriptors(newChildDescriptors, object); | ||
} | ||
|
||
/** | ||
* Return the resource locator for this item provider's resources. | ||
* <!-- begin-user-doc --> | ||
* <!-- end-user-doc --> | ||
* @generated | ||
*/ | ||
@Override | ||
public ResourceLocator getResourceLocator() | ||
{ | ||
return VSandEditPlugin.INSTANCE; | ||
} | ||
|
||
} |
148 changes: 148 additions & 0 deletions
148
...it/src/generated/java/org/sheepy/vsand/model/provider/DrawConstantBufferItemProvider.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,148 @@ | ||
/** | ||
*/ | ||
package org.sheepy.vsand.model.provider; | ||
|
||
|
||
import java.util.Collection; | ||
import java.util.List; | ||
|
||
import org.eclipse.emf.common.notify.AdapterFactory; | ||
import org.eclipse.emf.common.notify.Notification; | ||
|
||
import org.eclipse.emf.common.util.ResourceLocator; | ||
|
||
import org.eclipse.emf.edit.provider.ComposeableAdapterFactory; | ||
import org.eclipse.emf.edit.provider.IItemPropertyDescriptor; | ||
|
||
import org.sheepy.lily.vulkan.model.resource.provider.ConstantBufferItemProvider; | ||
|
||
import org.sheepy.vsand.model.DrawConstantBuffer; | ||
import org.sheepy.vsand.model.VSandPackage; | ||
|
||
/** | ||
* This is the item provider adapter for a {@link org.sheepy.vsand.model.DrawConstantBuffer} object. | ||
* <!-- begin-user-doc --> | ||
* <!-- end-user-doc --> | ||
* @generated | ||
*/ | ||
public class DrawConstantBufferItemProvider extends ConstantBufferItemProvider | ||
{ | ||
/** | ||
* This constructs an instance from a factory and a notifier. | ||
* <!-- begin-user-doc --> | ||
* <!-- end-user-doc --> | ||
* @generated | ||
*/ | ||
public DrawConstantBufferItemProvider(AdapterFactory adapterFactory) | ||
{ | ||
super(adapterFactory); | ||
} | ||
|
||
/** | ||
* This returns the property descriptors for the adapted class. | ||
* <!-- begin-user-doc --> | ||
* <!-- end-user-doc --> | ||
* @generated | ||
*/ | ||
@Override | ||
public List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) | ||
{ | ||
if (itemPropertyDescriptors == null) | ||
{ | ||
super.getPropertyDescriptors(object); | ||
|
||
addBoardConstantBufferPropertyDescriptor(object); | ||
} | ||
return itemPropertyDescriptors; | ||
} | ||
|
||
/** | ||
* This adds a property descriptor for the Board Constant Buffer feature. | ||
* <!-- begin-user-doc --> | ||
* <!-- end-user-doc --> | ||
* @generated | ||
*/ | ||
protected void addBoardConstantBufferPropertyDescriptor(Object object) | ||
{ | ||
itemPropertyDescriptors.add | ||
(createItemPropertyDescriptor | ||
(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), | ||
getResourceLocator(), | ||
getString("_UI_DrawConstantBuffer_boardConstantBuffer_feature"), | ||
getString("_UI_PropertyDescriptor_description", "_UI_DrawConstantBuffer_boardConstantBuffer_feature", "_UI_DrawConstantBuffer_type"), | ||
VSandPackage.Literals.DRAW_CONSTANT_BUFFER__BOARD_CONSTANT_BUFFER, | ||
true, | ||
false, | ||
true, | ||
null, | ||
null, | ||
null)); | ||
} | ||
|
||
/** | ||
* This returns DrawConstantBuffer.gif. | ||
* <!-- begin-user-doc --> | ||
* <!-- end-user-doc --> | ||
* @generated | ||
*/ | ||
@Override | ||
public Object getImage(Object object) | ||
{ | ||
return overlayImage(object, getResourceLocator().getImage("full/obj16/DrawConstantBuffer")); | ||
} | ||
|
||
/** | ||
* This returns the label text for the adapted class. | ||
* <!-- begin-user-doc --> | ||
* <!-- end-user-doc --> | ||
* @generated | ||
*/ | ||
@Override | ||
public String getText(Object object) | ||
{ | ||
String label = ((DrawConstantBuffer)object).getName(); | ||
return label == null || label.length() == 0 ? | ||
getString("_UI_DrawConstantBuffer_type") : | ||
getString("_UI_DrawConstantBuffer_type") + " " + label; | ||
} | ||
|
||
|
||
/** | ||
* This handles model notifications by calling {@link #updateChildren} to update any cached | ||
* children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}. | ||
* <!-- begin-user-doc --> | ||
* <!-- end-user-doc --> | ||
* @generated | ||
*/ | ||
@Override | ||
public void notifyChanged(Notification notification) | ||
{ | ||
updateChildren(notification); | ||
} | ||
|
||
/** | ||
* This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children | ||
* that can be created under this object. | ||
* <!-- begin-user-doc --> | ||
* <!-- end-user-doc --> | ||
* @generated | ||
*/ | ||
@Override | ||
protected void collectNewChildDescriptors(Collection<Object> newChildDescriptors, Object object) | ||
{ | ||
super.collectNewChildDescriptors(newChildDescriptors, object); | ||
} | ||
|
||
/** | ||
* Return the resource locator for this item provider's resources. | ||
* <!-- begin-user-doc --> | ||
* <!-- end-user-doc --> | ||
* @generated | ||
*/ | ||
@Override | ||
public ResourceLocator getResourceLocator() | ||
{ | ||
return VSandEditPlugin.INSTANCE; | ||
} | ||
|
||
} |
Oops, something went wrong.