Skip to content

Commit

Permalink
Provide Call Graph Model editor #12
Browse files Browse the repository at this point in the history
Add CGM Editor bundle and feature

Signed-off-by: Alexander Fedorov <[email protected]>
  • Loading branch information
ruspl-afed committed Feb 4, 2022
1 parent 85e9a57 commit 6c938b7
Show file tree
Hide file tree
Showing 19 changed files with 4,015 additions and 0 deletions.
7 changes: 7 additions & 0 deletions bundles/ru.arsysop.loft.cast.cgm.editor/.classpath
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="src" path="src-gen"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8"/>
<classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
<classpathentry kind="output" path="bin"/>
</classpath>
28 changes: 28 additions & 0 deletions bundles/ru.arsysop.loft.cast.cgm.editor/.project
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>ru.arsysop.loft.cast.cgm.editor</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>org.eclipse.jdt.core.javabuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.pde.ManifestBuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.pde.SchemaBuilder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.jdt.core.javanature</nature>
<nature>org.eclipse.pde.PluginNature</nature>
</natures>
</projectDescription>
20 changes: 20 additions & 0 deletions bundles/ru.arsysop.loft.cast.cgm.editor/META-INF/MANIFEST.MF
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: %pluginName
Bundle-SymbolicName: ru.arsysop.loft.cast.cgm.editor;singleton:=true
Automatic-Module-Name: ru.arsysop.loft.cast.cgm.editor
Bundle-Version: 1.0.0.qualifier
Bundle-ClassPath: .
Bundle-Activator: ru.arsysop.loft.cast.cgm.editor.CgmEditorPlugin$Implementation
Bundle-Vendor: %providerName
Bundle-Localization: plugin
Bundle-RequiredExecutionEnvironment: JavaSE-1.8
Export-Package: ru.arsysop.loft.cast.cgm.editor
Require-Bundle: org.eclipse.core.runtime,
org.eclipse.core.resources;visibility:=reexport,
ru.arsysop.loft.cast.cgm.edit;visibility:=reexport,
org.eclipse.emf.ecore.xmi;visibility:=reexport,
org.eclipse.emf.edit.ui;visibility:=reexport,
org.eclipse.jface.text,
org.eclipse.ui.ide;visibility:=reexport
Bundle-ActivationPolicy: lazy
26 changes: 26 additions & 0 deletions bundles/ru.arsysop.loft.cast.cgm.editor/build.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# Copyright (c) 2022 ArSysOp
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# SPDX-License-Identifier: Apache-2.0
# Contributors:
# ArSysOp - initial API and implementation
#

bin.includes = .,\
icons/,\
META-INF/,\
plugin.xml,\
plugin.properties
jars.compile.order = .
source.. = src-gen/
output.. = bin
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.
95 changes: 95 additions & 0 deletions bundles/ru.arsysop.loft.cast.cgm.editor/plugin.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,95 @@
# Copyright (c) 2022 ArSysOp
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# SPDX-License-Identifier: Apache-2.0
# Contributors:
# ArSysOp - initial API and implementation
#

pluginName = ArSysOp LOFT CAST CGM Model Editor
providerName = ArSysOp

_UI_CgmEditor_menu = &Cgm Editor

_UI_CreateChild_menu_item = &New Child
_UI_CreateSibling_menu_item = N&ew Sibling

_UI_ShowPropertiesView_menu_item = Show &Properties View
_UI_RefreshViewer_menu_item = &Refresh

_UI_SelectionPage_label = Selection
_UI_ParentPage_label = Parent
_UI_ListPage_label = List
_UI_TreePage_label = Tree
_UI_TablePage_label = Table
_UI_TreeWithColumnsPage_label = Tree with Columns
_UI_ObjectColumn_label = Object
_UI_SelfColumn_label = Self

_UI_NoObjectSelected = Selected Nothing
_UI_SingleObjectSelected = Selected Object: {0}
_UI_MultiObjectSelected = Selected {0} Objects

