some errors from merging fixed, not implemented methods fixed with exit(-1) for debugging
authorgkompach
Tue, 11 Jul 2006 16:04:52 +0200
changeset 3321ef95da3c0179
parent 3320 7ba45f5b763f
child 3322 b0ae69b41900
some errors from merging fixed, not implemented methods fixed with exit(-1) for debugging
src/java/isac/browserdialog/MethodDialog.java
src/java/isac/browserdialog/ProblemDialog.java
src/java/isac/browserdialog/TheoryDialog.java
     1.1 --- a/src/java/isac/browserdialog/MethodDialog.java	Tue Jul 11 16:00:45 2006 +0200
     1.2 +++ b/src/java/isac/browserdialog/MethodDialog.java	Tue Jul 11 16:04:52 2006 +0200
     1.3 @@ -10,11 +10,16 @@
     1.4  
     1.5  import isac.session.Session;
     1.6  import isac.useractions.IUserAction;
     1.7 -import isac.util.formulae.Context;
     1.8  import isac.wsdialog.DialogProtocolException;
     1.9  
    1.10  import java.rmi.RemoteException;
    1.11  
    1.12 +/**
    1.13 + * @author Georg Kompacher
    1.14 + * 
    1.15 + * This class is responsible for the interactions to the MethodBrowser, to the
    1.16 + * active WSDialog, and also to other BrowserDialogs.
    1.17 + */
    1.18  public class MethodDialog extends BrowserDialog {
    1.19  
    1.20  	/**
    1.21 @@ -28,7 +33,8 @@
    1.22  	}
    1.23  
    1.24  	/**
    1.25 -	 * Notify the Dialog about events or requests triggered by the user
    1.26 +	 * Notify the MethodDialog about events or requests triggered by the user. The
    1.27 +	 * MethodBrowser calls this method over RMI.
    1.28  	 * 
    1.29  	 * @param action
    1.30  	 *            What's new from the UI
    1.31 @@ -37,13 +43,19 @@
    1.32  	 * @throws RemoteException
    1.33  	 * @throws DialogProtocolException
    1.34  	 */
    1.35 -	public boolean notifyUserAction(IUserAction action) throws RemoteException, DialogProtocolException {
    1.36 -		// TODO Auto-generated method stub
    1.37 +	public boolean notifyUserAction(IUserAction action) throws RemoteException,
    1.38 +			DialogProtocolException {
    1.39 +		// TODO GK060711 implement me
    1.40 +		System.out
    1.41 +				.println("TODO: isac.browserdialog.MethodDialog#notifyUserAction(IUserAction): implement me!");
    1.42 +		System.exit(-1);
    1.43  		return false;
    1.44  	}
    1.45  
    1.46 -	public void presentContext(Context context) {
    1.47 -		// TODO Auto-generated method stub
    1.48 -		
    1.49 +	public void presentContext() {
    1.50 +		// TODO GK060711 implement me
    1.51 +		System.out
    1.52 +				.println("TODO: isac.browserdialog.MethodDialog#presentContext(): implement me!");
    1.53 +		System.exit(-1);
    1.54  	}
    1.55  }
     2.1 --- a/src/java/isac/browserdialog/ProblemDialog.java	Tue Jul 11 16:00:45 2006 +0200
     2.2 +++ b/src/java/isac/browserdialog/ProblemDialog.java	Tue Jul 11 16:04:52 2006 +0200
     2.3 @@ -10,11 +10,16 @@
     2.4  
     2.5  import isac.session.Session;
     2.6  import isac.useractions.IUserAction;
     2.7 -import isac.util.formulae.Context;
     2.8  import isac.wsdialog.DialogProtocolException;
     2.9  
    2.10  import java.rmi.RemoteException;
    2.11  
    2.12 +/**
    2.13 + * @author Georg Kompacher
    2.14 + * 
    2.15 + * This class is responsible for the interactions to the ProblemBrowser, to the
    2.16 + * active WSDialog, and also to other BrowserDialogs.
    2.17 + */
    2.18  public class ProblemDialog extends BrowserDialog {
    2.19  
    2.20  	/**
    2.21 @@ -23,12 +28,21 @@
    2.22  	 */
    2.23  	private static final long serialVersionUID = 6479711601158544388L;
    2.24  
    2.25 +	/**
    2.26 +	 * The constructor of this class which is given the session the
    2.27 +	 * ProblemDialog is instanciated for. We need the session to get the correct
    2.28 +	 * WSDialogManager (and also the active WSDialog) for this BrowserDialog.
    2.29 +	 * 
    2.30 +	 * @param session
    2.31 +	 * @throws RemoteException
    2.32 +	 */
    2.33  	protected ProblemDialog(Session session) throws RemoteException {
    2.34  		super(session);
    2.35  	}
    2.36  
    2.37  	/**
    2.38 -	 * Notify the Dialog about events or requests triggered by the user
    2.39 +	 * Notify the ProblemDialog about events or requests triggered by the user. The
    2.40 +	 * ProblemBrowser calls this method over RMI.
    2.41  	 * 
    2.42  	 * @param action
    2.43  	 *            What's new from the UI
    2.44 @@ -41,6 +55,10 @@
    2.45  			throws DialogProtocolException {
    2.46  		System.out.println("ProblemBrowserDialog::notifyUserAction() action="
    2.47  				+ action.getActionID());
    2.48 +		// TODO GK060711 implement me
    2.49 +		System.out
    2.50 +				.println("TODO: isac.browserdialog.ProblemDialog#notifyUserAction(IUserAction): implement me!");
    2.51 +		System.exit(-1);
    2.52  		switch (action.getActionID()) {
    2.53  		case UI_BROWSER_CHANGE_CONTEXT: {
    2.54  			// UserActionOnContext aoc = (UserActionOnContext) action;
    2.55 @@ -74,8 +92,10 @@
    2.56  		return false;
    2.57  	}
    2.58  
    2.59 -	public void presentContext(Context context) {
    2.60 -		// TODO Auto-generated method stub
    2.61 -		
    2.62 +	public void presentContext() {
    2.63 +		// TODO GK060711 implement me
    2.64 +		System.out
    2.65 +				.println("TODO: isac.browserdialog.ProblemDialog#presentContext(): implement me!");
    2.66 +		System.exit(-1);
    2.67  	}
    2.68  }
     3.1 --- a/src/java/isac/browserdialog/TheoryDialog.java	Tue Jul 11 16:00:45 2006 +0200
     3.2 +++ b/src/java/isac/browserdialog/TheoryDialog.java	Tue Jul 11 16:04:52 2006 +0200
     3.3 @@ -10,24 +10,31 @@
     3.4  
     3.5  import isac.session.Session;
     3.6  import isac.useractions.IUserAction;
     3.7 -import isac.util.formulae.Context;
     3.8  import isac.wsdialog.DialogProtocolException;
     3.9  
    3.10  import java.rmi.RemoteException;
    3.11  
    3.12 +/**
    3.13 + * @author Georg Kompacher
    3.14 + * 
    3.15 + * This class is responsible for the interactions to the TheoryBrowser, to the
    3.16 + * active WSDialog, and also to other BrowserDialogs.
    3.17 + */
    3.18  public class TheoryDialog extends BrowserDialog {
    3.19 -	
    3.20 +
    3.21  	/**
    3.22 -	 * 
    3.23 +	 * For serialization, see corresponding API Documentation; value generated
    3.24 +	 * by eclipse to avoid a warning
    3.25  	 */
    3.26  	private static final long serialVersionUID = -432470949578654602L;
    3.27  
    3.28  	protected TheoryDialog(Session session) throws RemoteException {
    3.29  		super(session);
    3.30  	}
    3.31 -	
    3.32 +
    3.33  	/**
    3.34 -	 * Notify the Dialog about events or requests triggered by the user
    3.35 +	 * Notify the TheoryDialog about events or requests triggered by the user.
    3.36 +	 * The TheoryBrowser calls this method over RMI.
    3.37  	 * 
    3.38  	 * @param action
    3.39  	 *            What's new from the UI
    3.40 @@ -36,13 +43,19 @@
    3.41  	 * @throws RemoteException
    3.42  	 * @throws DialogProtocolException
    3.43  	 */
    3.44 -	public boolean notifyUserAction(IUserAction action) throws RemoteException, DialogProtocolException {
    3.45 -		// TODO Auto-generated method stub
    3.46 +	public boolean notifyUserAction(IUserAction action) throws RemoteException,
    3.47 +			DialogProtocolException {
    3.48 +		// TODO GK060711 implement me
    3.49 +		System.out
    3.50 +				.println("TODO: isac.browserdialog.TheoryDialog#notifyUserAction(IUserAction): implement me!");
    3.51 +		System.exit(-1);
    3.52  		return false;
    3.53  	}
    3.54  
    3.55 -	public void presentContext(Context context) {
    3.56 -		// TODO Auto-generated method stub
    3.57 -		
    3.58 +	public void presentContext() {
    3.59 +		// TODO GK060711 implement me
    3.60 +		System.out
    3.61 +				.println("TODO: isac.browserdialog.TheoryDialog#presentContext(): implement me!");
    3.62 +		System.exit(-1);
    3.63  	}
    3.64  }