cayenne-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aadamc...@apache.org
Subject svn commit: r412050 - in /incubator/cayenne/main/branches/PROTO-3.0/modeler-plugin/src/main/java: icons/ icons/icon-new.gif org/apache/cayenne/modeler/plugin/ModelerFrameBuilderExtension.java plugin.properties plugin_ru.properties toolbars.xml
Date Tue, 06 Jun 2006 09:13:18 GMT
Author: aadamchik
Date: Tue Jun  6 02:13:17 2006
New Revision: 412050

URL: http://svn.apache.org/viewvc?rev=412050&view=rev
Log:
added support for toolbars and late assembl

Added:
    incubator/cayenne/main/branches/PROTO-3.0/modeler-plugin/src/main/java/icons/
    incubator/cayenne/main/branches/PROTO-3.0/modeler-plugin/src/main/java/icons/icon-new.gif
  (with props)
    incubator/cayenne/main/branches/PROTO-3.0/modeler-plugin/src/main/java/toolbars.xml
Modified:
    incubator/cayenne/main/branches/PROTO-3.0/modeler-plugin/src/main/java/org/apache/cayenne/modeler/plugin/ModelerFrameBuilderExtension.java
    incubator/cayenne/main/branches/PROTO-3.0/modeler-plugin/src/main/java/plugin.properties
    incubator/cayenne/main/branches/PROTO-3.0/modeler-plugin/src/main/java/plugin_ru.properties

Added: incubator/cayenne/main/branches/PROTO-3.0/modeler-plugin/src/main/java/icons/icon-new.gif
URL: http://svn.apache.org/viewvc/incubator/cayenne/main/branches/PROTO-3.0/modeler-plugin/src/main/java/icons/icon-new.gif?rev=412050&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/cayenne/main/branches/PROTO-3.0/modeler-plugin/src/main/java/icons/icon-new.gif
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Modified: incubator/cayenne/main/branches/PROTO-3.0/modeler-plugin/src/main/java/org/apache/cayenne/modeler/plugin/ModelerFrameBuilderExtension.java
URL: http://svn.apache.org/viewvc/incubator/cayenne/main/branches/PROTO-3.0/modeler-plugin/src/main/java/org/apache/cayenne/modeler/plugin/ModelerFrameBuilderExtension.java?rev=412050&r1=412049&r2=412050&view=diff
==============================================================================
--- incubator/cayenne/main/branches/PROTO-3.0/modeler-plugin/src/main/java/org/apache/cayenne/modeler/plugin/ModelerFrameBuilderExtension.java
(original)
+++ incubator/cayenne/main/branches/PROTO-3.0/modeler-plugin/src/main/java/org/apache/cayenne/modeler/plugin/ModelerFrameBuilderExtension.java
Tue Jun  6 02:13:17 2006
@@ -15,6 +15,7 @@
  */
 package org.apache.cayenne.modeler.plugin;
 
+import org.apache.cayenne.swing.plugin.frame.FrameBuilder;
 import org.apache.cayenne.swing.plugin.frame.FrameBuilderExtension;
 import org.apache.cayenne.swing.plugin.frame.FramePlugin;
 import org.platonos.pluginengine.Plugin;
@@ -34,16 +35,20 @@
         this.plugin = PluginEngine.getPlugin(ModelerPlugin.class);
     }
 
-    public void initActions(FramePlugin plugin) {
-        plugin.getFrameBuilder().addActions(this.plugin, "actions.xml");
-    }
-
     public void initFrame(FramePlugin plugin) {
         plugin.getFrameController().getFrame().setTitle(
                 this.plugin.replaceToken("$$frame.title$$"));
     }
 
-    public void initMenus(FramePlugin plugin) {
-        plugin.getFrameBuilder().addMenus(this.plugin, "menus.xml");
+    public void initActions(FrameBuilder builder) {
+        builder.addActions(this.plugin, "actions.xml");
+    }
+
+    public void initMenus(FrameBuilder builder) {
+        builder.addMenus(this.plugin, "menus.xml");
+    }
+
+    public void initToolbars(FrameBuilder builder) {
+        builder.addToolbars(this.plugin, "toolbars.xml");
     }
 }

