Skip to content

Commit

Permalink
#16 1 update at a time
Browse files Browse the repository at this point in the history
  • Loading branch information
Ealrann committed Jun 19, 2019
1 parent 4e48bcc commit 77c0999
Show file tree
Hide file tree
Showing 40 changed files with 2,258 additions and 118 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 6 additions & 0 deletions org.sheepy.vsand.model.edit/plugin.properties
Original file line number Diff line number Diff line change
Expand Up @@ -250,3 +250,9 @@ _UI_DrawCommand_material_feature = Material
_UI_VSandApplication_speed_feature = Speed
_UI_VSandApplication_boardUpdateTask_feature = Board Update Task
_UI_VSandApplication_paused_feature = Paused
_UI_BoardConstantBuffer_type = Board Constant Buffer
_UI_DrawConstantBuffer_type = Draw Constant Buffer
_UI_PixelConstantBuffer_type = Pixel Constant Buffer
_UI_BoardConstantBuffer_currentBoardBuffer_feature = Current Board Buffer
_UI_DrawConstantBuffer_boardConstantBuffer_feature = Board Constant Buffer
_UI_PixelConstantBuffer_boardConstantBuffer_feature = Board Constant Buffer
3 changes: 3 additions & 0 deletions org.sheepy.vsand.model.edit/plugin.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@

<extension point="org.eclipse.emf.edit.childCreationExtenders">
<!-- @generated VSand -->
<extender
uri="org.sheepy.lily.vulkan.model"
class="org.sheepy.vsand.model.provider.VSandItemProviderAdapterFactory$VulkanChildCreationExtender"/>
<extender
uri="org.sheepy.lily.core.model.presentation"
class="org.sheepy.vsand.model.provider.VSandItemProviderAdapterFactory$PresentationChildCreationExtender"/>
Expand Down
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;
}

}
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;
}

}
Loading

0 comments on commit 77c0999

Please sign in to comment.