Permalink
Browse files

Rename com.coala.plugin to com.coala.core

  • Loading branch information...
arafsheikh committed May 24, 2016
1 parent 513e6be commit e4426d61078e32bf0b5f838cdee18110637708e0
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>com.coala.plugin</name>
<name>com.coala.core</name>
<comment></comment>
<projects>
</projects>
@@ -1,7 +1,7 @@
Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: Plugin
Bundle-SymbolicName: com.coala.plugin;singleton:=true
Bundle-SymbolicName: com.coala.core;singleton:=true
Bundle-Version: 1.0.0.qualifier
Bundle-ClassPath: .,
lib/json-20151123.jar
@@ -0,0 +1 @@
/com/
Binary file not shown.
Binary file not shown.
@@ -6,35 +6,35 @@
point="org.eclipse.ui.commands">
<category
name="Main Category"
id="com.coala.plugin.commands.category">
id="com.coala.core.commands.category">
</category>
<command
categoryId="com.coala.plugin.commands.category"
id="com.coala.plugin.commands.runcoalaCommand"
categoryId="com.coala.core.commands.category"
id="com.coala.core.commands.runcoalaCommand"
name="Run coala Command">
</command>
<command
categoryId="com.coala.plugin.commands.category"
id="com.coala.plugin.commands.removeMarkersCommand"
categoryId="com.coala.core.commands.category"
id="com.coala.core.commands.removeMarkersCommand"
name="Remove Markers Command">
</command>
</extension>
<extension
point="org.eclipse.ui.handlers">
<handler
commandId="com.coala.plugin.commands.runcoalaCommand"
class="com.coala.plugin.handlers.Plugin">
commandId="com.coala.core.commands.runcoalaCommand"
class="com.coala.core.handlers.Plugin">
</handler>
<handler
commandId="com.coala.plugin.commands.removeMarkersCommand"
class="com.coala.plugin.handlers.RemoveMarkers">
commandId="com.coala.core.commands.removeMarkersCommand"
class="com.coala.core.handlers.RemoveMarkers">
</handler>
</extension>
<!--
<extension
point="org.eclipse.ui.bindings">
<key
commandId="com.coala.plugin.commands.sampleCommand"
commandId="com.coala.core.commands.sampleCommand"
contextId="org.eclipse.ui.contexts.window"
sequence="M1+6"
schemeId="org.eclipse.ui.defaultAcceleratorConfiguration">
@@ -47,33 +47,33 @@
locationURI="menu:org.eclipse.ui.main.menu?after=additions">
<menu
icon="icons/coala-analyzer.gif"
id="com.coala.plugin.menus.sampleMenu"
id="com.coala.core.menus.sampleMenu"
label="Coala"
mnemonic="M">
<command
label = "Run on Current file"
commandId="com.coala.plugin.commands.runcoalaCommand"
commandId="com.coala.core.commands.runcoalaCommand"
mnemonic="S"
id="com.coala.plugin.menus.sampleCommand">
id="com.coala.core.menus.sampleCommand">
</command>
<command
label = "Remove markers from current file"
commandId="com.coala.plugin.commands.removeMarkersCommand"
commandId="com.coala.core.commands.removeMarkersCommand"
mnemonic="C"
id="com.coala.plugin.menus.removeMarkersCommand">
id="com.coala.core.menus.removeMarkersCommand">
</command>
</menu>
</menuContribution>
<!--
<menuContribution
locationURI="toolbar:org.eclipse.ui.main.toolbar?after=additions">
<toolbar
id="com.coala.plugin.toolbars.sampleToolbar">
id="com.coala.core.toolbars.sampleToolbar">
<command
commandId="com.coala.plugin.commands.sampleCommand"
commandId="com.coala.core.commands.sampleCommand"
icon="icons/sample.gif"
tooltip="Say hello world"
id="com.coala.plugin.toolbars.sampleCommand">
id="com.coala.core.toolbars.sampleCommand">
</command>
</toolbar>
</menuContribution>
@@ -83,7 +83,7 @@
<extension id="coolmarker" point="org.eclipse.core.resources.markers"/>
<extension id="coolproblem" point="org.eclipse.core.resources.markers">
<super type="org.eclipse.core.resources.problemmarker"/>
<super type="com.coala.plugin.coolmarker"/>
<super type="com.coala.core.coolmarker"/>
<attribute name="coolFactor"/>
<persistent value="true"/>
</extension>
@@ -1,4 +1,4 @@
package com.coala.plugin.handlers;
package com.coala.core.handlers;
import java.io.IOException;
import java.io.InputStream;
@@ -70,7 +70,7 @@ public IMarker createCoolMarker(int line_num, int flag, String message) {
IResource resource = (IResource) file;
try {
IMarker marker = resource.createMarker("com.coala.plugin.coolproblem");
IMarker marker = resource.createMarker("com.coala.core.coolproblem");
// marker.setAttribute("coolFactor", "ULTRA");
marker.setAttribute(IMarker.LINE_NUMBER, line_num);
if (flag == 1)
@@ -1,5 +1,5 @@
package com.coala.plugin.handlers;
package com.coala.core.handlers;
import org.eclipse.core.commands.AbstractHandler;
import org.eclipse.core.commands.ExecutionEvent;
@@ -28,7 +28,7 @@ public Object execute(ExecutionEvent event) throws ExecutionException {
}
for (IMarker m : problems) {
try {
if (m.getType().equals("com.coala.plugin.coolproblem"))
if (m.getType().equals("com.coala.core.coolproblem"))
m.delete();
} catch (CoreException e) {
e.printStackTrace();

0 comments on commit e4426d6

Please sign in to comment.