Commits

Anonymous committed b1c3e58

plugin crap (not working at _all_)

git-svn-id: http://svn.opensymphony.com/svn/webwork/trunk@431573baa09-0c28-0410-bef9-dab3c582ae83

  • Participants
  • Parent commits 43e3a7a

Comments (0)

Files changed (3)

       <sourceFolder url="file://$MODULE_DIR$/src/java" isTestSource="false" />
       <sourceFolder url="file://$MODULE_DIR$/src/migration" isTestSource="false" />
       <sourceFolder url="file://$MODULE_DIR$/src/migration-test" isTestSource="false" />
+      <sourceFolder url="file://$MODULE_DIR$/src/plugin" isTestSource="false" />
       <sourceFolder url="file://$MODULE_DIR$/src/test" isTestSource="true" />
       <excludeFolder url="file://$MODULE_DIR$/build" />
     </content>
         <SOURCES />
       </library>
     </orderEntry>
+    <orderEntry type="module-library">
+      <library>
+        <CLASSES>
+          <root url="jar://$APPLICATION_HOME_DIR$/lib/idea.jar!/" />
+        </CLASSES>
+        <JAVADOC />
+        <SOURCES />
+      </library>
+    </orderEntry>
+    <orderEntry type="module-library">
+      <library>
+        <CLASSES>
+          <root url="jar://$APPLICATION_HOME_DIR$/lib/jdom.jar!/" />
+        </CLASSES>
+        <JAVADOC />
+        <SOURCES />
+      </library>
+    </orderEntry>
   </component>
   <component name="WebModuleBuildComponent">
     <setting name="EXPLODED_URL" value="file://" />
           <url>jar://$MODULE_DIR$/lib/optional/freemarker-2.3rc3.jar!/</url>
         </value>
       </pairs>
+      <pairs>
+        <key>
+          <option name="value" value="260" />
+        </key>
+        <value predicate="moduleLibrary">
+          <url>jar://$APPLICATION_HOME_DIR$/lib/idea.jar!/</url>
+        </value>
+      </pairs>
+      <pairs>
+        <key>
+          <option name="value" value="262" />
+        </key>
+        <value predicate="moduleLibrary">
+          <url>jar://$APPLICATION_HOME_DIR$/lib/jdom.jar!/</url>
+        </value>
+      </pairs>
     </orderEntriesWatcher>
     <order-entry-info>
       <info>
           <setting name="URI" value="" />
         </value>
       </info>
+      <info>
+        <key>
+          <option name="value" value="260" />
+        </key>
+        <value>
+          <setting name="copy" value="false" />
+          <setting name="URI" value="" />
+        </value>
+      </info>
+      <info>
+        <key>
+          <option name="value" value="262" />
+        </key>
+        <value>
+          <setting name="copy" value="false" />
+          <setting name="URI" value="" />
+        </value>
+      </info>
     </order-entry-info>
     <deploymentDescriptor name="web.xml" url="file://$MODULE_DIR$/src/webapp/WEB-INF/web.xml" version="2.3" />
   </component>
         <jar basedir="${build.java}" jarfile="${build}/${name}-${version}.jar"/>
     </target>
 
+    <target name="plugin">
+        <javac srcdir="src/plugin" destdir="C:\IntelliJ-IDEA-4.0\test\plugins\webwork\classes" classpathref="cp" debug="on">
+            <classpath location="C:\IntelliJ-IDEA-4.0\lib\idea.jar"/>
+            <classpath location="C:\IntelliJ-IDEA-4.0\lib\jdom.jar"/>
+        </javac>
+
+        <copy file="src/plugin/META-INF/plugin.xml" todir="C:\IntelliJ-IDEA-4.0\test\plugins\webwork\META-INF"/>
+    </target>
+
     <target name="config-browser" depends="java">
         <mkdir dir="${build.config-browser}"/>
 
 
         <war destfile="${build}/${name}-example.war" webxml="${src.webapp}/WEB-INF/web.xml">
             <fileset dir="${src.webapp}">
-                <exclude name="**/web.xml" />
+                <exclude name="**/web.xml"/>
             </fileset>
             <lib dir="${lib.core}"/>
             <lib dir="${lib.optional}"/>
             footer="&lt;a href=&quot;http://www.opensymphony.com/&quot; target=&quot;_top&quot;&gt;WebWork2 Project Page&lt;/a&gt;"
             use="true"
             verbose="false">