_UI_OpenEditorError_label = Open Editor

_UI_Wizard_category = Call Graph Model Creation Wizards

_UI_CreateModelError_message = Problems encountered in file "{0}"

_UI_CgmModelWizard_label = Cgm Model
_UI_CgmModelWizard_description = Create a new Cgm model

_UI_CgmEditor_label = Cgm Model Editor

_UI_CgmEditorFilenameDefaultBase = My
_UI_CgmEditorFilenameExtensions = cgm

_UI_Wizard_label = New

_WARN_FilenameExtension = The file name must end in ''.{0}''
_WARN_FilenameExtensions = The file name must have one of the following extensions: {0}

_UI_ModelObject = &Model Object
_UI_XMLEncoding = &XML Encoding
_UI_XMLEncodingChoices = UTF-8 ASCII UTF-16 UTF-16BE UTF-16LE ISO-8859-1
_UI_Wizard_initial_object_description = Specify a file name and select a model object to create

_UI_FileConflict_label = File Conflict
_WARN_FileConflict = There are unsaved changes that conflict with changes made outside the editor. Do you wish to discard this editor's changes?

_UI_CgmEditorAdvisor_ActionSet_label = Cgm Action Set
_UI_Perspective_label = Cgm

_UI_Browse_label = &Browse...
_UI_File_label = &File
_UI_Question_title = Question
_WARN_FileConflict = The file "{0}" already exists. Do you want to replace the existing file?
_UI_Error_title = Error
_WARN_No_Editor = There is no editor registered for the file "{0}".

_UI_Application_title = Cgm Application
_UI_Menu_File_label = &File
_UI_Menu_New_label = &New
_UI_Menu_Open_label = &Open...
_UI_Menu_Open_description = Opens a model object file
_UI_Menu_OpenURI_label = &Open URI...
_UI_Menu_OpenURI_description = Opens a model object loading it from a URI
_UI_Menu_Edit_label = &Edit
_UI_Menu_Window_label = &Window
_UI_Menu_Help_label = &Help
_UI_Menu_About_label = Cgm &About...
_UI_About_title = Cgm Application
_UI_About_text = Cgm Application about box goes here.

_UI_CgmModelWizard_ActionSet_label = Cgm Model Action Set

54 changes: 54 additions & 0 deletions bundles/ru.arsysop.loft.cast.cgm.editor/plugin.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
<?xml version="1.0" encoding="UTF-8"?>
<?eclipse version="3.0"?>

<!--
Copyright (c) 2022 ArSysOp
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
SPDX-License-Identifier: Apache-2.0
Contributors:
ArSysOp - initial API and implementation
-->

<plugin>

<extension point="org.eclipse.ui.newWizards">
<!-- @generated cgm -->
<category
id="ru.arsysop.loft.cast.cgm.editor.Wizard.category.ID"
name="%_UI_Wizard_category"/>
<wizard
id="ru.arsysop.loft.cast.cgm.editor.CgmModelWizardID"
name="%_UI_CgmModelWizard_label"
class="ru.arsysop.loft.cast.cgm.editor.CgmModelWizard"
category="ru.arsysop.loft.cast.cgm.editor.Wizard.category.ID"
icon="icons/full/obj16/CgmModelFile.gif">
<description>%_UI_CgmModelWizard_description</description>
<selection class="org.eclipse.core.resources.IResource"/>
</wizard>
</extension>

<extension point="org.eclipse.ui.editors">
<!-- @generated cgm -->
<editor
id="ru.arsysop.loft.cast.cgm.editor.CgmEditorID"
name="%_UI_CgmEditor_label"
icon="icons/full/obj16/CgmModelFile.gif"
extensions="cgm"
class="ru.arsysop.loft.cast.cgm.editor.CgmEditor"
contributorClass="ru.arsysop.loft.cast.cgm.editor.CgmActionBarContributor">
</editor>
</extension>

</plugin>
Loading

0 comments on commit 6c938b7

Please sign in to comment.