use of com.liferay.ide.portlet.core.PluginPackageModel in project liferay-ide by liferay.
the class RequiredDeploymentContextsSection method swap.
public void swap(int index1, int index2) {
TableViewer viewer = getTablePart().getTableViewer();
Table table = viewer.getTable();
String dep1 = (String) table.getItem(index1).getData();
String dep2 = (String) table.getItem(index2).getData();
PluginPackageModel model = (PluginPackageModel) getPage().getModel();
model.swapDependencies(PluginPackageModel.PROPERTY_REQUIRED_DEPLOYMENT_CONTEXTS, dep1, dep2);
}
Aggregations