Skip to main content
path: root/tests
AgeCommit message (Collapse)AuthorFilesLines
2016-02-12Bug 485220: [Architecture] Provide a more modular architectureChristian W. Damus98-3526/+4259 Factor UI dependencies out of the UML Element Types bundle. This includes moving some advices that interact with the user into a new org.eclipse.papyrus.uml.service.types.ui bundle. Pull up the PasteCommandService and IPasteCommandProvider API into the Infra Diagram layer where the extension point is defined. Deprecate the old API in the UML layer. Introduce a service for participation of languages in CSS styling: * styling reset actions in the Reset Style command * access to semantic model classes and properties to make available to CSS Factor PapyrusObservableValue and cohorts out of the UML Tools bundle into the Infra Layer for more general reuse and to relieve the Diagram Infrastructure layer of UML dependencies. The old API remains as deprecated. Remove the Infra Diagram Layer dependency on UML Layer for property testers governing deletion in the diagram. Includes introduction of a new IGraphicalDeletionHelper OSGi service for delegation of the determination of whether an element can be deleted from the diagram and replacement of the XML expression properties * org.eclipse.papyrus.uml.diagram.common.isSemanticDeletion * org.eclipse.papyrus.uml.diagram.common.isReadOnly by * org.eclipse.papyrus.infra.gmfdiag.common.isSemanticDeletion * org.eclipse.papyrus.infra.gmfdiag.common.canDelete (where the latter is the negation of the property that it supersedes) Extract UML dependencies from the Diagram Outline and CSS Editor bundles. Remove unused MDTUtil APIs that referenced a UML-specific annotation. Move the Diagram Infrastructure CSS Palette bundle into the UML layer because it serves to provide extensions on the Palette Service, which is an overtly UML-specific capability. All client APIs for the Properties View are moved from bundle to a new bundle. This includes renaming of: * extension points * label-provider contexts * XWT namespaces Add an "all UI tests" suite. Define a componentized hierarchical build layout of the main plug-ins Change-Id: I43f8f3644857a18b69715f5a2f1da9b1cf286d67
2016-02-09Bug 481310: [Table] Paste in table with several categories for the sameNicolas FAUVERGUE7-7/+194
depth and all categories hidden The max depth is calculated before the check of paste configuration to check only the needed ones. Change-Id: I42cf00039b732379682e195ce744e7a84bda12ab Signed-off-by: Nicolas FAUVERGUE <>
2016-02-09Bug 435417: [table] NPE when removing profile from modelNicolas FAUVERGUE8-0/+416 Add the JUnit tests. Change-Id: I169ae6aad44dd803917bdc07cf0ec749b26bc692 Signed-off-by: Nicolas FAUVERGUE <>
2016-02-08Bug 487442 - Add profile/stereotype support to theFlorian Noyrit9-13/+20
elementtypeconfiguration framework Change-Id: I40493e2b70490fc2a534b5d45bd848ab8957c1cc
2016-02-05Improve/Fix the support of extensions of theFlorian Noyrit13-823/+462
ElementTypesConfiguration framework - Bug 477206 Change-Id: I50ed9bb1bf6a807881a143875f87c5a6f56a6afc
2016-02-02Bug 487027: [Welcome Page] AssertionFailedExceptionChristian W. Damus9-27/+428 Ensure proper disposal of observables for diagram/table views and languages when the Welcome Page is closed, by leveraging the reference-counted observables framework. Change-Id: I671650e54ca01c4072282109b47efdac52ab28e3
2016-02-02Bug 486995 - [Table] [EOperation] Remove void operation and EMFNicolas FAUVERGUE1-1/+1
operations from ContentProvider The number of operations added is not the same (because the remove the void operations). Change-Id: I9bba16e9f741a4bd9865b3bef765cc53a8011519 Signed-off-by: Nicolas FAUVERGUE <>
2016-01-29Bug 486834: Language service doesn't understand new resourcesChristian W. Damus1-1/+66 A resource that is new (such as in the New Model Wizard) cannot provide a content-type via its persisted state because that doesn't yet exist, so it is necessary to infer (as much as possible) a content-type from the in-memory state. This also introduces a cache by schema that can help to avoid the cost of accessing persisted content redundantly for the purpose of descibing the content.
2016-01-29Bug 469188: Page management improvements in the Papyrus multi-editorChristian W. Damus1-2/+4 Make the test that opens a diagram more resilient against breakage of element-type configurations due to missed refactorings by specifically selecting a diagram kind that is most likely to have been properly refactored and tested.
2016-01-29Improve ElementTypeConfiguration Framework to support:Florian Noyrit17-269/+540
- Advice execution ordering - Prepare Multiple ClientContext in Papyrus Change-Id: I00b5d3d5e090de1b8fc9926c9073913c90dda47e
2016-01-28Bug 419357: [Diagram][Palette] Diagram must provide a way to restoreFanch BONNABESSE4-196/+204
existing links Creation of a EditPolicyProvider on "org.eclipse.papyrus.uml.diagram.common" to modify the "DefaultSemanticEditPolicy" used by many EditPart Change-Id: I1d3a329841509e1d297b4695019e0455a528a4f5 Signed-off-by: Fanch BONNABESSE <>
2016-01-25Bug 485220: [Architecture] Provide a more modular architectureChristian W. Damus39-320/+422 Initial steps towards headless test execution: * update launch configs for test suites that currently can run headless * annotate test suites with @Headless that can run run headless * define a new AllHeadlessTests super-suite that runs all of the @Headless tests collected in the AllTests super-suite With this change, we have a simple mechanism for running all headless test suites to assert that they *can* run headless, which is a part of verifying that the bundles they test do not require the UI. Change-Id: I80c962fd3e98fe20da9f4f7877a88ffba197388e
2016-01-23[Tests] Fix regression from code removed by visual ID refactoring.Christian W. Damus2-4/+85
2016-01-23Bug 485220: [Architecture] Provide a more modular architectureChristian W. Damus4-4/+7 Fix regression caused by removal of the EMF Facet content-provider handling in the EMFHelper::getEObject API. The facet tree nodes don't provide the object that we need as their EObject adapter, so we introduce a new generalized service for resolving EObjects. Also fix the failure to run the Profile Drafter tests in the build, which aren't in a fragment bundle but actually a plug-in bundle.
2016-01-22Bug 485220: [Architecture] Provide a more modular architecture (& builds) ↵Christian W. Damus11-14/+14
for Papyrus Refactor the Properties Model bundles into the Infra Layer. The *[.edit,.editor] bundles are renamed as *[.edit,.editor]. The packages within are correspondingly renamed. To support upgrade installation, special p2 update metadata tells the p2 engine how these bundles have been renamed, ensuring proper replacement of the old ** bundles, because otherwise the clash of EMF model registrations would cause run-time errors. The * extension point is moved to * The * extension point has the <context> element moved to a new * point. The <preferencePageBinding> element remains. JUnit tests pass, at least inasmuch as they pass in the nightly builds. Change-Id: I6445808f8eb1144b08c0cd5f0a487d1bad229a4c
2016-01-22Bug 485220: [Architecture] Provide a more modular architectureChristian W. Damus29-48/+1549 Decouple infra bundles from dependencies on UML, especially for access to the semantic model, using new APIs provided by the ILanguageService and IModel and also by the refined and new implementation of the SemanticService APIs defined in previous releases. Provide generalized access to SemanticEMFContentProviders for the semantic model content in the ModelSet by adaptation of IModels (semantic IModels per new Language Service API) to a new ISemanticContentProviderFactory protocol that creates content providers appropriate to the specific semantic model. Move the identifier of the Papyrus toolbar contribution out of the UML namespace: org.eclipse.papyrus.uml.diagram.ui.toolbar is now just org.eclipse.papyrus.ui.toolbar. Add a new XML enablement expression definition named org.eclipse.papyrus.ui.semanticModelActive as a generalization of the org.eclipse.papyrus.uml.diagram.common.IsPapyrusActiveWithUMLModel for more than just UML Papyrus editors. Tests all still pass (inasmuch as they do in the nightly master builds). Change-Id: I41af229742134428e9e00f41575c14ef1aaf5e09
2016-01-22Bug 485220: [Architecture] Provide a more modular architectureChristian W. Damus62-341/+2253 Move UI-dependent APIs from the org.eclipse.papyrus.infra.constraints bundle to a new org.eclipse.papyrus.infra.constraints.ui bundle. Replace usage of ISelection and IStructuredSelection in Constraint and ConstraintEngine API methods with Object and Collection<?>, respectively. Move the ElementTypesPreferences class from the infra.elementtypesconfigurations bundle to a new infra.elementtypesconfigurations.ui bundle. For compatibility, it still persists its data via an `IMemento` in the preferences of the core `infra.elementtypesconfigurations` bundle. It implements a new provider extension interface that allows the core bundle's element-type registry to call out to it to get user-defined element types from the workspace. Move the RuntimeValuesEditionAdviceEditHelperAdvice class and some of its attendants from the infra.elementtypesconfigurations.emf bundle to the new infra.elementtypesconfigurations.ui bundle because it needs to open the EditionDialog to let the user edit objects. Likewise the similar APIs in the infra.extendedtypes bundle, including also the entire providers package for action-providers, with the ExtendedElementTypeActionService class, the IExtendedElementTypeActionProvider interface, and the corresponding extension point namespace. Move the ElementTypeValidator class from the bundle to a new bundle. Other fixes for simple inessential UI dependencies and also conflicts in bundle classpaths (such as in the Sequence Diagram particularly) that cause deadlocks in class loading in a complete Papyrus environment, such as the AllTests suite. Factor the UI dependencies out of the infra.onefile bundle into a new infra.onefile.ui bundle. Tests all still pass (inasmuch as they do in the nightly master builds). Change-Id: I43510c84f54c3e0e52cd7d2aa3ca6aca95b894a7
2016-01-22Bug 485220: [Architecture] Provide a more modular architectureChristian W. Damus25-16/+584 Move UI-dependent APIs from the org.eclipse.papyrus.infra.emf bundle to a new org.eclipse.papyrus.infra.ui.emf bundle. Accordingly move tests into a new org.eclipse.papyrus.infra.ui.emf.tests bundle. Now that we have an UI EMF bundle, move the editor-page advices from the infra.ui bundle into it, which is a more appropriate home for them. One UI dependency is removed by reordering of code in the EMFHelper::getEObject(Object) API: * the EMF Facet tree elements are once again IAdaptables, providing their encapsulated EObjects or EReferences as adapters. So, the case handling IAdaptable is moved ahead of the test for is-an-EObject because these tree elements are also EObjects but are not interesting in themselves Also, the dialog-settings for the EMF Facet customization manager are moved into the infra.ui.emf bundle, as is the lazy initialization of the manager from those settings. Clients are refactored to get the customization manager from this new bundle (via a new ProviderHelper API) to ensure this lazy initialization. Various UI-dependent ServiceUtilsForXyz classes that were in the infra.emf bundle but had nothing to do with EMF are moved into the infra.ui bundle. UI-dependent classes from the org.eclipse.papyrus.infra.emf.readonly bundle are moved into the org.eclipse.papyrus.infra.ui.emf, also. These include extraction of the editor reload listener from the ReadOnlyManager class by means of a new general-purpose IReadOnlyManagerProcessor OSGi service interface. Tests all still pass (inasmuch as they do in the nightly master builds). Change-Id: Ieb0993b2ed1a7a49890d3471c7b42bc4f218fec6
2016-01-22Bug 485220: [Architecture] Provide a more modular architectureChristian W. Damus163-774/+1422 Move UI-dependent APIs from the bundle to org.eclipse.papyrus.infra.ui. Accordingly move tests into a new org.eclipse.papyrus.infra.ui.tests bundle. Two crucial UI dependencies are inverted by introduction of new OSGi services with core interfaces specified in the non-UI layer: * IExecutorService extends Java Platform's ExecutorService with APIs for synchronous execution (a la Display.syncExec). A new CoreExecutors class in the bundle supplies the instance provided by the OSGi service implementation in the infra.ui bundle. This provides compatibility for clients of various UIUtil APIs that they can no longer access * IContextualServiceRegistryTracker abstracts the concept of the default ServicesRegistry found in the currently active editor, which the ServiceUtilsForHandlers class (and hence all of its clients) relies on. Again an OSGi service implementation in the infra.ui bundle supplies the implementation of this tracker, which is exposed in infra.core through the service-utils API Also move UI-dependent APIs from the org.eclipse.papyrus.infra.core bundle into org.eclipse.papyrus.infra.ui. This includes * moving the 'papyrusDiagram' and 'papyrusContentOutline' extension points into the org.eclipse.papyrus.infra.ui namespace * moving various UI-related services such as EditorLifeycleManager, SaveLayoutBeforeClose, and the IMultiDiagramEditor, itself, into the org.eclipse.papyrus.infra.ui bundle This necessitates not only widespread refactorings on the moved APIs, but also concomitant move of other APIs in other bundles because they cannot plausibly use these moved APIs from their new home in org.eclipse.papyrus.infra.ui and/or they cannot reasonably also be moved to the UI bundle and/or they must be used by bundles that now have no UI dependency: * the DI/sash-windows EMF model is moved out of infra.core.sasheditor.di bundle into a new model-only org.eclipse.papyrus.infra.sashwindows.di bundle (which symbolic name incidentally now better reflects the contained Java package names) * the IPageManager and ILocalPageService interfaces are moved out of infra.core.sasheditor.di bundle because they need to remain accessible by headless code such as the edit advices that ensure deletion of sash-model pages for notations that are deleted. These are now in a package named org.eclipse.papyrus.infra.code.sashwindows.di.service. Accordingly the class hierarchy implementing the IPageManager interface is changed: the obsolete PageMngrImpl is deleted, replaced by a BasicPageManagerImpl which now the PageManagerImpl extends. A service factory creates the basic page manager in a headless context, but is overridden by the UI-aware implementation when the UI bundles are installed * the MultiDiagramEditorGefDelegate (which has a GEF 3 dependency) is moved from the org.eclipse.papyrus.infra.core.sasheditor bundle to a new org.eclipse.papyrus.infra.gmfdiag.gef bundle. Its usage for an adapter of ActionRegistry type is extracted out of the CoreMultiDiagramEditor class into a new external adapter-factory in the infra.gmfdiag.gef bundle Tests all still pass (inasmuch as they do in the nightly master builds). Change-Id: I573dee5d9312d6e5746d74575350d0152b591ab3
2016-01-19[releng] Fix bundle localization in MANIFESTAnsgar Radermacher1-0/+1
2016-01-19[releng] Fix (use tag providerName instead of pluginProvider)Ansgar Radermacher3-8/+6
2016-01-19Bug 459647: [Table 2] The cell editor configuration files must beNicolas FAUVERGUE8-1/+878
splitted Add the cell editor configuration for each type + Junit tests implementation Change-Id: I2da6e82d765d67c135acdcc49119e6d2739b0c3d Signed-off-by: Nicolas FAUVERGUE <>
2016-01-19Bug 484185: [Table] EOperation must be managed in tableNicolas FAUVERGUE1-12/+12 Correction of "org.eclipse.papyrus.uml.nattable.generic.tests.bugs.AddElementsOnConnectedTableTest.testAddElements " which adding features and now operations. Change-Id: I6b450e691e4f384f163c30be9ff6e6d1b9d10a7c Signed-off-by: Nicolas FAUVERGUE <>
2016-01-18Bug 480316 - [Codegen C++] Forward declarationAnsgar Radermacher10-9/+17
Update expectedModel (code) to match generator changes
2016-01-18Merge branch 'committers/fnoyrit/refactorVisualID'Florian Noyrit115-600/+605
2016-01-18Bug 484701 - [QDesigner] Refactoring - code generators, architecture ↵Ansgar Radermacher1-0/+1
exploration and component based design should be organised in common directory Add dependency to separate ANSI C library plugin (the code generator does not depend on it, so it is no longer indirectly included)
2016-01-17Merge branch 'committers/fnoyrit/viewpoints'Florian Noyrit115-600/+605
2016-01-16Refactored the generated code to handle visualID as a String instead ofFlorian Noyrit115-600/+605
an int and refactoed the API to comply. Change-Id: Ie459e27d5c80dd18743aeac9e2d745b2f95a4fe0
2016-01-15Bug 408215 - [OCL] Loaded Complete OCL resource does not contribute to ↵Ansgar Radermacher1-10/+18
validation Revert changes to MarkerDeletionAdviceTest (test fails using the standard validation command)
2016-01-15Bug 485891 - [validation] plugin validation seem to failAnsgar Radermacher1-1/+3
2016-01-15Bug 485891 - [validation] plugin validation seem to failAnsgar Radermacher1-1/+2
2016-01-15Bug 485859 - [Table] Update used nattable version to 1.4.0Nicolas FAUVERGUE8-8/+8 - Change the nattable version from 1.3.0 to 1.4.0 Change-Id: I1389e08a7f442e7d55d7a1cad1568f5496177d47 Signed-off-by: Nicolas FAUVERGUE <>
2016-01-14Bug 485846 - [Tests] Main Tests now depend on the Extras buildAnsgar Radermacher7-169/+184
Change-Id: I669d2c8d7a23795c1ca5c687a1175b3f16d95842
2016-01-13Bug 483542 - [Validation] Papyrus needs test cases for common validation tasksAnsgar Radermacher91-8/+6505
Change-Id: Id09ff0b26a7753ad15c0beb30349409f7b57f44e
2016-01-13Bug 408215 - [OCL] Loaded Complete OCL resource does not contribute to ↵Ansgar Radermacher5-26/+15
validation Move some classes to internal sub-package Add UML specific validation commands (avoid exposure to UMLDiagnostician) Use registry to associate a suitable diagnostician for a given model Change-Id: I1f1ec6999dff3e8585b10aacea44f1769352f3f8
2016-01-12Bug 481023: [Table] [ClassTreeTable]Nicolas FAUVERGUE5-0/+266
java.lang.UnsupportedOperationException: The check if the expanded elements was not the correct one. Change-Id: I5172e1fe8a053b4260e862f588a9861609ee542c Signed-off-by: Nicolas FAUVERGUE <>
2016-01-12Bug 481507: [Table] Validation Marker must be displayed in the rows (or ↵Vincent Lorenzo1-1/+1
columns) header try to fix Junit tests on hudson Signed-off-by: Vincent Lorenzo <>
2016-01-12Bug 481507: [Table] Validation Marker must be displayed in the rows (or ↵Vincent Lorenzo1-6/+24
columns) header try to fix Junit tests on hudson Signed-off-by: Vincent Lorenzo <>
2016-01-10[Testing] Fix failing class diagram tests.Florian Noyrit1-8/+25
Change-Id: I548b31a8ecaeb2b5c5ae21fbf9a924aa29bc59c0
2016-01-08Bug 467706: [Table 2] Tree Table with no tree filling configuration onNicolas FAUVERGUE5-0/+251
depth==0 can't be reopened JUnit tests for this bug. Change-Id: Id19207ee70d9a2869119eb4a596867376562963c Signed-off-by: Nicolas FAUVERGUE <>
2016-01-08Bug 481018: [Table] Width of row header columns is not persisted forNicolas FAUVERGUE10-0/+568
column index >1 Implement the NamedStyle for the row header position when the index is superior to 1. The name if the new style is : 'rowPositionXLabelWidth' when x is the position of the column of the row header to manage Add JUnit tests. Change-Id: I1583748187a1d559b400b14fc13118550131be31 Signed-off-by: Nicolas FAUVERGUE <>
2016-01-08Bug 481020: [Table][requirement table] NPE during the synchronizationNicolas FAUVERGUE5-0/+237
processus The problem was available when a requirement contains requirement in tree table (the configuration must have 'packagedElement' as first depth and 'nestedClassifier' as second depth) and the requirements was deleted. This problem is corrected by a test of the deletion of non-existing tree item axis. By this correction, an other linked bug appeared : When the requirement was deleted and an undo was done, the requirement was displayed twice in the table. This was corrected by a test in the 'manageAddNotification' method by checking that the element was not already available in the managed elements (in the case of stereotyped element, the 'SET' event is caught before the 'ADD' and was already managed) + Add the JUnit test Change-Id: I775417673701e2617402797901faa2b338c2e0c8 Signed-off-by: Nicolas FAUVERGUE <>
2016-01-07Bug 484632: [Table] Paste with empty clipboard catch an exceptionNicolas FAUVERGUE39-0/+875 Manage the paste/insert with empty string. Change-Id: I5e60fb03e73dae79072af01ea240747a7d0ed0cb Signed-off-by: Nicolas FAUVERGUE <>
2016-01-05Bug 485214: [Tests] Memory leak in model validationChristian W. Damus2-37/+45 Ensure that the Properties view doesn't leak the model by activating it again before closing the editor so that the Model Validation view isn't still active when the editor is closed. Also fix a bug in the Duck utility that caused a ClassCastException bombing a table-editor test in the dev environment (but not in the build, oddly).
2016-01-05Bug 485212: [Tests] Failures in validation marker deletion advice testsChristian W. Damus2-17/+21 The Papyrus validation service API used by the tests changed in an incompatible way, now no longer delegating by default to the UML validator. So, the test case is updated to use that validator explicitly in order to actually generate the problem markers that the test cases operate on.
2016-01-04Bug 485156: [Tests] Support classification filters in parameterized testsChristian W. Damus8-294/+562 Implement support for classification and condition filtering, per ClassificationRunner, for Parameterized test classes.
2015-12-10Bug 469188: [Editor] Page management improvements in the Papyrus multi-editorChristian W. Damus4-0/+296 Implement sashes in the Welcome Page to give the user even more control over the layout of its contents. Model the sash layout to persist it for restoration of the layout when opening the editor.
2015-12-09Bug 469188: [Editor] Page management improvements in the Papyrus multi-editorChristian W. Damus2-36/+47 Present all notation views (diagrams, tables, etc.) in a single list instead of separate lists in the welcome page.
2015-12-09Bug 469188: [Editor] Page management improvements in the Papyrus multi-editorChristian W. Damus1-0/+75 Ensure that the "close all diagrams" command doesn't actually close the Welcome Page only to have it open again.
2015-12-08Bug 469188: [Editor] Page management improvements in the Papyrus multi-editorChristian W. Damus46-6/+2564 Test suites for the core Welcome Editor service and related components and for the Diagrams table content.

Back to the top