Skip to main content
aboutsummaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
2016-04-15Bug 486820 - [designer] delete old qompass code from papyrus gitAnsgar Radermacher1645-315937/+0
Change-Id: I7635b8289340d55418af74887ea99e85a8fadb40
2016-03-17438640: [java reverse code] should allow a drag & drop way to run theCedric Dumoulin6-79/+130
reverse https://bugs.eclipse.org/bugs/show_bug.cgi?id=438640 Reenable drag and drop from Package explorer to Class diagram. The reverse is performed, but classes are still not shown.
2016-03-17441179: [java code reverse] Reverse plugin shall provide eclipseCedric Dumoulin8-31/+143
preferences for search path & creation path values Task-Url: https://bugs.eclipse.org/bugs/show_bug.cgi?id=441179 Remove usage of deprecated API in ReverseCodeHandler.
2016-03-17Bug 441179: [java code reverse] Reverse plugin shall provide eclipseCedric Dumoulin11-654/+1107
preferences for search path & creation path values. Merge manually gerrit review 31044 https://git.eclipse.org/r/#/c/31044/
2016-03-03Bug 485220: [Architecture] Provide a more modular architectureChristian W. Damus50-0/+8828
https://bugs.eclipse.org/bugs/show_bug.cgi?id=485220 Complete the configuration of PDE API Tooling in the Papyrus Main and Developer Tools projects, including: * adding the API Analysis nature and builder to .project where it was missing * adding a new menu action in the dev tools Project Management menu to ensure that all Oomph version-management projects in the workspace have API analysis also * fixing API version analysis problems, mostly by upversioning bundles to 2.0 but also applying API filters in some cases where it seems appropriate * implementing project-level API Analysis preferences for warning severity of missing @since doc tags (the default is error) and adding it to the Oomph project preferences management Change-Id: I3f5fad20ffc7bb66eec0abbb86b5cc52aacb1ff1
2016-01-27Bug 486356 - [C++ codegen] The code generator does create forwardShuai Li1-6/+6
declarations for signals - We now generate a forward declaration for everything except Enumeration and PrimitiveType Change-Id: I5468793d9af45d51df63ffc4f94958ce4d1e1ffc Signed-off-by: Shuai Li <shuai.li@cea.fr>
2016-01-27Bug 486047 - [Codegen C++] Shared aggregation pointerShuai Li3-31/+104
- When computing types to include, we skip shared aggregation attribute types - When computing types to declare, we add shared aggregation attribute types (unless they are already included, this hasn't changed) - Fix double pointer when an attribute is of shared aggregation kind, and it is also stereotyped <<Ptr>> Change-Id: I580c25ee304861498522b437128f1329208ffe4d Signed-off-by: Shuai Li <shuai.li@cea.fr>
2016-01-26[releng] Fix vendorTest (add bundle-localization: plugin)Ansgar Radermacher2-0/+2
2016-01-22Bug 485220: [Architecture] Provide a more modular architectureChristian W. Damus6-11/+13
https://bugs.eclipse.org/bugs/show_bug.cgi?id=485220 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. Damus19-53/+53
https://bugs.eclipse.org/bugs/show_bug.cgi?id=485220 Move UI-dependent APIs from the org.eclipse.papyrus.infra.tools 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 infra.tools 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-22Bug 486358 - [C++ codegen] The initialiser of a enumeration produces invalid ↵Ansgar Radermacher1-1/+1
code
2016-01-22Bug 486122 - [Codegen C++] First letter of each line of method body isShuai Li1-8/+17
removed if the default indentation is less than 4 spaces - The decreaseIndent method now has an 'indentation' parameter - We compare against this much indentation - The old method is kept for compatibility, and it only calls the new method with 'indentation=4' - Fix a bug where if we find a non-space char, we add it to the new block right away and we decrease consume to 0. Otherwise the first letter of the line is skipped if the indentation is less than the 'indentation' parameter (hard-coded as 4 before). Signed-off-by: Shuai Li <shuai.li@cea.fr>
2016-01-21Bug 486190 - [Codegen C++] Constants are not up to dateShuai Li1-1/+1
- Regression: fix body include comment constant usage Signed-off-by: Shuai Li <shuai.li@cea.fr>
2016-01-20Bug 486190 - [Codegen C++] Constants are not up to dateShuai Li2-8/+9
- Update constants with what is generated (hard-coded) - Use constants instead of hard-coded values Signed-off-by: Shuai Li <shuai.li@cea.fr>
2016-01-20Export some packages because we need them for the reverse workShuai Li1-35/+37
Signed-off-by: Shuai Li <shuai.li@cea.fr>
2016-01-18Bug 480316 - [Codegen C++] Forward declarationAnsgar Radermacher7-36/+713
Repost of Shuai's changes, but aligned with refactoring done in Bug 484701 A complete rework of includes and declares in header and body. The following rules are respected: === In header === * Include: - All types of attributes that ARE NOT pointers or references - All types of inline NON-NoCodeGen operation parameters that ARE NOT pointer or ref - ALL types that are inner classifiers (not owned by a package) - Recursively do the same for inner classifiers - Interface realization, association, and template rules haven't changed * Declare: - All types of attributes that ARE pointers or references EXCEPT types that are inner classifiers (not owned by a package) - All types of operation parameters... - ...without types of inline NON-NoCodeGen operation parameters that ARE NOT pointer or ref (since they are included) - All types of opaque behavior parameters without specification - Recursively do the same for inner classifiers - Template rules haven't changed === In body === * Include: - All types of NON-inline and NON-NoCodeGen operation parameters that ARE NOT pointers or references - All types of opaque behavior parameters without specification that ARE NOT pointers or references - Recursively do the same for inner classifiers - Dependency and template rule haven't changed * Declare: - We don't declare in body Some other changes: - Remove old getTypesViaAttributes (not used anywhere) - Rename getOwnedAttributesTypes to getTypesViaAttributes - Fix a lot of javadoc comments for the GenUtils methods - Fix bug where classifiers included in cpp file are not generated when we want to generate code only for 1 classifier and its dependencies (e.g. right click on a class and generate code) - Do not add namespace of undefined inner primitive type (i.e. no Typedef) in list of types to include/declare. Indeed in the code we generate 'MyPrimitive attr' instead of '::MyClass::MyPrimitive attr' Change-Id: Ic4062f8eb8d032226ca85ba2cb31e836e88e6cbe
2016-01-17Bug 484701 - [QDesigner] Refactoring - code generators, architecture ↵Ansgar Radermacher1612-0/+305867
exploration and component based design should be organised in common directory Bug 478797 - [model library] Decide which model library to use for C++ primitive types Change-Id: Idade4edfcf803da3528c0873aa04b754915866fd

    Back to the top