01: /*
02: * Copyright 2006 Pentaho Corporation. All rights reserved.
03: * This software was developed by Pentaho Corporation and is provided under the terms
04: * of the Mozilla Public License, Version 1.1, or any later version. You may not use
05: * this file except in compliance with the license. If you need a copy of the license,
06: * please go to http://www.mozilla.org/MPL/MPL-1.1.txt. The Original Code is the Pentaho
07: * BI Platform. The Initial Developer is Pentaho Corporation.
08: *
09: * Software distributed under the Mozilla Public License is distributed on an "AS IS"
10: * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. Please refer to
11: * the license for the specific language governing your rights and limitations.
12: */
13: package org.pentaho.designstudio.editors.actionsequence.pages;
14:
15: import org.eclipse.ui.forms.IDetailsPage;
16: import org.pentaho.actionsequence.dom.IActionSequenceElement;
17:
18: /**
19: * Interface that should be implemented by all details pages that can
20: * display the content of action sequence elements.
21: * @author Angelo
22: *
23: */
24: public interface IActionSequenceDetailsPage extends IDetailsPage {
25:
26: /**
27: * @param element the element whose details need to be displayed.
28: * @return true if this details page can display the details of the element
29: */
30: public boolean accepts(IActionSequenceElement element);
31:
32: /**
33: * @return the action sequence element whose details are being displayed
34: */
35: public IActionSequenceElement getActionSequenceElement();
36:
37: /**
38: * Sets the element whose details are to be displayed.
39: * @param element the action sequence element
40: */
41: public void setActionSequenceElement(IActionSequenceElement element);
42:
43: /* (non-Javadoc)
44: * @see org.eclipse.ui.forms.IFormPart#refresh()
45: */
46: public void refresh();
47:
48: /**
49: * @return the name of this detail page.
50: */
51: public String getName();
52:
53: public void grabFocus();
54:
55: }
|