You can subscribe to this list here.
| 2000 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(4) |
Nov
(6) |
Dec
(2) |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2001 |
Jan
(5) |
Feb
(2) |
Mar
(51) |
Apr
(4) |
May
(2) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
(1) |
Dec
|
|
From: Pascal M. <Pas...@lo...> - 2001-11-08 13:38:53
|
c'est contagieux... http://freshmeat.net/projects/toxicmail/ |
|
From: Pascal M. <mo...@us...> - 2001-05-25 07:19:34
|
Update of /cvsroot/motu/nToxic In directory usw-pr-cvs1:/tmp/cvs-serv634 Log Message: nToxic stands for NeuroToxic, That's toxic in php ! Status: Vendor Tag: MOMO Release Tags: MOMO_1_0 N nToxic/README N nToxic/doc/s1.txt N nToxic/doc/s2.txt N nToxic/doc/s3.1.txt N nToxic/doc/s3.txt N nToxic/doc/s4.txt N nToxic/doc/s5.txt N nToxic/doc/S6.txt N nToxic/doc/S7.txt I nToxic/sql/Check Model.log I nToxic/sql/Generation.log N nToxic/sql/toxic.sql N nToxic/sql/toxiccdm.cdm No conflicts created by this import ***** Bogus filespec: - ***** Bogus filespec: Imported ***** Bogus filespec: sources |
|
From: Pascal M. <Pas...@lo...> - 2001-05-03 15:53:07
|
----- Original Message ----- From: "Pascal P.B. BONNET" <pb...@ig...> To: <Pas...@lo...> Sent: Wednesday, May 02, 2001 7:45 PM Subject: MOTU > Bonjour, > Etant de Nancy; j'ai regardé avec interêt votre travail. > > Nous travaillons sur la gestion de données. > Auriez vous la gentillesse de me dire si Motu est commercialisé? > > D'avance merci > > Cordialement > > Pascal BONNET > Directeur technique > > ============================================== > IGLOO Graphix > 40 rue des Remparts d'Ainay > 69002 Lyon-France > tel + 33 (0)4 78 38 76 66 > fax + 33 (0)4 78 38 76 67 > Bureau internet : www.nvo.com/pbonnet > ============================================== > |
|
From: Pascal M. <Pas...@lo...> - 2001-04-25 07:01:25
|
http://jython.sourceforge.net/cgi-bin/faqw.py?req=show&file=faq06.002.htp |
|
From: Pascal M. <Pas...@lo...> - 2001-04-24 17:03:13
|
http://www.together.at/webdocwf/ |
|
From: Pascal M. <Pas...@lo...> - 2001-04-23 11:57:49
|
----- Original Message ----- From: <yi...@ch...> To: <Pas...@lo...> Sent: Sunday, April 22, 2001 7:31 PM Subject: Hello! > Hi. > > I'm very intersted in MOTU. But I cann't download any files. > Pls. Would you tell me when are you release some files? Or are you send your prototype to me? > > Thanks a lots. > > ************************************ > ÎÒÃÇÇëµ½ÁËÃ׬¡ª¡ª4ÔÂ22ÈÕ22:30Ã׬×ö¿ÍÖйú¹ú¼Ò×ãÇò¶Ó¹Ù·½ÍøÕ¾£¨http://team.ch ina.com£© > http://vipchat.china.com > > À´Points4U,»ý·Ö¶Ò»»PDA£¬Sony VCD...... > http://points4u.china.com > |
|
From: skaf <ha...@us...> - 2001-04-09 16:33:40
|
Update of /cvsroot/motu/toxic In directory usw-pr-cvs1:/tmp/cvs-serv8288 Log Message: Toxic : Servlet implementation of Motu Status: Vendor Tag: MOTU Release Tags: MOTU_1_0 N toxic/scenarii/s1.txt N toxic/scenarii/s2.txt N toxic/scenarii/s1.1 N toxic/scenarii/s3.txt N toxic/scenarii/s4.txt N toxic/scenarii/s3.1.txt N toxic/scenarii/s5.txt N toxic/scenarii/S6.txt N toxic/scenarii/S7.txt N toxic/sql/CreateBase.sql N toxic/sql/s1.sql No conflicts created by this import ***** Bogus filespec: - ***** Bogus filespec: Imported ***** Bogus filespec: sources |
|
From: C. <Fra...@lo...> - 2001-03-27 12:18:24
|
J'ai créé deux nouvelles listes pour la notification CVS
motu-coca
motu-hero
J'ai modifié le loginfo de CVS pour refléter l'organisation
J'ai rempli les mailing listes de façon différentes entre hero et coca.
vous pouvez vérifier celle où vous êtes et vous ajouter dans l'une ou
l'autre si nécessaire. Normalement ça correspond
motu-dev sera donc réservé maintenant aux messages généraux....
François
|
|
From: OSTER G. <go...@us...> - 2001-03-27 08:41:28
|
Update of /cvsroot/motu/cocaine/src/coca/client/ui In directory usw-pr-cvs1:/tmp/cvs-serv25266/src/coca/client/ui Modified Files: LoggerFrame.java Log Message: oups fixed a little misstake... Index: LoggerFrame.java =================================================================== RCS file: /cvsroot/motu/cocaine/src/coca/client/ui/LoggerFrame.java,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -r1.3 -r1.4 *** LoggerFrame.java 2001/03/27 08:34:03 1.3 --- LoggerFrame.java 2001/03/27 08:41:24 1.4 *************** *** 50,54 **** JLogger.commandLogger().addHandler(consoleLog); JLogger.eventLogger().addHandler(consoleLog); ! JLogger.errorLogger.addHandler(consoleLog); JLogger.clientLogger().addHandler(consoleLog); JLogger.stateLogger().addHandler(consoleLog); --- 50,54 ---- JLogger.commandLogger().addHandler(consoleLog); JLogger.eventLogger().addHandler(consoleLog); ! JLogger.errorLogger().addHandler(consoleLog); JLogger.clientLogger().addHandler(consoleLog); JLogger.stateLogger().addHandler(consoleLog); |
|
From: OSTER G. <go...@us...> - 2001-03-27 08:34:07
|
Update of /cvsroot/motu/cocaine/src/coca In directory usw-pr-cvs1:/tmp/cvs-serv24116/src/coca Modified Files: coca.properties Log Message: fixed AreaHandler in order to be compatible with Swing. Index: coca.properties =================================================================== RCS file: /cvsroot/motu/cocaine/src/coca/coca.properties,v retrieving revision 1.52 retrieving revision 1.53 diff -C2 -r1.52 -r1.53 *** coca.properties 2001/03/26 16:40:21 1.52 --- coca.properties 2001/03/27 08:34:02 1.53 *************** *** 59,63 **** # false base not saved at the end of transaction # true base is save at each endact ! ! motu.save=false # the persitent kit to use ... --- 59,63 ---- # false base not saved at the end of transaction # true base is save at each endact ! ! motu.save=true # the persitent kit to use ... |
|
From: OSTER G. <go...@us...> - 2001-03-27 08:34:07
|
Update of /cvsroot/motu/cocaine/src/coca/client/ui/util
In directory usw-pr-cvs1:/tmp/cvs-serv24116/src/coca/client/ui/util
Added Files:
JTextAreaHandler.java
Log Message:
fixed AreaHandler in order to be compatible with Swing.
--- NEW FILE ---
/*
* Swing version of the IBM TextAreaHandler.
*
* But now the refresh is differed.
*
*/
package coca.client.ui.util;
import javax.swing.JTextArea;
import java.awt.Font;
import com.ibm.logging.*;
public class JTextAreaHandler extends Handler {
private transient JTextArea jtextArea;
public JTextAreaHandler() {
}
public JTextAreaHandler(String name) {
super(name);
}
public JTextAreaHandler(String name, String description) {
super(name, description);
}
public void closeDevice() {
synchronized (deviceLock) {
deviceOpen = false;
}
}
public JTextArea getTextArea() {
return jtextArea;
}
public void init() {
super.init();
jtextArea = new JTextArea();
jtextArea.setFont(new Font("Monospaced", 0, 12));
}
public void openDevice() {
synchronized (deviceLock) {
deviceOpen = true;
}
}
public void setTextArea(JTextArea textarea) {
if (textarea != null)
jtextArea = textarea;
}
protected void writeRecord(ILogRecord ilogrecord) {
synchronized (deviceLock) {
if (!deviceOpen)
openDevice();
if (deviceOpen) {
IFormatter iformatter = findFormatter(ilogrecord);
if (iformatter != null) {
String string = iformatter.format(ilogrecord);
jtextArea.append(string + "\n");
}
}
}
}
}
|
|
From: OSTER G. <go...@us...> - 2001-03-27 08:34:07
|
Update of /cvsroot/motu/cocaine/src/coca/client/ui
In directory usw-pr-cvs1:/tmp/cvs-serv24116/src/coca/client/ui
Modified Files:
LoggerFrame.java
Log Message:
fixed AreaHandler in order to be compatible with Swing.
Index: LoggerFrame.java
===================================================================
RCS file: /cvsroot/motu/cocaine/src/coca/client/ui/LoggerFrame.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -r1.2 -r1.3
*** LoggerFrame.java 2001/03/26 16:40:21 1.2
--- LoggerFrame.java 2001/03/27 08:34:03 1.3
***************
*** 16,24 ****
public class LoggerFrame extends JInternalFrame {
! private TextArea output;
private JScrollPane scrollPane;
private static LoggerFrame theInstance = null;
! public LoggerFrame(){
super("Logger", true,true,true,true);
}
--- 16,24 ----
public class LoggerFrame extends JInternalFrame {
! private JTextArea output;
private JScrollPane scrollPane;
private static LoggerFrame theInstance = null;
! private LoggerFrame(){
super("Logger", true,true,true,true);
}
***************
*** 33,47 ****
output = getClientLogger();
output.setEditable(false);
scrollPane = new JScrollPane(output);
! Container c = this.getContentPane();
! c.setLayout(new BorderLayout());
! c.add(scrollPane, BorderLayout.CENTER);
this.pack();
}
! public TextArea getClientLogger() {
! TextAreaHandler consoleLog;
! consoleLog = new TextAreaHandler("Console", "Console Handler");
! consoleLog.addFormatter(new EnhancedFormatter());
// reach the logger
JLogger.commandLogger().addHandler(consoleLog);
--- 33,50 ----
output = getClientLogger();
output.setEditable(false);
+
scrollPane = new JScrollPane(output);
! scrollPane.setPreferredSize(new Dimension(600,200));
!
! this.getContentPane().setLayout(new BorderLayout());
! this.getContentPane().add(scrollPane, BorderLayout.CENTER);
! this.setVisible(true);
this.pack();
}
! public JTextArea getClientLogger() {
! JTextAreaHandler consoleLog;
! consoleLog = new JTextAreaHandler("Console", "Console Handler");
! consoleLog.addFormatter(new TraceFormatter());
// reach the logger
JLogger.commandLogger().addHandler(consoleLog);
|
|
From: Pascal M. <mo...@us...> - 2001-03-26 16:40:25
|
Update of /cvsroot/motu/cocaine/src/coca/commande/server
In directory usw-pr-cvs1:/tmp/cvs-serv19895/src/coca/commande/server
Modified Files:
WorkSpaceCreate.java
Log Message:
a new workspace list property in puser, a bug fix in namingclient display, fixed README.gui
Index: WorkSpaceCreate.java
===================================================================
RCS file: /cvsroot/motu/cocaine/src/coca/commande/server/WorkSpaceCreate.java,v
retrieving revision 1.11
retrieving revision 1.12
diff -C2 -r1.11 -r1.12
*** WorkSpaceCreate.java 2001/03/01 17:28:22 1.11
--- WorkSpaceCreate.java 2001/03/26 16:40:21 1.12
***************
*** 47,50 ****
--- 47,51 ----
String path = normalizedPath.getPath(); //majid
WorkSpace nws=new WorkSpace(name,this.getUser(),this.getBase(),this.getBase().getView(view),path);
+ this.getUser().addWorkSpace(nws);
// this.getBase().addWorkSpace(nws);
// new convention ...the workspace constructor register itself in the base
|
|
From: Pascal M. <mo...@us...> - 2001-03-26 16:40:25
|
Update of /cvsroot/motu/cocaine/src/coca/commande/client
In directory usw-pr-cvs1:/tmp/cvs-serv19895/src/coca/commande/client
Modified Files:
ClientCommande.java
Log Message:
a new workspace list property in puser, a bug fix in namingclient display, fixed README.gui
Index: ClientCommande.java
===================================================================
RCS file: /cvsroot/motu/cocaine/src/coca/commande/client/ClientCommande.java,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -r1.7 -r1.8
*** ClientCommande.java 2001/03/15 13:56:09 1.7
--- ClientCommande.java 2001/03/26 16:40:21 1.8
***************
*** 32,35 ****
--- 32,38 ----
* <pre>
* $Log$
+ * Revision 1.8 2001/03/26 16:40:21 momo54
+ * a new workspace list property in puser, a bug fix in namingclient display, fixed README.gui
+ *
* Revision 1.7 2001/03/15 13:56:09 patten54
* commiting an improve ui set !!
***************
*** 50,55 ****
* *** empty log message ***
*
!
! Rev 0.1 02 Dec 1998 15:13:52 bouazza
* Revision 1.2 1998/01/07 10:31:26 molli
* Ca commence a ressembler a qq chose ...
--- 53,58 ----
* *** empty log message ***
*
!
! Rev 0.1 02 Dec 1998 15:13:52 bouazza
* Revision 1.2 1998/01/07 10:31:26 molli
* Ca commence a ressembler a qq chose ...
|
|
From: Pascal M. <mo...@us...> - 2001-03-26 16:40:25
|
Update of /cvsroot/motu/cocaine/src/coca/client/ui In directory usw-pr-cvs1:/tmp/cvs-serv19895/src/coca/client/ui Modified Files: LoggerFrame.java Log Message: a new workspace list property in puser, a bug fix in namingclient display, fixed README.gui Index: LoggerFrame.java =================================================================== RCS file: /cvsroot/motu/cocaine/src/coca/client/ui/LoggerFrame.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -r1.1 -r1.2 *** LoggerFrame.java 2001/03/23 14:56:54 1.1 --- LoggerFrame.java 2001/03/26 16:40:21 1.2 *************** *** 47,51 **** JLogger.commandLogger().addHandler(consoleLog); JLogger.eventLogger().addHandler(consoleLog); ! //JLogger.errorLogger.addHandler(consoleLog); JLogger.clientLogger().addHandler(consoleLog); JLogger.stateLogger().addHandler(consoleLog); --- 47,51 ---- JLogger.commandLogger().addHandler(consoleLog); JLogger.eventLogger().addHandler(consoleLog); ! JLogger.errorLogger.addHandler(consoleLog); JLogger.clientLogger().addHandler(consoleLog); JLogger.stateLogger().addHandler(consoleLog); |
|
From: Pascal M. <mo...@us...> - 2001-03-26 16:40:25
|
Update of /cvsroot/motu/cocaine/src/coca/client/proxy
In directory usw-pr-cvs1:/tmp/cvs-serv19895/src/coca/client/proxy
Modified Files:
PUser.java
Log Message:
a new workspace list property in puser, a bug fix in namingclient display, fixed README.gui
Index: PUser.java
===================================================================
RCS file: /cvsroot/motu/cocaine/src/coca/client/proxy/PUser.java,v
retrieving revision 1.14
retrieving revision 1.15
diff -C2 -r1.14 -r1.15
*** PUser.java 2001/03/22 15:18:33 1.14
--- PUser.java 2001/03/26 16:40:21 1.15
***************
*** 24,27 ****
--- 24,28 ----
public static final String PROJECTLIST="PROJECTLIST";
public static final String COOTRANSACTIONS="COOTRANSACTIONS";
+ public static final String WORKSPACELIST="WORKSPACELIST";
/**
***************
*** 49,52 ****
--- 50,54 ----
addProperty(PROJECTLIST,user.getProjectList().getProjectListAsString());
addProperty(COOTRANSACTIONS,user.getCooTransactions().naming());
+ addProperty(WORKSPACELIST,user.getWorkSpacesAsString());
}
|
|
From: Pascal M. <mo...@us...> - 2001-03-26 16:40:25
|
Update of /cvsroot/motu/cocaine/src/coca/client
In directory usw-pr-cvs1:/tmp/cvs-serv19895/src/coca/client
Modified Files:
NamingClient.java
Log Message:
a new workspace list property in puser, a bug fix in namingclient display, fixed README.gui
Index: NamingClient.java
===================================================================
RCS file: /cvsroot/motu/cocaine/src/coca/client/NamingClient.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -r1.2 -r1.3
*** NamingClient.java 2001/03/23 14:41:54 1.2
--- NamingClient.java 2001/03/26 16:40:21 1.3
***************
*** 64,67 ****
--- 64,73 ----
this.setLayout(new BorderLayout());
this.add(jsp,BorderLayout.CENTER);
+
+
+ for (Enumeration e = NamingClient.this.elements(); e.hasMoreElements(); ) {
+ Namingable n = (Namingable) e.nextElement();
+ this.newObjectInNaming(n);
+ }
}
***************
*** 101,104 ****
--- 107,112 ----
if (nInfo instanceof PCGroup){
n.add(new DefaultMutableTreeNode(puser));
+ } else {
+ dmt.add(new DefaultMutableTreeNode(o));
}
}
|
|
From: Pascal M. <mo...@us...> - 2001-03-26 16:40:25
|
Update of /cvsroot/motu/cocaine/src/coca/base/security
In directory usw-pr-cvs1:/tmp/cvs-serv19895/src/coca/base/security
Modified Files:
User.java
Log Message:
a new workspace list property in puser, a bug fix in namingclient display, fixed README.gui
Index: User.java
===================================================================
RCS file: /cvsroot/motu/cocaine/src/coca/base/security/User.java,v
retrieving revision 1.12
retrieving revision 1.13
diff -C2 -r1.12 -r1.13
*** User.java 2001/02/23 17:13:00 1.12
--- User.java 2001/03/26 16:40:21 1.13
***************
*** 83,86 ****
--- 83,91 ----
private CooTransactionList cooTransactions = new CooTransactionList(this); // coo transactions of the user
+ /**
+ &Vector WorkSpace
+ */
+ private Vector workspaces = new Vector();
+
private ProxyManager proxy=new ProxyManager(); // proxy management
***************
*** 169,172 ****
--- 174,205 ----
}
+ public void addWorkSpace(WorkSpace w) {
+ workspaces.addElement(w);
+ workspacesChanged(w);
+ }
+
+ public void removeWorkSpace(WorkSpace w) {
+ workspaces.removeElement(w);
+ workspacesChanged(w);
+ }
+
+ private void workspacesChanged(WorkSpace w) {
+ PropertyChangeEvent pevent = new PropertyChangeEvent(this.naming(),this.naming(),0,PUser.WORKSPACELIST,this.getWorkSpacesAsString());
+ w.getEventQueue().postEvent(pevent);
+ }
+
+ Enumeration getWorkSpaces() {
+ return workspaces.elements();
+ }
+
+ public Vector getWorkSpacesAsString() {
+ Vector v = new Vector();
+ for (Enumeration e = this.getWorkSpaces(); e.hasMoreElements(); ) {
+ WorkSpace w = (WorkSpace) e.nextElement();
+ v.addElement(w.naming());
+ }
+ return v;
+ }
+
/* --- Group managment --- */
***************
*** 402,405 ****
--- 435,443 ----
return ueq;
}
+
+ // management of workspace related event
+ public void setProxyPropertyChanged(String propertyName,String source,int id,Object newValue) {
+ }
+
|
|
From: Pascal M. <mo...@us...> - 2001-03-26 16:40:24
|
Update of /cvsroot/motu/cocaine/src/coca In directory usw-pr-cvs1:/tmp/cvs-serv19895/src/coca Modified Files: coca.properties Log Message: a new workspace list property in puser, a bug fix in namingclient display, fixed README.gui Index: coca.properties =================================================================== RCS file: /cvsroot/motu/cocaine/src/coca/coca.properties,v retrieving revision 1.51 retrieving revision 1.52 diff -C2 -r1.51 -r1.52 *** coca.properties 2001/03/23 18:55:11 1.51 --- coca.properties 2001/03/26 16:40:21 1.52 *************** *** 20,32 **** # where is the motu system installed ? ! motu.home=z:/Developpement/cocaine # a good clean init store (created by coca.base.Init) #motu.init.store=c:/motu/initstore ! motu.init.store=z:/Developpement/cocaine/initstore # where to put the store ?? #motu.basedir = c:/motu/store ! motu.basedir = z:/Developpement/cocaine/store # where are data for testing ? --- 20,32 ---- # where is the motu system installed ? ! motu.home=z:/cocaine # a good clean init store (created by coca.base.Init) #motu.init.store=c:/motu/initstore ! motu.init.store=z:/cocaine/initstore # where to put the store ?? #motu.basedir = c:/motu/store ! motu.basedir = z:/cocaine/store # where are data for testing ? *************** *** 90,94 **** # setting the default folder path for the file transfert ... ! default.folder.path=z:/Developpement/cocaine/temp # setting the folder for the Logger configuration --- 90,94 ---- # setting the default folder path for the file transfert ... ! default.folder.path=z:/cocaine/temp # setting the folder for the Logger configuration |
|
From: Pascal M. <mo...@us...> - 2001-03-26 16:40:24
|
Update of /cvsroot/motu/cocaine/old
In directory usw-pr-cvs1:/tmp/cvs-serv19895/old
Modified Files:
JPConsole.py JPConsole.readme
Log Message:
a new workspace list property in puser, a bug fix in namingclient display, fixed README.gui
Index: JPConsole.py
===================================================================
RCS file: /cvsroot/motu/cocaine/old/JPConsole.py,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -r1.1 -r1.2
*** JPConsole.py 1999/05/04 16:02:33 1.1
--- JPConsole.py 2001/03/26 16:40:21 1.2
***************
*** 1,116 ****
! """\
! A GUI around Interpreter.py by Geza Groma
! (gr...@ev...)."""
!
! from Interpreter import Interpreter
! from Action import Action
! from Keymap import getKeyStroke
! from pawt import swing
! import sys
!
! CTRL_D = getKeyStroke('C-d')
! CTRL_X = getKeyStroke('C-x')
! CTRL_C = getKeyStroke('C-c')
! CTRL_V = getKeyStroke('C-v')
! ESCAPE = getKeyStroke('escape')
!
! class JPConsole:
! def __init__(self):
! self.ipr = Interpreter()
! self.textPane = self.ipr.buffer.textpane
! self.textPane.caretUpdate = self.copy_manager
! scroller = swing.JScrollPane(self.textPane, preferredSize=(600,400))
! frame = swing.JFrame('JPython Console',
! windowClosing=lambda event: sys.exit())
! frame.contentPane.add(scroller)
! menuBar = swing.JMenuBar()
! frame.setJMenuBar(menuBar)
!
! menu = menuBar.add(swing.JMenu('File'))
! menu.setMnemonic('F')
! item = menu.add(swing.JMenuItem('Break & Restart', accelerator=ESCAPE,
! actionPerformed=self.restart))
! item.setMnemonic('B')
! item = menu.add(swing.JMenuItem('Exit', accelerator=CTRL_D,
! actionPerformed=lambda event : sys.exit()))
! item.setMnemonic('x')
! self.ipr.keymap.bind('C-z', sys.exit) # an alternative of CTRL_D
!
!
! menu = menuBar.add(swing.JMenu('Edit'))
! menu.setMnemonic('E')
! self.cut_item = menu.add(swing.JMenuItem('Cut', accelerator=CTRL_X,
! enabled=0, actionPerformed=self.cut))
! self.cut_item.setMnemonic('t')
! self.copy_item = menu.add(swing.JMenuItem('Copy', accelerator=CTRL_C,
! enabled=0, actionPerformed=self.copy))
! self.copy_item.setMnemonic('C')
! self.paste_item = menu.add(swing.JMenuItem('Paste', accelerator=CTRL_V,
! enabled=1, actionPerformed=self.paste))
! self.paste_item.setMnemonic('P')
!
! # Some of the above mouse accelerator keys are also included in
! # the keymap of self.textPane, so remove them.
! self.textPane.keymap.removeKeyStrokeBinding(CTRL_X)
! self.textPane.keymap.removeKeyStrokeBinding(CTRL_C)
! self.textPane.keymap.removeKeyStrokeBinding(CTRL_V)
!
! toolbar = swing.JToolBar()
! frame.contentPane.add(toolbar, 'North')
!
! icon = swing.ImageIcon('cut.gif')
! self.cut_button = swing.JButton(icon, enabled=0,
! actionPerformed=self.cut,
! toolTipText='Move selection to Clipboard')
! toolbar.add(self.cut_button)
! icon = swing.ImageIcon('copy.gif')
! self.copy_button = swing.JButton(icon, enabled=0,
! actionPerformed=self.copy,
! toolTipText='Copy selection to Clipboard')
! toolbar.add(self.copy_button)
! icon = swing.ImageIcon('paste.gif')
! self.paste_button = swing.JButton(icon, enabled=1,
! actionPerformed=self.paste,
! toolTipText='Paste Clipboard to selection')
! toolbar.add(self.paste_button)
!
! toolbar.addSeparator()
! icon = swing.ImageIcon('restart.gif')
! self.restart_button = swing.JButton(icon, enabled=1,
! actionPerformed=self.restart,
! toolTipText='Break & Restart interpreter loop')
! toolbar.add(self.restart_button)
!
! frame.iconImage = frame.toolkit.getImage('JPConsole.gif')
! frame.pack()
! frame.show()
! self.textPane.requestFocus()
!
! self.ipr.start()
!
!
! def cut(self, event):
! self.ipr.correct_selection()
! self.textPane.cut()
! self.textPane.requestFocus()
!
! def copy(self, event):
! self.textPane.copy()
! self.textPane.requestFocus()
!
! def paste(self, event):
! self.ipr.correct_selection()
! self.textPane.paste()
! self.textPane.requestFocus()
!
! def restart(self, event):
! self.ipr.restart()
!
! def copy_manager(self, event):
! state = (event.dot != event.mark)
! self.copy_item.enabled = self.copy_button.enabled = state
! self.cut_item.enabled = self.cut_button.enabled = state
!
!
! if __name__ == '__main__':
! con = JPConsole()
--- 1,116 ----
! """\
! A GUI around Interpreter.py by Geza Groma
! (gr...@ev...)."""
!
! from Interpreter import Interpreter
! from Action import Action
! from Keymap import getKeyStroke
! from pawt import swing
! import sys
!
! CTRL_D = getKeyStroke('C-d')
! CTRL_X = getKeyStroke('C-x')
! CTRL_C = getKeyStroke('C-c')
! CTRL_V = getKeyStroke('C-v')
! ESCAPE = getKeyStroke('escape')
!
! class JPConsole:
! def __init__(self):
! self.ipr = Interpreter()
! self.textPane = self.ipr.buffer.textpane
! self.textPane.caretUpdate = self.copy_manager
! scroller = swing.JScrollPane(self.textPane, preferredSize=(600,400))
! frame = swing.JFrame('JPython Console',
! windowClosing=lambda event: sys.exit())
! frame.contentPane.add(scroller)
! menuBar = swing.JMenuBar()
! frame.setJMenuBar(menuBar)
!
! menu = menuBar.add(swing.JMenu('File'))
! menu.setMnemonic('F')
! item = menu.add(swing.JMenuItem('Break & Restart', accelerator=ESCAPE,
! actionPerformed=self.restart))
! item.setMnemonic('B')
! item = menu.add(swing.JMenuItem('Exit', accelerator=CTRL_D,
! actionPerformed=lambda event : sys.exit()))
! item.setMnemonic('x')
! self.ipr.keymap.bind('C-z', sys.exit) # an alternative of CTRL_D
!
!
! menu = menuBar.add(swing.JMenu('Edit'))
! menu.setMnemonic('E')
! self.cut_item = menu.add(swing.JMenuItem('Cut', accelerator=CTRL_X,
! enabled=0, actionPerformed=self.cut))
! self.cut_item.setMnemonic('t')
! self.copy_item = menu.add(swing.JMenuItem('Copy', accelerator=CTRL_C,
! enabled=0, actionPerformed=self.copy))
! self.copy_item.setMnemonic('C')
! self.paste_item = menu.add(swing.JMenuItem('Paste', accelerator=CTRL_V,
! enabled=1, actionPerformed=self.paste))
! self.paste_item.setMnemonic('P')
!
! # Some of the above mouse accelerator keys are also included in
! # the keymap of self.textPane, so remove them.
! self.textPane.keymap.removeKeyStrokeBinding(CTRL_X)
! self.textPane.keymap.removeKeyStrokeBinding(CTRL_C)
! self.textPane.keymap.removeKeyStrokeBinding(CTRL_V)
!
! toolbar = swing.JToolBar()
! frame.contentPane.add(toolbar, 'North')
!
! icon = swing.ImageIcon('cut.gif')
! self.cut_button = swing.JButton(icon, enabled=0,
! actionPerformed=self.cut,
! toolTipText='Move selection to Clipboard')
! toolbar.add(self.cut_button)
! icon = swing.ImageIcon('copy.gif')
! self.copy_button = swing.JButton(icon, enabled=0,
! actionPerformed=self.copy,
! toolTipText='Copy selection to Clipboard')
! toolbar.add(self.copy_button)
! icon = swing.ImageIcon('paste.gif')
! self.paste_button = swing.JButton(icon, enabled=1,
! actionPerformed=self.paste,
! toolTipText='Paste Clipboard to selection')
! toolbar.add(self.paste_button)
!
! toolbar.addSeparator()
! icon = swing.ImageIcon('restart.gif')
! self.restart_button = swing.JButton(icon, enabled=1,
! actionPerformed=self.restart,
! toolTipText='Break & Restart interpreter loop')
! toolbar.add(self.restart_button)
!
! frame.iconImage = frame.toolkit.getImage('JPConsole.gif')
! frame.pack()
! frame.show()
! self.textPane.requestFocus()
!
! self.ipr.start()
!
!
! def cut(self, event):
! self.ipr.correct_selection()
! self.textPane.cut()
! self.textPane.requestFocus()
!
! def copy(self, event):
! self.textPane.copy()
! self.textPane.requestFocus()
!
! def paste(self, event):
! self.ipr.correct_selection()
! self.textPane.paste()
! self.textPane.requestFocus()
!
! def restart(self, event):
! self.ipr.restart()
!
! def copy_manager(self, event):
! state = (event.dot != event.mark)
! self.copy_item.enabled = self.copy_button.enabled = state
! self.cut_item.enabled = self.cut_button.enabled = state
!
!
! if __name__ == '__main__':
! con = JPConsole()
Index: JPConsole.readme
===================================================================
RCS file: /cvsroot/motu/cocaine/old/JPConsole.readme,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -r1.1 -r1.2
*** JPConsole.readme 1999/05/04 16:02:34 1.1
--- JPConsole.readme 2001/03/26 16:40:21 1.2
***************
*** 1,31 ****
! JPConsole is a Swing-based console for JPython. It consists of two parts:
!
! Interpreter.py is a somewhat advanced version of Jims original one (demo/swing/Interpreter.py in the
! JPython distribution). New features:
!
! - the Python interpreter loop runs independently of the AWT event handler
! - text changes are restricted to the current command line
! - command line history (similar to that of the NT console)
! - pressing ESCAPE breaks code execution and restarts the interpreter loop
! - raw_input() and input() are implemented (in the local namespace)
!
! JPConsole.py is a GUI around Interpreter.py with menus and toolbar.
!
! Source:
! http://www.szbk.u-szeged.hu/~groma/python/JPConsole.jar
!
!
! Extract the archived files by
!
! JPython -jar JPConsole.jar
!
! Files from the demo/swing directory are also required, so include that in python.path of your registry
! (after the location of my files, to ensure that the right version of Interpreter.py will be executed).
!
! Jims helpful suggestions during the development of this code are acknowledged.
!
! Enjoy,
!
! Geza Groma
! gr...@ev...
!
--- 1,31 ----
! JPConsole is a Swing-based console for JPython. It consists of two parts:
!
! Interpreter.py is a somewhat advanced version of Jims original one (demo/swing/Interpreter.py in the
! JPython distribution). New features:
!
! - the Python interpreter loop runs independently of the AWT event handler
! - text changes are restricted to the current command line
! - command line history (similar to that of the NT console)
! - pressing ESCAPE breaks code execution and restarts the interpreter loop
! - raw_input() and input() are implemented (in the local namespace)
!
! JPConsole.py is a GUI around Interpreter.py with menus and toolbar.
!
! Source:
! http://www.szbk.u-szeged.hu/~groma/python/JPConsole.jar
!
!
! Extract the archived files by
!
! JPython -jar JPConsole.jar
!
! Files from the demo/swing directory are also required, so include that in python.path of your registry
! (after the location of my files, to ensure that the right version of Interpreter.py will be executed).
!
! Jims helpful suggestions during the development of this code are acknowledged.
!
! Enjoy,
!
! Geza Groma
! gr...@ev...
!
|
|
From: Pascal M. <mo...@us...> - 2001-03-26 16:40:24
|
Update of /cvsroot/motu/cocaine
In directory usw-pr-cvs1:/tmp/cvs-serv19895
Modified Files:
README README.gui
Log Message:
a new workspace list property in puser, a bug fix in namingclient display, fixed README.gui
Index: README
===================================================================
RCS file: /cvsroot/motu/cocaine/README,v
retrieving revision 1.18
retrieving revision 1.19
diff -C2 -r1.18 -r1.19
*** README 2001/03/22 16:36:58 1.18
--- README 2001/03/26 16:40:19 1.19
***************
*** 85,97 ****
NT users : you *MUST* have cygwin installed !
-
- edit ENV.sh to reflect your installation (for compiling and running)
-
* compile :
- on NT (under bash) in directory serial or Pjama depending on the installation you wan :
! . compile.sh
!
! We can compile with javac or jikes (jikes is faster). by default, we use jikes, however
! you can use javac by editing ENV.sh in "bin" directory !
* Update the file ${MOTU_HOME}/src/coca/coca.properties to reflect your installation
--- 85,91 ----
NT users : you *MUST* have cygwin installed !
* compile :
- on NT (under bash) in directory serial or Pjama depending on the installation you wan :
! ant all
* Update the file ${MOTU_HOME}/src/coca/coca.properties to reflect your installation
Index: README.gui
===================================================================
RCS file: /cvsroot/motu/cocaine/README.gui,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -r1.1 -r1.2
*** README.gui 2001/03/25 18:18:25 1.1
--- README.gui 2001/03/26 16:40:19 1.2
***************
*** 9,52 ****
for i.e: for the admin
>
- from java.awt import *
- from java.awt.event import *
- from javax.swing import *
! from PClient import PClient
! from java.lang import System
! from coca.project import Node
! from coca.util import JLogger
!
! from PClient import changeFile
! from PClient import MOTU_TEST_DATA
! from PClient import MOTU_TEST_WS
! from PClient import createDir
! from PClient import createFile
!
! from coca.base.security import Right
!
! import os
! import os.path
!
! me.StartAct()
!
! me.GroupCreate("Red",3)
! //Creating group
!
! me.UserCreate("util1","toto",3,"Red") //
! Creating user
! me.AddRight("B:Master",Right.WRITE,"OW:util1") //
! Giving Right
!
! me.UserCreate("util2","toto",3,"Red") //
!
! me.AddRight("B:Master",Right.WRITE,"OW:util2")
! me.UserCreate("util3","toto",3,"Red")
! me.AddRight("B:Master",Right.WRITE,"OW:util3")
! me.EndAct()
! me.Import(MOTU_TEST_DATA)
! // importing for the admin !! don't forget !:!
!
!
BEWARE :: the reference on the PClient is 'me' (like me "myself" : me
--- 9,44 ----
for i.e: for the admin
>
! from java.awt import *
! from java.awt.event import *
! from javax.swing import *
!
! from PClient import PClient
! from java.lang import System
! from coca.project import Node
! from coca.util import JLogger
!
! from PClient import changeFile
! from PClient import MOTU_TEST_DATA
! from PClient import MOTU_TEST_WS
! from PClient import createDir
! from PClient import createFile
!
! from coca.base.security import Right
!
! import os
! import os.path
!
! me.StartAct()
!
! me.GroupCreate("Red",3)
! me.UserCreate("util1","toto",3,"Red")
! me.AddRight("B:Master",Right.WRITE,"OW:util1")
! me.UserCreate("util2","toto",3,"Red")
! me.AddRight("B:Master",Right.WRITE,"OW:util2")
! me.UserCreate("util3","toto",3,"Red")
! me.AddRight("B:Master",Right.WRITE,"OW:util3")
! me.EndAct()
! me.Import(MOTU_TEST_DATA)
BEWARE :: the reference on the PClient is 'me' (like me "myself" : me
|
|
From: OSTER G. <go...@us...> - 2001-03-26 15:22:50
|
Update of /cvsroot/motu/cocaine/src/coca/base/version
In directory usw-pr-cvs1:/tmp/cvs-serv5792
Modified Files:
ConflictPool.java Log.java LogManager.java
Removed Files:
TileAction.java
Log Message:
fixed a little serializing bug on conflictpool and logs...
Index: ConflictPool.java
===================================================================
RCS file: /cvsroot/motu/cocaine/src/coca/base/version/ConflictPool.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -r1.3 -r1.4
*** ConflictPool.java 2001/03/22 15:18:32 1.3
--- ConflictPool.java 2001/03/26 15:22:45 1.4
***************
*** 23,29 ****
--- 23,34 ----
transient private Component view = null;
+ private ConflictPool() {
+ listeners = new Vector();
+ }
+
public ConflictPool(int Id) {
this.Id = Id;
conflictObjects = new Vector();
+ listeners = new Vector();
}
***************
*** 84,89 ****
public Component display() {
! if (view == null)
! view = new ConflictPool.UI();
return view;
}
--- 89,94 ----
public Component display() {
! if (view == null)
! view = new ConflictPool.UI();
return view;
}
***************
*** 104,109 ****
// TreeModel Interface
! private Vector listeners = new Vector();
public void addTreeModelListener(TreeModelListener l) {
listeners.add(l);
}
--- 109,116 ----
// TreeModel Interface
! transient private Vector listeners = null;
public void addTreeModelListener(TreeModelListener l) {
+ if (listeners == null)
+ listeners = new Vector();
listeners.add(l);
}
Index: Log.java
===================================================================
RCS file: /cvsroot/motu/cocaine/src/coca/base/version/Log.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -r1.1 -r1.2
*** Log.java 2001/03/19 15:05:36 1.1
--- Log.java 2001/03/26 15:22:45 1.2
***************
*** 16,20 ****
private WorkSpace ws;
private Vector operations;
! private Component view = null;
private String fakeRoot = null;
--- 16,20 ----
private WorkSpace ws;
private Vector operations;
! transient private Component view = null;
private String fakeRoot = null;
***************
*** 22,25 ****
--- 22,26 ----
public Log() {
operations = new Vector();
+ listeners = new Vector();
fakeRoot = "Integration Log";
}
***************
*** 27,30 ****
--- 28,32 ----
public Log(WorkSpace ws) {
operations = new Vector();
+ listeners = new Vector();
this.ws = ws;
fakeRoot = "Log of "+ws.getName();
***************
*** 95,100 ****
// TreeModel Interface
! private Vector listeners = new Vector();
public void addTreeModelListener(TreeModelListener l) {
listeners.add(l);
}
--- 97,104 ----
// TreeModel Interface
! transient private Vector listeners = null;
public void addTreeModelListener(TreeModelListener l) {
+ if (listeners == null)
+ listeners = new Vector();
listeners.add(l);
}
Index: LogManager.java
===================================================================
RCS file: /cvsroot/motu/cocaine/src/coca/base/version/LogManager.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -r1.2 -r1.3
*** LogManager.java 2001/03/22 15:18:32 1.2
--- LogManager.java 2001/03/26 15:22:45 1.3
***************
*** 1,4 ****
--- 1,7 ----
package coca.base.version;
+
+ import coca.server.NamingServer;
+
import coca.base.event.listener.FSObjectListener;
import coca.base.event.listener.LObjectListener;
***************
*** 12,15 ****
--- 15,19 ----
import java.util.Enumeration;
+ // UI import...
import java.awt.Component;
import javax.swing.JFrame;
***************
*** 19,24 ****
import javax.swing.JMenu;
import java.awt.BorderLayout;
- import coca.server.NamingServer;
// Singleton !
--- 23,31 ----
import javax.swing.JMenu;
import java.awt.BorderLayout;
+ import java.awt.Dimension;
+ import javax.swing.AbstractAction;
+ import java.awt.event.ActionEvent;
+ import java.beans.PropertyVetoException;
// Singleton !
***************
*** 45,55 ****
private ConflictPoolVersioner cpVersioner;
private LogManager() {
! // need to be fixed...
! cpVersioner = (ConflictPoolVersioner) NamingServer.getInstance().lookup(ConflictPoolVersioner.getName());
! if (cpVersioner == null) {
! System.out.println("normally you will see only one time this message just after a 'Cant find ... null'");
cpVersioner = new ConflictPoolVersioner();
- }
}
--- 52,62 ----
private ConflictPoolVersioner cpVersioner;
+ //private transient JFrame view = null;
+
private LogManager() {
! if (NamingServer.getInstance().contains(ConflictPoolVersioner.getName()))
! cpVersioner = (ConflictPoolVersioner) NamingServer.getInstance().lookup(ConflictPoolVersioner.getName());
! else
cpVersioner = new ConflictPoolVersioner();
}
***************
*** 140,164 ****
}
-
- /*
- * UI for debug only !
- */
public void display() {
! JFrame frame = new JFrame("Log Manager Debug");
! JDesktopPane jdp = new JDesktopPane();
! frame.getContentPane().setLayout(new BorderLayout());
! frame.getContentPane().add(jdp,BorderLayout.CENTER);
! JMenuBar menuBar = new JMenuBar();
! JMenu menu = new JMenu("Window");
! menuBar.add(menu);
! menu.add(new TileAction(jdp)); // add tiling capability
! frame.setJMenuBar(menuBar);
! JInternalFrame jif;
- for (Enumeration e=Base.getInstance().getAllWorkSpaces(); e.hasMoreElements() ;) {
- WorkSpace ws = (WorkSpace) e.nextElement();
jif = new JInternalFrame("Workspace :"+ws.getName(),true,true,true,true);
jif.getContentPane().add(ws.getLog().display());
--- 147,197 ----
}
public void display() {
! //if (view == null)
! JFrame view;
! view = new LogManager.UI();
! view.show();
! view.toFront();
! }
!
+ class UI extends JFrame {
+ JDesktopPane jdp;
+
+ public UI() {
+ super("Log Manager Debug");
+ jdp = new JDesktopPane();
+ this.getContentPane().setLayout(new BorderLayout());
+ this.getContentPane().add(jdp,BorderLayout.CENTER);
+
+ JMenuBar menuBar = new JMenuBar();
+ JMenu menu = new JMenu("Window");
+ menuBar.add(menu);
+ menu.add(new UI.TileAction(jdp)); // add tiling capability
+ this.setJMenuBar(menuBar);
+ for (Enumeration e=Base.getInstance().getAllWorkSpaces(); e.hasMoreElements() ;) {
+ WorkSpace ws = (WorkSpace) e.nextElement();
+ this.addWorkspaceView(ws);
+ }
! JInternalFrame jif;
! jif = new JInternalFrame("Integration Space",true,true,true,true);
! jif.getContentPane().add(getiLog().display());
! jif.setSize(350,200);
! jif.show();
! jdp.add(jif);
!
! jif = new JInternalFrame("Last Conflict Pool",true,true,true,true);
! jif.getContentPane().add(cpVersioner.display());
! jif.setSize(350,200);
! jif.show();
! jdp.add(jif);
!
! this.setSize(800,600);
! }
+ private void addWorkspaceView(WorkSpace ws) {
+ JInternalFrame jif = null;
jif = new JInternalFrame("Workspace :"+ws.getName(),true,true,true,true);
jif.getContentPane().add(ws.getLog().display());
***************
*** 167,185 ****
jdp.add(jif);
}
! jif = new JInternalFrame("Integration Space",true,true,true,true);
! jif.getContentPane().add(getiLog().display());
! jif.setSize(350,200);
! jif.show();
! jdp.add(jif);
!
! jif = new JInternalFrame("Conflict Pool Versions",true,true,true,true);
! jif.getContentPane().add(cpVersioner.display());
! jif.setSize(350,200);
! jif.show();
! jdp.add(jif);
!
! frame.setSize(800,600);
! frame.show();
! frame.toFront();
}
}
--- 200,263 ----
jdp.add(jif);
}
!
!
!
! // An action that tiles all internal frames when requested.
! class TileAction extends AbstractAction {
! private JDesktopPane desk; // the desktop to work with
!
! public TileAction(JDesktopPane desk) {
! super("Tile Frames");
! this.desk = desk;
! }
!
! public void actionPerformed(ActionEvent ev) {
!
! // How many frames do we have?
! JInternalFrame[] allframes = desk.getAllFrames();
! int count = allframes.length;
! if (count == 0) return;
!
! // Determine the necessary grid size
! int sqrt = (int)Math.sqrt(count);
! int rows = sqrt;
! int cols = sqrt;
! if (rows*cols < count) {
! cols++;
! if (rows*cols < count) {
! rows++;
! }
! }
!
! // Define some initial values for size & location
! Dimension size = desk.getSize();
!
! int w = size.width/cols;
! int h = size.height/rows;
! int x = 0;
! int y = 0;
!
! // Iterate over the frames, deiconifying any iconified frames and then
! // relocating & resizing each
! for (int i=0; i<rows; i++) {
! for (int j=0; j<cols && ((i*cols)+j<count); j++) {
! JInternalFrame f = allframes[(i*cols)+j];
!
! if ((f.isClosed() == false) && (f.isIcon() == true)) {
!
! try {
! f.setIcon(false);
! }
! catch (PropertyVetoException ex) {}
! }
!
! desk.getDesktopManager().resizeFrame(f, x, y, w, h);
! x += w;
! }
! y += h; // start the next row
! x = 0;
! }
! }
! }
}
}
--- TileAction.java DELETED ---
|
|
From: Miguel V. F. <mv...@us...> - 2001-03-26 09:50:40
|
Update of /cvsroot/motu/heroine/src/META-INF
In directory usw-pr-cvs1:/tmp/cvs-serv11427/src/META-INF
Modified Files:
ejb-jar.xml
Log Message:
Index: ejb-jar.xml
===================================================================
RCS file: /cvsroot/motu/heroine/src/META-INF/ejb-jar.xml,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -r1.2 -r1.3
*** ejb-jar.xml 2001/03/22 15:48:23 1.2
--- ejb-jar.xml 2001/03/26 09:50:35 1.3
***************
*** 15,123 ****
</entity>
</enterprise-beans>
- <dependents>
- <dependent>
- <description> Edge dependent class </description>
- <dependent-class>
- hero.project.Edge
- </dependent-class>
- <dependent-name> Edge </dependent-name>
- <pk-field>edgeName</pk-field>
- </dependent>
- <dependent>
- <descrption> Node dependent class </description>
- <dependent-class>
- hero.project.Node
- </dependent-class>
- <dependent-name> Node </dependent-name>
- <pk-field>nodeName</pk-field>
- </dependent>
- </depemdents>
-
- <relationships>
-
- <!--
- ONE-TO-MANY: Project Node
- -->
- <ejb-relation>
- <ejb-ralation-name> Project-Node</ejb-relation-name>
- <ejb-relationship-role>
- <ejb-relationship-role-name>
- project-has-Nodes
- </ejb-relationship-role-name>
- <multiplicity>One</multiplicity>
- <role-source>
- <ejb-name>ProjectEJB</ejb-name>
- </role-source>
- <cmr-field>
- <cmr-field-name>nodeName</cmr-field-name>
- <cmr-field-type>java.lang.String</cmr-field-type>
- </cmr-field>
- <cmr-field>
- <cmr-field-name>nodeCreator</cmr-field-name>
- <cmr-field-type>java.lang.String</cmr-field-type>
- </cmr-field>
- <cmr-field>
- <cmr-field-name>nodeProject</cmr-field-name>
- <cmr-field-type>hero.project.ProjectEJB</cmr-field-type>
- </cmr-field>
- </ejb-relationship-role>
-
- <ejb-relationship-role>
- <ejb-relationship-role-name>node_belongsto_project
- </ejb-relationship-role-name>
- <multiplicity>Many</multiplicity>
- <cascade-delete/>
- <role-source>
- <dependent-name>Node<dependent-name>
- </role-source>
- </ejb-relationship-role>
- </ejb-relation>
-
- <!--
- ONE-TO-MANY: Project Edge
- -->
- <ejb-relation>
- <ejb-ralation-name> Project-Edge</ejb-relation-name>
- <ejb-relationship-role>
- <ejb-relationship-role-name>
- project-has-Edges
- </ejb-relationship-role-name>
- <multiplicity>One</multiplicity>
- <role-source>
- <ejb-name>ProjectEJB</ejb-name>
- </role-source>
- <cmr-field>
- <cmr-field-name>edgeName</cmr-field-name>
- <cmr-field-type>java.lang.String</cmr-field-type>
- </cmr-field>
- <cmr-field>
- <cmr-field-name>edgeCreator</cmr-field-name>
- <cmr-field-type>java.lang.String</cmr-field-type>
- </cmr-field>
- <cmr-field>
- <cmr-field-name>edgeProject</cmr-field-name>
- <cmr-field-type>hero.project.ProjectEJB</cmr-field-type>
- </cmr-field>
- <cmr-field>
- <cmr-field-name>edgeNodeIn</cmr-field-name>
- <cmr-field-type>hero.project.String</cmr-field-type>
- </cmr-field>
- <cmr-field>
- <cmr-field-name>edgeNodeOut</cmr-field-name>
- <cmr-field-type>hero.project.String</cmr-field-type>
- </cmr-field>
- </ejb-relationship-role>
-
- <ejb-relationship-role>
- <ejb-relationship-role-name>edge_belongsto_project
- </ejb-relationship-role-name>
- <multiplicity>Many</multiplicity>
- <cascade-delete/>
- <role-source>
- <dependent-name>Edge<dependent-name>
- </role-source>
- </ejb-relationship-role>
- </ejb-relation>
- </relationships>
<assembly-descriptor>
</assembly-descriptor>
--- 15,18 ----
|
|
From: Miguel V. F. <mv...@us...> - 2001-03-26 09:50:40
|
Update of /cvsroot/motu/heroine/src/hero/project
In directory usw-pr-cvs1:/tmp/cvs-serv11427/src/hero/project
Modified Files:
ProjectHome.java
Added Files:
Edge.java Node.java
Log Message:
--- NEW FILE ---
package hero.project;
import java.sql.*;
import javax.sql.*;
import java.rmi.RemoteException;
import java.util.*;
import javax.ejb.*;
import javax.naming.*;
public class Edge {
public static final int INITIAL = 0;
Connection dbConnection = null;
// Edge constants
//public static final int INITIAL = 0;
public static final int ACTIVE = 1;
public static final int ANTICIPATING = 2;
public static final int DEAD = 3;
// Node atributes
private String edgeName;
private String edgeCreator;
private String edgeState;
private String edgeNodeIn;
private String edgeNodeOut;
public void Edge() {};
/**
* Method that obtain edge instance
*/
public Edge getEdge(String name, ProjectEJB project) {
try {
findEdge(name, project);
}catch(Exception findEdge){};
return(this);
}
/**
* Method that obtain edgeName value
*/
public String getEdgeeName() {
return edgeName;
}
/**
* Method that obtain edgeCreator value
*/
public String getEdgeCreator() {
return edgeCreator;
}
/**
* Method that obtain edgeState value
*/
public String getEdgeState() {
return edgeState;
}
/**
* Inserts the Entity state into database,
* Initializes the instance variables
* and returns the primary key.
*/
public String createEdge (String edgeName, String edgeCreator, String edgeState, ProjectEJB edgeProject, String edgeNodeIn, String edgeNodeOut)
throws DuplicateKeyException,CreateException {
ProjectDAO ADAO = new ProjectDAO();
ADAO.setEdgeName(edgeName);
ADAO.setEdgeCreator(edgeCreator);
ADAO.setEdgeState(edgeState);
ADAO.setEdgeNodeIn(edgeNodeIn);
ADAO.setEdgeNodeOut(edgeNodeOut);
try{
dbConnection = edgeProject.getDBConnection();
ADAO.createEdge(dbConnection);
return (edgeName);
}catch (java.sql.SQLException se) {
throw new CreateException ("SQL Exception in create:" + se);
} finally {
try {
dbConnection.close();
} catch (SQLException se) {
throw new CreateException
("SQL Exception in create:" + se);
}
}
}
/**
* Finder method that obtain edge fields for specific edgeName
*/
public void findEdge (String name, ProjectEJB edgeProject) throws FinderException {
ProjectDAO ADAO = new ProjectDAO();
ADAO.setEdgeName(name);
try{
dbConnection = edgeProject.getDBConnection();
if (ADAO.findByEdgeName(dbConnection) == true)
{
this.edgeName = ADAO.getEdgeName();
this.edgeCreator = ADAO.getEdgeCreator();
this.edgeState = ADAO.getEdgeState();
this.edgeNodeIn = ADAO.getEdgeNodeIn();
this.edgeNodeOut = ADAO.getEdgeNodeOut();
}
}catch (java.sql.SQLException se) {
throw new FinderException ("SQL Exception in find by primary key");
} finally {
try {
dbConnection.close();
} catch (SQLException se) {
throw new FinderException ("SQL Exception in find by primary key");
}
}
}
/**
* Store method that set edge information
*/
public void storeEdge (ProjectEJB edgeProject) throws FinderException {
ProjectDAO ADAO = new ProjectDAO();
try{
dbConnection = edgeProject.getDBConnection();
ADAO.setEdgeName(this.edgeName);
ADAO.setEdgeCreator(this.edgeCreator);
ADAO.setEdgeState(this.edgeState);
ADAO.setEdgeNodeIn(this.edgeNodeIn);
ADAO.setEdgeNodeOut(this.edgeNodeOut);
ADAO.storeEdgeRow(dbConnection);
}catch (java.sql.SQLException se) {
throw new EJBException (se);
} finally {
try {
dbConnection.close();
} catch (SQLException se) {
throw new EJBException (se);
}
}
}
/**
* Delete edge
*/
public void deleteEdge (ProjectEJB edgeProject) throws FinderException {
ProjectDAO ADAO = new ProjectDAO();
try{
dbConnection = edgeProject.getDBConnection();
ADAO.setEdgeName(this.edgeName);
ADAO.deleteEdgeRow(dbConnection);
}catch (java.sql.SQLException se) {
throw new EJBException (se);
} finally {
try {
dbConnection.close();
} catch (SQLException se) {
throw new EJBException (se);
}
}
}
}
--- NEW FILE ---
package hero.project;
import java.sql.*;
import javax.sql.*;
import java.util.*;
import java.rmi.RemoteException;
import javax.ejb.*;
import javax.naming.Context;
import javax.naming.InitialContext;
import javax.rmi.PortableRemoteObject;
public class Node {
public static final int INITIAL = 0;
Connection dbConnection = null;
// Node constants
public static final int READY = 1;
public static final int DEAD = 2;
public static final int ANTICIPABLE = 3;
public static final int EXPIRED = 4;
public static final int ANTICIPATING = 5;
public static final int EXECUTING = 6;
public static final int EXECUTED = 7;
public static final int INERROR = 8;
public static final int FINISHED = 9;
public static final int TERMINATED = 10;
public static final int CHECKEDOUT = 11;
public static final int SUSPENDED = 12;
// Node atributes
private String nodeName;
private String nodeCreator;
private String nodeState;
public void Node() {};
/**
* Method that obtain node instance
*/
public Node getNode(String name, ProjectEJB project) {
try {
findNode(name, project);
}catch(Exception findEdge){};
return(this);
}
/**
* Method that obtain nodeName value
*/
public String getNodeName() {
return nodeName;
}
/**
* Method that obtain nodeCreator value
*/
public String getNodeCreator() {
return nodeCreator;
}
/**
* Method that obtain nodeState value
*/
public String getNodeState() {
return nodeState;
}
/**
* Inserts the Entity state into database,
* Initializes the instance variables
* and returns the primary key.
*/
public String createNode (String nodeName, String nodeCreator, String nodeState, ProjectEJB nodeProject) throws DuplicateKeyException,CreateException {
ProjectDAO ADAO = new ProjectDAO();
ADAO.setNodeName(nodeName);
ADAO.setNodeCreator(nodeCreator);
ADAO.setNodeState(nodeState);
try{
dbConnection = nodeProject.getDBConnection();
ADAO.createNode(dbConnection);
return (nodeName);
}catch (java.sql.SQLException se) {
throw new CreateException ("SQL Exception in create:" + se);
} finally {
try {
dbConnection.close();
} catch (SQLException se) {
throw new CreateException
("SQL Exception in create:" + se);
}
}
}
/**
* Finder method that obtain node fields for specific nodeName
*/
public void findNode (String name, ProjectEJB nodeProject) throws FinderException {
ProjectDAO ADAO = new ProjectDAO();
ADAO.setNodeName(name);
try{
dbConnection = nodeProject.getDBConnection();
if (ADAO.findByNodeName(dbConnection) == true)
{
this.nodeName = ADAO.getNodeName();
this.nodeCreator = ADAO.getNodeCreator();
this.nodeState = ADAO.getNodeState();
}
}catch (java.sql.SQLException se) {
throw new FinderException ("SQL Exception in find by primary key");
} finally {
try {
dbConnection.close();
} catch (SQLException se) {
throw new FinderException ("SQL Exception in find by primary key");
}
}
}
/**
* Store method that set node information
*/
public void storeNode (ProjectEJB nodeProject) throws FinderException {
ProjectDAO ADAO = new ProjectDAO();
try{
dbConnection = nodeProject.getDBConnection();
ADAO.setNodeName(this.nodeName);
ADAO.setNodeCreator(this.nodeCreator);
ADAO.setNodeState(this.nodeState);
ADAO.storeNodeRow(dbConnection);
}catch (java.sql.SQLException se) {
throw new EJBException (se);
} finally {
try {
dbConnection.close();
} catch (SQLException se) {
throw new EJBException (se);
}
}
}
/**
* Delete node
*/
public void deleteNode (ProjectEJB nodeProject) throws FinderException {
ProjectDAO ADAO = new ProjectDAO();
try{
dbConnection = nodeProject.getDBConnection();
ADAO.setNodeName(this.nodeName);
ADAO.deleteNodeRow(dbConnection);
}catch (java.sql.SQLException se) {
throw new EJBException (se);
} finally {
try {
dbConnection.close();
} catch (SQLException se) {
throw new EJBException (se);
}
}
}
}
Index: ProjectHome.java
===================================================================
RCS file: /cvsroot/motu/heroine/src/hero/project/ProjectHome.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -r1.3 -r1.4
*** ProjectHome.java 2001/03/22 15:48:23 1.3
--- ProjectHome.java 2001/03/26 09:50:35 1.4
***************
*** 13,17 ****
*/
public Project create(java.lang.String projectName, java.lang.String projectCreator)
! throws RemoteException, CreateException;
/**
--- 13,17 ----
*/
public Project create(java.lang.String projectName, java.lang.String projectCreator)
! throws DuplicateKeyException, CreateException;
/**
|
|
From: Miguel V. F. <mv...@us...> - 2001-03-26 09:50:39
|
Update of /cvsroot/motu/heroine/src In directory usw-pr-cvs1:/tmp/cvs-serv11427/src Modified Files: jndi.properties Log Message: Index: jndi.properties =================================================================== RCS file: /cvsroot/motu/heroine/src/jndi.properties,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -r1.1 -r1.2 *** jndi.properties 2001/03/15 14:58:59 1.1 --- jndi.properties 2001/03/26 09:50:35 1.2 *************** *** 1,4 **** java.naming.factory.initial=com.evermind.server.ApplicationClientInitialContextFactory ! java.naming.provider.url=ormi://localhost:23465/imple java.naming.security.principal=admin java.naming.security.credentials=miguel --- 1,4 ---- java.naming.factory.initial=com.evermind.server.ApplicationClientInitialContextFactory ! java.naming.provider.url=ormi://localhost:1099/imple java.naming.security.principal=admin java.naming.security.credentials=miguel |