"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "plugins/org.jkiss.dbeaver.ui.navigator/src/org/jkiss/dbeaver/ui/navigator/project/ProjectNavigatorView.java" between
dbeaver-6.1.5.tar.gz and dbeaver-6.2.0.tar.gz

About: DBeaver is a multi-platform database tool (for developers and database administrators) that supports all popular databases. Java sources.

ProjectNavigatorView.java  (dbeaver-6.1.5):ProjectNavigatorView.java  (dbeaver-6.2.0)
skipping to change at line 20 skipping to change at line 20
* *
* Unless required by applicable law or agreed to in writing, software * Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, * distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and * See the License for the specific language governing permissions and
* limitations under the License. * limitations under the License.
*/ */
package org.jkiss.dbeaver.ui.navigator.project; package org.jkiss.dbeaver.ui.navigator.project;
import org.eclipse.swt.widgets.Composite; import org.eclipse.swt.widgets.Composite;
import org.eclipse.ui.IMemento;
import org.eclipse.ui.IViewSite;
import org.eclipse.ui.PartInitException;
import org.jkiss.dbeaver.Log; import org.jkiss.dbeaver.Log;
import org.jkiss.dbeaver.model.navigator.DBNNode; import org.jkiss.dbeaver.model.navigator.DBNNode;
import org.jkiss.dbeaver.runtime.DBWorkbench;
import org.jkiss.dbeaver.ui.IHelpContextIds; import org.jkiss.dbeaver.ui.IHelpContextIds;
import org.jkiss.dbeaver.ui.UIUtils; import org.jkiss.dbeaver.ui.UIUtils;
import org.jkiss.dbeaver.ui.navigator.NavigatorPreferences;
import org.jkiss.dbeaver.ui.navigator.NavigatorStatePersistor;
import org.jkiss.dbeaver.ui.navigator.database.NavigatorViewBase; import org.jkiss.dbeaver.ui.navigator.database.NavigatorViewBase;
/** /**
* ProjectNavigatorView * ProjectNavigatorView
*/ */
public class ProjectNavigatorView extends NavigatorViewBase // CommonNavigator public class ProjectNavigatorView extends NavigatorViewBase // CommonNavigator
{ {
private static final Log log = Log.getLog(ProjectNavigatorView.class); private static final Log log = Log.getLog(ProjectNavigatorView.class);
public static final String VIEW_ID = "org.jkiss.dbeaver.core.projectNavigato r"; public static final String VIEW_ID = "org.jkiss.dbeaver.core.projectNavigato r";
private IMemento memento;
public ProjectNavigatorView() { public ProjectNavigatorView() {
} }
@Override @Override
public void saveState(IMemento memento) {
if (DBWorkbench.getPlatform().getPreferenceStore().getInt(NavigatorPrefe
rences.NAVIGATOR_RESTORE_STATE_DEPTH) > 0)
new NavigatorStatePersistor().saveState(getNavigatorViewer().getExpa
ndedElements(), memento);
}
private void restoreState() {
int maxDepth = DBWorkbench.getPlatform().getPreferenceStore().getInt(Nav
igatorPreferences.NAVIGATOR_RESTORE_STATE_DEPTH);
if (maxDepth > 0)
new NavigatorStatePersistor().restoreState(getNavigatorViewer(), get
RootNode(), maxDepth, memento);
}
@Override
public void init(IViewSite site, IMemento memento) throws PartInitException
{
this.memento = memento;
super.init(site, memento);
}
@Override
public DBNNode getRootNode() public DBNNode getRootNode()
{ {
return getModel().getRoot(); return getModel().getRoot();
} }
@Override @Override
public void createPartControl(Composite parent) public void createPartControl(Composite parent)
{ {
super.createPartControl(parent); super.createPartControl(parent);
UIUtils.setHelp(parent, IHelpContextIds.CTX_PROJECT_NAVIGATOR); UIUtils.setHelp(parent, IHelpContextIds.CTX_PROJECT_NAVIGATOR);
restoreState();
} }
} }
 End of changes. 6 change blocks. 
0 lines changed or deleted 32 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)