Modified: incubator/cayenne/main/branches/PROTO-3.0/modeler-plugin/src/main/java/plugin.properties
URL: http://svn.apache.org/viewvc/incubator/cayenne/main/branches/PROTO-3.0/modeler-plugin/src/main/java/plugin.properties?rev=412050&r1=412049&r2=412050&view=diff
==============================================================================
--- incubator/cayenne/main/branches/PROTO-3.0/modeler-plugin/src/main/java/plugin.properties
(original)
+++ incubator/cayenne/main/branches/PROTO-3.0/modeler-plugin/src/main/java/plugin.properties
Tue Jun  6 02:13:17 2006
@@ -1,5 +1,8 @@
 
-action.new.name = New Project
+action.new.longdescription  = Close any current project and start a fresh project
+action.new.name             = New Project
+action.new.shortdescription = Close any current project and start a fresh project
+action.new.smallicon        = icons/icon-new.gif
 
 frame.title = CayenneModeler
 

Modified: incubator/cayenne/main/branches/PROTO-3.0/modeler-plugin/src/main/java/plugin_ru.properties
URL: http://svn.apache.org/viewvc/incubator/cayenne/main/branches/PROTO-3.0/modeler-plugin/src/main/java/plugin_ru.properties?rev=412050&r1=412049&r2=412050&view=diff
==============================================================================
--- incubator/cayenne/main/branches/PROTO-3.0/modeler-plugin/src/main/java/plugin_ru.properties
(original)
+++ incubator/cayenne/main/branches/PROTO-3.0/modeler-plugin/src/main/java/plugin_ru.properties
Tue Jun  6 02:13:17 2006
@@ -1,5 +1,8 @@
 
-action.new.name = \u041D\u043E\u0432\u044B\u0439  \u041F\u0440\u043E\u0435\u043A\u0442
+action.new.longdescription  = \u0417\u0430\u043A\u0440\u044B\u0442\u044C \u0442\u0435\u043A\u0443\u0449\u0438\u0439
\u043F\u0440\u043E\u0435\u043A\u0442 \u0438 \u043D\u0430\u0447\u0430\u0442\u044C \u043D\u043E\u0432\u044B\u0439
\u043F\u0440\u043E\u0435\u043A\u0442
+action.new.name             = \u041D\u043E\u0432\u044B\u0439  \u041F\u0440\u043E\u0435\u043A\u0442
+action.new.shortdescription = \u0417\u0430\u043A\u0440\u044B\u0442\u044C \u0442\u0435\u043A\u0443\u0449\u0438\u0439
\u043F\u0440\u043E\u0435\u043A\u0442 \u0438 \u043D\u0430\u0447\u0430\u0442\u044C \u043D\u043E\u0432\u044B\u0439
\u043F\u0440\u043E\u0435\u043A\u0442
+action.new.smallicon        = icons/icon-new.gif
 
 frame.title = CayenneModeler
 

Added: incubator/cayenne/main/branches/PROTO-3.0/modeler-plugin/src/main/java/toolbars.xml
URL: http://svn.apache.org/viewvc/incubator/cayenne/main/branches/PROTO-3.0/modeler-plugin/src/main/java/toolbars.xml?rev=412050&view=auto
==============================================================================
--- incubator/cayenne/main/branches/PROTO-3.0/modeler-plugin/src/main/java/toolbars.xml (added)
+++ incubator/cayenne/main/branches/PROTO-3.0/modeler-plugin/src/main/java/toolbars.xml Tue
Jun  6 02:13:17 2006
@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
+<toolbars>
+    <toolbar>
+		<button action="action.new"/>
+    </toolbar>
+</toolbars>
\ No newline at end of file



Mime
View raw message