{"action":"created","comment":{"url":"https://api.github.com/repos/Teiid-Designer/komodo/pulls/comments/24756733","id":24756733,"diff_hunk":"@@ -0,0 +1,363 @@\n+package org.komodo.eclipse.workspace;\n+\n+import java.net.MalformedURLException;\n+import java.net.URL;\n+import java.util.Timer;\n+import java.util.TimerTask;\n+import java.util.concurrent.CountDownLatch;\n+import java.util.concurrent.TimeUnit;\n+\n+import org.eclipse.jface.resource.ImageDescriptor;\n+import org.eclipse.jface.resource.ImageRegistry;\n+import org.eclipse.swt.SWTException;\n+import org.eclipse.swt.graphics.Image;\n+import org.eclipse.ui.plugin.AbstractUIPlugin;\n+import org.komodo.core.KEngine;\n+import org.komodo.relational.RelationalConstants;\n+import org.komodo.relational.model.Column;\n+import org.komodo.relational.model.Model;\n+import org.komodo.relational.model.Parameter;\n+import org.komodo.relational.model.Procedure;\n+import org.komodo.relational.model.Table;\n+import org.komodo.relational.model.Parameter.Direction;\n+import org.komodo.relational.vdb.DataRole;\n+import org.komodo.relational.vdb.Permission;\n+import org.komodo.relational.vdb.Translator;\n+import org.komodo.relational.vdb.Vdb;\n+import org.komodo.relational.workspace.WorkspaceManager;\n+import org.komodo.repository.LocalRepository;\n+import org.komodo.repository.LocalRepository.LocalRepositoryId;\n+import org.komodo.shell.Messages;\n+import org.komodo.shell.Messages.SHELL;\n+import org.komodo.spi.KException;\n+import org.komodo.spi.constants.StringConstants;\n+import org.komodo.spi.repository.KomodoObject;\n+import org.komodo.spi.repository.Repository;\n+import org.komodo.spi.repository.Repository.UnitOfWork;\n+import org.komodo.spi.repository.RepositoryObserver;\n+import org.modeshape.sequencer.teiid.lexicon.CoreLexicon.ModelType;\n+import org.osgi.framework.BundleContext;\n+\n+/**\n+ * The activator class controls the plug-in life cycle\n+ */\n+public class CorePlugin extends AbstractUIPlugin implements StringConstants {\n+\n+\t// The plug-in ID\n+\tpublic static final String PLUGIN_ID = \"org.komodo.eclipse.workspace\"; //$NON-NLS-1$\n+\t\n+\tprivate static final String CORE_REPOSITORY_CONFIG = \"workspace-core-plugin-repository-in-memory-config.json\";\n+\n+\t// The shared instance\n+\tprivate static CorePlugin plugin;\n+\t\n+\tprivate static KEngine kEngine;\n+\t\n+\tprivate static WorkspaceManager wsManager;\n+\t\n+\t/**\n+\t * The constructor\n+\t */\n+\tpublic CorePlugin() {\n+\t}\n+\n+\t/*\n+\t * (non-Javadoc)\n+\t * @see org.eclipse.ui.plugin.AbstractUIPlugin#start(org.osgi.framework.BundleContext)\n+\t */\n+\tpublic void start(BundleContext context) throws Exception {\n+\t\tsuper.start(context);\n+\t\tplugin = this;\n+\t\t\n+\t\tkEngine = KEngine.getInstance();\n+\t\t\n+\t\ttry {\n+\t\t\tstartKEngine();","path":"plugins/org.komodo.eclipse.workspace/src/org/komodo/eclipse/workspace/CorePlugin.java","position":75,"original_position":75,"commit_id":"cabe545f9b6da8b379625e665df651c209c6f0b8","original_commit_id":"cabe545f9b6da8b379625e665df651c209c6f0b8","user":{"login":"phantomjinx","id":1634180,"avatar_url":"https://avatars.githubusercontent.com/u/1634180?v=3","gravatar_id":"","url":"https://api.github.com/users/phantomjinx","html_url":"https://github.com/phantomjinx","followers_url":"https://api.github.com/users/phantomjinx/followers","following_url":"https://api.github.com/users/phantomjinx/following{/other_user}","gists_url":"https://api.github.com/users/phantomjinx/gists{/gist_id}","starred_url":"https://api.github.com/users/phantomjinx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/phantomjinx/subscriptions","organizations_url":"https://api.github.com/users/phantomjinx/orgs","repos_url":"https://api.github.com/users/phantomjinx/repos","events_url":"https://api.github.com/users/phantomjinx/events{/privacy}","received_events_url":"https://api.github.com/users/phantomjinx/received_events","type":"User","site_admin":false},"body":"How do we know that this is the first plugin to start and thus THE plugin to start the engine?","created_at":"2015-02-16T15:24:15Z","updated_at":"2015-02-16T15:24:15Z","html_url":"https://github.com/Teiid-Designer/komodo/pull/63#discussion_r24756733","pull_request_url":"https://api.github.com/repos/Teiid-Designer/komodo/pulls/63","_links":{"self":{"href":"https://api.github.com/repos/Teiid-Designer/komodo/pulls/comments/24756733"},"html":{"href":"https://github.com/Teiid-Designer/komodo/pull/63#discussion_r24756733"},"pull_request":{"href":"https://api.github.com/repos/Teiid-Designer/komodo/pulls/63"}}},"pull_request":{"url":"https://api.github.com/repos/Teiid-Designer/komodo/pulls/63","id":29368353,"html_url":"https://github.com/Teiid-Designer/komodo/pull/63","diff_url":"https://github.com/Teiid-Designer/komodo/pull/63.diff","patch_url":"https://github.com/Teiid-Designer/komodo/pull/63.patch","issue_url":"https://api.github.com/repos/Teiid-Designer/komodo/issues/63","number":63,"state":"open","locked":false,"title":"Adding Komodo Eclipse editor prototype framework","user":{"login":"blafond","id":560654,"avatar_url":"https://avatars.githubusercontent.com/u/560654?v=3","gravatar_id":"","url":"https://api.github.com/users/blafond","html_url":"https://github.com/blafond","followers_url":"https://api.github.com/users/blafond/followers","following_url":"https://api.github.com/users/blafond/following{/other_user}","gists_url":"https://api.github.com/users/blafond/gists{/gist_id}","starred_url":"https://api.github.com/users/blafond/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/blafond/subscriptions","organizations_url":"https://api.github.com/users/blafond/orgs","repos_url":"https://api.github.com/users/blafond/repos","events_url":"https://api.github.com/users/blafond/events{/privacy}","received_events_url":"https://api.github.com/users/blafond/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-02-16T12:07:15Z","updated_at":"2015-02-16T15:24:15Z","closed_at":null,"merged_at":null,"merge_commit_sha":"c67c9b0441d0f24b2e692144724a818e52423098","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/Teiid-Designer/komodo/pulls/63/commits","review_comments_url":"https://api.github.com/repos/Teiid-Designer/komodo/pulls/63/comments","review_comment_url":"https://api.github.com/repos/Teiid-Designer/komodo/pulls/comments/{number}","comments_url":"https://api.github.com/repos/Teiid-Designer/komodo/issues/63/comments","statuses_url":"https://api.github.com/repos/Teiid-Designer/komodo/statuses/cabe545f9b6da8b379625e665df651c209c6f0b8","head":{"label":"blafond:master","ref":"master","sha":"cabe545f9b6da8b379625e665df651c209c6f0b8","user":{"login":"blafond","id":560654,"avatar_url":"https://avatars.githubusercontent.com/u/560654?v=3","gravatar_id":"","url":"https://api.github.com/users/blafond","html_url":"https://github.com/blafond","followers_url":"https://api.github.com/users/blafond/followers","following_url":"https://api.github.com/users/blafond/following{/other_user}","gists_url":"https://api.github.com/users/blafond/gists{/gist_id}","starred_url":"https://api.github.com/users/blafond/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/blafond/subscriptions","organizations_url":"https://api.github.com/users/blafond/orgs","repos_url":"https://api.github.com/users/blafond/repos","events_url":"https://api.github.com/users/blafond/events{/privacy}","received_events_url":"https://api.github.com/users/blafond/received_events","type":"User","site_admin":false},"repo":{"id":30713956,"name":"komodo","full_name":"blafond/komodo","owner":{"login":"blafond","id":560654,"avatar_url":"https://avatars.githubusercontent.com/u/560654?v=3","gravatar_id":"","url":"https://api.github.com/users/blafond","html_url":"https://github.com/blafond","followers_url":"https://api.github.com/users/blafond/followers","following_url":"https://api.github.com/users/blafond/following{/other_user}","gists_url":"https://api.github.com/users/blafond/gists{/gist_id}","starred_url":"https://api.github.com/users/blafond/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/blafond/subscriptions","organizations_url":"https://api.github.com/users/blafond/orgs","repos_url":"https://api.github.com/users/blafond/repos","events_url":"https://api.github.com/users/blafond/events{/privacy}","received_events_url":"https://api.github.com/users/blafond/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/blafond/komodo","description":"teiid modeling tool development utilizing ddl-based metamodel","fork":true,"url":"https://api.github.com/repos/blafond/komodo","forks_url":"https://api.github.com/repos/blafond/komodo/forks","keys_url":"https://api.github.com/repos/blafond/komodo/keys{/key_id}","collaborators_url":"https://api.github.com/repos/blafond/komodo/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/blafond/komodo/teams","hooks_url":"https://api.github.com/repos/blafond/komodo/hooks","issue_events_url":"https://api.github.com/repos/blafond/komodo/issues/events{/number}","events_url":"https://api.github.com/repos/blafond/komodo/events","assignees_url":"https://api.github.com/repos/blafond/komodo/assignees{/user}","branches_url":"https://api.github.com/repos/blafond/komodo/branches{/branch}","tags_url":"https://api.github.com/repos/blafond/komodo/tags","blobs_url":"https://api.github.com/repos/blafond/komodo/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/blafond/komodo/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/blafond/komodo/git/refs{/sha}","trees_url":"https://api.github.com/repos/blafond/komodo/git/trees{/sha}","statuses_url":"https://api.github.com/repos/blafond/komodo/statuses/{sha}","languages_url":"https://api.github.com/repos/blafond/komodo/languages","stargazers_url":"https://api.github.com/repos/blafond/komodo/stargazers","contributors_url":"https://api.github.com/repos/blafond/komodo/contributors","subscribers_url":"https://api.github.com/repos/blafond/komodo/subscribers","subscription_url":"https://api.github.com/repos/blafond/komodo/subscription","commits_url":"https://api.github.com/repos/blafond/komodo/commits{/sha}","git_commits_url":"https://api.github.com/repos/blafond/komodo/git/commits{/sha}","comments_url":"https://api.github.com/repos/blafond/komodo/comments{/number}","issue_comment_url":"https://api.github.com/repos/blafond/komodo/issues/comments/{number}","contents_url":"https://api.github.com/repos/blafond/komodo/contents/{+path}","compare_url":"https://api.github.com/repos/blafond/komodo/compare/{base}...{head}","merges_url":"https://api.github.com/repos/blafond/komodo/merges","archive_url":"https://api.github.com/repos/blafond/komodo/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/blafond/komodo/downloads","issues_url":"https://api.github.com/repos/blafond/komodo/issues{/number}","pulls_url":"https://api.github.com/repos/blafond/komodo/pulls{/number}","milestones_url":"https://api.github.com/repos/blafond/komodo/milestones{/number}","notifications_url":"https://api.github.com/repos/blafond/komodo/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/blafond/komodo/labels{/name}","releases_url":"https://api.github.com/repos/blafond/komodo/releases{/id}","created_at":"2015-02-12T17:21:17Z","updated_at":"2015-02-16T12:06:10Z","pushed_at":"2015-02-16T12:06:09Z","git_url":"git://github.com/blafond/komodo.git","ssh_url":"git@github.com:blafond/komodo.git","clone_url":"https://github.com/blafond/komodo.git","svn_url":"https://github.com/blafond/komodo","homepage":null,"size":46526,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"Teiid-Designer:master","ref":"master","sha":"6f178874397fda8a62b69e7350c0846528d6af87","user":{"login":"Teiid-Designer","id":1641911,"avatar_url":"https://avatars.githubusercontent.com/u/1641911?v=3","gravatar_id":"","url":"https://api.github.com/users/Teiid-Designer","html_url":"https://github.com/Teiid-Designer","followers_url":"https://api.github.com/users/Teiid-Designer/followers","following_url":"https://api.github.com/users/Teiid-Designer/following{/other_user}","gists_url":"https://api.github.com/users/Teiid-Designer/gists{/gist_id}","starred_url":"https://api.github.com/users/Teiid-Designer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Teiid-Designer/subscriptions","organizations_url":"https://api.github.com/users/Teiid-Designer/orgs","repos_url":"https://api.github.com/users/Teiid-Designer/repos","events_url":"https://api.github.com/users/Teiid-Designer/events{/privacy}","received_events_url":"https://api.github.com/users/Teiid-Designer/received_events","type":"Organization","site_admin":false},"repo":{"id":14528678,"name":"komodo","full_name":"Teiid-Designer/komodo","owner":{"login":"Teiid-Designer","id":1641911,"avatar_url":"https://avatars.githubusercontent.com/u/1641911?v=3","gravatar_id":"","url":"https://api.github.com/users/Teiid-Designer","html_url":"https://github.com/Teiid-Designer","followers_url":"https://api.github.com/users/Teiid-Designer/followers","following_url":"https://api.github.com/users/Teiid-Designer/following{/other_user}","gists_url":"https://api.github.com/users/Teiid-Designer/gists{/gist_id}","starred_url":"https://api.github.com/users/Teiid-Designer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Teiid-Designer/subscriptions","organizations_url":"https://api.github.com/users/Teiid-Designer/orgs","repos_url":"https://api.github.com/users/Teiid-Designer/repos","events_url":"https://api.github.com/users/Teiid-Designer/events{/privacy}","received_events_url":"https://api.github.com/users/Teiid-Designer/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Teiid-Designer/komodo","description":"teiid modeling tool development utilizing ddl-based metamodel","fork":false,"url":"https://api.github.com/repos/Teiid-Designer/komodo","forks_url":"https://api.github.com/repos/Teiid-Designer/komodo/forks","keys_url":"https://api.github.com/repos/Teiid-Designer/komodo/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Teiid-Designer/komodo/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Teiid-Designer/komodo/teams","hooks_url":"https://api.github.com/repos/Teiid-Designer/komodo/hooks","issue_events_url":"https://api.github.com/repos/Teiid-Designer/komodo/issues/events{/number}","events_url":"https://api.github.com/repos/Teiid-Designer/komodo/events","assignees_url":"https://api.github.com/repos/Teiid-Designer/komodo/assignees{/user}","branches_url":"https://api.github.com/repos/Teiid-Designer/komodo/branches{/branch}","tags_url":"https://api.github.com/repos/Teiid-Designer/komodo/tags","blobs_url":"https://api.github.com/repos/Teiid-Designer/komodo/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Teiid-Designer/komodo/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Teiid-Designer/komodo/git/refs{/sha}","trees_url":"https://api.github.com/repos/Teiid-Designer/komodo/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Teiid-Designer/komodo/statuses/{sha}","languages_url":"https://api.github.com/repos/Teiid-Designer/komodo/languages","stargazers_url":"https://api.github.com/repos/Teiid-Designer/komodo/stargazers","contributors_url":"https://api.github.com/repos/Teiid-Designer/komodo/contributors","subscribers_url":"https://api.github.com/repos/Teiid-Designer/komodo/subscribers","subscription_url":"https://api.github.com/repos/Teiid-Designer/komodo/subscription","commits_url":"https://api.github.com/repos/Teiid-Designer/komodo/commits{/sha}","git_commits_url":"https://api.github.com/repos/Teiid-Designer/komodo/git/commits{/sha}","comments_url":"https://api.github.com/repos/Teiid-Designer/komodo/comments{/number}","issue_comment_url":"https://api.github.com/repos/Teiid-Designer/komodo/issues/comments/{number}","contents_url":"https://api.github.com/repos/Teiid-Designer/komodo/contents/{+path}","compare_url":"https://api.github.com/repos/Teiid-Designer/komodo/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Teiid-Designer/komodo/merges","archive_url":"https://api.github.com/repos/Teiid-Designer/komodo/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Teiid-Designer/komodo/downloads","issues_url":"https://api.github.com/repos/Teiid-Designer/komodo/issues{/number}","pulls_url":"https://api.github.com/repos/Teiid-Designer/komodo/pulls{/number}","milestones_url":"https://api.github.com/repos/Teiid-Designer/komodo/milestones{/number}","notifications_url":"https://api.github.com/repos/Teiid-Designer/komodo/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Teiid-Designer/komodo/labels{/name}","releases_url":"https://api.github.com/repos/Teiid-Designer/komodo/releases{/id}","created_at":"2013-11-19T15:32:23Z","updated_at":"2015-02-16T12:05:19Z","pushed_at":"2015-02-16T12:05:19Z","git_url":"git://github.com/Teiid-Designer/komodo.git","ssh_url":"git@github.com:Teiid-Designer/komodo.git","clone_url":"https://github.com/Teiid-Designer/komodo.git","svn_url":"https://github.com/Teiid-Designer/komodo","homepage":null,"size":46526,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":7,"mirror_url":null,"open_issues_count":3,"forks":7,"open_issues":3,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Teiid-Designer/komodo/pulls/63"},"html":{"href":"https://github.com/Teiid-Designer/komodo/pull/63"},"issue":{"href":"https://api.github.com/repos/Teiid-Designer/komodo/issues/63"},"comments":{"href":"https://api.github.com/repos/Teiid-Designer/komodo/issues/63/comments"},"review_comments":{"href":"https://api.github.com/repos/Teiid-Designer/komodo/pulls/63/comments"},"review_comment":{"href":"https://api.github.com/repos/Teiid-Designer/komodo/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/Teiid-Designer/komodo/pulls/63/commits"},"statuses":{"href":"https://api.github.com/repos/Teiid-Designer/komodo/statuses/cabe545f9b6da8b379625e665df651c209c6f0b8"}}}}