-            <link href="http://java.sun.com/j2se/1.3/docs/api/" />
-            <link href="http://java.sun.com/j2ee/sdk_1.3/techdocs/api/" />
+            <link href="http://java.sun.com/j2se/1.3/docs/api/"/>
+            <link href="http://java.sun.com/j2ee/sdk_1.3/techdocs/api/"/>
         </javadoc>
         <!-- <copy overwrite="yes" file="${docs}/main.css" tofile="${docs}/api/stylesheet.css"/> -->
     </target>
         </copy>
 
         <copy todir="${build.dist}">
-           <fileset dir="${basedir}">
-              <include name="build.*"/>
-           </fileset>
+            <fileset dir="${basedir}">
+                <include name="build.*"/>
+            </fileset>
         </copy>
 
         <zip zipfile="${build}/${name}-${version}.zip" basedir="${build.dist}"/>

File src/plugin/com/opensymphony/webwork/plugin/ActionBrowser.java

+package com.opensymphony.webwork.plugin;
+
+import com.intellij.openapi.components.ApplicationComponent;
+import com.intellij.openapi.fileEditor.*;
+import com.intellij.openapi.project.Project;
+import com.intellij.openapi.vfs.VirtualFile;
+
+import javax.swing.*;
+import java.beans.PropertyChangeListener;
+
+public class ActionBrowser implements FileEditorProvider, FileEditor, ApplicationComponent {
+    public String getComponentName() {
+        return "WebWork-ActionBrowser";  //To change body of implemented methods use File | Settings | File Templates.
+    }
+
+    public void initComponent() {
+        //To change body of implemented methods use File | Settings | File Templates.
+    }
+
+    public void disposeComponent() {
+        //To change body of implemented methods use File | Settings | File Templates.
+    }
+
+    public boolean accept(Project project, VirtualFile virtualFile) {
+        return false;  //To change body of implemented methods use File | Settings | File Templates.
+    }
+
+    public FileEditor createEditor(Project project, VirtualFile virtualFile) {
+        return null;  //To change body of implemented methods use File | Settings | File Templates.
+    }
+
+    public void disposeEditor(FileEditor fileEditor) {
+        //To change body of implemented methods use File | Settings | File Templates.
+    }
+
+    public FileEditorState readState(org.jdom.Element element, Project project, VirtualFile virtualFile) {
+        return null;  //To change body of implemented methods use File | Settings | File Templates.
+    }
+
+    public void writeState(FileEditorState fileEditorState, Project project, org.jdom.Element element) {
+        //To change body of implemented methods use File | Settings | File Templates.
+    }
+
+    public String getEditorTypeId() {
+        return null;  //To change body of implemented methods use File | Settings | File Templates.
+    }
+
+    public FileEditorPolicy getPolicy() {
+        return null;  //To change body of implemented methods use File | Settings | File Templates.
+    }
+
+    public JComponent getComponent() {
+        return null;  //To change body of implemented methods use File | Settings | File Templates.
+    }
+
+    public JComponent getPreferredFocusedComponent() {
+        return null;  //To change body of implemented methods use File | Settings | File Templates.
+    }
+
+    public String getName() {
+        return null;  //To change body of implemented methods use File | Settings | File Templates.
+    }
+
+    public FileEditorState getState(FileEditorStateLevel fileEditorStateLevel) {
+        return null;  //To change body of implemented methods use File | Settings | File Templates.
+    }
+
+    public void setState(FileEditorState fileEditorState) {
+        //To change body of implemented methods use File | Settings | File Templates.
+    }
+
+    public boolean isModified() {
+        return false;  //To change body of implemented methods use File | Settings | File Templates.
+    }
+
+    public boolean isValid() {
+        return false;  //To change body of implemented methods use File | Settings | File Templates.
+    }
+
+    public void selectNotify() {
+        //To change body of implemented methods use File | Settings | File Templates.
+    }
+
+    public void deselectNotify() {
+        //To change body of implemented methods use File | Settings | File Templates.
+    }
+
+    public void addPropertyChangeListener(PropertyChangeListener propertyChangeListener) {
+        //To change body of implemented methods use File | Settings | File Templates.
+    }
+
+    public void removePropertyChangeListener(PropertyChangeListener propertyChangeListener) {
+        //To change body of implemented methods use File | Settings | File Templates.
+    }
+}