Commit 8b73cb9e authored by Adrien's avatar Adrien Committed by Romain Bioteau

feat(access right) existing business object table (#642)

* feat(access right) existing business object table

* display the existing business objects on a table
* table is live updated

closes [BS-16930](https://bonitasoft.atlassian.net/browse/BS-16930)

* test fix test
parent e0e68f39
......@@ -6,7 +6,8 @@ Bundle-Version: 7.6.0.qualifier
Bundle-Activator: org.bonitasoft.studio.businessobject.BusinessObjectPlugin
Bundle-Vendor: BonitaSoft S.A.
Bundle-Localization: plugin
Export-Package: org.bonitasoft.studio.businessobject.core.operation,
Export-Package: org.bonitasoft.studio.businessobject,
org.bonitasoft.studio.businessobject.core.operation,
org.bonitasoft.studio.businessobject.core.repository,
org.bonitasoft.studio.businessobject.i18n;x-friends:="org.bonitasoft.studio.tests",
org.bonitasoft.studio.businessobject.ui,
......
......@@ -14,6 +14,9 @@
*/
package org.bonitasoft.studio.businessobject;
import org.eclipse.jface.resource.ImageDescriptor;
import org.eclipse.jface.resource.ImageRegistry;
import org.eclipse.swt.graphics.Image;
import org.eclipse.ui.plugin.AbstractUIPlugin;
import org.osgi.framework.BundleContext;
......@@ -59,4 +62,26 @@ public class BusinessObjectPlugin extends AbstractUIPlugin {
public static BusinessObjectPlugin getDefault() {
return plugin;
}
public static Image getImage(final String imageName) {
final ImageRegistry reg = getDefault().getImageRegistry();
Image result = reg.get(imageName);
if (result != null && !result.isDisposed()) {//prevent from bad dispose
return result;
}
final ImageDescriptor descriptor = ImageDescriptor.createFromURL(getDefault().getBundle().getResource(imageName));
if (descriptor != null) {
result = descriptor.createImage();
}
reg.remove(imageName);
if (result != null) {
reg.put(imageName, result);
}
return result;
}
}
......@@ -318,8 +318,7 @@ public class CreateDeployExportBusinessObjectIT {
final SWTBotTable attributeTable = bot.tableInGroup(boName);
attributeTable.click(attributeIndex, 0);
bot.textInGroup("attribute1", boName).typeText(attributeName);
keyboard.pressShortcut(Keystrokes.CR);
bot.textInGroup("attribute1", boName).setText(attributeName);
attributeTable.click(attributeIndex, 1);
SWTBot activeBot = activeShell.bot();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment